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-46957][CORE][FOLLOW-UP] Use Collections.emptyMap for Java compatibility #47121

Closed
wants to merge 1 commit into from

Conversation

Ngone51
Copy link
Member

@Ngone51 Ngone51 commented Jun 27, 2024

What changes were proposed in this pull request?

This PR replaces Map.of() with Collections.emptyMap().

Why are the changes needed?

To fix the Java compilation error for branch-3.5/3.4.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Covered by existing tests.

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

No.

@Ngone51
Copy link
Member Author

Ngone51 commented Jun 27, 2024

This fix will be cherry-picked along with the backport PR #47122. This PR itself is for master only.

@Ngone51
Copy link
Member Author

Ngone51 commented Jun 27, 2024

@yaooqinn @LuciferYang Could you take a look? Thanks!

@Ngone51
Copy link
Member Author

Ngone51 commented Jun 28, 2024

@yaooqinn @LuciferYang Thanks for taking care of the backport PR. What do you think about merging this PR to master for code consistency?

@yaooqinn yaooqinn closed this in 2eeebef Jun 28, 2024
@yaooqinn
Copy link
Member

Merged to master, thank you @Ngone51

asl3 pushed a commit to asl3/spark that referenced this pull request Jul 1, 2024
…atibility

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

This PR replaces `Map.of()` with `Collections.emptyMap()`.

### Why are the changes needed?

To fix the Java compilation error for branch-3.5/3.4.

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

No.

### How was this patch tested?

Covered by existing tests.

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

No.

Closes apache#47121 from Ngone51/SPARK-46957-followup.

Authored-by: Yi Wu <yi.wu@databricks.com>
Signed-off-by: Kent Yao <yao@apache.org>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
…atibility

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

This PR replaces `Map.of()` with `Collections.emptyMap()`.

### Why are the changes needed?

To fix the Java compilation error for branch-3.5/3.4.

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

No.

### How was this patch tested?

Covered by existing tests.

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

No.

Closes apache#47121 from Ngone51/SPARK-46957-followup.

Authored-by: Yi Wu <yi.wu@databricks.com>
Signed-off-by: Kent Yao <yao@apache.org>
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