mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Add option to specify type specific date truncation functions (#9238)
This commit is contained in:
@@ -23,7 +23,7 @@ class Db2EngineSpec(BaseEngineSpec):
|
||||
force_column_alias_quotes = True
|
||||
max_column_name_length = 30
|
||||
|
||||
_time_grain_functions = {
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
"PT1S": "CAST({col} as TIMESTAMP)" " - MICROSECOND({col}) MICROSECONDS",
|
||||
"PT1M": "CAST({col} as TIMESTAMP)"
|
||||
|
||||
Reference in New Issue
Block a user