You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result is that hour time grains display an empty chart, while week and month fallback to the day as time grain.
Problem is that sqlite time grains use strftime and thus the % that gets escaped breaking the query:
SELECT DATETIME(STRFTIME('%%Y-%%m-%%dT%%H:00:00', ts)) AS __timestamp,
SUM(prezzo) AS sum__prezzo
FROM prova12
WHERE ts >= '2017-09-15 00:00:00.000000'
AND ts <= '2018-04-15 12:14:41.000000'
GROUP BY DATETIME(STRFTIME('%%Y-%%m-%%dT%%H:00:00', ts))
ORDER BY sum__prezzo DESC
LIMIT 50000
OFFSET 0;
Steps to reproduce
On a Time series line chart querying a sqlite database use hour, week or month as time grain.
The text was updated successfully, but these errors were encountered:
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
master from ~1 month ago 97afcd5
Expected results
hour, week and month time grains work fine
Actual results
The result is that hour time grains display an empty chart, while week and month fallback to the day as time grain.
Problem is that sqlite time grains use strftime and thus the
%
that gets escaped breaking the query:Steps to reproduce
On a Time series line chart querying a sqlite database use hour, week or month as time grain.
The text was updated successfully, but these errors were encountered: