"Incompatible Filters" with JINJA Template
See original GitHub issueI have created a virtual dataset with a JINJA template
{% if filter_values('number')|length %}
where object_date > date_sub(day,{{filter_values('number')[0]}},now())
{% else %}
where object_date > date_sub(day,10,now())
{% endif %}
My virtuals datasets works and I can filter in the dashbaord, but I get an error message “Incompatible Filters”
I am using Apache Superset 1.3.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Preset How to Apply a OR filter using Jinja template - YouTube
In this video, we explain how to use Jinja templating using the "OR" comparation. Default is AND.
Read more >Apache Superset How can I pass a filter value from a filter box ...
I have a superset dashboard wherein i have a filter box containing the name of various dimensions such as area, district ...
Read more >Changes — Jinja Documentation (3.1.x)
This allows checking if a filter is available in a template before using it. Test functions can be decorated ... This is a...
Read more >Jinja2 - PyPI
A very fast and expressive template engine. ... Extensible filters, tests, functions, and even syntax. Jinja's philosophy is that while application logic ...
Read more >Jinja — StackStorm 3.8.0 documentation
StackStorm supports Jinja variable templating in Rules, Action Chains, and Actions etc. Jinja templates support filters to allow some advanced capabilities ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cesar-loadsmart This is fixed in master now. It will be available in upcoming 1.4 version as well.
Hello! can you please confirm in which version this resolution was applied?