codeant-ai-for-open-source[bot] commented on PR #38388:
URL: https://github.com/apache/superset/pull/38388#issuecomment-4054200251
## **Sequence Diagram**
This PR changes the execute_sql response flow so every data-bearing
statement keeps its own rows and columns in the statements array. It also
preserves backward compatibility by keeping top-level rows and columns mapped
to the last data-bearing statement and adds a warning when multiple result sets
exist.
```mermaid
sequenceDiagram
participant Client
participant MCP as execute_sql tool
participant SQL as SQL engine
Client->>MCP: Submit multi statement SQL
MCP->>SQL: Execute all statements
SQL-->>MCP: Return statement results
MCP->>MCP: Add per statement data for each data bearing statement
MCP->>MCP: Set top level rows and columns from last data bearing
statement
MCP->>MCP: Add multi statement warning when multiple data bearing
statements
MCP-->>Client: Return response with statements data and top level fields
```
---
*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]