friendlymatthew commented on PR #7914: URL: https://github.com/apache/arrow-rs/pull/7914#issuecomment-3079977638
> the field order can vary from objet to object so when comparing two variants for equality the field order should not be taken into account Hm, I assume you are talking about > The field ids and field offsets must be in lexicographical order of the corresponding field names in the metadata dictionary. > However, the actual `value` entries do not need to be in any particular order. > This implies that the `field_offset` values may not be monotonically increasing. > For example, for the following object: > ``` > { > "c": 3, > "b": 2, > "a": 1 > } > ``` > The `field_id` list must be `[<id for key "a">, <id for key "b">, <id for key "c">]`, in lexicographical order. > The `field_offset` list must be `[<offset for value 1>, <offset for value 2>, <offset for value 3>, <last offset>]`. > The `value` list can be in any order. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org