Commit d50e9b7
[SPARK-54454][SQL] Enable variant shredding and variant logical type annotation configs by default
### What changes were proposed in this pull request?
This PR enables the annotation of the variant parquet logical type and shredded writes and reads by default.
### Why are the changes needed?
1. Having variant data annotated with the variant logical type is required by the parquet variant spec ([source](https://github.com/apache/parquet-format/blob/master/VariantEncoding.md#variant-in-parquet)). This is necessary to adhere to the spec
2. Variant shredding brings in significant performance optimizations over regular unshredded variants, and should be the default mode.
### Does this PR introduce _any_ user-facing change?
Yes, variant data written by Spark would be annotated with the variant logical type annotation and variant shredding would be enabled by default.
### How was this patch tested?
Existing tests.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53164 from harshmotw-db/harshmotw-db/enable_variant_shredding.
Lead-authored-by: Harsh Motwani <[email protected]>
Co-authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 3a06297)
Signed-off-by: Dongjoon Hyun <[email protected]>1 parent 8ee56f1 commit d50e9b7
File tree
1 file changed
+4
-4
lines changed- sql/catalyst/src/main/scala/org/apache/spark/sql/internal
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1598 | 1598 | | |
1599 | 1599 | | |
1600 | 1600 | | |
1601 | | - | |
| 1601 | + | |
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
| |||
5526 | 5526 | | |
5527 | 5527 | | |
5528 | 5528 | | |
5529 | | - | |
| 5529 | + | |
5530 | 5530 | | |
5531 | 5531 | | |
5532 | 5532 | | |
5533 | 5533 | | |
5534 | 5534 | | |
5535 | 5535 | | |
5536 | 5536 | | |
5537 | | - | |
| 5537 | + | |
5538 | 5538 | | |
5539 | 5539 | | |
5540 | 5540 | | |
| |||
5567 | 5567 | | |
5568 | 5568 | | |
5569 | 5569 | | |
5570 | | - | |
| 5570 | + | |
5571 | 5571 | | |
5572 | 5572 | | |
5573 | 5573 | | |
| |||
0 commit comments