itholic commented on code in PR #39765:
URL: https://github.com/apache/spark/pull/39765#discussion_r1089649234
##########
python/pyspark/sql/tests/test_dataframe.py:
##########
@@ -884,7 +888,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))
Review Comment:
@zhengruifeng Maybe are you asking if we want to add a new subclass for
`IllegalArgumentException` such as `PySparkIllegalArgumentException` ?
If so, I don't think so because the `IllegalArgumentException` already has
its own proper error class and handled in JVM side.
--
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]