mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
Add week granularity for Clickhouse (#5455)
This commit is contained in:
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'),
|
||||
|
Loading…
Reference in New Issue
Block a user