[
https://issues.apache.org/jira/browse/FLINK-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15028861#comment-15028861
]
ASF GitHub Bot commented on FLINK-3082:
---------------------------------------
GitHub user nielsbasjes opened a pull request:
https://github.com/apache/flink/pull/1411
[FLINK-3082] Fixed confusing error about an interface that no longer exists
The ManualTimestampSourceFunction interface does not exist.
Yet there are error messages that thell you to take a look at it.
This simply fixes these error messages.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nielsbasjes/flink FLINK-3082
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1411.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 #1411
----
commit 80d69afb855214bb41a1f257049c550dc4ca3859
Author: Niels Basjes <[email protected]>
Date: 2015-11-26T14:21:04Z
[FLINK-3082] Fixed confusing error about an interface that no longer exists
----
> Confusing error about ManualTimestampSourceFunction
> ---------------------------------------------------
>
> Key: FLINK-3082
> URL: https://issues.apache.org/jira/browse/FLINK-3082
> Project: Flink
> Issue Type: Bug
> Reporter: Niels Basjes
>
> 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)