alamb opened a new issue, #8761: URL: https://github.com/apache/arrow-rs/issues/8761
> I've just run into a problem which I think is close enough to this issue that it doesn't warrant opening a new one (If you disagree let me know and I'll create an issue). It turns out that the output of [`format_metadata`](https://github.com/apache/arrow-rs/blob/main/arrow-schema/src/datatype_display.rs#L24) is not deterministic. With the following reproducer > > ```rust > use arrow::datatypes::{DataType, Field, Fields}; > use std::collections::HashMap; > > fn main() { > println!( > "{}", > DataType::Struct(Fields::from(vec![ > Field::new("test1", DataType::Int32, true).with_metadata(HashMap::from([ > ("a".to_string(), "A".to_string()), > ("b".to_string(), "B".to_string()) > ])), > Field::new("test2", DataType::Utf8, false) > ])) > ); > } > ``` > > One either sees the output: > > ``` > Struct("test1": nullable Int32, metadata: {"a": "A", "b": "B"}, "test2": Utf8) > ``` > > or the output: > > ``` > Struct("test1": nullable Int32, metadata: {"b": "B", "a": "A"}, "test2": Utf8) > ``` > _Originally posted by @mhilton in [#8351](https://github.com/apache/arrow-rs/issues/8351#issuecomment-3474175453)_ -- 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]
