I changed from superset 0.32.0rc2 to 0.34 and the time grains added in the config file are not working anymore.
I have set up :
TIME_GRAIN_ADDONS = {"1969-12-31T00:00:00Z/P1W": 'week_start_wednesday'}
TIME_GRAIN_ADDON_FUNCTIONS = {
'mysql':
{"1969-12-31T00:00:00Z/P1W":
'DATE(DATE_SUB({col}, ''INTERVAL DAYOFWEEK(DATE_SUB({col}, INTERVAL 3 DAY)) - 1 DAY))'}
}
And when I select week_start_wednesday as time grain I get the following error :
No grain spec for 1969-12-31T00:00:00Z/P1W for database mysql
Note : the same config was working well in superset 0.32.0rc2
Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.88. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Will look into this