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 A2A38200C4C for ; Tue, 4 Apr 2017 10:23:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A10AE160B90; Tue, 4 Apr 2017 08:23:49 +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 E5D2C160B81 for ; Tue, 4 Apr 2017 10:23:48 +0200 (CEST) Received: (qmail 97392 invoked by uid 500); 4 Apr 2017 08:23:47 -0000 Mailing-List: contact dev-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 dev@flink.apache.org Received: (qmail 97381 invoked by uid 99); 4 Apr 2017 08:23:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2017 08:23:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 10B37C04E1 for ; Tue, 4 Apr 2017 08:23:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.322 X-Spam-Level: X-Spam-Status: No, score=-0.322 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id r4hhMNBwNrPt for ; Tue, 4 Apr 2017 08:23:45 +0000 (UTC) Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 88D375FBA1 for ; Tue, 4 Apr 2017 08:23:44 +0000 (UTC) Received: from 172.18.7.190 (EHLO LHREML712-CAH.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DKG45792; Tue, 04 Apr 2017 08:23:36 +0000 (GMT) Received: from LHREML505-MBS.china.huawei.com ([169.254.1.158]) by LHREML712-CAH.china.huawei.com ([10.201.108.35]) with mapi id 14.03.0301.000; Tue, 4 Apr 2017 09:23:32 +0100 From: Stefano Bortoli To: "dev@flink.apache.org" Subject: StreamSQL procTime granularity Thread-Topic: StreamSQL procTime granularity Thread-Index: AdKtGbxRqsOEYi0mQX23Ofi2GdCwKQ== Date: Tue, 4 Apr 2017 08:23:31 +0000 Message-ID: <633F19C6003CFF44891E456BB8269E55014E6B92@lhreml505-mbs.china.huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.201.117.124] Content-Type: multipart/alternative; boundary="_000_633F19C6003CFF44891E456BB8269E55014E6B92lhreml505mbschi_" MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0208.58E35808.0177,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=169.254.1.158, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 3c97274eea41a1a678a9a4d769b3ab35 archived-at: Tue, 04 Apr 2017 08:23:49 -0000 --_000_633F19C6003CFF44891E456BB8269E55014E6B92lhreml505mbschi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi guys, Based on the discussion about time management in https://github.com/apache/= flink/pull/3641 , does it make sense to use nanoTime for procTime semantic = aggregation processing? This way we will not have the possibility of events= falling in the same "millisecond" processing bucket and keep a consistent = aggregation sorting (also in the state). I understand that event-time canno= t be managed in nanosecond as java does not give wall-clock time in nanosec= onds, but for the procTime within the JVM we should be safe. Please let me know what you think. Best, Stefano --_000_633F19C6003CFF44891E456BB8269E55014E6B92lhreml505mbschi_--