-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.1.1 migration troubleshooting with url_param() current_username() keywords in sql dataset #31975
Comments
I found a similar unsolved discussion that might be relevant to your issue: 4.1.1 migration troubleshooting with url_param() current_username() keywords in sql dataset, which was last updated on January 22, 2025 [1]. Regarding your issue, the The It might be beneficial to review the changes made in the GitHub pull request #29840, as it addresses issues related to cache key retrieval, particularly when using Jinja functions like To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu Doesn't work |
We tried to deploy 4.1.1 and revert #29840, then it works! But not a solution for us |
To resolve cache retrieval issues in Superset 4.1.1 when using
By following these steps, you can help ensure that cache keys are correctly calculated, which should resolve the cache retrieval issues [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
I found this update in superset/connectors/sqla/models.py in this commit 9023b48: If i only revert this line, it works again for us in 4.1.1. Can someone explain why did this change? |
Tagging @villebro as he uses the GAQ flag, and I don't know anyone else using it in production (yet!). Git blame shows @betodealmeida changed that line return list(set(extra_cache_keys)), so they may be able to speak to the change. |
Bug description
Hello, for the past three days we have been trying to migrate our Superset version from 4.0.2 to 4.1.1, but we are encountering an issue seemingly related to cache key retrieval. We have a source dataset behind our charts that uses keywords such as current_username(), cache_key_wrapper(), or url_param(). This issue only occurs when the GLOBAL_ASYNC_QUERIES flag is set to True.
Everything was working fine in 4.0.2, but now we are facing errors like this:
As soon as I remove the above-mentioned keywords, the charts start working again. Has anyone faced a similar situation and could provide guidance on how to continue using these essential keywords in our context?
Screenshots/recordings
Superset version
4.1.1
Python version
3.11
Node version
18 or greater
Browser
Chrome
Additional context
Works perfectly on 4.0.2 but crash on 4.1.1.rc2 (works on rc1 )
Seems to be a cache retreiving issue.
Works okay for all basic query but crash when using url_params jinja function.
Anyone have face this issues so far ? Maybe something related to #29840 as it touch cache key
Checklist
The text was updated successfully, but these errors were encountered: