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:
John Bodley
2021-10-12 21:40:48 -07:00
committed by GitHub
parent 959fd763a8
commit b9ff85d9ea
37 changed files with 453 additions and 381 deletions

View File

@@ -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