Skip to content

[Variant] Add input validation in VariantBuilder #7697

@alamb

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As @scovich points out, there are some data types such as Decimal or Binary where the Rust native type can express values that are not allowed in Variants

Describe the solution you'd like
It would be nice to ensure that the VariantBuilder could only produce valid Variant values

Describe alternatives you've considered

To do so we would probably have to add error checking to the builder functions like new_decimal 🤔

Additional context

Metadata

Metadata

Assignees

Labels

enhancementAny 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