-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Open
Labels
data:datasetRelated to dataset configurationsRelated to dataset configurationsglobal:jinjaRelated to Jinja templatingRelated to Jinja templatingvalidation:requiredA committer should validate the issueA committer should validate the issue
Description
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
- I have searched Superset docs and Slack and didn't find a solution to my problem.
- I have searched the GitHub issue tracker and didn't find a similar bug report.
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
data:datasetRelated to dataset configurationsRelated to dataset configurationsglobal:jinjaRelated to Jinja templatingRelated to Jinja templatingvalidation:requiredA committer should validate the issueA committer should validate the issue