mirror of https://github.com/apache/superset.git
Update druid.py (#17146)
This commit is contained in:
parent
dacf79719e
commit
d38e686e63
|
@ -40,7 +40,7 @@ class DruidEngineSpec(BaseEngineSpec):
|
||||||
allows_subqueries = True
|
allows_subqueries = True
|
||||||
|
|
||||||
_time_grain_expressions = {
|
_time_grain_expressions = {
|
||||||
None: "CAST({col} AS TIMESTAMP)",
|
None: "{col}",
|
||||||
"PT1S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT1S')",
|
"PT1S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT1S')",
|
||||||
"PT5S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT5S')",
|
"PT5S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT5S')",
|
||||||
"PT30S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT30S')",
|
"PT30S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT30S')",
|
||||||
|
|
Loading…
Reference in New Issue