mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
Add week granularity for Clickhouse (#5455)
This commit is contained in:
committed by
Maxime Beauchemin
parent
c545fdf589
commit
0d5443e392
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user