LLDay commented on code in PR #20009:
URL: https://github.com/apache/datafusion/pull/20009#discussion_r2732380338
##########
datafusion/physical-plan/src/sorts/sort_preserving_merge.rs:
##########
@@ -409,6 +410,46 @@ impl ExecutionPlan for SortPreservingMergeExec {
.with_fetch(self.fetch()),
)))
}
+
+ fn physical_expressions<'a>(
+ &'a self,
+ ) -> Option<Box<dyn Iterator<Item = Arc<dyn PhysicalExpr>> + 'a>> {
+ Some(Box::new(
+ self.expr.iter().map(|sort| Arc::clone(&sort.expr)),
+ ))
+ }
+
+ fn with_physical_expressions(
+ &self,
+ exprs: Vec<Arc<dyn PhysicalExpr>>,
+ ) -> Result<Option<Arc<dyn ExecutionPlan>>> {
+ let expected_count = self.expr.len();
+ let exprs_count = exprs.len();
+ if exprs_count != expected_count {
Review Comment:
Rewrote with `assert_eq_or_internal_error`.
--
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]