ClickHouse / ClickHouse/clickhouse-java

[jdbc-v2] LightParser Implementation

Open
#2,797 0 comments 0 reactions 0 assignees View on GitHub
area:sql-parser enhancement jdbc-v2
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 23h
Merged PRs (30d)
29

Description

### Description

JDBC Driver has some tasks where parser is the best choice. Parser at the same time is a big issue because if it cannot validate new statement we have to fix it in the code.
We need to develop a version that parses only specific statements and passes rest of them to server.

This parser should be implemented with ANTLR4 for better portability.
It requires good negative testing to verify that most statements are not blocked by parse.
It required complete coverage for known statements.

Contributor guide

Open the contributing guide

Research direction

Start by locating the JDBC parser implementation and its existing statement-validation tests. Review how currently unsupported statements are handled, then define the supported-statement and pass-through cases before implementing the ANTLR4 parser. Done means known statements have complete coverage and negative tests show unrelated statements are not blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.