Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
No numeric types to aggregate exception when using timeshift on line chart #8954
This bug is easy to reproduce on vanilla superset with demo datasource and tables.
To reproduce it make simple line chart on random_time_series table with count() metric and month time grain. Then setup time shift for 1 year actual values.
The problem for us is that we're trying to setup superset for customer who has no historic data yet. But we want to preinstall dashboards that would use timeshift right away without waiting for current data to get old enough so that we can enable this on all line charts
Is there any other way to configure (month back) timeshift on LineChart for dataset that has, let's say' only week worth of data and not crash superset?
In case anyone having troubles reproducing this error I recorded screen capture:
I'd expect LineChart to just ignore state were there is no data for timeshift. Only single plot would be displayed then
This is stacktrace:
How to reproduce the bug
Described in main section.
Tested on superset running in docker:
This is docker-compose.yml entry for it