Skip to content

[Variant] Add variant to arrow primitive support for remaining primitives #8367

@klion26

Description

@klion26

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

When implementing #8331, I found that we have added integer support for variant to arrow primitive, and need to support the remaining primitive types.

pub(crate) trait VariantAsPrimitive<T: ArrowPrimitiveType> {
    fn as_primitive(&self) -> Option<T::Native>;
}

Describe the solution you'd like

Add support for the remaining types of variants to arrow primitive, and add tests for them.

tests can be ref to variant.rs#get_variant_perfectly_shredded_int32_as_int32

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

Labels

enhancementAny new improvement worthy of a entry in the changelog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions