itholic commented on code in PR #39765:
URL: https://github.com/apache/spark/pull/39765#discussion_r1089729581
##########
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:
Just submitted https://github.com/apache/spark/pull/39783.
This should be simplified back to
`self.assertRaises(IllegalArgumentException, lambda:
self.spark.range(1).sample(-1.0))` after that change.
--
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]