neilconway commented on code in PR #22343:
URL: https://github.com/apache/datafusion/pull/22343#discussion_r3260746912
##########
datafusion/optimizer/src/push_down_filter.rs:
##########
@@ -778,24 +778,31 @@ impl OptimizerRule for PushDownFilter {
return push_down_join(join, None);
};
- let plan_schema = Arc::clone(plan.schema());
-
let LogicalPlan::Filter(mut filter) = plan else {
return Ok(Transformed::no(plan));
};
+ let plan_schema = Arc::clone(filter.input.schema());
Review Comment:
Unrelated to the core change but should save a few cycles.
--
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]