cccs-jc opened a new pull request #14765:
URL: https://github.com/apache/superset/pull/14765


   SQL lab can execute queries containing jinja templates.
   
![sql_lab_default_value](https://user-images.githubusercontent.com/56140112/119236192-17e3cb00-bb04-11eb-8417-98f796db20c5.png)
   You can specify key/values that your  jinja template can use. However it's 
not possible to add additional filters like the Explore or the Dashboard would 
do.
   
![specify_filters_in_sql_lab](https://user-images.githubusercontent.com/56140112/119236195-1adebb80-bb04-11eb-9f25-c43b056b9ee3.png)
   This pull request adds support for filters provided in the sql lab parameters
   
![sql_lab_results](https://user-images.githubusercontent.com/56140112/119236196-1d411580-bb04-11eb-9be7-4264296721f1.png)
   
   This is very convenient to test templates since it behaves like the Explore 
or Dashboard.
   
   Maybe the implementation details are not 100%. But I'm hoping the concept 
and ability to do this in sql lab is welcomed.
   
   


-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to