-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Older Dates with Year 1937 or less in charts is showing as NAN. #24561
Comments
What do you get when you run the same SQL query directly against the database, without Superset? |
@sfirke Can you please check if this issue is version specific in charts. |
@sfirke |
I agree it seems like a bug in Superset. There's not really anyone "from Superset" because it's an open-source project without a single owner. Anyone could submit a pull request to fix this. I don't think it will be a priority for most developers because it doesn't affect anyone who isn't using old year values. If you're able to poke around in the Superset code to figure this out, that would be ideal. Otherwise one thing you might be able to do is try testing this on different versions of Superset. If it's fixed in the new 3.0.0rc1, great. If nothing else, try other date values and see if you can learn anything. Does 1838 work? Is there a max date that returns this same NaN? I thought it could be related to Pandas dates out of bounds, but 1938 seems too modern for that: https://pandas.pydata.org/docs/user_guide/timeseries.html#timestamp-limitations |
I just tested this on 3.0.0rc2 and it appears fixed there. Following my steps above I get: Maybe it was fixed by #23339 ? h/t to @justinpark for making the connection. At any rate, I'm going to close this issue. Please feel free to re-open or reply if this occurs again in 3.0.0 or latest. |
Hello, I am using superset version 2.1.0
For older dates around year 1937 and back I am not able to see correct dates in charts, it is showing as NAN.
Although in dataset it is being shown correctly.
Database I have used Databricks SQL, SQL server.
For example I have created a simple table chart by using this dummy date in dataset:
select (current_date() - 31150 ) as dt1, the chart shows NAN value
But if I run this select (current_date() - 31105) as dt1, it shows correct date
So dates value 31150 days back from current date is not being shown correctly. But 31105 days back is correctly shown.
Can you please let me know if there is such limitation in charts and if it is so how can we rectify as we have dates older than 1930 year in our tables
The text was updated successfully, but these errors were encountered: