Jinja Template #30448
Replies: 2 comments 8 replies
-
Hey there, @Meena0155! I'm here to help you with any bugs, questions, or contributions you have in mind. Let's work together to solve this issue! The issue you're experiencing with the Jinja template disappearing when saving a query as a dataset in Superset is due to the A similar issue was discussed in a closed issue where it was identified as a duplicate of another issue. You might want to check the conversation in this thread for potential solutions [2]. |
Beta Was this translation helpful? Give feedback.
-
Have you solved this problem? I encountered a similar issue, and my version is 4.1.1. Thanks |
Beta Was this translation helpful? Give feedback.
-
I am having issues while writing superset datasets that use Jinja template.
I can run the query successfully using sql lab. However when I save the query as a dataset and use it in a chart, the jinja template is disappearing.
This is the query I used
`SELECT
*
from my_table
where
1=1
{% if filter_values('Date')|length %}
and
event_time<=TIMESTAMP'{{filter_values('Date')[0]}}' and event_time>= date_add('day',-14,TIMESTAMP'{{filter_values('Date')[0]}}')
{% endif %}
`
however when I view query in the chart it just show SELECT
*
from my_table
where
1=1 as virtual table.
Please help.
The Template parameter is enabled in the superset config file
Beta Was this translation helpful? Give feedback.
All reactions