Skip to content

Commit

Permalink
[frontend] Advance the 'AND' rule in the definition of 'between' synt…
Browse files Browse the repository at this point in the history
…ax for Hive and Presto (#3561)

* fix: SQL parser: Move the '<between> AND' rule in the lexical definitions of Hive and Presto ahead of the 'AND' rule to avoid auto-completion errors in cases like "where x between 'a' and 'b' a". The keyword 'AND' with state 'between' is treated as a normal 'AND'. Other SQL syntax such as Flink, SQL, etc. are correct.

* [frontend] Supplementing test cases for keyword completion of the SQL 'between and' statement.

---------

Co-authored-by: fangguiliang <[email protected]>
  • Loading branch information
laochake and fangguiliang authored Feb 29, 2024
1 parent 2e780cb commit a46b3b6
Show file tree
Hide file tree
Showing 7 changed files with 1,126 additions and 1,117 deletions.
Loading

0 comments on commit a46b3b6

Please sign in to comment.