-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't make a timeserie if date is TIMESTAMP WITHOUT TIME ZONE (postgres) #5910
Comments
It seems switching from |
Beyond the |
I'm also getting this error with the demo data. I run a local system using the provided docker solution. Superset version0.28.* as of 2018-10-16 WorkaroundIt works with the 0.27 version. |
@villebro - when I cast it to ::timestamptz it fixed the issue for me (0.28 docker, Redshift via postgresql+psycopg2). |
Excuse me. could you detail where to modify it? in which file which line? or setting? thanks! |
I am facing the same problem. Is there any workaround except downgrading Superset to 0.27.0? |
Sorry, been bogged down with other stuff for a while, but will try to look at this in the coming days. I'm surprised that this is working in 0.27, thought this bug was introduced after 0.26 after dropping the |
@davidgreenshtein - Sometimes you can work around it by creating a new calculated column and coercing to It doesn't work if you just update the database expression though. |
Here is how I fixed this when running a clone of the repo's master branch from 2018-11-01 and the Docker install (after few "adjustments" to make it work). I hope this will help others until it is permanently fixed... For the "World's Bank Data" dashboard:
I had another issue with the "World's Bank Data" dashboard - some charts were erroring out with 'column "xxxx" does not exist'. For example, 'column "sp_pop_totl" does not exist'. To fix:
HTH |
@villebro Is this a reasonable fix? At least retains the old behaviour.
|
@rahulsekar I'm kind of leaning towards fixing this in the time_grain definitions in db_engine_specs, as those are not logical right now. I'll be working with a postgres database in the upcoming days, let me get back once I've had time to test a few alternatives. |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.28 RC6 from 2018-09-12
Expected results
A timeseris graph is displayed
Actual results
Unexepeted Error
is shown in the UIFile "/home/work/incubator-superset/superset/utils.py", line 366, in datetime_to_epoch return (dttm - epoch_with_tz).total_seconds() * 1000 File "pandas/_libs/tslibs/timestamps.pyx", line 320, in pandas._libs.tslibs.timestamps._Timestamp.__sub__ TypeError: Timestamp subtraction must have the same timezones or no timezones
Steps to reproduce
TIMESTAMP WITHOUT TIME ZONE
(postgres 9.3)Workaround
my_date WITH TIME ZONE 'MST'
, typedTIMESTAMP
and using it as the time for the graph workedThe text was updated successfully, but these errors were encountered: