mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Week beginning Monday time grain for MySQL (#2014)
This commit is contained in:
committed by
Maxime Beauchemin
parent
404a94cadb
commit
37fb56c61c
@@ -139,6 +139,9 @@ class MySQLEngineSpec(BaseEngineSpec):
|
||||
"+ INTERVAL QUARTER({col}) QUARTER - INTERVAL 1 QUARTER"),
|
||||
Grain("year", _('year'), "DATE(DATE_SUB({col}, "
|
||||
"INTERVAL DAYOFYEAR({col}) - 1 DAY))"),
|
||||
Grain("week_start_monday", _('week_start_monday'),
|
||||
"DATE(DATE_SUB({col}, "
|
||||
"INTERVAL DAYOFWEEK(DATE_SUB({col}, INTERVAL 1 DAY)) - 1 DAY))"),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user