Skip to content

[Variant] Shredded typed_value columns must have valid variant types #8435

Closed

Description

@scovich

Describe the bug

Currently, variant code is quite willing to support non-variant types such as unsigned integers -- including on the read path for shredded variants in e.g. VariantArray::value (see the typed_value_to_variant helper function).

I don't know if the shredding spec specifically rejects shredding as non-variant types, but there is a certain logic to the idea. And case 127 of parquet-testing/shredded_variant specifically verifies that the reader rejects a typed_value column of (parquet) type INTEGER(32, false).

To Reproduce

Found while making changes related to shredded struct support; case 127 stopped erroring out with the "expected message ("received empty bytes") and started succeeding.

Expected behavior

The read should fail.

Activity

  1. added
    bug
    on Sep 24, 2025
  2. scovich commented on Sep 24, 2025

    @scovich
    ContributorAuthor

    Attn @alamb

  3. scovich commented on Sep 24, 2025

    @scovich
    ContributorAuthor

    Case 137 also expects the reader to reject a 4-byte fixed size binary typed_value column (16-byte for UUID being the only valid case).

  4. added a commit that references this issue on Sep 25, 2025
  5. scovich commented on Sep 25, 2025

    @scovich
    ContributorAuthor
  6. added
    parquet
    on Oct 17, 2025
  7. alamb commented on Oct 17, 2025

    @alamb
    Contributor

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

  8. added
    parquet-variant
    on Oct 17, 2025
  9. alamb commented on Oct 17, 2025

    @alamb
    Contributor

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

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

    bugparquetparquet-variant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions