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


##########
datafusion/physical-plan/src/execution_plan.rs:
##########
@@ -477,7 +477,7 @@ pub trait ExecutionPlan: Debug + DisplayAs + Send + Sync {
     /// If statistics are not available, should return 
[`Statistics::new_unknown`]
     /// (the default), not an error.
     /// If `partition` is `None`, it returns statistics for the entire plan.
-    fn partition_statistics(&self, partition: Option<usize>) -> 
Result<Statistics> {
+    fn partition_statistics(&self, partition: Option<usize>) -> 
Result<Arc<Statistics>> {

Review Comment:
   yeah, it should be. But given the change is small, only wrap an Arc, I'm 
thinking if it's enough to only mark the PR as API changing and add some notes 
to upgrade doc



-- 
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]

Reply via email to