Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-28908

Coder for LIST type is incorrectly chosen is PyFlink

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Code to reproduce this bug, the result is `[None, None, None]`:

      jvm = get_gateway().jvm
      env = StreamExecutionEnvironment.get_execution_environment()
      j_item = jvm.java.util.ArrayList()
      j_item.add(1)
      j_item.add(2)
      j_item.add(3)
      j_list = jvm.java.util.ArrayList()
      j_list.add(j_item)
      type_info = Types.LIST(Types.INT())
      ds = DataStream(env._j_stream_execution_environment.fromCollection(j_list, type_info.get_java_type_info()))
      ds.map(lambda e: print(e))
      env.execute() 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Juntao Hu Juntao Hu
            Juntao Hu Juntao Hu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment