lilila opened a new issue #8162:  TIME_GRAIN_ADDON_FUNCTIONS not working in 
superset 0.34
URL: https://github.com/apache/incubator-superset/issues/8162
 
 
   I changed from superset 0.rc32.2 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` I get the following error : 
   
   > No grain spec for 1969-12-31T00:00:00Z/P1W for database mysql
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to