xudong963 commented on code in PR #15824:
URL: https://github.com/apache/datafusion/pull/15824#discussion_r2059464810


##########
datafusion/physical-optimizer/src/enforce_distribution.rs:
##########
@@ -1036,9 +1036,9 @@ pub fn replace_order_preserving_variants(
     if is_sort_preserving_merge(&context.plan) {
         let child_plan = Arc::clone(&context.children[0].plan);
         // It's safe to unwrap because `CoalescePartitionsExec` supports 
`fetch`.
-        context.plan = CoalescePartitionsExec::new(child_plan)
-            .with_fetch(context.plan.fetch())
-            .unwrap();
+        context.plan = Arc::new(

Review Comment:
   Could you please rebase main and fix more places using `unwrap`? There's 
some such code added yesterday



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to