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


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/runtime/ProgressReporter.scala:
##########
@@ -55,9 +55,12 @@ import org.apache.spark.util.{Clock, Utils}
 class ProgressReporter(
     private val sparkSession: SparkSession,
     private val triggerClock: Clock,
+    private[runtime] val triggerConfig: Trigger,
     val logicalPlan: () => LogicalPlan)
   extends Logging {
 
+  Triggers.toJson(triggerConfig)

Review Comment:
   This is validate / throw an error during query.start(), to check if 
triggerConfig doesn't map to one of the options. Otherwise it throws during 
query.processAllAvailable() or awaitTermination().



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