eason-yuchen-liu commented on code in PR #59247:
URL: https://github.com/apache/spark/pull/59247#discussion_r4274451042
##########
sql/api/src/main/scala/org/apache/spark/sql/streaming/progress.scala:
##########
@@ -216,9 +219,26 @@ class StreamingQueryProgress private[spark] (
val sources: Array[SourceProgress],
val sink: SinkProgress,
@JsonDeserialize(contentAs = classOf[GenericRowWithSchema])
- val observedMetrics: ju.Map[String, Row])
+ val observedMetrics: ju.Map[String, Row],
+ @JsonProperty("trigger")
+ @JsonDeserialize(using = classOf[ObjectToStringDeserializer])
+ triggerJson: String = null)
Review Comment:
You can pass in the original Trigger object in the constructor, and toJson
at L266.
--
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]