[
https://issues.apache.org/jira/browse/FLINK-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15048779#comment-15048779
]
ASF GitHub Bot commented on FLINK-2936:
---------------------------------------
GitHub user aljoscha opened a pull request:
https://github.com/apache/flink/pull/1448
[FLINK-2936] Fix ClassCastException for Event-Time source
Before, would throw a ClassCastException when emitting watermarks with
timestamp/watermark multiplexing disabled.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aljoscha/flink watermark-fix-processing-time
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1448.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1448
----
commit bbc44047052dd795a26540888255fae911668053
Author: Aljoscha Krettek <[email protected]>
Date: 2015-12-09T15:00:12Z
[FLINK-2936] Fix ClassCastException for Event-Time source
Before, would throw a ClassCastException when emitting watermarks with
timestamp/watermark multiplexing disabled.
----
> ClassCastException when using EventTimeSourceFunction in non-EventTime program
> ------------------------------------------------------------------------------
>
> Key: FLINK-2936
> URL: https://issues.apache.org/jira/browse/FLINK-2936
> Project: Flink
> Issue Type: Improvement
> Components: Streaming
> Affects Versions: 0.10.0
> Reporter: Fabian Hueske
> Assignee: Aljoscha Krettek
> Fix For: 1.0.0
>
>
> Using an {{EventTimeSourceFunction}} in a DataStream programs that does not
> operate with {{TimeCharacteristic.EventTime}} leads to a
> {{ClassCastException}} when the first {{Watermark}} is emitted:
> {code}
> Caused by: java.lang.ClassCastException:
> org.apache.flink.streaming.api.watermark.Watermark cannot be cast to
> org.apache.flink.streaming.runtime.streamrecord.StreamRecord
> {code}
> This exception is not very helpful for users that simply for got to set the
> correct {{TimeCharacteristic}} and should be improved.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)