Closed jingshanglu closed 3 months ago
I will do it.
I will do it.
@dongzl select,update,insert and delete are used more often, you can start from this subtasks
.
I will do it.
@dongzl select,update,insert and delete are used more often, you can start from this
subtasks
.
Hi @jingshanglu , OK, I will be familiar with the work.
Welcome @dongzl come back! It is long-term work, so I suggest you split a huge PR into many small ones and look forward to a flow of PRs from you. :-)
Welcome @dongzl come back! It is long-term work, so I suggest you split a huge PR into many small ones and look forward to a flow of PRs from you. :-)
Hi @tristaZero , Thank you for your reminder, I'm not familiar with the SQL parse, I think this is a good opportunity, I will often communicate with jingshang and you about this work.
Hi @ThanoshanMV Welcome! Could you comment something here so I can assign to U?
Hi @tristaZero, I'll try this one.
Hi @jingshanglu and @Icesource I saw your activities on this issue, and @ThanoshanMV still wan to be part of this one. Could you update which parts of this issue you are working on? So that we can take charge of the remaining ones.
Hi @jingshanglu and @Icesource I saw your activities on this issue, and @ThanoshanMV still wan to be part of this one. Could you update which parts of this issue you are working on? So that we can take charge of the remaining ones.
@tristaZero I'm working on DDL statements. Maybe you can start with other SQL statements.
Thank you @Icesource. First, I'll start with TCL and DAL.
Hi @jingshanglu, @tristaZero, @Icesource
I completed TCL and DAL statements. Please refer to the submitted PRs. If there is anything to be changed, please let me know.
Next, I'll try to work on DCL statements.
Hi @strongduanmu. In WITH dept_costs AS (SELECT department_name, SUM(salary) dept_total FROM departments d GROUP BY department_name) SELECT * FROM dept_costs WHERE dept_total > 304500 ORDER BY department_name
SQL statement, SubquerySegment
's startIndex should begin with parenthesis '(' or from the SELECT
statement?
Hi @ThanoshanMV, I don't think the startIndex of SubquerySegment should contain parentheses, it's just a simple wrapper around the select statement to identify the subquery.
Hi @ThanoshanMV, I don't think the startIndex of SubquerySegment should contain parentheses, it's just a simple wrapper around the select statement to identify the subquery.
Thank you @strongduanmu.
Sure @zrsaber.
Hello , this issue has not received a reply for several days. This issue is supposed to be closed.
This issue has not been finished, so I will reopen it.
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
Close because of staled.
Hi community,
This issue is to collate the SQL definitions of SQLServer. Therefore, we can support parsing more SQLs. We need your interaction! If you
then welcome!
Background
How is a SQL parsed?
SQL definition file
->(Parse to)AST
->(Visit it)SQLStatment
Process
SQL definitions
in Oficial SQL Doc and ShardingSphere SQL Docmvn install the current_file_module
xxxVisitor.class
)Notice
1.
Left recursion
can not work well in Antlr4,you can consider the following one,
subtask
1、DML
2、DDL-ALTER
3、DDL-CREATE
[x] create table offical doc
[x] create index offical doc
[x] create database offical doc
[x] create function offical doc
[x] create procedure offical doc
[ ] create service offical doc
[x] create view offical doc
[x] create trigger offical doc
[ ] create schema offical doc
[x] create sequence offical doc
4、DDL-DROP
[x] drop table offical doc
[x] drop index offical doc
[x] drop database offical doc
[x] drop function offical doc
[x] drop procedure offical doc
[ ] drop service offical doc
[x] drop view offical doc
[x] drop trigger offical doc
[ ] drop schema offical doc
[x] drop sequence offical doc
5、DCL
6、TCL
7、DAL