We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ed89a6 commit 0486ae3Copy full SHA for 0486ae3
python/pyspark/rdd.py
@@ -704,15 +704,16 @@ def pipe_objs(out):
704
out.write(s.encode('utf-8'))
705
out.close()
706
Thread(target=pipe_objs, args=[pipe.stdin]).start()
707
+
708
def check_return_code():
709
pipe.wait()
710
if pipe.returncode:
711
raise Exception("Pipe function `%s' exited "
- "with error code %d" % (command, pipe.returncode))
712
+ "with error code %d" % (command, pipe.returncode))
713
else:
714
return None
715
return (x.rstrip(b'\n').decode('utf-8') for x in
- chain(iter(pipe.stdout.readline, b''), iter(check_return_code, None)))
716
+ chain(iter(pipe.stdout.readline, b''), iter(check_return_code, None)))
717
return self.mapPartitions(func)
718
719
def foreach(self, f):
0 commit comments