alamb opened a new issue, #14937:
URL: https://github.com/apache/datafusion/issues/14937

   ### Is your feature request related to a problem or challenge?
   
   FileScanConfig has statistics (`FileScanConfig::statistics`) but so does 
`file_source`
   
   
https://github.com/apache/datafusion/blob/cf2b7e6054d56bfdbe1c991c1afc400f8cb3aa8f/datafusion/datasource/src/file_scan_config.rs#L151-L153
   
   And 
   
   
https://github.com/apache/datafusion/blob/cf2b7e6054d56bfdbe1c991c1afc400f8cb3aa8f/datafusion/datasource/src/file.rs#L59-L60
   
   The fact there are two sets of statistics means 
   1. there is a potential for bugs when they get out of sync such as was 
caused in https://github.com/apache/datafusion/issues/14679
   2. Planning takes that much longer
   
   
   
   
   
   ### Describe the solution you'd like
   
   It would be nice to remove the duplication so it is clear there is only a 
single statistics (held on the DataSource)
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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