Kristofferjoha commented on code in PR #26670:
URL: https://github.com/apache/datafusion/pull/26670#discussion_r4367236581
##########
datafusion/physical-plan/src/sorts/sort.rs:
##########
@@ -1440,7 +1440,12 @@ impl ExecutionPlan for SortExec {
.expect("rebuilt SortExec with new children")
.clone();
// Our dynamic filter and execution metrics are the state we need to
reset.
- new_sort.filter = Some(new_sort.create_filter());
+ let expr = new_sort.filter.as_ref().map(|filter| filter.read().expr());
Review Comment:
My bad, missed the existing helper. `reset_state()` uses it now.
--
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]