Skip to content

Commit 570525f

Browse files
uncleGensrowen
authored andcommitted
[SPARK-27715][SQL][UI] SQL query details in UI does not show in correct format
## What changes were proposed in this pull request? before pr: ![image](https://user-images.githubusercontent.com/7402327/57752168-bb7e9180-771a-11e9-8757-63236ecab753.png) after pr: ![image](https://user-images.githubusercontent.com/7402327/57752175-c802ea00-771a-11e9-96fd-aef1890b7985.png) ## How was this patch tested? manual test Closes #24609 from uncleGen/SPARK-27715. Authored-by: uncleGen <hustyugm@gmail.com> Signed-off-by: Sean Owen <sean.owen@databricks.com>
1 parent cd04607 commit 570525f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,10 @@ abstract class StreamExecution(
578578

579579
protected def getBatchDescriptionString: String = {
580580
val batchDescription = if (currentBatchId < 0) "init" else currentBatchId.toString
581-
Option(name).map(_ + "<br/>").getOrElse("") +
582-
s"id = $id<br/>runId = $runId<br/>batch = $batchDescription"
581+
s"""|${Option(name).getOrElse("")}
582+
|id = $id
583+
|runId = $runId
584+
|batch = $batchDescription""".stripMargin
583585
}
584586

585587
protected def createStreamingWrite(

0 commit comments

Comments
 (0)