You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "mosescha1972 (via GitHub)" <gi...@apache.org> on 2026/02/02 09:47:40 UTC

[I] Box Plot Date Error ( for Oracle) [superset]

mosescha1972 opened a new issue, #37608:
URL: https://github.com/apache/superset/issues/37608

   ### Bug description
   
   Title
   Box Plot shows incorrect date (e.g., 8959-12-31) when using Oracle DATE column as temporal field
   
   Summary
   When using an Oracle DATE column as the temporal field in a Superset Box Plot, the chart displays incorrect future dates such as 8959-12-31. This happens even though the column is correctly recognized as DATE and marked as Is temporal in the dataset.
   
   Environment
   
   Apache Superset (latest master as of recent build)
   
   Oracle 19c
   
   Dataset based on Oracle table with a DATE column (e.g., TRD_DT)
   
   Steps to Reproduce
   
   Create a dataset from an Oracle table where TRD_DT is of type DATE.
   
   In Dataset → Columns, mark TRD_DT as Is temporal.
   
   Create a Box Plot chart.
   
   Set:
   
   Time Grain = Day
   
   Time Range = Last 2 years
   
   Observe the X-axis dates.
   
   Actual Result
   The chart shows incorrect dates such as 8959-12-31 instead of the real trading dates.
   
   Expected Result
   The chart should display the actual values of TRD_DT correctly on the time axis.
   
   Root Cause Analysis
   Superset internally converts temporal fields to epoch milliseconds for Box Plot grouping.
   When the source column is Oracle DATE, Superset misinterprets the value as a numeric epoch value rather than a true datetime, resulting in extreme future dates.
   
   This issue does not appear in Line Charts or other time series charts, but is reproducible specifically in Box Plot, likely due to different internal time handling logic.
   
   Workaround
   Create a virtual column in the dataset:
   
   CAST(TRD_DT AS TIMESTAMP)
   
   
   Mark this new column as Is temporal and use it instead of the original DATE column.
   After this change, the Box Plot renders correct dates.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Box Plot Date Error ( for Oracle) [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #37608:
URL: https://github.com/apache/superset/issues/37608#issuecomment-3946507187

   Go for it! We (the PMC/Committers I know of) don't have oracle to test on, so any help here (or with any open Oracle issues) would be much appreciated. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Box Plot Date Error ( for Oracle) [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #37608:
URL: https://github.com/apache/superset/issues/37608#issuecomment-3880345432

   @sharmavikas18 I see you closed the PR, did you still want to tackle this? We'd welcome a fix... but the real issue is to (like the bot said) cast the date column. If this is an issue with Oracle not working with date columns _in general_, it might be plausible to make a systemic fix in the db engine spec. Is that accurate, @dosu?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Box Plot Date Error ( for Oracle) [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #37608:
URL: https://github.com/apache/superset/issues/37608#issuecomment-3834106111

   <!-- Answer -->
   This is a known limitation in Superset's Box Plot chart when using Oracle DATE columns. The Box Plot plugin treats the x-axis as categorical and expects the backend to provide correctly-typed temporal values. If the Oracle DATE column isn't explicitly cast to TIMESTAMP, it can be misinterpreted as a numeric epoch, resulting in extreme future dates like 8959-12-31. Other chart types, like Line Chart, use a dedicated timeseries stack that normalizes and tags temporal fields, so they don't have this issue.
   
   The recommended workaround is to create a virtual column in your dataset using `CAST(TRD_DT AS TIMESTAMP)`, mark it as temporal, and use that column in your Box Plot. This ensures the date is recognized and formatted correctly by the chart plugin. This approach is consistent with maintainers' guidance for similar temporal data issues in Superset ([reference](https://github.com/apache/superset/issues/27798)).
   
   Let me know if you want more details on the technical differences in how Box Plot and other charts handle temporal fields.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/1967ad56-0b11-4bb7-8032-e9cc2b852bd3?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/1967ad56-0b11-4bb7-8032-e9cc2b852bd3?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/1967ad56-0b11-4bb7-8032-e9cc2b852bd3?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/1967ad56-0b11-4bb7-8032-e9cc2b852bd3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1967ad56-0b11-4bb7-8032-e9cc2b852bd3?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/1967ad56-0b11-4bb7-8032-e9cc2b852bd3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1967ad56-0b11-4bb7-8032-e9cc2b852bd3?feedback_type=other)</sup>
   
   [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20limitation%20in%20Superset%27s%20Box%20Plot%20chart%20when%20using%20Oracle%20DATE%20columns.%20The%20Box%20Plot%20plugin%20treats%20the%20x-axis%20as%20categorical%20and%20expects%20the%20backend%20to%20provide%20correctly-typed%20temporal%20values.%20If%20the%20Oracle%20DATE%20column%20isn%27t%20explicitly%20cast%20to%20TIMESTAMP%2C%20it%20can%20be%20misinterpreted%20as%20a%20numeric%20epoch%2C%20resulting%20in%20extreme%20future%20dates%20like%208959-12-31.%20Other%20chart%20types%2C%20like%20Line%20Chart%2C%20use%20a%20dedicated%20timeseries%20stack%20that%20normalizes%20and%20tags%20temporal%20fields%2C%20so%20they%20don%27t%20have%20this%20issue.%0A%0AThe%20recommended%20workaround%20is%20to%20create%20a%20virtual%20co
 lumn%20in%20your%20dataset%20using%20%60CAST%28TRD_DT%20AS%20TIMESTAMP%29%60%2C%20mark%20it%20as%20temporal%2C%20and%20use%20that%20column%20in%20your%20Box%20Plot.%20This%20ensures%20the%20date%20is%20recognized%20and%20formatted%20correctly%20by%20the%20chart%20plugin.%20This%20approach%20is%20consistent%20with%20maintainers%27%20guidance%20for%20similar%20temporal%20data%20issues%20in%20Superset%20%28%5Breference%5D%28https%3A//github.com/apache/superset/issues/27798%29%29.%0A%0ALet%20me%20know%20if%20you%20want%20more%20details%20on%20the%20technical%20differences%20in%20how%20Box%20Plot%20and%20other%20charts%20handle%20temporal%20fields.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37608)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Box Plot Date Error ( for Oracle) [superset]

Posted by "sharmavikas18 (via GitHub)" <gi...@apache.org>.
sharmavikas18 commented on issue #37608:
URL: https://github.com/apache/superset/issues/37608#issuecomment-3841523928

   hi i would like to work on this issue please assign it to me 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Box Plot Date Error ( for Oracle) [superset]

Posted by "sharmavikas18 (via GitHub)" <gi...@apache.org>.
sharmavikas18 commented on issue #37608:
URL: https://github.com/apache/superset/issues/37608#issuecomment-3906977146

   @rusackas yes i would love to work on this issue i will shortly reopen the pull request with the required changes
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Box Plot Date Error ( for Oracle) [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #37608:
URL: https://github.com/apache/superset/issues/37608#issuecomment-3880351227

   <!-- Answer -->
   Yes, that's accurate. The issue with Oracle DATE columns is systemic when used with time grains in Superset—especially for charts like Box Plot that expect TIMESTAMP-typed values. Superset's engine spec for Oracle previously returned DATE types after truncation, but the frontend expects TIMESTAMP for correct temporal grouping. This mismatch can cause invalid dates like 8959-12-31 to appear.
   
   A recent PR addressed this by updating the Oracle db engine spec to cast truncated DATE columns to TIMESTAMP, ensuring consistent and correct behavior across affected chart types. This approach aligns Oracle outputs with Superset's expectations and is a safe, targeted fix, as seen in other engine specs too. Testing across chart types is still recommended, but this systemic fix is both plausible and effective for the problem described [source](https://github.com/apache/superset/pull/37702).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/6af54ebe-ac3c-461d-93e6-1fbfab2b0580?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/6af54ebe-ac3c-461d-93e6-1fbfab2b0580?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/6af54ebe-ac3c-461d-93e6-1fbfab2b0580?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/6af54ebe-ac3c-461d-93e6-1fbfab2b0580?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6af54ebe-ac3c-461d-93e6-1fbfab2b0580?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/6af54ebe-ac3c-461d-93e6-1fbfab2b0580?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/6af54ebe-ac3c-461d-93e6-1fbfab2b0580?feedback_type=other)</sup>
   
   [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Yes%2C%20that%27s%20accurate.%20The%20issue%20with%20Oracle%20DATE%20columns%20is%20systemic%20when%20used%20with%20time%20grains%20in%20Superset%E2%80%94especially%20for%20charts%20like%20Box%20Plot%20that%20expect%20TIMESTAMP-typed%20values.%20Superset%27s%20engine%20spec%20for%20Oracle%20previously%20returned%20DATE%20types%20after%20truncation%2C%20but%20the%20frontend%20expects%20TIMESTAMP%20for%20correct%20temporal%20grouping.%20This%20mismatch%20can%20cause%20invalid%20dates%20like%208959-12-31%20to%20appear.%0A%0AA%20recent%20PR%20addressed%20this%20by%20updating%20the%20Oracle%20db%20engine%20spec%20to%20cast%20truncated%20DATE%20columns%20to%20TIMESTAMP%2C%20ensuring%20consistent%20and%20correct%20behavior%20across%20affected%20chart%20ty
 pes.%20This%20approach%20aligns%20Oracle%20outputs%20with%20Superset%27s%20expectations%20and%20is%20a%20safe%2C%20targeted%20fix%2C%20as%20seen%20in%20other%20engine%20specs%20too.%20Testing%20across%20chart%20types%20is%20still%20recommended%2C%20but%20this%20systemic%20fix%20is%20both%20plausible%20and%20effective%20for%20the%20problem%20described%20%5Bsource%5D%28https%3A//github.com/apache/superset/pull/37702%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37608)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Box Plot Date Error ( for Oracle) [superset]

Posted by "mosescha1972 (via GitHub)" <gi...@apache.org>.
mosescha1972 closed issue #37608: Box Plot Date Error ( for Oracle)
URL: https://github.com/apache/superset/issues/37608


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org