[SPARK-43125][CONNECT] Fix Connect Server Can't Handle Exception With Null Message#40780
[SPARK-43125][CONNECT] Fix Connect Server Can't Handle Exception With Null Message#40780Hisoka-X wants to merge 1 commit intoapache:masterfrom
Conversation
…ion With Null Message
|
@martin-g @HyukjinKwon PTAL. Thanks |
|
Could you add a test case for this scenario? |
|
hmm.. there is no |
...connect/server/src/main/scala/org/apache/spark/sql/connect/service/SparkConnectService.scala
Show resolved
Hide resolved
|
Merged to master and branch-3.4. |
… Null Message ### What changes were proposed in this pull request? Fix the bug when Connect Server throw Exception without message. ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unnecessary Closes #40780 from Hisoka-X/SPARK-43125_Exception_NPE. Authored-by: Hisoka <fanjiaeminem@qq.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> (cherry picked from commit ea49637) Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
|
@Hisoka-X @HyukjinKwon Any reason we drop the |
Sorry, I don't get it. What do you mean about |
Ah sorry! I didn't see you did the abbreviate in the top, please ignore this! |
1 similar comment
Ah sorry! I didn't see you did the abbreviate in the top, please ignore this! |
|
@Hisoka-X I think we also change this line? I could add it to my ongoing PR #40785 |
OK for me, but I just want to remind, add null check just want to avoid throw NPE in |
I see. With additional look I think here it's better to keep what it is. as Status's description is nullable: |
… Null Message ### What changes were proposed in this pull request? Fix the bug when Connect Server throw Exception without message. ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unnecessary Closes apache#40780 from Hisoka-X/SPARK-43125_Exception_NPE. Authored-by: Hisoka <fanjiaeminem@qq.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> (cherry picked from commit ea49637) Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
… Null Message ### What changes were proposed in this pull request? Fix the bug when Connect Server throw Exception without message. ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unnecessary Closes apache#40780 from Hisoka-X/SPARK-43125_Exception_NPE. Authored-by: Hisoka <fanjiaeminem@qq.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> (cherry picked from commit ea49637) Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
… Null Message ### What changes were proposed in this pull request? Fix the bug when Connect Server throw Exception without message. ### Why are the changes needed? Fix bug ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unnecessary Closes apache#40780 from Hisoka-X/SPARK-43125_Exception_NPE. Authored-by: Hisoka <fanjiaeminem@qq.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org> (cherry picked from commit ea49637) Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
What changes were proposed in this pull request?
Fix the bug when Connect Server throw Exception without message.
Why are the changes needed?
Fix bug
Does this PR introduce any user-facing change?
No
How was this patch tested?
Unnecessary