Skip to content

SQL parser instead of regular expression #535

@zhicwu

Description

@zhicwu

In order to completely address SQL parsing issues, let's reuse the same antlr4 grammar(Lexer & Parser) from ClickHouse server.

Related bugs: #479, #528, #533

Update:
ANTLR is overkill and it will introduce 300KB runtime, which is the opposite of what we need(reducing dependencies). As a result, we'll need to implement a simplified parser which is able recognize case-insensitive keywords, and understand if the given query contains multiple statements and type of each statement(DDL or DML, query or mutation etc.).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions