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 <the.illuz...@gmail.com> 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'),