advancedxy commented on a change in pull request #25814: [SPARK-19926][PYSPARK] make captured exception from JVM side user friendly URL: https://github.com/apache/spark/pull/25814#discussion_r325455884
########## File path: python/pyspark/sql/utils.py ########## @@ -16,6 +16,10 @@ # import py4j +import sys + +if sys.version_info.major >= 3: + unicode = str Review comment: Looks we don't. I thought `unicode` should be available when running python3. But looks like `isinstance` is not evaluated, and it doesn't require `unicode` to be in the namespace. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
