mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
Add option to specify type specific date truncation functions (#9238)
This commit is contained in:
@@ -25,7 +25,7 @@ class KylinEngineSpec(BaseEngineSpec): # pylint: disable=abstract-method
|
||||
|
||||
engine = "kylin"
|
||||
|
||||
_time_grain_functions = {
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
"PT1S": "CAST(FLOOR(CAST({col} AS TIMESTAMP) TO SECOND) AS TIMESTAMP)",
|
||||
"PT1M": "CAST(FLOOR(CAST({col} AS TIMESTAMP) TO MINUTE) AS TIMESTAMP)",
|
||||
|
||||
Reference in New Issue
Block a user