itholic commented on code in PR #39765:
URL: https://github.com/apache/spark/pull/39765#discussion_r1089650418
##########
python/pyspark/sql/tests/test_dataframe.py:
##########
@@ -888,7 +889,10 @@ def test_sample(self):
self.assertRaises(TypeError, lambda:
self.spark.range(1).sample(seed="abc"))
- self.assertRaises(IllegalArgumentException, lambda:
self.spark.range(1).sample(-1.0))
+ self.assertRaises(
+ (IllegalArgumentException, SparkConnectException),
Review Comment:
No a big deal, I think maybe we can catch `SparkConnectGrpcException` for
more precious exception testing?
--
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]