rangadi commented on code in PR #40968:
URL: https://github.com/apache/spark/pull/40968#discussion_r1178408626


##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/streaming/StreamingQuery.scala:
##########
@@ -159,6 +185,21 @@ class RemoteStreamingQuery(
     executeQueryCmd(_.setStatus(true)).getStatus.getIsActive
   }
 
+  override def awaitTermination(): Unit = {
+    val awaitTerminationCmd = StreamingQueryCommand.AwaitTerminationCommand
+      .newBuilder()
+      .build()
+    executeQueryCmd(_.setAwaitTermination(awaitTerminationCmd))
+  }
+
+  override def awaitTermination(timeoutMs: Long): Boolean = {
+    val awaitTerminationCmd = StreamingQueryCommand.AwaitTerminationCommand

Review Comment:
   This can simpler:
   
          executeQueryCmd(_.getAwaitTerminationBuilder.setTimeoutMs(timeout))
                 .getAwaitTermination
                 .getTerminated
   



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