From user-return-35980-archive-asf-public=cust-asf.ponee.io@flink.apache.org Tue Jun 23 04:14:35 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3168518057A for ; Tue, 23 Jun 2020 06:14:35 +0200 (CEST) Received: (qmail 30625 invoked by uid 500); 23 Jun 2020 04:14:31 -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 30584 invoked by uid 99); 23 Jun 2020 04:14:31 -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; Tue, 23 Jun 2020 04:14:31 +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 B176A18144F for ; Tue, 23 Jun 2020 04:14:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=coinbase.com Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6nLDtj9D6tnY for ; Tue, 23 Jun 2020 04:14:29 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::234; helo=mail-lj1-x234.google.com; envelope-from=fanbin.bu@coinbase.com; receiver= Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 08F7C7DCB0 for ; Tue, 23 Jun 2020 04:14:28 +0000 (UTC) Received: by mail-lj1-x234.google.com with SMTP id 9so21782443ljv.5 for ; Mon, 22 Jun 2020 21:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coinbase.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=nusrlvYeRTOlu7vBni3qNiKRe2ptvzG1P17ZnBZhEsg=; b=TQuKcEcYN+MwonKzOp+BizBLYXkNxw2lqhv6BETu8UA+uO6ZGy696fX4HIeYEl7fMI HHwbkZamWQJmT4WmpTyAt8cf3eBXVcp51AvdvUiS4AiKcXmAc75qeqWPDZ2N1n0Behgp W4cUKQwgqB67t4hnS2P+MGCf/vtVPKiEHPcZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nusrlvYeRTOlu7vBni3qNiKRe2ptvzG1P17ZnBZhEsg=; b=fXM7F4Ey0CDqH8WHuuupMljDIHCfIt0o8P8q0CpErgA60M1pdGJAacfNqS1xreFH8G wWRA+NI0oWKYLLTMMKPPBFIs/PaVoOrSIBkk1osGQnxz8pCISvgzBEfMZ+klnL0N4cLN 4cEgT5KThljL2AWtSGUfZOVNxFPqGXZo/kEUy8TMp/H45MnIhCDkHXHwoALhD2onj6y9 U3x5nJov/RCQzzdKS7oO9kwvCsy64e3qAn6tKrgI4v/VR3qQFqLcXXtEf47KmT8ivFMS tRaQrSDnWo7hpZO0vxKYesHWCmD55eftsW+ZSsnMIHi8C5ewEi76IgmRJRVshYrYDSiY SDhA== X-Gm-Message-State: AOAM531TUot4WIj98zx/BsCa6ibUz77VnIvi+wQsM5wveX8r6bT9ltUE Pxz/N+WE+peq2ILrcHyG42VZtJ6T4oy3xIiNLCXRjVnwGnQ= X-Google-Smtp-Source: ABdhPJzDM0NEqzxf9HRnB3RgfSdYK+ortsItyteIebNcAER5edpd+Ie65aspivIXrcS+4uCji4Aen3n6bMbNFZkS7ig= X-Received: by 2002:a2e:350a:: with SMTP id z10mr9826391ljz.104.1592885667633; Mon, 22 Jun 2020 21:14:27 -0700 (PDT) MIME-Version: 1.0 From: Fanbin Bu Date: Mon, 22 Jun 2020 21:14:16 -0700 Message-ID: Subject: two phase aggregation To: user Content-Type: multipart/alternative; boundary="0000000000006364c405a8b898da" --0000000000006364c405a8b898da Content-Type: text/plain; charset="UTF-8" Hi, Does over window aggregation support two-phase mode? https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/config.html#table-optimizer-agg-phase-strategy SELECT user_id , event_time , listagg(event_type, '*') over w as names FROM table WINDOW w AS ( PARTITION BY user_id ORDER BY event_time ROWS BETWEEN 256 PRECEDING AND CURRENT ROW ) --0000000000006364c405a8b898da Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Does over window aggregation support two-p= hase mode?

SELECT
user_id
, event_time , listagg(event_type, '*') over w as names
FROM table
WIND= OW w AS
( PARTITION BY user_id
ORDER BY event_time
ROWS BETWEE= N 256 PRECEDING AND CURRENT ROW
)
--0000000000006364c405a8b898da--