You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "paleolimbot (via GitHub)" <gi...@apache.org> on 2026/03/04 20:55:29 UTC

[I] Nested types and extension types are not supported in `Statistics` / `ColumnStatistics` [datafusion]

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

   ### Is your feature request related to a problem or challenge?
   
   The current `ColumnStatistics` structure is not able to represent nested types (e.g., list, map, or struct) for which statistics are present in Parquet data sources and perhaps others as well.
   
   https://github.com/apache/datafusion/blob/d025869526e5c7c2c32d5f6318a634522d44a538/datafusion/common/src/stats.rs#L724-L752
   
   In addition to list/struct/map statistics, the `Statistics` struct can't represent statistics for extension types. Three extension types for which we can get statistics from Parquet files are geometry, geography, and variant; however, there is no place to put them in the Statistics so they are dropped.
   
   One approach for doing this is in https://github.com/apache/datafusion/pull/20589 , although I wonder if something dynamic could work as well (e.g., a trait with methods for the transformations that are currently hard coded for a fixed set of types).
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### 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-unsubscribe@datafusion.apache.org.apache.org

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


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