Open pshampanier opened 2 weeks ago
Thanks for the report -- so that sounds like field metadata is being lost somewhere?
Not lost, just omitted at serialization:
Line 292 should be:
"children": children,
"metadata": serde_json::to_value(field.metadata()).unwrap()
Just like in: https://github.com/apache/arrow-rs/blob/0e9abcd69eedb4080f74e0631ca3cf065cf6553e/arrow-integration-test/src/schema.rs#L24-L29
I tested it, and it's working fine.
Would you be willing to create a PR to fix this issue @pshampanier ?
Thank you
Describe the bug When calling
arrow_integration_test::schema_to_json(schema)
metadata at the field level are not serialized.To Reproduce
Expected behavior Expected:
Found:
The
metadata
key is available at the schema level but missing for fields. Additional context Tested witharrow version = "53.1.0"