richardstartin opened a new issue, #8607: URL: https://github.com/apache/pinot/issues/8607
I have a query as follows: ```sql select count(*) from githubEvents where dateTrunc('YEAR', event_time) = '2016-01-01 00:00:00.0' ``` It produces a nonzero result: | count(*) | |--| |323650488| However, when I try an explain plan: ```sql explain plan for select count(*) from githubEvents where dateTrunc('YEAR', event_time) = '2016-01-01 00:00:00.0' ``` The query plan picks a segment at random which should have been pruned, and doesn't reflect the way the query is evaluated: Operator | Operator_Id | Parent_Id -- | -- | -- BROKER_REDUCE(limit:10) | 0 | -1 COMBINE_AGGREGATE | 1 | 0 FAST_FILTERED_COUNT | 2 | 1 FILTER_EMPTY | 3 | 2 It would be helpful if the plan chose a segment which has data, or queried all segments and merged operators when the operator varies according to segment. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org