Skip to content

[Variant] [Shredding] Support typed_access for Struct #8336

@alamb

Description

@alamb

NOTE: This is likely a pretty tricky one to implement so it is not a good choice if you are looking for something straightforward to help with)

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

We are implementing Variant support in arrow-rs (🎉 ), and we are currently implementing "shredding" - the ability to read Variants when they have been partially extracted into a type value column.

This ticket tracks adding support for accessing typed values of the type listed in the description of this ticket as a Variant value

Describe the solution you'd like

Fix the corresponding test cases in the shredded_variant test suite.

After #8325 is merged, you can run that suite using:

cargo test --all-features --test variant_integration

Describe alternatives you've considered

  1. Extend typed_value_to_variant for the type (source link)
  2. Add an appropriate test case, following the models of tests such as

#[test]
fn get_variant_partially_shredded_uint8_as_variant() {
numeric_partially_shredded_test!(u8, partially_shredded_uint8_variant_array);
}

Additional context

Metadata

Metadata

Assignees

No one assigned

    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