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

   ### Bug description
   
   When using an `INTERVAL` type in postgres as a metric, both bar charts and 
pie charts fail to render with no obvious errors.
   
   For a pie chart, the legend is rendered but nothing else. For a bar chart, 
the axes and X-axis labels are rendered, but the bars are not drawn.
   
   No errors are reported, either via toast, in the browser console, or in the 
application logs.
   
   ### How to reproduce the bug
   
   1. Write a query against postgres with an `INTERVAL` column in the response
   2. Create a bar chart or pie chart from that query
   3. Use the `INTERVAL` as a metric, e.g. with `MAX` aggregation
   4. Press the button to render the chart
   
   ### Screenshots/recordings
   
   
![screenshot_2024-08-29_14-00-05_07894c8a](https://github.com/user-attachments/assets/268b5458-6017-4daa-aa39-849d982b8d5c)
   
![screenshot_2024-08-29_14-00-49_34811ac2](https://github.com/user-attachments/assets/450d1c58-cb63-4a20-9d4c-09232acb4d13)
   
   
   ### Superset version
   
   4.0.2
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Firefox
   
   ### Additional context
   
   Rendering the exact same chart but modifying the query to convert the 
`INTERVAL` into an integer number of milliseconds worked fine.
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [X] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to