janajay commented on issue #15037:
URL: https://github.com/apache/superset/issues/15037#issuecomment-2022221144

   @lelelethu you need to use this in file superset_config.py it will get 
reflect
   TIME_GRAIN_ADDONS = {"PT2S": "2 second"}
   
   TIME_GRAIN_ADDON_EXPRESSIONS = {
       "clickhouse": {
           "PT2S": "toDateTime(intDiv(toUInt32(toDateTime({col})), 2)*2)",
       }
   }
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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