-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed as not planned
Labels
parquetChanges to the parquet crateChanges to the parquet crateparquet-variantparquet-variant* cratesparquet-variant* crates
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Note this is likely one of the most complex parts of implementing Shredded Variants , so it is not a good first task
We introduced the basic variant_get
kernel in and now we need to expand its feature set
In particular, Shredded Objects
Describe the solution you'd like
I would like variant_get
to support shredded objects, along with being able to extract elements from them.
So roughly that means
// get the named field of variant object as a Variant
variant_get(array, "$.field_name")
// get the named field of variant object as a typed field
variant_get(array, "$.field_name", DataType::Int)
This should work for:
- Variants where the field_name is in a typed_value
- Variants where the field_name is not in the typed value
Describe alternatives you've considered
- Add a test that manually constructs a shredded variant array (follow the example in the arrow proposal)
- Add a test that calls variant_get appropriately
- Implement the code
I suggest getting this working for non-nested obejcts first, and then working on nesting / pathing as a second pR
Additional context
Reference
Metadata
Metadata
Assignees
Labels
parquetChanges to the parquet crateChanges to the parquet crateparquet-variantparquet-variant* cratesparquet-variant* crates