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

    https://github.com/apache/spark/pull/17267#discussion_r123131587
  
    --- Diff: python/pyspark/sql/utils.py ---
    @@ -24,7 +28,11 @@ def __init__(self, desc, stackTrace):
             self.stackTrace = stackTrace
     
         def __str__(self):
    -        return repr(self.desc)
    +        desc = self.desc
    +        if isinstance(desc, unicode):
    +            return str(desc.encode('utf-8'))
    --- End diff --
    
    cc @zero323 and @davies too. Would you have some time to take a look for 
this one? This is a typical annoying problem between unicode and byte strings. 
There are many similar PRs (at least I can identify few PRs trying to handle 
this problem. One good example might help resolving other PRs too.


---
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]

Reply via email to