yaooqinn commented on code in PR #42674:
URL: https://github.com/apache/spark/pull/42674#discussion_r1306604687
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/ui/SparkConnectServerPage.scala:
##########
@@ -330,24 +328,10 @@ private[ui] class SqlStatsPagedTable(
<td>
{sqlStatsTableRow.sparkSessionTags.mkString(", ")}
</td>
- {errorMessageCell(Option(info.detail))}
+ {UIUtils.errorMessageCell(Option(info.detail).getOrElse(""))}
Review Comment:
The variable is initially set to an empty string and is then assigned to the
value of `e.errorMessage` when an error occurs. It appears that
`e.errorMessage` can be null in certain situations.
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/ui/SparkConnectServerPage.scala:
##########
@@ -330,24 +328,10 @@ private[ui] class SqlStatsPagedTable(
<td>
{sqlStatsTableRow.sparkSessionTags.mkString(", ")}
</td>
- {errorMessageCell(Option(info.detail))}
+ {UIUtils.errorMessageCell(Option(info.detail).getOrElse(""))}
Review Comment:
The variable is initially set to an empty string and is then assigned to the
value of `e.errorMessage` when an error occurs. It appears that
`e.errorMessage` can be null in certain situations.
--
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]