HyukjinKwon commented on code in PR #56309:
URL: https://github.com/apache/spark/pull/56309#discussion_r3352117462
##########
python/pyspark/sql/tests/connect/streaming/test_parity_listener.py:
##########
@@ -257,7 +258,13 @@ def test_listener_events_spark_command(self):
@eventually(timeout=60, catch_assertions=True)
def load_event(event_name, table_name):
- table = self.spark.read.table(table_name).collect()
+ try:
+ table = self.spark.read.table(table_name).collect()
+ except AnalysisException as e:
+ # It's possible that the table has not been created yet
+ if "TABLE_OR_VIEW_NOT_FOUND" in str(e):
Review Comment:
nit: I think you can `e.getErrorCondtion` instead of string
--
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]