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

ClassCastException when using EventTimeSourceFunction in non-EventTime program

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 1.0.0
    • None
    • None

    Description

      Using an EventTimeSourceFunction in a DataStream programs that does not operate with TimeCharacteristic.EventTime leads to a ClassCastException when the first Watermark is emitted:

      Caused by: java.lang.ClassCastException: org.apache.flink.streaming.api.watermark.Watermark cannot be cast to org.apache.flink.streaming.runtime.streamrecord.StreamRecord
      

      This exception is not very helpful for users that simply for got to set the correct TimeCharacteristic and should be improved.

      Attachments

        Activity

          People

            aljoscha Aljoscha Krettek
            fhueske Fabian Hueske
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: