Incubator-superset: TIME_GRAIN_ADDON_FUNCTIONS not working in superset 0.34

Created on 3 Sep 2019  路  2Comments  路  Source: apache/incubator-superset

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

#bug v0.34

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eliab picture eliab  路  3Comments

john-bodley picture john-bodley  路  3Comments

amien90 picture amien90  路  3Comments

vylc picture vylc  路  3Comments

gbrian picture gbrian  路  3Comments