rangadi commented on code in PR #40845:
URL: https://github.com/apache/spark/pull/40845#discussion_r1171850573
##########
sql/core/src/main/scala/org/apache/spark/sql/streaming/StreamingQueryListener.scala:
##########
@@ -55,6 +55,12 @@ abstract class StreamingQueryListener {
*/
def onQueryProgress(event: QueryProgressEvent): Unit
+ /**
+ * Called when the query is idle for a certain time period and waiting for
new data to process.
+ * @since 3.5.0
+ */
+ def onQueryIdle(event: QueryIdleEvent): Unit = {}
Review Comment:
I am not clear on the motivation for this still. I haven't fully understood
the problem with onQueryProgress().
In any case, should the default implementation call onQueryProgress() and
that would avoid changing behavior for those not implementing this .
Or may be add 'isIdle' flag to progress?
--
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]