Open
Description
Bug description
- Go to SQL Lab
- Use the following query:
with ws1 as (
select 1 as one
)
select * from ws1 --{{ ref('value_date_delinquent_dates')|length }}
- Run query
Expected results
The query should run without errors
Actual results
This error is returned:
Parameter error: Failed to execute query '5' - 'with ws1 as ( select 1 as one ) select * from ws1 --{{ ref('value_date_delinquent_dates')|length }} ': The query contains one or more malformed template parameters. Please check your query and confirm that all template parameters are surround by double braces, for example, "{{ ds }}". Then, try running your query again.
Screenshots/recordings
Superset version
master / latest-dev
Python version
3.9
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.