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-47388][SQL] Pass messageParameters by name to require() #45511

Closed
wants to merge 1 commit into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Mar 14, 2024

What changes were proposed in this pull request?

In the PR, I propose to pass messageParameters by name to avoid eager instantiation.

Why are the changes needed?

Passing messageParameters by value independently from requirement might introduce perf regression.

Does this PR introduce any user-facing change?

No, this is not a part of public API.

How was this patch tested?

By running the affected test suite:

$ build/sbt "test:testOnly *QueryCompilationErrorsSuite"

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

No.

@MaxGekk MaxGekk changed the title [WIP][SQL] Pass messageParameters by name to require() [SPARK-47388][SQL] Pass messageParameters by name to require() Mar 14, 2024
@MaxGekk MaxGekk marked this pull request as ready for review March 14, 2024 07:22
@MaxGekk MaxGekk requested a review from cloud-fan March 14, 2024 07:22
@MaxGekk
Copy link
Member Author

MaxGekk commented Mar 14, 2024

Merging to master. Thank you, @cloud-fan and @HyukjinKwon for review.

@MaxGekk MaxGekk closed this in e848b96 Mar 14, 2024
sweisdb pushed a commit to sweisdb/spark that referenced this pull request Apr 1, 2024
### What changes were proposed in this pull request?
In the PR, I propose to pass `messageParameters` by name to avoid eager instantiation.

### Why are the changes needed?
Passing `messageParameters` by value independently from `requirement` might introduce perf regression.

### Does this PR introduce _any_ user-facing change?
No, this is not a part of public API.

### How was this patch tested?
By running the affected test suite:
```
$ build/sbt "test:testOnly *QueryCompilationErrorsSuite"
```

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

Closes apache#45511 from MaxGekk/fix-SparkException-require.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants