GitHub user chaoslawful opened a pull request:
https://github.com/apache/spark/pull/18277
[SPARK-20947][PYTHON] Fix encoding/decoding error in pipe action
## What changes were proposed in this pull request?
Pipe action convert objects into strings using a way that was affected by
the default encoding setting of Python environment.
This patch fixed the problem. The detailed description is added here:
https://issues.apache.org/jira/browse/SPARK-20947
## How was this patch tested?
Run the following statement in pyspark-shell, and it will NOT raise
exception if this patch is applied:
```python
sc.parallelize([u'\u6d4b\u8bd5']).pipe('cat').collect()
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chaoslawful/spark fix_pipe_encoding_error
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18277.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #18277
----
commit 1b13e3428fe893bfc8f06d44b846b92e198de2f6
Author: çæå² <[email protected]>
Date: 2017-06-12T10:15:15Z
[SPARK-20947][PYTHON] Fix encoding/decoding error in pipe action
----
---
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]