Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5BC4B200CD9 for ; Thu, 3 Aug 2017 16:30:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5A29416BB01; Thu, 3 Aug 2017 14:30:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9F49316BAFC for ; Thu, 3 Aug 2017 16:30:00 +0200 (CEST) Received: (qmail 64843 invoked by uid 500); 3 Aug 2017 14:29:59 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 64833 invoked by uid 99); 3 Aug 2017 14:29:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2017 14:29:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 14CBC1807ED for ; Thu, 3 Aug 2017 14:29:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.952 X-Spam-Level: X-Spam-Status: No, score=0.952 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_SOFTFAIL=0.972] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=data-artisans-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id h6zKcwhVxsIa for ; Thu, 3 Aug 2017 14:29:56 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 79A0A5F522 for ; Thu, 3 Aug 2017 14:29:56 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id t201so16931643wmt.1 for ; Thu, 03 Aug 2017 07:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=data-artisans-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version; bh=/ug39yLZh6Q3tlZnbI4Nk7dw+sIRCJM7ESrY4ohAjdg=; b=pafa089XQRrF9vKwLaY9PrIDcgkY1HdM8SNh6Xwx1+Zjjl6KF0DT8Fz6RliJ9fOuEr OxNXuPyR6C37p3btKkLvfWKt0T89hbOF/tspMihiE663io0zxVaFS/R7KlJyl3kEIVdT 97vEwi9h+dSsgygi4m3P6ihmnksee0Bn0YK9U0pVhJ/ylOwwlo4ZaUfSydt+SIK6N8Gi yK7qTWZj1JR8ax0zU61NZ3zhS/q4ybsdvPhW8mdGJV9Wmf5AU2lTpaYhTFNWG1XF5qgt i37A7+oQjQnPPV5EeYqhtVBfvYLXhTDJlZcNGNdLUWdkDxcxgX4mQ75QNOr6KdVEJWBm nrdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :in-reply-to:references:mime-version; bh=/ug39yLZh6Q3tlZnbI4Nk7dw+sIRCJM7ESrY4ohAjdg=; b=ZHT/OwWl+ttxyMEAZ0n7pYRQ6Zk6to5S138e32hyfqqnbWhAe4olZJLrHdy5hR5jYf HTqL3aiiAKagD4cpq+jpC+MPM8S/JKnZi51/jnyi+P4Z/jfEi4ji0nVyxxAlCgAQmCnu e3kWadY8MgHPyCqx3sjB7NUjX8NJ6Ba+C7fHoMGO7untHmmia7jTW+lHRd9MWaADZ9iX ogIzo3yMqOo8Zjoc7HLzPDEck2Kn6JoGn5iek1EvimMLdKT8w2Ii/lt/1xZKvcxRzAlW 2XAMOx6vQmr0qtdG1G797xAAUJS3tB2/bnod70hlOBenPCmxS+lEFXo4sRj+OAuSghHX KHmA== X-Gm-Message-State: AIVw113tjeP/ol8XKJK2NZlcfV+Uf2AEcdWPPDsM0YQalBGwj0fXwR7x dCGA8gsxC178S7/79QE= X-Received: by 10.28.150.142 with SMTP id y136mr1247746wmd.51.1501770595773; Thu, 03 Aug 2017 07:29:55 -0700 (PDT) Received: from nico-work.localnet (ipservice-092-219-057-167.092.219.pools.vodafone-ip.de. [92.219.57.167]) by smtp.gmail.com with ESMTPSA id t13sm3258093wra.22.2017.08.03.07.29.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Aug 2017 07:29:54 -0700 (PDT) From: Nico Kruber To: user@flink.apache.org Cc: Gwenhael Pasquiers Subject: Re: Event-time and first watermark Date: Thu, 03 Aug 2017 16:29:50 +0200 Message-ID: <25456674.YmTk4gz1t5@nico-work> Organization: data Artisans In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3455282.dCrjDyTSWk"; micalg="pgp-sha1"; protocol="application/pgp-signature" archived-at: Thu, 03 Aug 2017 14:30:01 -0000 --nextPart3455282.dCrjDyTSWk Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Hi Gwenhael, "A Watermark(t) declares that event time has reached time t in that stream,= =20 meaning that there should be no more elements from the stream with a timest= amp=20 t=E2=80=99 <=3D t (i.e. events with timestamps older or equal to the waterm= ark)." [1] Therefore, they should be behind the actual event with timestamp t. What is it that you want to achieve in the end? What do you want to use the= =20 watermark for? They are basically a means to defining when an event time wi= ndow=20 ends. Nico [1] https://ci.apache.org/projects/flink/flink-docs-release-1.2/dev/ event_time.html#event-time-and-watermarks On Thursday, 3 August 2017 10:24:35 CEST Gwenhael Pasquiers wrote: > Hi, >=20 > From my tests it seems that the initial watermark value is Long.MIN_VALUE > even though my first data passed through the timestamp extractor before > arriving into my ProcessFunction. It looks like the watermark "lags" behi= nd > the data by one message. >=20 > Is there a way to have a watermark more "up to date" ? Or is the only way= to > compute it myself into my ProcessFunction ? >=20 > Thanks. --nextPart3455282.dCrjDyTSWk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQTIh4KsbsNd3l7wd+cg8nJL2uqeWQUCWYMzXgAKCRAg8nJL2uqe WdAIAKCcVgM+lwfUDqn4TeGEsy9aI3D+fACguZXNZiuotw1M9r9iJclOumtsE2E= =ewja -----END PGP SIGNATURE----- --nextPart3455282.dCrjDyTSWk--