trinodb / trino

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)
https://trino.io
Apache License 2.0
10.47k stars 3.01k forks source link

Iceberg Query with equality sign filter stuck in the planning stage #17613

Open netanelm-upstream opened 1 year ago

netanelm-upstream commented 1 year ago

I have a query that is stuck in the planning stage:

select
    column_1
from table
where processing_time >= timestamp '2023-05-10 01:00:00'
and processing_time <= timestamp '2023-05-10 05:00:00';

It's working if:



processing_time is a partition column hour(processing_time)

Column type:
`processing_time timestamp(6)`

Using iceberg, tested with Hive Metastore and JDBC catalog.
Trino Version 407.
Noticed that on trino version 394 it also working.

Slack channel:
https://trinodb.slack.com/archives/CJ6UC075E/p1683717204698349
findepi commented 1 year ago

stuck in the planning stage:

can you capture thread dumps and see where the planner is being busy?

netanelm-upstream commented 1 year ago

@findepi How can I find the thread dumps? I am running Trino on k8s

findepi commented 1 year ago

@netanelm-upstream this might help https://www.baeldung.com/ops/java-heap-dump-from-kubernetes-pod#getting_heap_dump

findinpath commented 1 month ago

Probably related to https://github.com/trinodb/trino/issues/19266