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:
@@ -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})",
|
||||
|
||||
Reference in New Issue
Block a user