Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/7497#discussion_r34951172
--- Diff: python/pyspark/sql/tests.py ---
@@ -894,6 +894,13 @@ def test_capture_analysis_exception(self):
# RuntimeException should not be captured
self.assertRaises(py4j.protocol.Py4JJavaError, lambda:
self.sqlCtx.sql("abc"))
+ def test_capture_illegalargument_exception(self):
+ self.assertRaises(IllegalArgumentException,
+ lambda: self.sqlCtx.sql("SET
mapred.reduce.tasks=-1"))
--- End diff --
can the test case make sure the error message is still present? It would be
bad if we only show IllegalArgumentException, but no error message anymore.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]