question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Incompatible Filters" with JINJA Template

See original GitHub issue

I 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

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kamalkeshavani-aiinsidecommented, Nov 29, 2021

@cesar-loadsmart This is fixed in master now. It will be available in upcoming 1.4 version as well.

0reactions
cesar-loadsmartcommented, Nov 26, 2021

Hello! can you please confirm in which version this resolution was applied?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found