hectoradrian961030 opened a new issue, #25959:
URL: https://github.com/apache/superset/issues/25959

   I install superset 2.1.1 following the next steps:
   
   git clone https://github.com/apache/superset.git
   git checkout 2.1.1
   TAG=2.1.1 docker compose -f docker-compose-non-dev.yml pull
   
   I also change 
   DEFAULT_FEATURE_FLAGS: {
       ...
       "ENABLE_TEMPLATE_PROCESSING": True,
        ...
   }
   in superset/config.py
   
   TAG=2.1.1 docker compose -f docker-compose-non-dev.yml up -d
   
   ### Expected results
   
   SELECT '{{current_user_id()}}'
   
   or
   
   SELECT {{current_user_id()}}
   
   should return a number
   
   ### Actual results
   
   SELECT '{{current_user_id()}}'
   
   return the literal '{{current_user_id()}}'
   
   without the quotes
   SELECT {{current_user_id()}} 
   
   the result is:
   PostgreSQL Error
   Please check your query for syntax errors at or near "{". Then, try running 
your query again.
   
   
![jinja_superset](https://github.com/apache/superset/assets/49923983/fb1a9513-5751-4217-b9b9-89af8c9f5ac6)
   
![jinja_superset2](https://github.com/apache/superset/assets/49923983/ae2476aa-c02b-4474-8caa-7132b8399ae3)
   
   
   
   
   


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

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