HyukjinKwon commented on code in PR #45377: URL: https://github.com/apache/spark/pull/45377#discussion_r1548814091
########## python/pyspark/testing/utils.py: ########## @@ -280,7 +282,14 @@ def check_error( exception: PySparkException, error_class: str, message_parameters: Optional[Dict[str, str]] = None, + query_context_type: Optional[QueryContextType] = None, + pyspark_fragment: Optional[str] = None, ): + query_context = exception.getQueryContext() + assert bool(query_context) == (query_context_type is not None), ( + f"`query_context_type` is required when QueryContext exists. " Review Comment: ```suggestion "`query_context_type` is required when QueryContext exists. " ``` -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org