codeant-ai-for-open-source[bot] commented on PR #38569:
URL: https://github.com/apache/superset/pull/38569#issuecomment-4039758851
## **Sequence Diagram**
This PR updates the ExtraCache regex so that nested Jinja helper calls (such
as cache_key_wrapper wrapping another function) are detected and included when
computing query cache keys, improving cache correctness for templated SQL.
```mermaid
sequenceDiagram
participant User
participant TemplateProcessor
participant ExtraCache
participant Cache
User->>TemplateProcessor: Submit SQL with Jinja template
TemplateProcessor->>TemplateProcessor: Scan template with ExtraCache
regex
alt helper calls found (including nested)
TemplateProcessor->>ExtraCache: Render helper calls and capture
values
ExtraCache->>Cache: Append values to extra cache keys
end
TemplateProcessor-->>User: Return result using computed cache key
```
---
*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]