xiangfu0 commented on PR #13146: URL: https://github.com/apache/pinot/pull/13146#issuecomment-2119223247
> 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 I think the distinct will still happen in both leaf and intermediate stage, as there could still be duplicates across leaf nodes. -- 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]
