Repository navigation
Closed
Labels
enhancementNew feature/addition
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Working on the #8082 and trying to use variant_get kernel with cast_as = utf8 option gave me an error "Not a primitive type: Utf8" during arrow_to_variant conversion.
Describe the solution you'd like
We need to implement arrow_to_variant support for all other primitive and non-primitive types.
These include:
Primitive:
- TimeStamp [Variant] Add variant to arrow primitive support for boolean/timestamp/time #8515
- Time32, Time64 [Variant] Add variant to arrow primitive support for boolean/timestamp/time #8515
- Date32,Date64 [Variant] Support variant to arrow primitive support null/time/decimal_* #8637
- Duration, Interval - Casting Variant to duration/interval types is not supported. The Variant format does not define duration/interval types.
- Decimal32, 64, 128, 256 [Variant] Support variant to
Decimal32/64/128/256#8552
Non-primitive:
- Null [Variant] Support variant to arrow primitive support null/time/decimal_* #8637
- Boolean [Variant] Add variant to arrow primitive support for boolean/timestamp/time #8515
- Utf-8, LargeUtf8, Utf8View [Variant] Add variant_to_arrow Utf-8, LargeUtf8, Utf8View types support #8567
- Binary, LargeBinary, BinaryView [Variant] Add variant to arrow for
DataType::{Binary/LargeBinary/BinaryView}#8768 - FixedSizeBinary [Variant] Support
shred_variantfor Uuids #8666 - Map| Union - seens to be intentionally not supported by
canonicalize_and_verify_data_typeinVariantArray, but maybe still could be an output ofvariant_get/variant_to_arrow - Struct [Variant] Add
variant_to_arrowStructtype support #9529 - Lists(List, LargeList, ListView, LargeListView) Already implemented
- FixedSizeList [Variant] Add
variant_to_arrowFixedSizeListtype support #9531 - Dictionary, RunEndEncoded - [Variant] Add
variant_to_arrowDictionary/REEtype support #10013
Describe alternatives you've considered
Additional context
Will be helpful for unit testing.
Reacted by Andrew Lamb, Ning Sun, Will Jones and Samyak Sarnayak
Metadata
Metadata
Assignees
Labels
enhancementNew feature/addition
Activity
alamb commentedon Sep 26, 2025
Thanks @sdf-jkl - I added this to #8480
[Variant] Support variant to `Decimal32/64/128/256` (#8552)
klion26 commentedon Nov 10, 2025
The
{Binary, LargeBinary, BinaryView}(#8768) andFixedSizeBinary(16)(#8666 ) has been implemented[Variant] add `variant_to_arrow` union builder (apache#10313)
[Variant] add `variant_to_arrow` union builder (apache#10313)