Indian-boult opened a new pull request, #20333: URL: https://github.com/apache/pinot/pull/20333
Fixes #20329 `AggregatePushdownRule.addPartialAggregate` now gives the final aggregate the same collations as the leaf aggregate. It used to remap them with the input to partial aggregate mapping, but the collations index the aggregate output, which the final aggregate keeps in the same order. The remap dropped or moved the collation, and the final aggregate then trimmed to LIMIT arbitrary groups. I updated the three expected plans in `PhysicalOptimizerPlans.json` that encoded the missing collation. I also added a plan case for `SELECT DISTINCT col3 FROM a ORDER BY col3 DESC LIMIT 10`, where the sort key is not the first input column, and three DISTINCT queries with ORDER BY and LIMIT to `Distincts.json`. On master the plan test fails 4 cases, and the new queries fail in `testQueryTestCasesWithH2WithNewOptimizer`. With the change both pass, along with the full pinot-query-planner suite and the full `ResourceBasedQueriesTest`. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
