Skip to content

"WITH" clause with comments, temporary table name is wrong. #374

@rkamite

Description

@rkamite

I have version v4.4.0

Here is a SQL having "WITH" clause with comments.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions