You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2015/11/27 12:38:10 UTC
[jira] [Resolved] (FLINK-3082) Confusing error about
ManualTimestampSourceFunction
[ https://issues.apache.org/jira/browse/FLINK-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephan Ewen resolved FLINK-3082.
---------------------------------
Resolution: Fixed
Fix Version/s: 0.10.2
1.0.0
Fixed in
- 1.0 via d359a974ae475ab36fd68dec1f182dc01545dc19
- 0.10 via d6e118b8e5ae6221fa3a1d98fa830a1c1dffe871
Thank you for the contribution!
> Confusing error about ManualTimestampSourceFunction
> ---------------------------------------------------
>
> Key: FLINK-3082
> URL: https://issues.apache.org/jira/browse/FLINK-3082
> Project: Flink
> Issue Type: Bug
> Reporter: Niels Basjes
> Assignee: Niels Basjes
> Fix For: 1.0.0, 0.10.2
>
>
> I wrote a source like this:
> {code}
> public class Foo extends RichSourceFunction<Bar> {
> {code}
> and then did
> {code}
> ctx.collectWithTimestamp(event, event.eventTimestamp);
> {code}
> I got this error:
> {code}
> Caused by: java.lang.UnsupportedOperationException: Automatic-Timestamp sources cannot emit elements with a timestamp. See interface ManualTimestampSourceFunction if you want to manually assign timestamps to elements.
> at org.apache.flink.streaming.api.operators.StreamSource$NonTimestampContext.collectWithTimestamp(StreamSource.java:97)
> {code}
> After some digging it turns out that {{ManualTimestampSourceFunction}} was renamed to {{EventTimeSourceFunction}} and apparently the old name still lingers in this error message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)