superset sqllab and charts complain about pandas timestamp conversion when the dates exceed pandas timestamp bounds #18871
Labels
#bug
Bug report
explore:time
Related to the time filters in Explore
explore
Namespace | Anything related to Explore
inactive
Inactive for >= 30 days
sqllab:editor
sqllab
Namespace | Anything related to the SQL Lab
Similar to 13661, 18596, 16487 timestamps older than
1677-09-22 00:12:43.145225
and newer than2262-04-11 23:47:16.854775807
cannot be converted into pandas timestamp.By the same logic, charts which create a
DTTM_ALIAS
column in the backend query also cannot contain dates older than the range mentioned above, and trigger the same failure. They are coerced as NaNs, so that the data for dates within the range pandas supports can at least be shown without triggering the same error.How to reproduce the bug
Sqllab
select TIMESTAMP '2263-02-02 00:00:00'
(this won't work)select TIMESTAMP '2262-02-02 00:00:00'
(this will work since it's inside the range pandas can support)Charts
Expected results
Returns the result correctly.
Actual results
Sqllab:
Casting from timestamp[us] to timestamp[ns] would result in out of bounds timestamp: 9248947200000000
Charts:
Out of bounds nanosecond timestamp: 9999-01-01 00:00:00
Environment
chrome
latest & 1.4.1
3.8.12
13.4
Checklist
Make sure to follow these steps before submitting your issue - thank you!
There are some similar issues, but reviewer mentioned to open a new issue as the PR for the issue was already closed: #14006
The text was updated successfully, but these errors were encountered: