mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(engine): Translate fractional time grains—requires @superset-ui bump (#17078)
* chore(engine): Translate fractional time grains * Bump @superset-ui Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -45,7 +45,7 @@ class SqliteEngineSpec(BaseEngineSpec):
|
||||
"P1D": "DATE({col})",
|
||||
"P1W": "DATE({col}, -strftime('%w', {col}) || ' days')",
|
||||
"P1M": "DATE({col}, -strftime('%d', {col}) || ' days', '+1 day')",
|
||||
"P0.25Y": (
|
||||
"P3M": (
|
||||
"DATETIME(STRFTIME('%Y-', {col}) || " # year
|
||||
"SUBSTR('00' || " # pad with zeros to 2 chars
|
||||
"((CAST(STRFTIME('%m', {col}) AS INTEGER)) - " # month as integer
|
||||
|
||||
Reference in New Issue
Block a user