asdi744 opened a new issue #13480:
URL: https://github.com/apache/superset/issues/13480


   Jinja template not working in SQL LAB
   
   ### Expected results
   
   should return user id/name of currently logged in user
   
   ### Actual results
   
   DB engine Error: [Statement 1 out of 3] postgresql error: syntax error at or 
near "{" LINE 1: SELECT {{ current_user_id() }} ^
   
   #### Screenshots
   
   <img width="858" alt="Screenshot 2021-03-05 at 16 32 36" 
src="https://user-images.githubusercontent.com/4865462/110110502-bba8bf00-7dd0-11eb-92dd-481af4a57a01.png";>
   
   #### How to reproduce the bug
   
   1. Go to 'SQL LAB'
   2. Execute the query: 'SELECT {{ current_user_id() }};'
   3. Click 'Run Selection'
   4. See error
   
   ### Environment
   
   - superset version: `1.0.1`
   - python version: `3.7.3`
   - Flask version: `1.1.2`
   - Werkzeug version: `1.0.1`
   
   ### 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
   
   Please help.
   


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