Skip to content

Prevent UnionArray with Repeated Type IDs #3982

@tustvold

Description

@tustvold

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

Currently DataType::Union has no protection against the same type ID appearing multiple times in its DataType.

Describe the solution you'd like

We should probably validate that the type_ids are unique, and prevent constructing an invalid DataType

Describe alternatives you've considered

We could not do this, much like currently permit invalid DataType::Decimal #2362

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelogparquetChanges to the parquet crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions