Update druid.py (#17146)

This commit is contained in:
John Bodley 2021-10-18 15:04:56 -07:00 committed by GitHub
parent dacf79719e
commit d38e686e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')",