You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org> on 2026/02/06 00:56:15 UTC
Re: [PR] fix(charts): handle PostgreSQL INTERVAL type in bar and pie charts [superset]
codeant-ai-for-open-source[bot] commented on PR #34513:
URL: https://github.com/apache/superset/pull/34513#issuecomment-3857198053
## **Sequence Diagram**
Shows the added mutator that converts PostgreSQL INTERVAL values (timedelta) into numeric seconds so bar and pie charts receive numeric metrics and render correctly.
```mermaid
sequenceDiagram
participant Frontend
participant Backend
participant DB
participant PostgresEngineSpec
Frontend->>Backend: Request chart data (metric = INTERVAL)
Backend->>DB: Execute query returning INTERVAL column
DB-->>Backend: INTERVAL values (timedelta objects)
Backend->>PostgresEngineSpec: Normalize column values using column_type_mutators
PostgresEngineSpec-->>Backend: Converted metrics (timedelta -> total seconds)
Backend-->>Frontend: Return numeric chart data
Frontend-->>Frontend: Render bar/pie chart with numeric metric
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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