Skip to content

[Variant] Consider validating variants on creation (rather than read) #7684

Closed

Description

@alamb

Yeah, I think in general this is hitting the tension you mentioned in the earlier PRs of early vs late validation.

The more I think about it the more I think we should move the validation to construction because:

  1. The only reason to create a Variant in the first place is to access its data, so I think we would end up validating it almost immediately on read
  2. Variants are constructed once but read many times so validating up front is probably faster
  3. We could offer an unchecked variant for construction if performance overhead is hight that skips the validation

Originally posted by @alamb in #7666 (comment)

Activity

  1. added
    parquet
    on Jun 20, 2025
  2. alamb commented on Jun 20, 2025

    @alamb
    ContributorAuthor

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

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

    parquet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions