[GLUTEN-11283][VL] Respect spark default zstd compression level#11284
Merged
Conversation
Member
|
@wecharyu, I note Spark has the following config with zatd level set to 1 by default. Is it related? Do you know why Spark doesn't respect it? |
Contributor
Author
|
@philo-he The
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
Spark default zstd compression leve is 3:
https://github.com/apache/parquet-java/blob/7ec32846663782846615e835bd06859c75b8f6b0/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/codec/ZstandardCodec.java#L52
But velox default compression level is 1:
https://github.com/facebookincubator/velox/blob/a0bd1dd248c7def13dd17724e1569fd990515401/velox/dwio/parquet/writer/arrow/util/CompressionInternal.h#L76
So the output parquet size could be larger in gluten if user does not configure the
parquet.compression.codec.zstd.level.Fix #11283
How was this patch tested?
Test written file size locally.