codeant-ai-for-open-source[bot] commented on PR #38170:
URL: https://github.com/apache/superset/pull/38170#issuecomment-3941654327
## **Sequence Diagram**
This PR ensures CSV_EXPORT settings (sep and decimal) are applied for both
client-side (pivot/processed) CSV generation and server-side streaming exports.
The diagram shows the two main success paths where the app config is read and
applied to produce correctly formatted CSV output.
```mermaid
sequenceDiagram
participant User
participant Frontend
participant Backend
participant AppConfig
participant Database
User->>Frontend: Request CSV export (regular or pivot)
Frontend->>Backend: Export request
Backend->>AppConfig: Read CSV_EXPORT (sep, decimal)
alt Client/processed CSV (apply_client_processing)
Backend->>Backend: processed_df.to_csv(..., **CSV_EXPORT)
Backend-->>Frontend: CSV data (respecting sep & decimal)
else Streaming SQL export
Backend->>AppConfig: Read CSV_EXPORT (sep, decimal)
Backend->>Database: Execute streaming query
Database-->>Backend: Rows stream
Backend->>Backend: csv.writer(delimiter=sep) & format floats
(decimal)
Backend-->>Frontend: Streamed CSV chunks (respecting sep & decimal)
```
---
*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]