apache / shardingsphere

Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database.
Apache License 2.0
19.83k stars 6.71k forks source link

[Proofread SQL Definition][MySQL]Proofread the g4 files of SQL definitions #14110

Closed tuichenchuxin closed 2 months ago

tuichenchuxin commented 2 years ago

Hi community,

This issue is to proofread the SQL definitions of MySQL. Therefore, we can support parsing more SQLs. We need your interaction! If you

Be familiar with g4 file of Antlr (The grammars are RegularExpression-like) Understand the MySQL grammars

then welcome!

Background

How is a SQL parsed?

SQL definition file ->(Parse to) AST ->(Visit it) SQLStatment

Process

Compare SQL definitions in Oficial SQL Doc and ShardingSphere SQL Doc If there is any difference in ShardingSphere SQL Doc, please correct them referring to Official SQL Doc You can also refer to MySQL source code Run mvn install the current_file_module Check whether there are any exceptions. If indeed, please fix them. (Especially xxxVisitor.class) Add new corresponding SQL case in SQL Cases and expected parsed result in Expected Statment XML Run SQLParserParameterizedTest to make sure no exceptions.

Notice

roodkcab commented 2 years ago

XA Transaction is supported here

totalo commented 2 years ago

I will finish DESCRIBE Statement, EXPLAIN Statement,HELP Statement,USE Statement

totalo commented 2 years ago

I will finish DESCRIBE Statement, EXPLAIN Statement,HELP Statement,USE Statement

USE Statement has already supported.

totalo commented 2 years ago

I will finish Database Administration Statements.

github-actions[bot] commented 1 year ago

Hello , this issue has not received a reply for several days. This issue is supposed to be closed.

strongduanmu commented 1 year ago

This issue has not been finished, so I will reopen it.

github-actions[bot] commented 6 months ago

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

strongduanmu commented 2 months ago

Since this issue is too big, we will split it into new issues, so I will close it.