Skip to content

Commit 0a81a8f

Browse files
committed
Add explain_N.txt files for multi-statement test cases
Generate EXPLAIN AST output for statements 2+ in query.sql files that contain multiple SQL statements. This enables the parser test to test each statement as a subtest. - 99,169 new explain_N.txt files generated - Existing explain.txt files preserved unchanged - Some statements skipped due to intentionally invalid SQL
1 parent 7861eef commit 0a81a8f

99,157 files changed

Lines changed: 1577026 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SelectWithUnionQuery (children 1)
2+
ExpressionList (children 1)
3+
SelectQuery (children 6)
4+
ExpressionList (children 2)
5+
Identifier CounterID
6+
Function count (alias c) (children 1)
7+
ExpressionList
8+
TablesInSelectQuery (children 1)
9+
TablesInSelectQueryElement (children 1)
10+
TableExpression (children 1)
11+
TableIdentifier test.hits
12+
ExpressionList (children 1)
13+
Identifier CounterID
14+
ExpressionList (children 1)
15+
OrderByElement (children 1)
16+
Identifier c
17+
Literal UInt64_10
18+
Set
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
SelectWithUnionQuery (children 2)
2+
ExpressionList (children 1)
3+
SelectQuery (children 3)
4+
ExpressionList (children 1)
5+
Literal \'Hello, world\'
6+
TablesInSelectQuery (children 1)
7+
TablesInSelectQueryElement (children 1)
8+
TableExpression (children 1)
9+
Subquery (children 1)
10+
SelectWithUnionQuery (children 1)
11+
ExpressionList (children 1)
12+
SelectQuery (children 3)
13+
ExpressionList (children 1)
14+
Identifier number
15+
TablesInSelectQuery (children 1)
16+
TablesInSelectQueryElement (children 1)
17+
TableExpression (children 1)
18+
TableIdentifier system.numbers
19+
Literal UInt64_10
20+
Function less (children 1)
21+
ExpressionList (children 2)
22+
Identifier number
23+
Literal UInt64_0
24+
Identifier JSONCompact
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SelectWithUnionQuery (children 1)
2+
ExpressionList (children 1)
3+
SelectQuery (children 1)
4+
ExpressionList (children 2)
5+
Literal Array_[\'Hello\']
6+
Literal Array_[\'Goodbye\']
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SelectWithUnionQuery (children 1)
2+
ExpressionList (children 1)
3+
SelectQuery (children 1)
4+
ExpressionList (children 1)
5+
Function array (children 1)
6+
ExpressionList
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SelectWithUnionQuery (children 1)
2+
ExpressionList (children 1)
3+
SelectQuery (children 2)
4+
ExpressionList (children 2)
5+
Identifier x
6+
Identifier a
7+
TablesInSelectQuery (children 2)
8+
TablesInSelectQueryElement (children 1)
9+
TableExpression (children 1)
10+
Subquery (children 1)
11+
SelectWithUnionQuery (children 1)
12+
ExpressionList (children 1)
13+
SelectQuery (children 1)
14+
ExpressionList (children 2)
15+
Function arrayJoin (alias x) (children 1)
16+
ExpressionList (children 1)
17+
Literal Array_[\'Hello\', \'Goodbye\']
18+
Literal Array_[UInt64_1, UInt64_2, UInt64_3] (alias arr)
19+
TablesInSelectQueryElement (children 1)
20+
ArrayJoin (children 1)
21+
ExpressionList (children 1)
22+
Identifier arr (alias a)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
SelectWithUnionQuery (children 1)
2+
ExpressionList (children 1)
3+
SelectQuery (children 2)
4+
ExpressionList (children 5)
5+
Identifier s
6+
Identifier arr
7+
Identifier a
8+
Identifier num
9+
Identifier mapped
10+
TablesInSelectQuery (children 2)
11+
TablesInSelectQueryElement (children 1)
12+
TableExpression (children 1)
13+
TableIdentifier arrays_test
14+
TablesInSelectQueryElement (children 1)
15+
ArrayJoin (children 1)
16+
ExpressionList (children 3)
17+
Identifier arr (alias a)
18+
Function arrayEnumerate (alias num) (children 1)
19+
ExpressionList (children 1)
20+
Identifier arr
21+
Function arrayMap (alias mapped) (children 1)
22+
ExpressionList (children 2)
23+
Function lambda (children 1)
24+
ExpressionList (children 2)
25+
Function tuple (children 1)
26+
ExpressionList (children 1)
27+
Identifier x
28+
Function plus (children 1)
29+
ExpressionList (children 2)
30+
Identifier x
31+
Literal UInt64_1
32+
Identifier arr
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
SelectWithUnionQuery (children 1)
2+
ExpressionList (children 1)
3+
SelectQuery (children 2)
4+
ExpressionList (children 3)
5+
Function sumArray (children 1)
6+
ExpressionList (children 1)
7+
Identifier arr
8+
Function sumArrayIf (children 1)
9+
ExpressionList (children 2)
10+
Identifier arr
11+
Function like (children 1)
12+
ExpressionList (children 2)
13+
Identifier s
14+
Literal \'%l%\'
15+
Function sumArrayIf (children 1)
16+
ExpressionList (children 2)
17+
Identifier arr
18+
Function like (children 1)
19+
ExpressionList (children 2)
20+
Identifier s
21+
Literal \'%e%\'
22+
TablesInSelectQuery (children 1)
23+
TablesInSelectQueryElement (children 1)
24+
TableExpression (children 1)
25+
TableIdentifier arrays_test
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DropQuery arrays_test (children 1)
2+
Identifier arrays_test
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CreateQuery arrays_test (children 3)
2+
Identifier arrays_test
3+
Columns definition (children 1)
4+
ExpressionList (children 2)
5+
ColumnDeclaration s (children 1)
6+
DataType String
7+
ColumnDeclaration arr (children 1)
8+
DataType Array (children 1)
9+
ExpressionList (children 1)
10+
DataType UInt8
11+
Storage definition (children 1)
12+
Function Memory

0 commit comments

Comments
 (0)