Skip to content

[SPARK-56885][CORE][TESTS] Make CompressionCodecSuite be independent from the default value of io compression codec#55909

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56885
Closed

[SPARK-56885][CORE][TESTS] Make CompressionCodecSuite be independent from the default value of io compression codec#55909
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56885

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR makes the default compression codec test in CompressionCodecSuite derive the expected codec class from IO_COMPRESSION_CODEC.defaultValueString instead of hard-coding classOf[LZ4CompressionCodec].

Why are the changes needed?

To keep the test aligned with the actual default of spark.io.compression.codec so it survives any future default change without modification.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

@peter-toth
Copy link
Copy Markdown
Contributor

Thank you @dongjoon-hyun , merged to master (5.0.0).

dongjoon-hyun added a commit that referenced this pull request May 16, 2026
…t from the default value of io compression codec

### What changes were proposed in this pull request?

This PR makes the `default compression codec` test in `CompressionCodecSuite` derive the expected codec class from `IO_COMPRESSION_CODEC.defaultValueString` instead of hard-coding `classOf[LZ4CompressionCodec]`.

### Why are the changes needed?

To keep the test aligned with the actual default of `spark.io.compression.codec` so it survives any future default change without modification.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

Closes #55909 from dongjoon-hyun/SPARK-56885.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Peter Toth <peter.toth@gmail.com>
(cherry picked from commit b5777c4)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Thank you so much, @peter-toth . Since this is a test-only change, I cherry-picked this to branch-4.x and branch-4.2 too.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-56885 branch May 16, 2026 09:13
dongjoon-hyun added a commit that referenced this pull request May 16, 2026
…t from the default value of io compression codec

### What changes were proposed in this pull request?

This PR makes the `default compression codec` test in `CompressionCodecSuite` derive the expected codec class from `IO_COMPRESSION_CODEC.defaultValueString` instead of hard-coding `classOf[LZ4CompressionCodec]`.

### Why are the changes needed?

To keep the test aligned with the actual default of `spark.io.compression.codec` so it survives any future default change without modification.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

Closes #55909 from dongjoon-hyun/SPARK-56885.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Peter Toth <peter.toth@gmail.com>
(cherry picked from commit b5777c4)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 52b9422)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@peter-toth
Copy link
Copy Markdown
Contributor

Thank you so much, @peter-toth . Since this is a test-only change, I cherry-picked this to branch-4.x and branch-4.2 too.

Yeah, makes sense, thank you @dongjoon-hyun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants