squalou opened a new issue #15283:
URL: https://github.com/apache/superset/issues/15283


   ### Expected results
   
   Following documentation, running for instance this query should work (from 
sql lab)
   
   ```
   SELECT  *
   FROM mytable
   WHERE username = '{{ current_username() }}'
   ```
   
   should work and return results.
   
   ### Actual results
   
   `{{ current_username() }}` is not interpreted at all, is considered as a 
String. Hence the result does not work.
   
   
   Note that ` '{{ url_param('myparam') }}' ` does not work either
   
   
   looks like no templating interpretation is done.
   
   
   Used to work fine in 0.38
   
   Does not work in 1.2.0-RC2
   
   I don't know where to look for detailed executions logs. I had a look un 
`query` table of `superset` schema, query was not traced interpreted there but 
maybe it's the expected result.
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   #### How to reproduce the bug
   
   1. Go to 'SQL Lab'
   2. Enter a query using Jinja templating
   4. See issue
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `Superset 1.2.0` (1.2.0-RC2 actually)
   - python version: `Python 3.7.9`
   - node.js version: not present in container
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   Add any other context about the problem here.
   


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