WweiL commented on code in PR #42437:
URL: https://github.com/apache/spark/pull/42437#discussion_r1290660230
##########
python/pyspark/sql/tests/streaming/test_streaming.py:
##########
@@ -315,6 +315,19 @@ def _assert_exception_tree_contains_msg_default(self,
exception, msg):
contains = msg in e.desc
self.assertTrue(contains, "Exception tree doesn't contain the expected
message: %s" % msg)
+ def test_query_manager_get(self):
+ df = self.spark.readStream.format("rate").load()
+ for q in self.spark.streams.active:
+ q.stop()
Review Comment:
To make sure there is no other running queries for test reasons. I see this
used in other places of the tests too.
--
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]