Skip to content

Commit 451f54e

Browse files
committed
feat: 更新语法定义,以便支持多条 sql
1 parent 461052f commit 451f54e

File tree

12 files changed

+8281
-8199
lines changed

12 files changed

+8281
-8199
lines changed

benchmark/data/create.sql

Lines changed: 1004 additions & 1000 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iotdb-sql-parser",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"authors": "CritasWang, IoTDB Community",
55
"description": "SQL Parser for IoTDB, built with antlr4, based on dt-sql-parser",
66
"keywords": [

src/grammar/iotdb-table/RelationalSql.g4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ statements
4242
;
4343

4444
singleStatement
45-
: statement EOF
45+
: statement SEMICOLON?
4646
;
4747

4848
standaloneExpression
49-
: expression EOF
49+
: expression SEMICOLON?
5050
;
5151

5252
standaloneType
53-
: type EOF
53+
: type SEMICOLON?
5454
;
5555

5656
standaloneRowPattern
57-
: rowPattern EOF
57+
: rowPattern SEMICOLON?
5858
;
5959

6060
statement

src/grammar/iotdb-tree/IoTDBSqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ statements
4444
*/
4545

4646
singleStatement
47-
: DEBUG? statement SEMI? EOF
47+
: statement SEMI?
4848
;
4949

5050
statement

src/lib/iotdb-table/RelationalSql.interp

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)