Commit 010d0e7
Add Arrow Variant Extension Type, remove
# Which issue does this PR close?
- closes #8319
- closes #8296
# Rationale for this change
This is needed to [read/write the Variant Parquet logical
type](#8370) and work with the
rest of the Arrow Ecosystem
Note, this is broken out the larger PR here:
- from #8365
We need a way to write Variant encoded data to/from parquet, and the
current way the VariantArray is implemented doesn't work (panics when
writing to parquet). See tickets above
Instead of a `impl Array` it seems the better way to do this is using an
Arrow Extension Type. See
#8319 (comment)
for more details
# What changes are included in this PR?
1. remove the `Array` impl for `VariantArray`, which forces explict
conversions back/forth when reading/writing
2. remove the `Array` impl for `ShreddedVariantFieldArray`, which forces
explicit conversions back/forth when reading/writing
3. Add `VariantType` extension type
# Are these changes tested?
Yes, with new code and tests
# Are there any user-facing changes?
Yes, but this is not yet stable / released, so these changes have no
impact on the releasability of this code
---------
Co-authored-by: Ryan Johnson <[email protected]>
Co-authored-by: Matthijs Brobbel <[email protected]>Array impl for VariantArray and ShreddedVariantFieldArray (#8392)1 parent 28ac449 commit 010d0e7
File tree
8 files changed
+472
-318
lines changed- parquet-variant-compute
- benches
- src
- parquet/tests
8 files changed
+472
-318
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
571 | 564 | | |
572 | 565 | | |
573 | 566 | | |
| |||
0 commit comments