Skip to content

[Variant]: Implement DataType::Utf8/LargeUtf8/Utf8View support for cast_to_variant kernel #8049

Closed

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
We implemented cast_to_variant for some primitive types in

Now we need to complete out type support for other Arrow types.

Describe the solution you'd like
Add support for the types named in the title as well.

Describe alternatives you've considered

  1. Add the corresponding match arms in the cast_to_variant kernel:
  2. add tests (e.g.
    fn test_cast_to_variant_int8() {
    run_test(
    Arc::new(Int8Array::from(vec![
    Some(i8::MIN),
    None,
    Some(-1),
    Some(1),
    Some(i8::MAX),
    ])),
    vec![
    Some(Variant::Int8(i8::MIN)),
    None,
    Some(Variant::Int8(-1)),
    Some(Variant::Int8(1)),
    Some(Variant::Int8(i8::MAX)),
    ],
    )
    }
    )

Activity

  1. added
    enhancement
    on Aug 6, 2025
  2. added a commit that references this issue on Aug 14, 2025
    536ccf5
  3. added
    parquet
    on Aug 21, 2025
  4. alamb commented on Aug 21, 2025

    @alamb
    ContributorAuthor

    label_issue.py automatically added labels {'parquet'} from #8044

  5. added
    parquet-variant
    on Aug 21, 2025
  6. alamb commented on Aug 21, 2025

    @alamb
    ContributorAuthor

    label_issue.py automatically added labels {'parquet-variant'} from #8089

  7. removed
    enhancement
    on Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    parquetparquet-variant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions