Uh oh!
There was an error while loading. Please reload this page.
[SPARK-1690] Tolerating empty elements when saving Python RDD to text files - #644
[SPARK-1690] Tolerating empty elements when saving Python RDD to text files#644kanzhang wants to merge 2 commits into
Conversation
AmplabJenkins
commented
May 5, 2014
Can one of the admins verify this patch? |
kanzhang
commented
May 5, 2014
Manually verified the patch on file with empty lines in the beginning, middle or end of file. Also tested empty file and file with only empty lines. |
mateiz
commented
May 5, 2014
Can you add a test case for this? What file was it breaking on? |
kanzhang
commented
May 5, 2014
Any text file with empty lines in it will break, like Glenn reported in the JIRA - a file consists of |
kanzhang
commented
May 8, 2014
@mateiz just realized I could test it from Python side. Added a doctest. This makes Python API behave identical to Scala API. |
pwendell
commented
May 10, 2014
Jenkins, test this please. |
AmplabJenkins
commented
May 10, 2014
Merged build triggered. |
AmplabJenkins
commented
May 10, 2014
Merged build started. |
There was a problem hiding this comment.
Looks good, though you could probably just change the if length > 0 to if length >= 0 above
AmplabJenkins
commented
May 10, 2014
Merged build finished. All automated tests passed. |
AmplabJenkins
commented
May 10, 2014
All automated tests passed. |
pwendell
commented
May 10, 2014
Okay I'll pull this in. Thanks! |
… files Tolerate empty strings in PythonRDD Author: Kan Zhang <kzhang@apache.org> Closes#644 from kanzhang/SPARK-1690 and squashes the following commits: c62ad33 [Kan Zhang] Adding Python doctest 473ec4b [Kan Zhang] [SPARK-1690] Tolerating empty elements when saving Python RDD to text files (cherry picked from commit 6c2691d) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
… files Tolerate empty strings in PythonRDD Author: Kan Zhang <kzhang@apache.org> Closesapache#644 from kanzhang/SPARK-1690 and squashes the following commits: c62ad33 [Kan Zhang] Adding Python doctest 473ec4b [Kan Zhang] [SPARK-1690] Tolerating empty elements when saving Python RDD to text files
This surroungs the complete worker code in a try/except block so we catch any error that arrives. An example would be the depickling failing for some reason @JoshRosen Author: Bouke van der Bijl <boukevanderbijl@gmail.com> Closesapache#644 from bouk/catch-depickling-errors and squashes the following commits: f0f67cc [Bouke van der Bijl] Lol indentation 0e4d504 [Bouke van der Bijl] Surround the complete python worker with the try block (cherry picked from commit 12738c1) Signed-off-by: Josh Rosen <joshrosen@apache.org>
Not print conda environment as spark doesn't have arg logging and the env can therefore contain unsafe information.
…che.kafka.clients.producer.ProducerConfig.getBoolean(Ljava/lang/String;)Ljava/lang/Boolean; (apache#644)
…che.kafka.clients.producer.ProducerConfig.getBoolean(Ljava/lang/String;)Ljava/lang/Boolean; (apache#644)
…che.kafka.clients.producer.ProducerConfig.getBoolean(Ljava/lang/String;)Ljava/lang/Boolean; (apache#644)
Tolerate empty strings in PythonRDD