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

   ### Bug description
   
   When saving a virtual dataset with Jinja macros (e.g., `{% if from_dttm %}`) 
in its SQL query through the Dataset Editor modal, an "Invalid SQL" validation 
error is raised, even though the Jinja syntax is perfectly valid and the query 
executes correctly at runtime.
   
   #### Expected behavior
   
   The dataset should save without errors. Jinja templates that are 
syntactically valid should not be rejected by save-time SQL validation.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   6.0.0
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


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