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: [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]