Yakov Goldberg created FLINK-4805:
-------------------------------------

             Summary: Stringify() crashes with Python3 (run with pyflink3)
                 Key: FLINK-4805
                 URL: https://issues.apache.org/jira/browse/FLINK-4805
             Project: Flink
          Issue Type: Bug
            Reporter: Yakov Goldberg


{code}
Caused by: java.lang.RuntimeException: External process for task MapPartition 
(PythonMap) terminated prematurely due to an error.
Traceback (most recent call last):
  File 
"/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/plan.py",
 line 548, in <module>
    env.execute(local=True)
  File 
"/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/Environment.py",
 line 181, in execute
    operator._go()
  File 
"/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/functions/Function.py",
 line 64, in _go
    self._run()
  File 
"/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/functions/MapFunction.py",
 line 29, in _run
    collector.collect(function(value))
  File 
"/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/DataSet.py",
 line 38, in map
    return "(" + b", ".join([self.map(x) for x in value]) + ")"
  File 
"/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/DataSet.py",
 line 38, in <listcomp>
    return "(" + b", ".join([self.map(x) for x in value]) + ")"
  File 
"/tmp/flink-dist-cache-299804c6-813a-44de-9f62-c5f4cf415990/1527bd1cc45d6f67695c180762c614ef/flink/flink/plan/DataSet.py",
 line 38, in map
    return "(" + b", ".join([self.map(x) for x in value]) + ")"
TypeError: sequence item 0: expected bytes, bytearray, or an object with the 
buffer interface, str found
        at 
org.apache.flink.python.api.streaming.data.PythonStreamer.streamBufferWithoutGroups(PythonStreamer.java:268)
        at 
org.apache.flink.python.api.functions.PythonMapPartition.mapPartition(PythonMapPartition.java:54)
        at 
org.apache.flink.runtime.operators.MapPartitionDriver.run(MapPartitionDriver.java:98)
        at org.apache.flink.runtime.operators.BatchTask.run(BatchTask.java:480)
        at 
org.apache.flink.runtime.operators.BatchTask.invoke(BatchTask.java:345)
        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559)
        at java.lang.Thread.run(Thread.java:745)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to