findepi commented on code in PR #12943:
URL: https://github.com/apache/datafusion/pull/12943#discussion_r1801321137
##########
datafusion/optimizer/src/push_down_filter.rs:
##########
@@ -685,7 +685,8 @@ impl OptimizerRule for PushDownFilter {
.map(LogicalPlan::Filter)?;
insert_below(LogicalPlan::Repartition(repartition), new_filter)
}
- LogicalPlan::Distinct(distinct) => {
+ LogicalPlan::Distinct(distinct @ Distinct::All(_)) => {
+ // note that we check for distinct all as distinct on is not
commutable
Review Comment:
Unless the filter is only on the distinct columns?
--
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]