mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
Add option to specify type specific date truncation functions (#9238)
This commit is contained in:
@@ -27,7 +27,7 @@ class ElasticSearchEngineSpec(BaseEngineSpec): # pylint: disable=abstract-metho
|
||||
allows_joins = False
|
||||
allows_subqueries = True
|
||||
|
||||
_time_grain_functions = {
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
"PT1S": "HISTOGRAM({col}, INTERVAL 1 SECOND)",
|
||||
"PT1M": "HISTOGRAM({col}, INTERVAL 1 MINUTE)",
|
||||
|
||||
Reference in New Issue
Block a user