codeant-ai-for-open-source[bot] commented on PR #38601:
URL: https://github.com/apache/superset/pull/38601#issuecomment-4046168863
## **Sequence Diagram**
This PR changes RLS handling so global guest rules are not injected into
inner physical tables of a virtual dataset. Guest RLS is now applied only once
at the outer virtual dataset query level, preventing missing column SQL errors.
```mermaid
sequenceDiagram
participant Guest
participant QueryBuilder
participant RLS
participant Database
Guest->>QueryBuilder: Request chart query on virtual dataset
QueryBuilder->>RLS: Apply RLS to inner tables with guest rules disabled
RLS->>Database: Fetch table predicates using role based rules only
QueryBuilder->>RLS: Build outer dataset query and request full RLS
RLS->>Database: Add guest and role filters to outer query
QueryBuilder-->>Guest: Return successful filtered results
```
---
*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]