-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
jinja templating not working (1.2.0-rc2) requires undocumented config #15283
Comments
I've found this : but nowhere in the documentation I can find how to enable |
for the records, this works in It should really be added here : https://superset.apache.org/docs/installation/sql-templating
BUT it still doesn't work in SQL LAB. It works when used elsewhere |
Hope this can help. #15246 |
Thanks a lot for this post @squalou ...Firstly, I added the ENABLE_TEMPLATE_PROCESSING in the Hope it helps. Kudos!! |
Between the PR that appears to resolve the issue, the other help docs in the thread, and the relatively long silence on this thread, I'll go ahead and call this one case-closed. If there are indeed clarifications that need to be made in the documentation, would anyone be willing to open up a small PR and help add some clarity? It would be much appreciated! |
Hello everyone ..I have question concerning jinja template (url_param) i have a an sql(and a dataset too )that have populated #passing params from portal to dashboard |
Expected results
Following documentation, running for instance this query should work (from sql lab)
should work and return results.
Actual results
{{ current_username() }}
is not interpreted at all, is considered as a String. Hence the result does not work.Note that
'{{ url_param('myparam') }}'
does not work eitherlooks like no templating interpretation is done.
Used to work fine in 0.38
Does not work in 1.2.0-RC2
I don't know where to look for detailed executions logs. I had a look un
query
table ofsuperset
schema, query was not traced interpreted there but maybe it's the expected result.Screenshots
If applicable, add screenshots to help explain your problem.
How to reproduce the bug
Environment
(please complete the following information):
Superset 1.2.0
(1.2.0-RC2 actually)Python 3.7.9
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: