riceliu opened a new issue #13908:
URL: https://github.com/apache/superset/issues/13908


   Time unit of my dataset in mysql is to second, so that I need to configure 
time grain like every 2 second , 3 second , 5 second , 10 second and so on.
   
   I found that it is configurable to do that at config.py, but I don't know 
how to config PT2S for mysql engine
   
   Flowing PT1S config was copyed form default config,  is there someone know 
how to change to PT2S, PT3S, PT5S ... ?
   
   TIME_GRAIN_ADDON_FUNCTIONS = {
        'mysql': {
            "PT1S": "DATE_ADD(DATE({col}), "
           "INTERVAL (HOUR({col})*60*60 + MINUTE({col})*60"
           " +  SECOND({col})) SECOND)",
        }
    }


-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to