You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add impl From<[(K, V); N]> for Metadata so array literals work with with_metadata #10686
While updating DataFusion to arrow 60 I found that a very common pattern for attaching metadata to a Field or Schema no longer compiles. Before, with_metadata took a HashMap<String, String>, so an array literal converted via type inference:
Now that metadata parameters are generic (impl Into<Metadata>), the .into() target can no longer be inferred and this fails with error[E0283]: type annotations needed. The same applies to Default::default() and .collect() in metadata argument position.
Spelling out the type at each call site, e.g. Metadata::new().with("some_key", "some_value") or HashMap::from([...]); this works but required touching every call site.
Activity
Rich-T-kid commentedon Aug 15, 2026
I think this functionality already exist
arrow-rs/arrow-schema/src/metadata.rs
Line 196 in b5794fb
compiles fine
alamb commentedon Aug 17, 2026
Thanks for checking @Rich-T-kid