mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[bugfix] fix timegrain addon regression (#8165)
* Fix regression in time grain addons * Revert privatization of time_grain_functions * Fix test * Rename variable * Fix test * Fix typing error * Refactor and add tests * Add TODO
This commit is contained in:
@@ -26,7 +26,7 @@ class Db2EngineSpec(BaseEngineSpec):
|
||||
force_column_alias_quotes = True
|
||||
max_column_name_length = 30
|
||||
|
||||
time_grain_functions = {
|
||||
_time_grain_functions = {
|
||||
None: "{col}",
|
||||
"PT1S": "CAST({col} as TIMESTAMP)" " - MICROSECOND({col}) MICROSECONDS",
|
||||
"PT1M": "CAST({col} as TIMESTAMP)"
|
||||
|
||||
Reference in New Issue
Block a user