Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/20839#discussion_r174991326
--- Diff: python/pyspark/sql/session.py ---
@@ -679,13 +679,13 @@ def createDataFrame(self, data, schema=None,
samplingRatio=None, verifySchema=Tr
"true." % _exception_message(e))
warnings.warn(msg)
else:
- msg = (
+ e.message = (
--- End diff --
@BryanCutler, I think `message` attribute is only in Python 2. Also, are
you doubly sure if this wraps the exception message in console too .. ?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]