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 2019/03/06 16:24:32 UTC

[GitHub] [incubator-superset] thuylevn removed a comment on issue #1996: Custom SQL queries with filters

thuylevn removed a comment on issue #1996: Custom SQL queries with filters
URL: https://github.com/apache/incubator-superset/issues/1996#issuecomment-468716768
 
 
   When we need to filter by country
   
   {% set country = form_data.get('filters')[0].get('val')[0] %}
   SELECT  * FROM tbl
   WHERE 
       0=0
   {% if country %}
       AND country = '{{ country }}'
   {% endif %}
   
   It  does not run in my side. 
   ![image](https://user-images.githubusercontent.com/24593553/53650340-4ff45000-3c12-11e9-9706-76c8fba73da6.png)
   
   DO you know why ????

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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