xiangfu0 commented on PR #13146: URL: https://github.com/apache/pinot/pull/13146#issuecomment-2119221184
> We should generalize the query flow for aggregate with `distinct` or `within group order by`. It should be modeled as projection/distinct on the leaf stage instead of aggregation. The aggregation should only be applied on the intermediate stage, which is similar to the window function handling logic Do you mean We should have a new rule or reuse existing rule to modify the query plan? -- 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]
