Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17267#discussion_r105663697
  
    --- Diff: python/pyspark/sql/utils.py ---
    @@ -24,7 +24,7 @@ def __init__(self, desc, stackTrace):
             self.stackTrace = stackTrace
     
         def __str__(self):
    -        return repr(self.desc)
    +        return str(self.desc)
    --- End diff --
    
    Maybe another benefit for this change is, before it you will see the error 
log in your example like:
    
    u"cannot resolve '`\uc544`' given input columns: [id];;\n'Project ['\uc544]
    
    `repr` will show unicode escape characters `\uc544`. Even you encode it, 
you will see binary representation for it. `str` can show the correct "아" if 
encoded with utf-8.
    
    If I test it correctly.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to