LakshSingla commented on PR #16073: URL: https://github.com/apache/druid/pull/16073#issuecomment-1985045723
What do you think about some custom code into the MSQ layer that prevents resorting to the fields, in case the previous fields are already sorted by a superset of the given fields? For eg, if a stage wants to sort by columns A, B; while the previous single stage had sorted by columns A, B, C; then we can probably skip sorting for that stage. This is likely to allow the same benefits associated with assuming a sorted signature, while also preserving the ORDER BY. I had a draft PR with some changes in similar area and this method conveys the above: https://github.com/apache/druid/pull/15945/files#diff-36986d11bec08663b26497269e520d6882a56c189a03de780759f8024ac08127R193 -- 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]
