-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
enhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Creating a VariantArray
from a collection of Variant
values currently requires a fair amount of boilerplate when the intent is simply to convert an iterable of Variant
values into a VariantArray
fn foo() {
let mut b = VariantArrayBuilder::new();
for v in variants {
b.append_variant(v);
}
}
Describe the solution you'd like
Implementing a From<Impl IntoIterator<Item = Variant>>
for VariantArray
would simplify this process and make the API more ergonomic
Additional context
This feature is motivated by datafusion-variant, a higher-level library that integrates with Datafusion through a series of udfs
Metadata
Metadata
Assignees
Labels
enhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog