You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/14 08:07:54 UTC

[GitHub] [superset] suedschwede opened a new issue #16697: "Incompatible Filters" with JINJA Template

suedschwede opened a new issue #16697:
URL: https://github.com/apache/superset/issues/16697


    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](https://user-images.githubusercontent.com/25843519/133219444-e1c1cebe-21ba-4ee1-b43e-dc9b823c29ed.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] junlincc closed issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
junlincc closed issue #16697:
URL: https://github.com/apache/superset/issues/16697


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] suedschwede commented on issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
suedschwede commented on issue #16697:
URL: https://github.com/apache/superset/issues/16697#issuecomment-922652357


   I try to create native dashboard filter 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] kamalkeshavani-aiinside commented on issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
kamalkeshavani-aiinside commented on issue #16697:
URL: https://github.com/apache/superset/issues/16697#issuecomment-981182853


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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] kamalkeshavani-aiinside commented on issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
kamalkeshavani-aiinside commented on issue #16697:
URL: https://github.com/apache/superset/issues/16697#issuecomment-932027806


   @junlincc I saw a fix for this. https://github.com/apache/superset/pull/12742
   
   But unfortunately, this works only on legacy charts and not on new echarts.
   ![image](https://user-images.githubusercontent.com/74634977/135588589-11dd924a-0cee-441f-bf7d-5a21a4fdd59c.png)
   
   @graceguo-supercat Can you see if we can fix the same for new echarts as well?
   Also, this only checks for jinja filter used in virtual dataset query, and not when used in 'Filters' section(custom sql) of chart explore menu.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] junlincc commented on issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #16697:
URL: https://github.com/apache/superset/issues/16697#issuecomment-921938203


   Hi @suedschwede ! yes, this is a known issue. we currently don't have plan to fix it yet. what type of filter are you trying to create with jinja? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] junlincc commented on issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #16697:
URL: https://github.com/apache/superset/issues/16697#issuecomment-948854395


   @villebro had another fix recently for Echarts, I believe. please confirm. https://github.com/apache/superset/pull/17140


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] cesar-loadsmart commented on issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
cesar-loadsmart commented on issue #16697:
URL: https://github.com/apache/superset/issues/16697#issuecomment-979970093


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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] jhult commented on issue #16697: "Incompatible Filters" with JINJA Template

Posted by GitBox <gi...@apache.org>.
jhult commented on issue #16697:
URL: https://github.com/apache/superset/issues/16697#issuecomment-948797793


   @junlincc and @graceguo-supercat, any news on getting this going for ECharts?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org