-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 templates not working in superset 1.0 rc1 #12487
Comments
@lilila thanks for reporting, we will get to it asap! |
Thnks for reporting @lilila , going to work on this now. |
@villebro , No I didn't , works when enabled ! Sorry and thank you |
Great, no worries! |
Just a quick question , how do I include this with Helm?
When I try to use {{ filter_values("sampling")[0] }} I get the following postgresql error : |
Have the same question, how do I include this with Helm? |
Hello ! In your folder, go to superset > template : there is a "_helpers.tpl" file which contains the superset_config.
And this will work. Not sure if this is the best way to do it, but works for me for now. |
Thanks Celine!
|
Didnt worked for me even after enabling
|
Queries using Jinja variables are not working anymore in Superset 1.0 rc1.
For instance I have a dataset defined as follows :
I use to work well but now I receive the following error:
Error: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'%\n set title_target = \' "\' + filter_values("title_target", \'Joker\')[0] + \'" \' \' at line 4')
If I move the Jinja parameters in the "template parameters" section:
I receive the following error:
Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
The text was updated successfully, but these errors were encountered: