alamb opened a new pull request, #7911:
URL: https://github.com/apache/arrow-datafusion/pull/7911

   ## Which issue does this PR close?
   
   Follow on to https://github.com/apache/arrow-datafusion/pull/7793
   
   ## Rationale for this change
   
   While integrating https://github.com/apache/arrow-datafusion/pull/7793 into 
IOx, I found I had to change all our ExecutionPlan implementations with the 
boilerplate (but non trivial) `ExecutionPlan::statistics` implementation
   
   ```rust
           fn statistics(&self) -> 
Result<datafusion::physical_plan::Statistics, DataFusionError> {
               
Ok(datafusion::physical_plan::Statistics::new_unknown(&self.schema()))
           }
   ```
   
   In order the ease the upgrade pain for others, we should provide this as a 
default.
   
   
   
   ## What changes are included in this PR?
   
   1. Provide a default impl for `ExecutionPlan::statistics`
   2. Improve documentation
   
   ## Are these changes tested?
   Covered by existing tests
   
   ## Are there any user-facing changes?
   Hopefully a slightly less painful upgrade for 
https://github.com/apache/arrow-datafusion/pull/7793


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

Reply via email to