Hello,
I need to update the name of a table based on a {{select1.value}}
but it doesn't work. I get this error "dataset:table_ ? does not match any table."
My query looks like
SELECT * FROM project.dataset.table_{{select1.value}}
Stumbled upon a similar issue. In my case it was much simpler with no prefix. select * from {{ table_name.value }} where table_name is a drop down prefilled with all the tables.
The problem is that the resultant query has $1 instead of the selected table and hence the query becomes select * from $1 even though $1 evaluates to a valid table name.
Screenshot below :
Yes, one of the error messages actually prompted it. Was just a little apprehensive because the option has a note that it turns off SQL injection protection. Just curious if there are any other workarounds ?
PS : Maybe a different issue, but I am not able to save that option by editing the resource. The prepared statements checkbox isn’t getting saved.