mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Add option to specify type specific date truncation functions (#9238)
This commit is contained in:
@@ -27,7 +27,7 @@ class ImpalaEngineSpec(BaseEngineSpec):
|
||||
|
||||
engine = "impala"
|
||||
|
||||
_time_grain_functions = {
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
"PT1M": "TRUNC({col}, 'MI')",
|
||||
"PT1H": "TRUNC({col}, 'HH')",
|
||||
|
||||
Reference in New Issue
Block a user