mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
Add option to specify type specific date truncation functions (#9238)
This commit is contained in:
@@ -23,7 +23,7 @@ from superset.db_engine_specs.base import BaseEngineSpec
|
||||
class AthenaEngineSpec(BaseEngineSpec):
|
||||
engine = "awsathena"
|
||||
|
||||
_time_grain_functions = {
|
||||
_time_grain_expressions = {
|
||||
None: "{col}",
|
||||
"PT1S": "date_trunc('second', CAST({col} AS TIMESTAMP))",
|
||||
"PT1M": "date_trunc('minute', CAST({col} AS TIMESTAMP))",
|
||||
|
||||
Reference in New Issue
Block a user