From 31b64896617283c815cf15ea3760df59c21bd07f Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Mon, 18 Oct 2021 10:13:07 -0700 Subject: [PATCH] Update druid.py --- superset/db_engine_specs/druid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/db_engine_specs/druid.py b/superset/db_engine_specs/druid.py index 339960bf1945d..089723bc75434 100644 --- a/superset/db_engine_specs/druid.py +++ b/superset/db_engine_specs/druid.py @@ -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')",