with
-- comment for temporary table
TEMP_TABLE_NAME as (select ... )
temporary table should ber TEMP_TABLE_NAME but -- comment for temporary table.
"WITH" clause is tokenized as below
--comment for temporary table
TEMP_TABLE_NAME
as
(select ...)
Currently, the first token is always interpreted as a temporary table name.
"the first token excluded comments" should be interpreted as a temporary table name.
I have version v4.4.0
Here is a SQL having "WITH" clause with comments.
temporary table should ber
TEMP_TABLE_NAME
but-- comment for temporary table
."WITH" clause is tokenized as below
Currently, the first token is always interpreted as a temporary table name. "the first token excluded comments" should be interpreted as a temporary table name.