-
Notifications
You must be signed in to change notification settings - Fork 794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
field_to_json() in arrow_integration_test/ field.rs does not serialize fields metadata #6700
Comments
Thanks for the report -- so that sounds like field metadata is being lost somewhere? |
Not lost, just omitted at serialization: arrow-rs/arrow-integration-test/src/field.rs Lines 266 to 296 in 0e9abcd
Line 292 should be: "children": children,
"metadata": serde_json::to_value(field.metadata()).unwrap() Just like in: arrow-rs/arrow-integration-test/src/schema.rs Lines 24 to 29 in 0e9abcd
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 with
arrow version = "53.1.0"
The text was updated successfully, but these errors were encountered: