https://github.com/apache/spark
Revision 997e7f0af506410d76f1232acc00ad9518e9a804 authored by Gengliang Wang on 26 May 2022, 07:25:40 UTC, committed by Gengliang Wang on 26 May 2022, 07:25:40 UTC
### 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>
1 parent 92e82fd
History
Tip revision: 997e7f0af506410d76f1232acc00ad9518e9a804 authored by Gengliang Wang on 26 May 2022, 07:25:40 UTC
[SPARK-39234][SQL][3.3] Code clean up in SparkThrowableHelper.getMessage
Tip revision: 997e7f0

README.md

back to top