diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index 669a5056256..97b8095d714 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'),