You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "iSparshP (via GitHub)" <gi...@apache.org> on 2026/09/01 18:23:31 UTC

Re: [I] `Int96Coercer` drops the metadata of struct, list and map fields. [datafusion]

iSparshP commented on issue #24786:
URL: https://github.com/apache/datafusion/issues/24786#issuecomment-5498454714

   take
   
   Confirmed the root cause: in `datasource-parquet/src/schema_coercion.rs`, leaf fields are cloned (preserving metadata via `field.clone().with_data_type(...)`), but struct/list/map containers are rebuilt with `Field::new_struct`/`new_list`/`Map`, which start from empty metadata — so `current_field.metadata()` is dropped. Fix is to carry it across at the three construction sites (`.with_metadata(current_field.metadata().clone())`). I'll add a regression test asserting container-field metadata survives `coerce_int96`. PR incoming.


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

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