Per API docs on StreamingQuery.stop(), https://spark.apache.org/docs/latest/api/scala/org/apache/spark/sql/streaming/StreamingQuery.htmlIt says, this stops the execution of this query if it is running and waits until the termination of the query exec...