You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2021/10/18 22:06:02 UTC
[superset] branch master updated: Update druid.py (#17146)
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new d38e686 Update druid.py (#17146)
d38e686 is described below
commit d38e686e631a6172a4ef1fe4d7eca226c3a57536
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Mon Oct 18 15:04:56 2021 -0700
Update druid.py (#17146)
---
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 339960b..089723b 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')",