adriangb commented on PR #27867: URL: https://github.com/apache/datafusion/pull/27867#issuecomment-7322905310
Thank you, this is a real bug. `c` makes `k` constant, so the sort leaves `k` out of its key. The split then dropped `c`, and `k` was no longer known to be constant. The guard compared only orderings. [72e7b57](https://github.com/apache/datafusion/commit/72e7b5780) fixes it, and your query is now an SLT case. If you cherry-picked this PR before that commit, please also take [72e7b57](https://github.com/apache/datafusion/commit/72e7b5780) and [c43952d](https://github.com/apache/datafusion/commit/c43952d66). -- 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]
