From commits-return-1228-archive-asf-public=cust-asf.ponee.io@superset.incubator.apache.org Sat Jul 21 18:53:30 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 37B80180634 for ; Sat, 21 Jul 2018 18:53:30 +0200 (CEST) Received: (qmail 40667 invoked by uid 500); 21 Jul 2018 16:53:29 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 40658 invoked by uid 99); 21 Jul 2018 16:53:29 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2018 16:53:29 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id CDA80850FF; Sat, 21 Jul 2018 16:53:28 +0000 (UTC) Date: Sat, 21 Jul 2018 16:53:28 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Add week granularity for Clickhouse (#5455) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <153219200863.4355.5783297797713282816@gitbox.apache.org> From: maximebeauchemin@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: c545fdf5897444a5e1ae0bab27faf3cc98ceecb7 X-Git-Newrev: 0d5443e392a0c330a92c4acc740079cc83d0fa44 X-Git-Rev: 0d5443e392a0c330a92c4acc740079cc83d0fa44 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 0d5443e Add week granularity for Clickhouse (#5455) 0d5443e is described below commit 0d5443e392a0c330a92c4acc740079cc83d0fa44 Author: George AuthorDate: Sat Jul 21 19:53:21 2018 +0300 Add week granularity for Clickhouse (#5455) --- superset/db_engine_specs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index 669a505..97b8095 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -1350,6 +1350,9 @@ class ClickHouseEngineSpec(BaseEngineSpec): Grain('day', _('day'), 'toStartOfDay(toDateTime({col}))', 'P1D'), + Grain('week', _('week'), + 'toMonday(toDateTime({col}))', + 'P1W'), Grain('month', _('month'), 'toStartOfMonth(toDateTime({col}))', 'P1M'),