Add option to specify type specific date truncation functions (#9238)

This commit is contained in:
Ville Brofeldt
2020-03-05 07:25:50 +02:00
committed by GitHub
parent 7d572d9e96
commit ef2ebbd570
27 changed files with 107 additions and 77 deletions

View File

@@ -28,7 +28,7 @@ class SnowflakeEngineSpec(PostgresBaseEngineSpec):
force_column_alias_quotes = True
max_column_name_length = 256
_time_grain_functions = {
_time_grain_expressions = {
None: "{col}",
"PT1S": "DATE_TRUNC('SECOND', {col})",
"PT1M": "DATE_TRUNC('MINUTE', {col})",