mirror of https://github.com/apache/superset.git
Update grain label name
This commit is contained in:
parent
48c8a90247
commit
bad3128df9
|
@ -285,9 +285,9 @@ class Database(Model, AuditMixinNullable):
|
|||
Grain('Time Column', '{col}'),
|
||||
Grain('week', "date_trunc('week', CAST({col} AS DATE))"),
|
||||
Grain('month', "date_trunc('month', CAST({col} AS DATE))"),
|
||||
Grain("week_ending", "date_add('day', 5, "
|
||||
Grain("week_ending_saturday", "date_add('day', 5, "
|
||||
"date_trunc('week', date_add('day', 1, CAST({col} AS DATE))))"),
|
||||
Grain("week_start", "date_add('day', -1, "
|
||||
Grain("week_start_sunday", "date_add('day', -1, "
|
||||
"date_trunc('week', date_add('day', 1, CAST({col} AS DATE))))")
|
||||
),
|
||||
'mysql': (
|
||||
|
|
Loading…
Reference in New Issue