You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/10/31 18:27:59 UTC
[I] Inconsistent display for types with Metadata [arrow-rs]
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistent display for types with Metadata [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #8761:
URL: https://github.com/apache/arrow-rs/issues/8761#issuecomment-3553622566
`label_issue.py` automatically added labels {'arrow'} from #8760
--
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@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistent display for types with Metadata [arrow-rs]
Posted by "mbrobbel (via GitHub)" <gi...@apache.org>.
mbrobbel closed issue #8761: Inconsistent display for types with Metadata
URL: https://github.com/apache/arrow-rs/issues/8761
--
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@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org