google / zetasql

ZetaSQL - Analyzer Framework for SQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parsing arguments

leoch20 opened this issue · comments

commented

Hello, I have a query with a parameter that I'm trying to pass through Analyzer.analyzeStatement()

Is there any way to set the parameters to a dummy value or just ignore them?

select *
from table_name
where date_month between @BEGINNINGMONTH and @ENDMONTH

At the moment I get this error:

com.google.zetasql.SqlException: Query parameter 'BEGINNINGMONTH' not found 
commented

I got what I needed in #22