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

   ### Bug description
   
   ## 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
   
   
![Image](https://github.com/user-attachments/assets/e94e0615-26ff-46ff-98e9-b8f78f05ad06)
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### 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.
   - [ ] 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