[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:
Ville Brofeldt
2019-09-08 08:34:40 +02:00
committed by GitHub
parent 9dfa0a3f8e
commit 3250c5ac94
19 changed files with 67 additions and 66 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class OracleEngineSpec(PostgresBaseEngineSpec):
force_column_alias_quotes = True
max_column_name_length = 30
time_grain_functions = {
_time_grain_functions = {
None: "{col}",
"PT1S": "CAST({col} as DATE)",
"PT1M": "TRUNC(CAST({col} as DATE), 'MI')",