amaliujia commented on code in PR #40780:
URL: https://github.com/apache/spark/pull/40780#discussion_r1166245602
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/service/SparkConnectService.scala:
##########
@@ -85,7 +86,7 @@ class SparkConnectService(debug: Boolean)
.setDomain("org.apache.spark")
.putMetadata("classes",
compact(render(allClasses(st.getClass).map(_.getName))))
.build()))
- .setMessage(StringUtils.abbreviate(st.getMessage, 2048))
+ .setMessage(if (message != null) message else "")
Review Comment:
I am wondering when `message` could be `null` than an empty string? If this
is a valid case we can use `st: Optiona[Throwable]` instead?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]