Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11DDF19A63 for ; Wed, 16 Mar 2016 17:17:21 +0000 (UTC) Received: (qmail 56485 invoked by uid 500); 16 Mar 2016 17:17:20 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 56417 invoked by uid 500); 16 Mar 2016 17:17:20 -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 56400 invoked by uid 99); 16 Mar 2016 17:17:20 -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; Wed, 16 Mar 2016 17:17:20 +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 27A8AC1F7E for ; Wed, 16 Mar 2016 17:17:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.179 X-Spam-Level: ** X-Spam-Status: No, score=2.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6eLslDHc51u0 for ; Wed, 16 Mar 2016 17:17:16 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C9C635F39B for ; Wed, 16 Mar 2016 17:17:15 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id h198so24270260lfh.0 for ; Wed, 16 Mar 2016 10:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=SYyI+Gm8oVia0L+D1cthCbloQ5QWRmdMGZFspo17DdY=; b=e20FoaEbRC7fMqvS+oMDGoCskTqjWF9R9M/OXzNpJLnhawgLT4gdYwl9mwTFdpMRao pcBv4tLfqPF8+nA5/puAxZh0+VaAamPUbzUpbu/gy2uR5etN+RLV+GwOIad/zvmOnDcM GBR4ctlQpSe78xs8JRDyKVF2pEKC92ljaRXtGnRhoc+/uNlnkif2F3zs3rvWaCdFxYJl 6mU0XwhLV6Vn9m3gGXeBIPp0SsTeJT/JPrt7swF5KiXe/+SX5YaLl+w+XXLZKR6EnWXg yrS19HD1GvOXSroz2L87X9J+kAfYm2U5psUu8d2Chmcv1W7mbuSgVhaOiuc9oifMCe5F /X2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=SYyI+Gm8oVia0L+D1cthCbloQ5QWRmdMGZFspo17DdY=; b=YZtPpsqDUvcH9F0DliQ+v84SdcmP6N8k29nBX28YEsz1UcIDSC/jBfnjAGAvlMo55+ v4id9NGgAQrlVtH2HBSLWM8oMUMlYNNmdt+PzydRkJbNtsI0M1AbPv+Ia1/10yrv2cZp NGxWejCIzh7xvVWfSSRXQivy0/QjSbJa0lw3juvVuyrNYJO0DOWQU+sKnYJqzZKsSoxg JeZKJTqQpcc3SMxY943gaGF3kUkSbarU0DKaKOp7ZgvcIYKxbBrbR+qnHVKZ3hWY88Uu m7imZ5Lo8DG6YLO9RIqylenQPvhCQ5MUKjoKn6NQq9KmIoFFwTHavY6s0Zk173O6HZ9j t35A== X-Gm-Message-State: AD7BkJJM6nFMqyfXZ730oiPIDcCebY/FRKZ7eZfyUPT4qlYk11bcAZONxLPTw10BeM2AMnA2bPo0adfQyfbFEg== MIME-Version: 1.0 X-Received: by 10.25.41.212 with SMTP id p203mr1520924lfp.48.1458148629392; Wed, 16 Mar 2016 10:17:09 -0700 (PDT) Received: by 10.25.4.3 with HTTP; Wed, 16 Mar 2016 10:17:09 -0700 (PDT) In-Reply-To: References: <988A74794B4FDA4792872DFDB5789CB06231F155@SZXEMA509-MBX.china.huawei.com> Date: Wed, 16 Mar 2016 18:17:09 +0100 Message-ID: Subject: =?UTF-8?B?UmU6IOetlOWkjTogRWZmb3J0IHRvIGFkZCBTUUwgLyBTdHJlYW1TUUwgdG8gRmxpbms=?= From: Vasiliki Kalavri To: dev@flink.apache.org Content-Type: multipart/alternative; boundary=001a1141281c15b541052e2daf24 --001a1141281c15b541052e2daf24 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello everyone, We are happy to announce that the "tableOnCalcite" branch is finally ready to be merged. It essentially provides the existing functionality of the Table API, but now the translation happens through Apache Calcite. You can find the changes rebased on top of the current master in [1]. We have removed the prototype streaming Table API functionality, which will be added back once PR [2] is merged. We'll go through the changes once more and, if no objections, we would like to go ahead and merge this. Cheers, -Vasia. [1]: https://github.com/vasia/flink/tree/merge-table [2]: https://github.com/apache/flink/pull/1770 On 15 January 2016 at 10:59, Fabian Hueske wrote: > Hi everybody, > > as previously announced, I pushed a feature branch called "tableOnCalcite= " > to the Flink repository. > We will use this branch to work on FLINK-3221 and its sub-issues. > > Cheers, Fabian > > 2016-01-11 18:29 GMT+01:00 Fabian Hueske : > > > We haven't defined the StreamSQL syntax yet (and I think it will take > some > > time until we are at that point). > > So we are quite flexible with both featurs. > > > > Let's keep this opportunity in mind and coordinate when before making > > decisions about CEP or StreamSQL. > > > > Fabian > > > > 2016-01-11 17:29 GMT+01:00 Till Rohrmann : > > > >> First of all, it's a great design document. Looking forward having > stream > >> SQL in the foreseeable future :-) > >> > >> I think it is a good idea to consolidate stream SQL and CEP in the lon= g > >> run. CEP's additional features compared to SQL boil down to pattern > >> detection. Once we have this, it should be only a question of defining > the > >> SQL syntax for event patterns in order to integrate CEP with stream SQ= L. > >> Oracle has already defined an extension [1] to detect patterns in a se= t > of > >> table rows. This or Esper's event processing language (EPL) [2] could > be a > >> good starting point. > >> > >> [1] https://docs.oracle.com/database/121/DWHSG/pattern.htm#DWHSG8959 > >> [2] http://www.espertech.com/esper/release-5.2.0/esper-reference/html/ > >> > >> Cheers, > >> Till > >> > >> On Mon, Jan 11, 2016 at 10:12 AM, Fabian Hueske > >> wrote: > >> > >> > Thanks for the feedback! > >> > > >> > We will start the SQL effort with putting the existing (batch) Table > >> API on > >> > top of Apache Calcite. > >> > From there we continue to add streaming support for the Table API > >> before we > >> > put a StreamSQL interface on top. > >> > > >> > Consolidating the efforts with the CEP library sounds like a good id= ea > >> to > >> > me. > >> > Maybe it can be nicely integrated with the streaming table API and > >> later as > >> > well with the StreamSQL interface (the StreamSQL dialect is not > defined > >> > yet). > >> > > >> > @Till: What do you think about adding CEP features to the Table API. > >> From > >> > the CEP design doc, it looks like we need to add a pattern matching > >> > operator in addition to the window features that we need to add for > >> > streaming Table API in any case. > >> > > >> > Best, Fabian > >> > > >> > 2016-01-11 4:03 GMT+01:00 Jiangsong (Hi) : > >> > > >> > > I suggest refering to Esper EPL[1], which is a SQL-standard langua= ge > >> > > extend to offering a cluster of window, pattern matching. EPL can > >> both > >> > > support Streaming SQL and CEP with one unified syntax. > >> > > > >> > > [1] > >> > > > >> > > >> > http://www.espertech.com/esper/release-5.2.0/esper-reference/pdf/esper_re= ference.pdf > >> > > (Chapter 5. EPL Reference: Clauses) > >> > > > >> > > > >> > > Regards > >> > > Song > >> > > > >> > > > >> > > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > >> > > =E5=8F=91=E4=BB=B6=E4=BA=BA: Chiwan Park [mailto:chiwanpark@apache= .org] > >> > > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2016=E5=B9=B41=E6=9C=8811=E6= =97=A5 10:31 > >> > > =E6=94=B6=E4=BB=B6=E4=BA=BA: dev@flink.apache.org > >> > > =E4=B8=BB=E9=A2=98: Re: Effort to add SQL / StreamSQL to Flink > >> > > > >> > > We still don=E2=80=99t have a concensus about the streaming SQL an= d CEP > >> library > >> > on > >> > > Flink. Some people want to merge these two libraries. Maybe we hav= e > to > >> > > discuss about this in mailing list. > >> > > > >> > > > On Jan 11, 2016, at 10:53 AM, Nick Dimiduk > >> wrote: > >> > > > > >> > > > What's the relationship between the streaming SQL proposed here > and > >> > > > the CEP syntax proposed earlier in the week? > >> > > > > >> > > > On Sunday, January 10, 2016, Henry Saputra < > henry.saputra@gmail.com > >> > > >> > > wrote: > >> > > > > >> > > >> Awesome! Thanks for the reply, Fabian. > >> > > >> > >> > > >> - Henry > >> > > >> > >> > > >> On Sunday, January 10, 2016, Fabian Hueske >> > > >> > wrote: > >> > > >> > >> > > >>> Hi Henry, > >> > > >>> > >> > > >>> There is https://issues.apache.org/jira/browse/FLINK-2099 and = a > >> few > >> > > >>> subissues. > >> > > >>> I'll reorganize these and add more issues for the tasks > described > >> in > >> > > >>> the design document in the next days. > >> > > >>> > >> > > >>> Thanks, Fabian > >> > > >>> > >> > > >>> 2016-01-10 2:45 GMT+01:00 Henry Saputra < > henry.saputra@gmail.com > >> > > >> > >> > > >>> >: > >> > > >>> > >> > > >>>> HI Fabian, > >> > > >>>> > >> > > >>>> Have you created JIRA ticket to keep track of this new featur= e? > >> > > >>>> > >> > > >>>> - Henry > >> > > >>>> > >> > > >>>> On Thu, Jan 7, 2016 at 6:05 AM, Fabian Hueske < > fhueske@gmail.com > >> > > >> > >> > > >>> > wrote: > >> > > >>>>> Hi everybody, > >> > > >>>>> > >> > > >>>>> in the last days, Timo and I refined the design document for > >> > > >>>>> adding a > >> > > >>>> SQL / > >> > > >>>>> StreamSQL interface on top of Flink that was started by > Stephan. > >> > > >>>>> > >> > > >>>>> The document proposes an architecture that is centered aroun= d > >> > > >>>>> Apache Calcite. Calcite is an Apache top-level project and > >> > > >>>>> includes a SQL > >> > > >>>> parser, > >> > > >>>>> a semantic validator for relational queries, and a rule- and > >> > > >> cost-based > >> > > >>>>> relational optimizer. Calcite is used by Apache Hive and > Apache > >> > > >>>>> Drill (among other projects). In a nutshell, the plan is to > >> > > >>>>> translate Table > >> > > >>> API > >> > > >>>>> and SQL queries into Calcite's relational expression trees, > >> > > >>>>> optimize > >> > > >>>> these > >> > > >>>>> trees, and translate them into DataSet and DataStream > >> programs.The > >> > > >>>> document > >> > > >>>>> breaks down the work into several tasks and subtasks. > >> > > >>>>> > >> > > >>>>> Please review the design document and comment. > >> > > >>>>> > >> > > >>>>> -- > > >> > > >>>>> > >> > > >>>> > >> > > >>> > >> > > >> > >> https://docs.google.com/document/d/1TLayJNOTBle_-m1rQfgA6Ouj1oYsfqRjP > >> > > >> cp1h2TVqdI/edit?usp=3Dsharing > >> > > >>>>> > >> > > >>>>> Unless there are major concerns with the design, Timo and I > want > >> > > >>>>> to > >> > > >>> start > >> > > >>>>> next week to move the current Table API on top of Apache > Calcite > >> > > >> (Task > >> > > >>> 1 > >> > > >>>> in > >> > > >>>>> the document). The goal of this task is to have the same > >> > > >> functionality > >> > > >>> as > >> > > >>>>> currently, but with Calcite in the translation process. This > is > >> a > >> > > >>>> blocking > >> > > >>>>> task that we hope to complete soon. Afterwards, we can > >> > > >>>>> independently > >> > > >>> work > >> > > >>>>> on different aspects such as extending the Table API, adding= a > >> SQL > >> > > >>>>> interface (basically just a parser), integration with extern= al > >> > > >>>>> data sources, better code generation, optimization rules, > >> > > >>>>> streaming > >> > > >> support > >> > > >>>> for > >> > > >>>>> the Table API, StreamSQL, etc.. > >> > > >>>>> > >> > > >>>>> Timo and I plan to work on a WIP branch to implement Task 1 > and > >> > > >>>>> merge > >> > > >>> it > >> > > >>>> to > >> > > >>>>> the master branch once the task is completed. Of course, > >> everybody > >> > > >>>>> is welcome to contribute to this effort. Please let us know > such > >> > > >>>>> that we > >> > > >>> can > >> > > >>>>> coordinate our efforts. > >> > > >>>>> > >> > > >>>>> Thanks, > >> > > >>>>> Fabian > >> > > > >> > > Regards, > >> > > Chiwan Park > >> > > > >> > > > >> > > > >> > > >> > > > > > --001a1141281c15b541052e2daf24--