You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/12/08 17:39:42 UTC

[GitHub] [arrow-datafusion] lst-codes commented on pull request #1392: Fix index out of bounds for stats on nested fields

lst-codes commented on pull request #1392:
URL: https://github.com/apache/arrow-datafusion/pull/1392#issuecomment-989029092


   > Thanks @andrei-ionescu for taking a stab at this. I don't think we can just flatting all the columns like how it's handled in parquet because the rest of the datafusion code base assumes arrow's hierarchical column structure. As a result, column indexes only map to top level columns. I suspect this approach will not cause runtime crashes because we are only expanding the column vector, but it could lead to incorrect read of column stats in places like
   > 
   > https://github.com/apache/arrow-datafusion/blob/069449f754c92765a2d0dbbf62cd7bac76257892/datafusion/src/physical_optimizer/aggregate_statistics.rs#L181
   
   @houqp 
   
   Do you think column statistics should include something similar to `Field#fields()`, which returns a list of subfields for nested structures? 
   
   https://github.com/apache/arrow-rs/blob/master/arrow/src/datatypes/field.rs#L110-L125


-- 
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@arrow.apache.org

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