Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3869818A6E for ; Thu, 26 Nov 2015 16:40:11 +0000 (UTC) Received: (qmail 78653 invoked by uid 500); 26 Nov 2015 16:40:11 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 78604 invoked by uid 500); 26 Nov 2015 16:40:11 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 78584 invoked by uid 99); 26 Nov 2015 16:40:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2015 16:40:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E8AA62C1F57 for ; Thu, 26 Nov 2015 16:40:10 +0000 (UTC) Date: Thu, 26 Nov 2015 16:40:10 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-3082) Confusing error about ManualTimestampSourceFunction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029089#comment-15029089 ] ASF GitHub Bot commented on FLINK-3082: --------------------------------------- Github user StephanEwen commented on the pull request: https://github.com/apache/flink/pull/1411#issuecomment-159956326 Thanks for catching, this. Will merge this... > 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 > > I wrote a source like this: > {code} > public class Foo extends RichSourceFunction { > {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)