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

scala.StreamExecutionEnvironment.addSource does not propagate TypeInformation

    XMLWordPrintableJSON

    Details

      Description

      In scala.StreamExecutionEnvironment.addSource I would expect that typeInfo is also passed to the javaEnv.addSource as second parameter and not only passed to the returns method:

        def addSource[T: TypeInformation](function: SourceFunction[T]): DataStream[T] = {
          require(function != null, "Function must not be null.")
          
          val cleanFun = scalaClean(function)
          val typeInfo = implicitly[TypeInformation[T]]
          asScalaStream(javaEnv.addSource(cleanFun, <missing typeInfo>).returns(typeInfo))
        }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                fabio.lombardelli@gmail.com Fabio Lombardelli
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m