alyssa-db commented on code in PR #59247:
URL: https://github.com/apache/spark/pull/59247#discussion_r4289478678


##########
sql/api/src/main/scala/org/apache/spark/sql/streaming/progress.scala:
##########
@@ -216,9 +220,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")

Review Comment:
   For deserialization. @JsonProperty maps the public JSON field trigger to 
triggerConfig. The custom deserializer @JsonDeserialize() converts that JSON 
object into a Trigger, e.g Trigger.ProcessingTime(1000).



-- 
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]

Reply via email to