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-39234][SQL][3.3] Code clean up in SparkThrowableHelper.getMessage #36669

Closed

Conversation

gengliangwang
Copy link
Member

What changes were proposed in this pull request?

  1. Remove the starting "\n" in Origin.context. The "\n" will be append in the method SparkThrowableHelper.getMessage instead.
  2. Code clean up the method SparkThrowableHelper.getMessage to eliminate redundant code.

Why are the changes needed?

Code clean up to eliminate redundant code.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing UT

1. Remove the starting "\n" in `Origin.context`. The "\n" will be append in the method `SparkThrowableHelper.getMessage` instead.
2. Code clean up the method SparkThrowableHelper.getMessage to eliminate redundant code.

Code clean up to eliminate redundant code.

No

Existing UT

Closes apache#36612 from gengliangwang/moveNewLine.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@gengliangwang
Copy link
Member Author

This is to port #36612 to 3.3. I would like to port #36651 later too.

@gengliangwang
Copy link
Member Author

Merging to 3.3

gengliangwang added a commit that referenced this pull request May 26, 2022
### What changes were proposed in this pull request?

1. Remove the starting "\n" in `Origin.context`. The "\n" will be append in the method `SparkThrowableHelper.getMessage` instead.
2. Code clean up the method SparkThrowableHelper.getMessage to eliminate redundant code.

### Why are the changes needed?

Code clean up to eliminate redundant code.
### Does this PR introduce _any_ user-facing change?

No
### How was this patch tested?

Existing UT

Closes #36669 from gengliangwang/portSPARK-39234.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants