james727 opened a new pull request #1519: URL: https://github.com/apache/arrow-datafusion/pull/1519
# Which issue does this PR close? This addresses the bug in `single_distinct_to_groupby.rs` described in https://github.com/apache/arrow-datafusion/issues/1512 Right now the `SingleDistinctToGroupBy` optimizer rule only works on literal or column expressions. For more complex expressions (like binary operators), the optimization breaks due to searching for the right/left operands in the derived schema rather than the input schema. This patch modifies the logic to search in the input schema instead. # What changes are included in this PR? This just includes the logic fix and some tests that would have broken before. -- 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]
