mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Add option to specify type specific date truncation functions (#9238)
This commit is contained in:
@@ -26,7 +26,7 @@ class OracleEngineSpec(BaseEngineSpec):
|
||||
force_column_alias_quotes = True
|
||||
max_column_name_length = 30
|
||||
|
||||
_time_grain_functions = {
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
"PT1S": "CAST({col} as DATE)",
|
||||
"PT1M": "TRUNC(CAST({col} as DATE), 'MI')",
|
||||
|
||||
Reference in New Issue
Block a user