mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +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:
@@ -25,7 +25,7 @@ class TeradataEngineSpec(BaseEngineSpec):
|
||||
limit_method = LimitMethod.WRAP_SQL
|
||||
max_column_name_length = 30 # since 14.10 this is 128
|
||||
|
||||
time_grain_functions = {
|
||||
_time_grain_functions = {
|
||||
None: "{col}",
|
||||
"PT1M": "TRUNC(CAST({col} as DATE), 'MI')",
|
||||
"PT1H": "TRUNC(CAST({col} as DATE), 'HH')",
|
||||
|
||||
Reference in New Issue
Block a user