Skip to content

Commit

Permalink
Update druid.py (#17146)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Oct 18, 2021
1 parent dacf797 commit d38e686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs/druid.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DruidEngineSpec(BaseEngineSpec):
allows_subqueries = True

_time_grain_expressions = {
None: "CAST({col} AS TIMESTAMP)",
None: "{col}",
"PT1S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT1S')",
"PT5S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT5S')",
"PT30S": "TIME_FLOOR(CAST({col} AS TIMESTAMP), 'PT30S')",
Expand Down

0 comments on commit d38e686

Please sign in to comment.