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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
