Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-51033][CORE][TESTS] Fix CryptoStreamUtilsSuite to use sameElements for array comparison #49727

Closed
wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jan 29, 2025

What changes were proposed in this pull request?

This PR aims to fix CryptoStreamUtilsSuite to use sameElements for array comparison.

Why are the changes needed?

Since the existing assertion is invalid due to String != Array[Byte] comparison, it causes a compilation error from Scala 2.13.16.

Does this PR introduce any user-facing change?

No, this is a test-only fix.

How was this patch tested?

Pass the CIs.

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

No.

@github-actions github-actions bot added the CORE label Jan 29, 2025
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-51033][CORE][TESTS] Fix CryptoStreamUtilsSuite to use sameElements for array comparision [SPARK-51033][CORE][TESTS] Fix CryptoStreamUtilsSuite to use sameElements for array comparison Jan 29, 2025
@dongjoon-hyun
Copy link
Member Author

Thank you, @LuciferYang !

dongjoon-hyun added a commit that referenced this pull request Jan 29, 2025
…lements` for array comparison

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

This PR aims to fix `CryptoStreamUtilsSuite` to use `sameElements` for array comparison.

### Why are the changes needed?

Since the existing assertion is invalid due to `String != Array[Byte]` comparison, it causes a compilation error from Scala 2.13.16.

https://github.com/apache/spark/blob/6bbfa2dad8c70b94ca52eb7cddde5ec68efbe0b1/core/src/test/scala/org/apache/spark/security/CryptoStreamUtilsSuite.scala#L115

- #49478

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

No, this is a test-only fix.

### How was this patch tested?

Pass the CIs.

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

No.

Closes #49727 from dongjoon-hyun/SPARK-51033.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 5cce6e9)
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun added a commit that referenced this pull request Jan 29, 2025
…lements` for array comparison

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

This PR aims to fix `CryptoStreamUtilsSuite` to use `sameElements` for array comparison.

### Why are the changes needed?

Since the existing assertion is invalid due to `String != Array[Byte]` comparison, it causes a compilation error from Scala 2.13.16.

https://github.com/apache/spark/blob/6bbfa2dad8c70b94ca52eb7cddde5ec68efbe0b1/core/src/test/scala/org/apache/spark/security/CryptoStreamUtilsSuite.scala#L115

- #49478

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

No, this is a test-only fix.

### How was this patch tested?

Pass the CIs.

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

No.

Closes #49727 from dongjoon-hyun/SPARK-51033.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 5cce6e9)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member Author

Merged to master/4.0/3.5.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-51033 branch January 29, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants