Skip to content

[SPARK-51157][SQL][3.5] Add missing @VarArgs Scala annotation for Scala function APIs#49906

Closed
yaooqinn wants to merge 2 commits intoapache:branch-3.5from
yaooqinn:SPARK-51157-35
Closed

[SPARK-51157][SQL][3.5] Add missing @VarArgs Scala annotation for Scala function APIs#49906
yaooqinn wants to merge 2 commits intoapache:branch-3.5from
yaooqinn:SPARK-51157-35

Conversation

@yaooqinn
Copy link
Member

What changes were proposed in this pull request?

This PR adds missing @varargs Scala annotation for Scala function APIs

Why are the changes needed?

To instruct the compiler to generate java varargs-style forwarder methods for interop

Does this PR introduce any user-facing change?

No, do not change the current behavior.

How was this patch tested?

w/o @varargs:
image

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

no

@yaooqinn
Copy link
Member Author

cc @dongjoon-hyun, and thanks for reminding

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @yaooqinn .
Merged to branch-3.5.

dongjoon-hyun pushed a commit that referenced this pull request Feb 12, 2025
…la function APIs

### What changes were proposed in this pull request?
This PR adds missing `varargs` Scala annotation for Scala function APIs

### Why are the changes needed?

To instruct the compiler to generate java varargs-style forwarder methods for interop

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

No, do not change the current behavior.

### How was this patch tested?

w/o `varargs`:
![image](https://github.com/user-attachments/assets/6c9b212f-6db5-429e-80cb-c48bb213ee9d)

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

Closes #49906 from yaooqinn/SPARK-51157-35.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants