diff --git a/parser/testdata/accuratecast/explain.txt b/parser/testdata/accuratecast/explain.txt new file mode 100644 index 000000000..d472709a4 --- /dev/null +++ b/parser/testdata/accuratecast/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function accurateCast (children 1) + ExpressionList (children 2) + Literal Float64_123.456 + Literal \'Int32\' diff --git a/parser/testdata/add_column/explain.txt b/parser/testdata/add_column/explain.txt new file mode 100644 index 000000000..eea39e22c --- /dev/null +++ b/parser/testdata/add_column/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration new_col (children 1) + DataType UInt64 + Identifier test_table diff --git a/parser/testdata/add_column_after/explain.txt b/parser/testdata/add_column_after/explain.txt new file mode 100644 index 000000000..78b48f765 --- /dev/null +++ b/parser/testdata/add_column_after/explain.txt @@ -0,0 +1,7 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 2) + ColumnDeclaration new_col (children 1) + DataType UInt64 + Identifier id + Identifier test_table diff --git a/parser/testdata/add_column_if_not_exists/explain.txt b/parser/testdata/add_column_if_not_exists/explain.txt new file mode 100644 index 000000000..eea39e22c --- /dev/null +++ b/parser/testdata/add_column_if_not_exists/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration new_col (children 1) + DataType UInt64 + Identifier test_table diff --git a/parser/testdata/add_constraint/explain.txt b/parser/testdata/add_constraint/explain.txt new file mode 100644 index 000000000..7cc39c0ab --- /dev/null +++ b/parser/testdata/add_constraint/explain.txt @@ -0,0 +1,9 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand ADD_CONSTRAINT (children 1) + Constraint (children 1) + Function greater (children 1) + ExpressionList (children 2) + Identifier col + Literal UInt64_0 + Identifier test_table diff --git a/parser/testdata/add_index/explain.txt b/parser/testdata/add_index/explain.txt new file mode 100644 index 000000000..c018dd696 --- /dev/null +++ b/parser/testdata/add_index/explain.txt @@ -0,0 +1,8 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand ADD_INDEX (children 1) + Index (children 2) + Identifier col + Function minmax (children 1) + ExpressionList + Identifier test_table diff --git a/parser/testdata/adddays/explain.txt b/parser/testdata/adddays/explain.txt new file mode 100644 index 000000000..b0f87793c --- /dev/null +++ b/parser/testdata/adddays/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function addDays (children 1) + ExpressionList (children 2) + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2023-01-01\' + Literal UInt64_5 diff --git a/parser/testdata/addition/explain.txt b/parser/testdata/addition/explain.txt new file mode 100644 index 000000000..0c644b4cc --- /dev/null +++ b/parser/testdata/addition/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function plus (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/aggregate_array_combinator/explain.txt b/parser/testdata/aggregate_array_combinator/explain.txt new file mode 100644 index 000000000..6c4073edd --- /dev/null +++ b/parser/testdata/aggregate_array_combinator/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function sumArray (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/aggregate_merge_combinator/explain.txt b/parser/testdata/aggregate_merge_combinator/explain.txt new file mode 100644 index 000000000..3f6e571a3 --- /dev/null +++ b/parser/testdata/aggregate_merge_combinator/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function sumMerge (children 1) + ExpressionList (children 1) + Identifier sum_state + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier states_table diff --git a/parser/testdata/aggregate_state_combinator/explain.txt b/parser/testdata/aggregate_state_combinator/explain.txt new file mode 100644 index 000000000..6b3495f07 --- /dev/null +++ b/parser/testdata/aggregate_state_combinator/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function sumState (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/all_join/explain.txt b/parser/testdata/all_join/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/all_join/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/alter_add_column/explain.txt b/parser/testdata/alter_add_column/explain.txt new file mode 100644 index 000000000..16e8d3fdc --- /dev/null +++ b/parser/testdata/alter_add_column/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test (children 2) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration age (children 1) + DataType UInt32 + Identifier test diff --git a/parser/testdata/alter_drop_column/explain.txt b/parser/testdata/alter_drop_column/explain.txt new file mode 100644 index 000000000..895b4ecd5 --- /dev/null +++ b/parser/testdata/alter_drop_column/explain.txt @@ -0,0 +1,5 @@ +AlterQuery test (children 2) + ExpressionList (children 1) + AlterCommand DROP_COLUMN (children 1) + Identifier age + Identifier test diff --git a/parser/testdata/anti_join/explain.txt b/parser/testdata/anti_join/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/anti_join/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/any_join/explain.txt b/parser/testdata/any_join/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/any_join/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/arithmetic/explain.txt b/parser/testdata/arithmetic/explain.txt new file mode 100644 index 000000000..ec26ab304 --- /dev/null +++ b/parser/testdata/arithmetic/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function plus (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function multiply (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/array_constructor/explain.txt b/parser/testdata/array_constructor/explain.txt new file mode 100644 index 000000000..eb99630e0 --- /dev/null +++ b/parser/testdata/array_constructor/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function array (children 1) + ExpressionList (children 3) + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/array_join_basic/explain.txt b/parser/testdata/array_join_basic/explain.txt new file mode 100644 index 000000000..56eb163a2 --- /dev/null +++ b/parser/testdata/array_join_basic/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayJoin (children 1) + ExpressionList (children 1) + Literal Array_[\'Hello\', \'Goodbye\'] diff --git a/parser/testdata/array_join_nested/explain.txt b/parser/testdata/array_join_nested/explain.txt new file mode 100644 index 000000000..d1c5b9967 --- /dev/null +++ b/parser/testdata/array_join_nested/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function arrayJoin (alias x) (children 1) + ExpressionList (children 1) + Literal Array_[Array_[UInt64_3, UInt64_4, UInt64_5], Array_[UInt64_6, UInt64_7], Array_[UInt64_2], Array_[UInt64_1, UInt64_1]] + ExpressionList (children 1) + OrderByElement (children 1) + Identifier x diff --git a/parser/testdata/array_join_stmt/explain.txt b/parser/testdata/array_join_stmt/explain.txt new file mode 100644 index 000000000..ab679028b --- /dev/null +++ b/parser/testdata/array_join_stmt/explain.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier s + Identifier arr + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier arrays_test + TablesInSelectQueryElement (children 1) + ArrayJoin (children 1) + ExpressionList (children 1) + Identifier arr diff --git a/parser/testdata/array_join_with_alias/explain.txt b/parser/testdata/array_join_with_alias/explain.txt new file mode 100644 index 000000000..8607ddb1b --- /dev/null +++ b/parser/testdata/array_join_with_alias/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 3) + Identifier s + Identifier arr + Identifier a + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier arrays_test + TablesInSelectQueryElement (children 1) + ArrayJoin (children 1) + ExpressionList (children 1) + Identifier arr (alias a) diff --git a/parser/testdata/array_join_with_enumerate/explain.txt b/parser/testdata/array_join_with_enumerate/explain.txt new file mode 100644 index 000000000..fec6aa19d --- /dev/null +++ b/parser/testdata/array_join_with_enumerate/explain.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier s + Identifier arr + Identifier a + Identifier num + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier arrays_test + TablesInSelectQueryElement (children 1) + ArrayJoin (children 1) + ExpressionList (children 2) + Identifier arr (alias a) + Function arrayEnumerate (alias num) (children 1) + ExpressionList (children 1) + Identifier arr diff --git a/parser/testdata/array_join_with_map/explain.txt b/parser/testdata/array_join_with_map/explain.txt new file mode 100644 index 000000000..12d310e73 --- /dev/null +++ b/parser/testdata/array_join_with_map/explain.txt @@ -0,0 +1,28 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier s + Identifier arr + Identifier a + Identifier mapped + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier arrays_test + TablesInSelectQueryElement (children 1) + ArrayJoin (children 1) + ExpressionList (children 2) + Identifier arr (alias a) + Function arrayMap (alias mapped) (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function plus (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_1 + Identifier arr diff --git a/parser/testdata/array_literal/explain.txt b/parser/testdata/array_literal/explain.txt new file mode 100644 index 000000000..b5249a10e --- /dev/null +++ b/parser/testdata/array_literal/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/array_literal_hello_goodbye/explain.txt b/parser/testdata/array_literal_hello_goodbye/explain.txt new file mode 100644 index 000000000..c2b7fb37e --- /dev/null +++ b/parser/testdata/array_literal_hello_goodbye/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal Array_[\'Hello\', \'Goodbye\'] diff --git a/parser/testdata/array_subscript/explain.txt b/parser/testdata/array_subscript/explain.txt new file mode 100644 index 000000000..f882498fa --- /dev/null +++ b/parser/testdata/array_subscript/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayElement (children 1) + ExpressionList (children 2) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] + Literal UInt64_1 diff --git a/parser/testdata/arrayall_lambda/explain.txt b/parser/testdata/arrayall_lambda/explain.txt new file mode 100644 index 000000000..c2ce6b905 --- /dev/null +++ b/parser/testdata/arrayall_lambda/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayAll (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function greater (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_0 + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arraycompact/explain.txt b/parser/testdata/arraycompact/explain.txt new file mode 100644 index 000000000..fb3a2af01 --- /dev/null +++ b/parser/testdata/arraycompact/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayCompact (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_1, UInt64_2, UInt64_2, UInt64_3, UInt64_3] diff --git a/parser/testdata/arrayconcat/explain.txt b/parser/testdata/arrayconcat/explain.txt new file mode 100644 index 000000000..70fef2855 --- /dev/null +++ b/parser/testdata/arrayconcat/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayConcat (children 1) + ExpressionList (children 2) + Literal Array_[UInt64_1, UInt64_2] + Literal Array_[UInt64_3, UInt64_4] diff --git a/parser/testdata/arraydistinct/explain.txt b/parser/testdata/arraydistinct/explain.txt new file mode 100644 index 000000000..273c7d662 --- /dev/null +++ b/parser/testdata/arraydistinct/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayDistinct (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_1, UInt64_2, UInt64_2, UInt64_3, UInt64_3] diff --git a/parser/testdata/arrayelement/explain.txt b/parser/testdata/arrayelement/explain.txt new file mode 100644 index 000000000..f882498fa --- /dev/null +++ b/parser/testdata/arrayelement/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayElement (children 1) + ExpressionList (children 2) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] + Literal UInt64_1 diff --git a/parser/testdata/arrayenumerate/explain.txt b/parser/testdata/arrayenumerate/explain.txt new file mode 100644 index 000000000..d903db1f6 --- /dev/null +++ b/parser/testdata/arrayenumerate/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayEnumerate (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_10, UInt64_20, UInt64_30] diff --git a/parser/testdata/arrayenumerateuniq/explain.txt b/parser/testdata/arrayenumerateuniq/explain.txt new file mode 100644 index 000000000..53582af89 --- /dev/null +++ b/parser/testdata/arrayenumerateuniq/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayEnumerateUniq (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_10, UInt64_10, UInt64_20, UInt64_20] diff --git a/parser/testdata/arrayexists_lambda/explain.txt b/parser/testdata/arrayexists_lambda/explain.txt new file mode 100644 index 000000000..2a2a5c98a --- /dev/null +++ b/parser/testdata/arrayexists_lambda/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayExists (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function greater (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_2 + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arrayexists_lambda_position/explain.txt b/parser/testdata/arrayexists_lambda_position/explain.txt new file mode 100644 index 000000000..d7a44211d --- /dev/null +++ b/parser/testdata/arrayexists_lambda_position/explain.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayExists (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function greater (children 1) + ExpressionList (children 2) + Function position (children 1) + ExpressionList (children 2) + Identifier x + Literal \'a\' + Literal UInt64_0 + Literal Array_[\'a\'] diff --git a/parser/testdata/arrayfilter_lambda/explain.txt b/parser/testdata/arrayfilter_lambda/explain.txt new file mode 100644 index 000000000..d338faa2b --- /dev/null +++ b/parser/testdata/arrayfilter_lambda/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayFilter (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function greater (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_1 + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arrayfirst_lambda/explain.txt b/parser/testdata/arrayfirst_lambda/explain.txt new file mode 100644 index 000000000..6188a826a --- /dev/null +++ b/parser/testdata/arrayfirst_lambda/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayFirst (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function greater (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_1 + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arrayflatten/explain.txt b/parser/testdata/arrayflatten/explain.txt new file mode 100644 index 000000000..1aa397cf5 --- /dev/null +++ b/parser/testdata/arrayflatten/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayFlatten (children 1) + ExpressionList (children 1) + Literal Array_[Array_[UInt64_1, UInt64_2], Array_[UInt64_3, UInt64_4]] diff --git a/parser/testdata/arrayjoin/explain.txt b/parser/testdata/arrayjoin/explain.txt new file mode 100644 index 000000000..c22517781 --- /dev/null +++ b/parser/testdata/arrayjoin/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayJoin (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arraymap_lambda/explain.txt b/parser/testdata/arraymap_lambda/explain.txt new file mode 100644 index 000000000..751128a17 --- /dev/null +++ b/parser/testdata/arraymap_lambda/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayMap (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function plus (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_1 + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arraypopback/explain.txt b/parser/testdata/arraypopback/explain.txt new file mode 100644 index 000000000..afcb57b5f --- /dev/null +++ b/parser/testdata/arraypopback/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayPopBack (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arraypopfront/explain.txt b/parser/testdata/arraypopfront/explain.txt new file mode 100644 index 000000000..642136fb4 --- /dev/null +++ b/parser/testdata/arraypopfront/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayPopFront (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arraypushback/explain.txt b/parser/testdata/arraypushback/explain.txt new file mode 100644 index 000000000..f1621f683 --- /dev/null +++ b/parser/testdata/arraypushback/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayPushBack (children 1) + ExpressionList (children 2) + Literal Array_[UInt64_1, UInt64_2] + Literal UInt64_3 diff --git a/parser/testdata/arraypushfront/explain.txt b/parser/testdata/arraypushfront/explain.txt new file mode 100644 index 000000000..6a97d46ad --- /dev/null +++ b/parser/testdata/arraypushfront/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayPushFront (children 1) + ExpressionList (children 2) + Literal Array_[UInt64_2, UInt64_3] + Literal UInt64_1 diff --git a/parser/testdata/arrayreverse/explain.txt b/parser/testdata/arrayreverse/explain.txt new file mode 100644 index 000000000..2444d787b --- /dev/null +++ b/parser/testdata/arrayreverse/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayReverse (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/arrayslice/explain.txt b/parser/testdata/arrayslice/explain.txt new file mode 100644 index 000000000..9e14d18f9 --- /dev/null +++ b/parser/testdata/arrayslice/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arraySlice (children 1) + ExpressionList (children 3) + Literal Array_[UInt64_1, UInt64_2, UInt64_3, UInt64_4, UInt64_5] + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/arraysort/explain.txt b/parser/testdata/arraysort/explain.txt new file mode 100644 index 000000000..15274c1ed --- /dev/null +++ b/parser/testdata/arraysort/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arraySort (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_3, UInt64_1, UInt64_2] diff --git a/parser/testdata/arraysplit_lambda/explain.txt b/parser/testdata/arraysplit_lambda/explain.txt new file mode 100644 index 000000000..db09f799e --- /dev/null +++ b/parser/testdata/arraysplit_lambda/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arraySplit (children 1) + ExpressionList (children 2) + Function lambda (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 1) + Identifier x + Function equals (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_2 + Literal Array_[UInt64_1, UInt64_2, UInt64_3, UInt64_4] diff --git a/parser/testdata/arraystringconcat/explain.txt b/parser/testdata/arraystringconcat/explain.txt new file mode 100644 index 000000000..a6bfbd117 --- /dev/null +++ b/parser/testdata/arraystringconcat/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayStringConcat (children 1) + ExpressionList (children 2) + Literal Array_[\'a\', \'b\', \'c\'] + Literal \',\' diff --git a/parser/testdata/arrayuniq/explain.txt b/parser/testdata/arrayuniq/explain.txt new file mode 100644 index 000000000..0c79b452c --- /dev/null +++ b/parser/testdata/arrayuniq/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayUniq (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_1, UInt64_2, UInt64_2, UInt64_3] diff --git a/parser/testdata/assumenotnull/explain.txt b/parser/testdata/assumenotnull/explain.txt new file mode 100644 index 000000000..958790123 --- /dev/null +++ b/parser/testdata/assumenotnull/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function assumeNotNull (children 1) + ExpressionList (children 1) + Function toNullable (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/asterisk_with_except/explain.txt b/parser/testdata/asterisk_with_except/explain.txt new file mode 100644 index 000000000..4bdf04c81 --- /dev/null +++ b/parser/testdata/asterisk_with_except/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk (children 1) + ColumnsTransformerList (children 1) + ColumnsExceptTransformer (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table diff --git a/parser/testdata/asterisk_with_replace/explain.txt b/parser/testdata/asterisk_with_replace/explain.txt new file mode 100644 index 000000000..2dccd98ed --- /dev/null +++ b/parser/testdata/asterisk_with_replace/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk (children 1) + ColumnsTransformerList (children 1) + ColumnsReplaceTransformer (children 1) + ColumnsReplaceTransformer::Replacement (children 1) + Function plus (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table diff --git a/parser/testdata/attach_partition/explain.txt b/parser/testdata/attach_partition/explain.txt new file mode 100644 index 000000000..4ac10a28b --- /dev/null +++ b/parser/testdata/attach_partition/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand ATTACH_PARTITION (children 1) + Partition (children 1) + Literal UInt64_202301 + Identifier test_table diff --git a/parser/testdata/avg/explain.txt b/parser/testdata/avg/explain.txt new file mode 100644 index 000000000..e9e212bb9 --- /dev/null +++ b/parser/testdata/avg/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function avg (children 1) + ExpressionList (children 1) + Identifier price + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier products diff --git a/parser/testdata/avg_function/explain.txt b/parser/testdata/avg_function/explain.txt new file mode 100644 index 000000000..e8128be3b --- /dev/null +++ b/parser/testdata/avg_function/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function avg (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/avgif/explain.txt b/parser/testdata/avgif/explain.txt new file mode 100644 index 000000000..4f29bd412 --- /dev/null +++ b/parser/testdata/avgif/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function avgIf (children 1) + ExpressionList (children 2) + Identifier number + Function greater (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_5 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/base64decode/explain.txt b/parser/testdata/base64decode/explain.txt new file mode 100644 index 000000000..177c266ad --- /dev/null +++ b/parser/testdata/base64decode/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function base64Decode (children 1) + ExpressionList (children 1) + Literal \'aGVsbG8=\' diff --git a/parser/testdata/base64encode/explain.txt b/parser/testdata/base64encode/explain.txt new file mode 100644 index 000000000..0b426f028 --- /dev/null +++ b/parser/testdata/base64encode/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function base64Encode (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/between/explain.txt b/parser/testdata/between/explain.txt new file mode 100644 index 000000000..7392ea295 --- /dev/null +++ b/parser/testdata/between/explain.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function and (children 1) + ExpressionList (children 2) + Function greaterOrEquals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 + Function lessOrEquals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_10 diff --git a/parser/testdata/bitand/explain.txt b/parser/testdata/bitand/explain.txt new file mode 100644 index 000000000..440dcc4aa --- /dev/null +++ b/parser/testdata/bitand/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitAnd (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_3 diff --git a/parser/testdata/bitnot/explain.txt b/parser/testdata/bitnot/explain.txt new file mode 100644 index 000000000..a0367754e --- /dev/null +++ b/parser/testdata/bitnot/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitNot (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/bitor/explain.txt b/parser/testdata/bitor/explain.txt new file mode 100644 index 000000000..7245488d9 --- /dev/null +++ b/parser/testdata/bitor/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitOr (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/bitrotateleft/explain.txt b/parser/testdata/bitrotateleft/explain.txt new file mode 100644 index 000000000..bc5bf2141 --- /dev/null +++ b/parser/testdata/bitrotateleft/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitRotateLeft (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/bitrotateright/explain.txt b/parser/testdata/bitrotateright/explain.txt new file mode 100644 index 000000000..3c7989e99 --- /dev/null +++ b/parser/testdata/bitrotateright/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitRotateRight (children 1) + ExpressionList (children 2) + Literal UInt64_4 + Literal UInt64_1 diff --git a/parser/testdata/bitshiftleft/explain.txt b/parser/testdata/bitshiftleft/explain.txt new file mode 100644 index 000000000..d7b732d9f --- /dev/null +++ b/parser/testdata/bitshiftleft/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitShiftLeft (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/bitshiftright/explain.txt b/parser/testdata/bitshiftright/explain.txt new file mode 100644 index 000000000..9e9159396 --- /dev/null +++ b/parser/testdata/bitshiftright/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitShiftRight (children 1) + ExpressionList (children 2) + Literal UInt64_4 + Literal UInt64_1 diff --git a/parser/testdata/bittest/explain.txt b/parser/testdata/bittest/explain.txt new file mode 100644 index 000000000..092b97e83 --- /dev/null +++ b/parser/testdata/bittest/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitTest (children 1) + ExpressionList (children 2) + Literal UInt64_15 + Literal UInt64_0 diff --git a/parser/testdata/bittestall/explain.txt b/parser/testdata/bittestall/explain.txt new file mode 100644 index 000000000..4bb6f22df --- /dev/null +++ b/parser/testdata/bittestall/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitTestAll (children 1) + ExpressionList (children 5) + Literal UInt64_15 + Literal UInt64_0 + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/bittestany/explain.txt b/parser/testdata/bittestany/explain.txt new file mode 100644 index 000000000..6a87b3471 --- /dev/null +++ b/parser/testdata/bittestany/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitTestAny (children 1) + ExpressionList (children 3) + Literal UInt64_15 + Literal UInt64_0 + Literal UInt64_1 diff --git a/parser/testdata/bitxor/explain.txt b/parser/testdata/bitxor/explain.txt new file mode 100644 index 000000000..dedcf2c56 --- /dev/null +++ b/parser/testdata/bitxor/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function bitXor (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_3 diff --git a/parser/testdata/blocknumber/explain.txt b/parser/testdata/blocknumber/explain.txt new file mode 100644 index 000000000..53b5a011f --- /dev/null +++ b/parser/testdata/blocknumber/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function blockNumber (children 1) + ExpressionList diff --git a/parser/testdata/boolean_false/explain.txt b/parser/testdata/boolean_false/explain.txt new file mode 100644 index 000000000..d8b992a36 --- /dev/null +++ b/parser/testdata/boolean_false/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal Bool_0 diff --git a/parser/testdata/boolean_true/explain.txt b/parser/testdata/boolean_true/explain.txt new file mode 100644 index 000000000..2ad097df6 --- /dev/null +++ b/parser/testdata/boolean_true/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal Bool_1 diff --git a/parser/testdata/case_expression/explain.txt b/parser/testdata/case_expression/explain.txt new file mode 100644 index 000000000..871a4aa1b --- /dev/null +++ b/parser/testdata/case_expression/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function multiIf (children 1) + ExpressionList (children 3) + Function greater (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 + Literal \'big\' + Literal \'small\' + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/case_when_else/explain.txt b/parser/testdata/case_when_else/explain.txt new file mode 100644 index 000000000..974b34614 --- /dev/null +++ b/parser/testdata/case_when_else/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function multiIf (children 1) + ExpressionList (children 3) + Function greater (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_0 + Literal UInt64_1 + Literal UInt64_0 diff --git a/parser/testdata/cast_function/explain.txt b/parser/testdata/cast_function/explain.txt new file mode 100644 index 000000000..a9e31acd1 --- /dev/null +++ b/parser/testdata/cast_function/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function CAST (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal \'String\' diff --git a/parser/testdata/cast_operator/explain.txt b/parser/testdata/cast_operator/explain.txt new file mode 100644 index 000000000..cbf73a434 --- /dev/null +++ b/parser/testdata/cast_operator/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function CAST (children 1) + ExpressionList (children 2) + Literal \'1\' + Literal \'Int32\' diff --git a/parser/testdata/cityhash64/explain.txt b/parser/testdata/cityhash64/explain.txt new file mode 100644 index 000000000..44ed3bec7 --- /dev/null +++ b/parser/testdata/cityhash64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function cityHash64 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/clear_index/explain.txt b/parser/testdata/clear_index/explain.txt new file mode 100644 index 000000000..bb19729b4 --- /dev/null +++ b/parser/testdata/clear_index/explain.txt @@ -0,0 +1,5 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand DROP_INDEX (children 1) + Identifier idx + Identifier test_table diff --git a/parser/testdata/coalesce/explain.txt b/parser/testdata/coalesce/explain.txt new file mode 100644 index 000000000..c1f8d9633 --- /dev/null +++ b/parser/testdata/coalesce/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function coalesce (children 1) + ExpressionList (children 3) + Literal NULL + Literal NULL + Literal UInt64_1 diff --git a/parser/testdata/column_alias/explain.txt b/parser/testdata/column_alias/explain.txt new file mode 100644 index 000000000..e64282599 --- /dev/null +++ b/parser/testdata/column_alias/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 (alias x) diff --git a/parser/testdata/columns_matcher/explain.txt b/parser/testdata/columns_matcher/explain.txt new file mode 100644 index 000000000..0939f342f --- /dev/null +++ b/parser/testdata/columns_matcher/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + ColumnsRegexpMatcher + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table diff --git a/parser/testdata/comparison/explain.txt b/parser/testdata/comparison/explain.txt new file mode 100644 index 000000000..1070656e9 --- /dev/null +++ b/parser/testdata/comparison/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function less (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/complex_join_with_settings/explain.txt b/parser/testdata/complex_join_with_settings/explain.txt new file mode 100644 index 000000000..446b4c96a --- /dev/null +++ b/parser/testdata/complex_join_with_settings/explain.txt @@ -0,0 +1,60 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 4) + Identifier number + Identifier n + Identifier j1 + Identifier j2 + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (alias js1) (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function divide (alias n) (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_2 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.numbers + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Subquery (alias js2) (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 3) + Function divide (alias n) (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_3 + Identifier number (alias j1) + Literal \'Hello\' (alias j2) + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.numbers + Literal UInt64_10 + TableJoin (children 1) + ExpressionList (children 1) + Identifier n + Literal UInt64_10 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier n + Set diff --git a/parser/testdata/concat/explain.txt b/parser/testdata/concat/explain.txt new file mode 100644 index 000000000..76f1d1cf8 --- /dev/null +++ b/parser/testdata/concat/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function concat (children 1) + ExpressionList (children 3) + Literal \'hello\' + Literal \' \' + Literal \'world\' diff --git a/parser/testdata/conditional_ternary/explain.txt b/parser/testdata/conditional_ternary/explain.txt new file mode 100644 index 000000000..db8eaadbd --- /dev/null +++ b/parser/testdata/conditional_ternary/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function if (children 1) + ExpressionList (children 3) + Function greater (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_0 + Literal \'yes\' + Literal \'no\' diff --git a/parser/testdata/count/explain.txt b/parser/testdata/count/explain.txt new file mode 100644 index 000000000..667c7f0ac --- /dev/null +++ b/parser/testdata/count/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function count (children 1) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/count_star/explain.txt b/parser/testdata/count_star/explain.txt new file mode 100644 index 000000000..1133f3d74 --- /dev/null +++ b/parser/testdata/count_star/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function count (children 1) + ExpressionList (children 1) + Asterisk diff --git a/parser/testdata/countif/explain.txt b/parser/testdata/countif/explain.txt new file mode 100644 index 000000000..4bcb678e2 --- /dev/null +++ b/parser/testdata/countif/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function countIf (children 1) + ExpressionList (children 1) + Function greater (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_5 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/create_database/explain.txt b/parser/testdata/create_database/explain.txt new file mode 100644 index 000000000..8280bde71 --- /dev/null +++ b/parser/testdata/create_database/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/create_database_if_not_exists/explain.txt b/parser/testdata/create_database_if_not_exists/explain.txt new file mode 100644 index 000000000..8280bde71 --- /dev/null +++ b/parser/testdata/create_database_if_not_exists/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/create_database_with_engine/explain.txt b/parser/testdata/create_database_with_engine/explain.txt new file mode 100644 index 000000000..4941f12f7 --- /dev/null +++ b/parser/testdata/create_database_with_engine/explain.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/create_materialized_view/explain.txt b/parser/testdata/create_materialized_view/explain.txt new file mode 100644 index 000000000..4fbc0d07c --- /dev/null +++ b/parser/testdata/create_materialized_view/explain.txt @@ -0,0 +1,10 @@ +CreateQuery test_mv (children 3) + Identifier test_mv + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + ViewTargets (children 1) + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/create_materialized_view_aggregate/explain.txt b/parser/testdata/create_materialized_view_aggregate/explain.txt new file mode 100644 index 000000000..74a6d6588 --- /dev/null +++ b/parser/testdata/create_materialized_view_aggregate/explain.txt @@ -0,0 +1,31 @@ +CreateQuery basic_mv (children 3) + Identifier basic_mv + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 4) + Identifier CounterID + Identifier StartDate + Function sumState (alias Visits) (children 1) + ExpressionList (children 1) + Identifier Sign + Function uniqState (alias Users) (children 1) + ExpressionList (children 1) + Identifier UserID + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test.visits + ExpressionList (children 2) + Identifier CounterID + Identifier StartDate + ViewTargets (children 1) + Storage definition (children 1) + Function AggregatingMergeTree (children 1) + ExpressionList (children 3) + Identifier StartDate + Function tuple (children 1) + ExpressionList (children 2) + Identifier CounterID + Identifier StartDate + Literal UInt64_8192 diff --git a/parser/testdata/create_table/explain.txt b/parser/testdata/create_table/explain.txt new file mode 100644 index 000000000..00865a235 --- /dev/null +++ b/parser/testdata/create_table/explain.txt @@ -0,0 +1,12 @@ +CreateQuery test (children 3) + Identifier test + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 2) + Function MergeTree (children 1) + ExpressionList + Identifier id diff --git a/parser/testdata/create_table_as_select/explain.txt b/parser/testdata/create_table_as_select/explain.txt new file mode 100644 index 000000000..54396af3d --- /dev/null +++ b/parser/testdata/create_table_as_select/explain.txt @@ -0,0 +1,7 @@ +CreateQuery test_table (children 2) + Identifier test_table + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 (alias id) diff --git a/parser/testdata/create_table_if_not_exists/explain.txt b/parser/testdata/create_table_if_not_exists/explain.txt new file mode 100644 index 000000000..6fb719fb4 --- /dev/null +++ b/parser/testdata/create_table_if_not_exists/explain.txt @@ -0,0 +1,10 @@ +CreateQuery test (children 3) + Identifier test + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree (children 1) + ExpressionList + Identifier id diff --git a/parser/testdata/create_table_if_not_exists_ddl/explain.txt b/parser/testdata/create_table_if_not_exists_ddl/explain.txt new file mode 100644 index 000000000..51550472b --- /dev/null +++ b/parser/testdata/create_table_if_not_exists_ddl/explain.txt @@ -0,0 +1,8 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/create_table_memory/explain.txt b/parser/testdata/create_table_memory/explain.txt new file mode 100644 index 000000000..9317b5544 --- /dev/null +++ b/parser/testdata/create_table_memory/explain.txt @@ -0,0 +1,10 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/create_table_mergetree/explain.txt b/parser/testdata/create_table_mergetree/explain.txt new file mode 100644 index 000000000..ea75c9968 --- /dev/null +++ b/parser/testdata/create_table_mergetree/explain.txt @@ -0,0 +1,10 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree (children 1) + ExpressionList + Identifier id diff --git a/parser/testdata/create_table_with_codec/explain.txt b/parser/testdata/create_table_with_codec/explain.txt new file mode 100644 index 000000000..38a88fb5f --- /dev/null +++ b/parser/testdata/create_table_with_codec/explain.txt @@ -0,0 +1,11 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 2) + DataType UInt64 + Function CODEC (children 1) + ExpressionList (children 1) + Function LZ4 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/create_table_with_comment/explain.txt b/parser/testdata/create_table_with_comment/explain.txt new file mode 100644 index 000000000..a58a21cd9 --- /dev/null +++ b/parser/testdata/create_table_with_comment/explain.txt @@ -0,0 +1,9 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 2) + DataType UInt64 + Literal \'The ID\' + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/create_table_with_default/explain.txt b/parser/testdata/create_table_with_default/explain.txt new file mode 100644 index 000000000..79ad506bc --- /dev/null +++ b/parser/testdata/create_table_with_default/explain.txt @@ -0,0 +1,12 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 2) + DataType UInt64 + Literal UInt64_0 + ColumnDeclaration name (children 2) + DataType String + Literal \'\' + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/create_table_with_materialized/explain.txt b/parser/testdata/create_table_with_materialized/explain.txt new file mode 100644 index 000000000..847cb5285 --- /dev/null +++ b/parser/testdata/create_table_with_materialized/explain.txt @@ -0,0 +1,9 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 2) + DataType UInt64 + Literal UInt64_0 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/create_table_with_partition/explain.txt b/parser/testdata/create_table_with_partition/explain.txt new file mode 100644 index 000000000..ab750e574 --- /dev/null +++ b/parser/testdata/create_table_with_partition/explain.txt @@ -0,0 +1,15 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration dt (children 1) + DataType Date + Storage definition (children 3) + Function MergeTree (children 1) + ExpressionList + Function toYYYYMM (children 1) + ExpressionList (children 1) + Identifier dt + Identifier id diff --git a/parser/testdata/create_table_with_primary_key/explain.txt b/parser/testdata/create_table_with_primary_key/explain.txt new file mode 100644 index 000000000..9f2a39259 --- /dev/null +++ b/parser/testdata/create_table_with_primary_key/explain.txt @@ -0,0 +1,11 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree (children 1) + ExpressionList + Identifier id + Identifier id diff --git a/parser/testdata/create_table_with_settings/explain.txt b/parser/testdata/create_table_with_settings/explain.txt new file mode 100644 index 000000000..cb200ff08 --- /dev/null +++ b/parser/testdata/create_table_with_settings/explain.txt @@ -0,0 +1,11 @@ +CreateQuery test_table (children 3) + Identifier test_table + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree (children 1) + ExpressionList + Identifier id + Set diff --git a/parser/testdata/create_view/explain.txt b/parser/testdata/create_view/explain.txt new file mode 100644 index 000000000..d18115c29 --- /dev/null +++ b/parser/testdata/create_view/explain.txt @@ -0,0 +1,7 @@ +CreateQuery test_view (children 2) + Identifier test_view + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/create_view_if_not_exists/explain.txt b/parser/testdata/create_view_if_not_exists/explain.txt new file mode 100644 index 000000000..d18115c29 --- /dev/null +++ b/parser/testdata/create_view_if_not_exists/explain.txt @@ -0,0 +1,7 @@ +CreateQuery test_view (children 2) + Identifier test_view + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/currentdatabase/explain.txt b/parser/testdata/currentdatabase/explain.txt new file mode 100644 index 000000000..937386530 --- /dev/null +++ b/parser/testdata/currentdatabase/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function currentDatabase (children 1) + ExpressionList diff --git a/parser/testdata/currentuser/explain.txt b/parser/testdata/currentuser/explain.txt new file mode 100644 index 000000000..0e4f46e30 --- /dev/null +++ b/parser/testdata/currentuser/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function currentUser (children 1) + ExpressionList diff --git a/parser/testdata/cuturlparameter/explain.txt b/parser/testdata/cuturlparameter/explain.txt new file mode 100644 index 000000000..578812fdd --- /dev/null +++ b/parser/testdata/cuturlparameter/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function cutURLParameter (children 1) + ExpressionList (children 2) + Literal \'https://example.com?a=1&b=2\' + Literal \'a\' diff --git a/parser/testdata/dateadd/explain.txt b/parser/testdata/dateadd/explain.txt new file mode 100644 index 000000000..11975ef3a --- /dev/null +++ b/parser/testdata/dateadd/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function plus (children 1) + ExpressionList (children 2) + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2023-01-01\' + Function toIntervalDay (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/datediff/explain.txt b/parser/testdata/datediff/explain.txt new file mode 100644 index 000000000..61d6211d3 --- /dev/null +++ b/parser/testdata/datediff/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dateDiff (children 1) + ExpressionList (children 3) + Literal \'day\' + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2023-01-01\' + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2023-01-31\' diff --git a/parser/testdata/datesub/explain.txt b/parser/testdata/datesub/explain.txt new file mode 100644 index 000000000..861a18076 --- /dev/null +++ b/parser/testdata/datesub/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function minus (children 1) + ExpressionList (children 2) + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2023-01-02\' + Function toIntervalDay (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/dense_rank_function/explain.txt b/parser/testdata/dense_rank_function/explain.txt new file mode 100644 index 000000000..9ecaac006 --- /dev/null +++ b/parser/testdata/dense_rank_function/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function dense_rank (children 2) + ExpressionList + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/desc_table/explain.txt b/parser/testdata/desc_table/explain.txt new file mode 100644 index 000000000..f016a4354 --- /dev/null +++ b/parser/testdata/desc_table/explain.txt @@ -0,0 +1,3 @@ +DescribeQuery (children 1) + TableExpression (children 1) + TableIdentifier system.one diff --git a/parser/testdata/describe_short/explain.txt b/parser/testdata/describe_short/explain.txt new file mode 100644 index 000000000..f016a4354 --- /dev/null +++ b/parser/testdata/describe_short/explain.txt @@ -0,0 +1,3 @@ +DescribeQuery (children 1) + TableExpression (children 1) + TableIdentifier system.one diff --git a/parser/testdata/describe_table/explain.txt b/parser/testdata/describe_table/explain.txt new file mode 100644 index 000000000..8bb606792 --- /dev/null +++ b/parser/testdata/describe_table/explain.txt @@ -0,0 +1,3 @@ +DescribeQuery (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/describe_table_full/explain.txt b/parser/testdata/describe_table_full/explain.txt new file mode 100644 index 000000000..f016a4354 --- /dev/null +++ b/parser/testdata/describe_table_full/explain.txt @@ -0,0 +1,3 @@ +DescribeQuery (children 1) + TableExpression (children 1) + TableIdentifier system.one diff --git a/parser/testdata/detach_partition/explain.txt b/parser/testdata/detach_partition/explain.txt new file mode 100644 index 000000000..05a3f7dc5 --- /dev/null +++ b/parser/testdata/detach_partition/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand DROP_PARTITION (children 1) + Partition (children 1) + Literal UInt64_202301 + Identifier test_table diff --git a/parser/testdata/dictget/explain.txt b/parser/testdata/dictget/explain.txt new file mode 100644 index 000000000..dbe211f23 --- /dev/null +++ b/parser/testdata/dictget/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGet (children 1) + ExpressionList (children 3) + Literal \'dict_name\' + Literal \'attr\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/dictgetordefault/explain.txt b/parser/testdata/dictgetordefault/explain.txt new file mode 100644 index 000000000..7ba6d62aa --- /dev/null +++ b/parser/testdata/dictgetordefault/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetOrDefault (children 1) + ExpressionList (children 4) + Literal \'dict_name\' + Literal \'attr\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Literal \'default\' diff --git a/parser/testdata/dicthas/explain.txt b/parser/testdata/dicthas/explain.txt new file mode 100644 index 000000000..7c6bdf1e8 --- /dev/null +++ b/parser/testdata/dicthas/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictHas (children 1) + ExpressionList (children 2) + Literal \'dict_name\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/distinct_in_function/explain.txt b/parser/testdata/distinct_in_function/explain.txt new file mode 100644 index 000000000..480f4e617 --- /dev/null +++ b/parser/testdata/distinct_in_function/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function countDistinct (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/distinct_subquery/explain.txt b/parser/testdata/distinct_subquery/explain.txt new file mode 100644 index 000000000..89ab10980 --- /dev/null +++ b/parser/testdata/distinct_subquery/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier x + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal UInt64_1 (alias x) + Function arrayJoin (alias y) (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2] diff --git a/parser/testdata/domain/explain.txt b/parser/testdata/domain/explain.txt new file mode 100644 index 000000000..a1fa96bb1 --- /dev/null +++ b/parser/testdata/domain/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function domain (children 1) + ExpressionList (children 1) + Literal \'https://example.com/path\' diff --git a/parser/testdata/domainwithoutwww/explain.txt b/parser/testdata/domainwithoutwww/explain.txt new file mode 100644 index 000000000..8094ebe93 --- /dev/null +++ b/parser/testdata/domainwithoutwww/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function domainWithoutWWW (children 1) + ExpressionList (children 1) + Literal \'https://www.example.com\' diff --git a/parser/testdata/drop_column/explain.txt b/parser/testdata/drop_column/explain.txt new file mode 100644 index 000000000..ad7b58ef6 --- /dev/null +++ b/parser/testdata/drop_column/explain.txt @@ -0,0 +1,5 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand DROP_COLUMN (children 1) + Identifier old_col + Identifier test_table diff --git a/parser/testdata/drop_column_if_exists/explain.txt b/parser/testdata/drop_column_if_exists/explain.txt new file mode 100644 index 000000000..ad7b58ef6 --- /dev/null +++ b/parser/testdata/drop_column_if_exists/explain.txt @@ -0,0 +1,5 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand DROP_COLUMN (children 1) + Identifier old_col + Identifier test_table diff --git a/parser/testdata/drop_compiled_expression_cache/explain.txt b/parser/testdata/drop_compiled_expression_cache/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/drop_compiled_expression_cache/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/drop_constraint/explain.txt b/parser/testdata/drop_constraint/explain.txt new file mode 100644 index 000000000..66ceadaf3 --- /dev/null +++ b/parser/testdata/drop_constraint/explain.txt @@ -0,0 +1,5 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand DROP_CONSTRAINT (children 1) + Identifier c + Identifier test_table diff --git a/parser/testdata/drop_database/explain.txt b/parser/testdata/drop_database/explain.txt new file mode 100644 index 000000000..40c2b35af --- /dev/null +++ b/parser/testdata/drop_database/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/drop_database_if_exists/explain.txt b/parser/testdata/drop_database_if_exists/explain.txt new file mode 100644 index 000000000..40c2b35af --- /dev/null +++ b/parser/testdata/drop_database_if_exists/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/drop_dns_cache/explain.txt b/parser/testdata/drop_dns_cache/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/drop_dns_cache/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/drop_index/explain.txt b/parser/testdata/drop_index/explain.txt new file mode 100644 index 000000000..bb19729b4 --- /dev/null +++ b/parser/testdata/drop_index/explain.txt @@ -0,0 +1,5 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand DROP_INDEX (children 1) + Identifier idx + Identifier test_table diff --git a/parser/testdata/drop_mark_cache/explain.txt b/parser/testdata/drop_mark_cache/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/drop_mark_cache/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/drop_partition/explain.txt b/parser/testdata/drop_partition/explain.txt new file mode 100644 index 000000000..05a3f7dc5 --- /dev/null +++ b/parser/testdata/drop_partition/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand DROP_PARTITION (children 1) + Partition (children 1) + Literal UInt64_202301 + Identifier test_table diff --git a/parser/testdata/drop_table/explain.txt b/parser/testdata/drop_table/explain.txt new file mode 100644 index 000000000..3737a8cf5 --- /dev/null +++ b/parser/testdata/drop_table/explain.txt @@ -0,0 +1,2 @@ +DropQuery test (children 1) + Identifier test diff --git a/parser/testdata/drop_table_ddl/explain.txt b/parser/testdata/drop_table_ddl/explain.txt new file mode 100644 index 000000000..d4bf1aa3f --- /dev/null +++ b/parser/testdata/drop_table_ddl/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_table (children 1) + Identifier test_table diff --git a/parser/testdata/drop_table_if_exists/explain.txt b/parser/testdata/drop_table_if_exists/explain.txt new file mode 100644 index 000000000..3737a8cf5 --- /dev/null +++ b/parser/testdata/drop_table_if_exists/explain.txt @@ -0,0 +1,2 @@ +DropQuery test (children 1) + Identifier test diff --git a/parser/testdata/drop_table_if_exists_ddl/explain.txt b/parser/testdata/drop_table_if_exists_ddl/explain.txt new file mode 100644 index 000000000..d4bf1aa3f --- /dev/null +++ b/parser/testdata/drop_table_if_exists_ddl/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_table (children 1) + Identifier test_table diff --git a/parser/testdata/drop_table_sync/explain.txt b/parser/testdata/drop_table_sync/explain.txt new file mode 100644 index 000000000..d4bf1aa3f --- /dev/null +++ b/parser/testdata/drop_table_sync/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_table (children 1) + Identifier test_table diff --git a/parser/testdata/drop_uncompressed_cache/explain.txt b/parser/testdata/drop_uncompressed_cache/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/drop_uncompressed_cache/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/drop_view/explain.txt b/parser/testdata/drop_view/explain.txt new file mode 100644 index 000000000..8bbb0d82b --- /dev/null +++ b/parser/testdata/drop_view/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_view (children 1) + Identifier test_view diff --git a/parser/testdata/drop_view_if_exists/explain.txt b/parser/testdata/drop_view_if_exists/explain.txt new file mode 100644 index 000000000..8bbb0d82b --- /dev/null +++ b/parser/testdata/drop_view_if_exists/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_view (children 1) + Identifier test_view diff --git a/parser/testdata/empty_array/explain.txt b/parser/testdata/empty_array/explain.txt new file mode 100644 index 000000000..676a37068 --- /dev/null +++ b/parser/testdata/empty_array/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function emptyArrayUInt8 (children 1) + ExpressionList diff --git a/parser/testdata/empty_array_literal/explain.txt b/parser/testdata/empty_array_literal/explain.txt new file mode 100644 index 000000000..ee947e0c7 --- /dev/null +++ b/parser/testdata/empty_array_literal/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function array (children 1) + ExpressionList diff --git a/parser/testdata/empty_on_array/explain.txt b/parser/testdata/empty_on_array/explain.txt new file mode 100644 index 000000000..f948dfe2f --- /dev/null +++ b/parser/testdata/empty_on_array/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function empty (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/empty_string/explain.txt b/parser/testdata/empty_string/explain.txt new file mode 100644 index 000000000..39adecca3 --- /dev/null +++ b/parser/testdata/empty_string/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function empty (children 1) + ExpressionList (children 1) + Literal \'\' diff --git a/parser/testdata/exchange_tables/explain.txt b/parser/testdata/exchange_tables/explain.txt new file mode 100644 index 000000000..424334436 --- /dev/null +++ b/parser/testdata/exchange_tables/explain.txt @@ -0,0 +1,3 @@ +Rename (children 2) + Identifier table1 + Identifier table2 diff --git a/parser/testdata/exists_subquery/explain.txt b/parser/testdata/exists_subquery/explain.txt new file mode 100644 index 000000000..94fccfdbd --- /dev/null +++ b/parser/testdata/exists_subquery/explain.txt @@ -0,0 +1,29 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + Function exists (children 1) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Literal UInt64_1 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_5 + Function equals (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_1 diff --git a/parser/testdata/explain/explain.txt b/parser/testdata/explain/explain.txt new file mode 100644 index 000000000..b3facf84e --- /dev/null +++ b/parser/testdata/explain/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explain_ast/explain.txt b/parser/testdata/explain_ast/explain.txt new file mode 100644 index 000000000..d99fd0255 --- /dev/null +++ b/parser/testdata/explain_ast/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN AST (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explain_ast_stmt/explain.txt b/parser/testdata/explain_ast_stmt/explain.txt new file mode 100644 index 000000000..d99fd0255 --- /dev/null +++ b/parser/testdata/explain_ast_stmt/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN AST (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explain_estimate/explain.txt b/parser/testdata/explain_estimate/explain.txt new file mode 100644 index 000000000..9351cb644 --- /dev/null +++ b/parser/testdata/explain_estimate/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN ESTIMATE (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explain_pipeline/explain.txt b/parser/testdata/explain_pipeline/explain.txt new file mode 100644 index 000000000..401f6841e --- /dev/null +++ b/parser/testdata/explain_pipeline/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN PIPELINE (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explain_plan/explain.txt b/parser/testdata/explain_plan/explain.txt new file mode 100644 index 000000000..b3facf84e --- /dev/null +++ b/parser/testdata/explain_plan/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explain_stmt/explain.txt b/parser/testdata/explain_stmt/explain.txt new file mode 100644 index 000000000..b3facf84e --- /dev/null +++ b/parser/testdata/explain_stmt/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explain_syntax/explain.txt b/parser/testdata/explain_syntax/explain.txt new file mode 100644 index 000000000..badb9820f --- /dev/null +++ b/parser/testdata/explain_syntax/explain.txt @@ -0,0 +1,6 @@ +Explain EXPLAIN SYNTAX (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/explicit_cross_join/explain.txt b/parser/testdata/explicit_cross_join/explain.txt new file mode 100644 index 000000000..c8767344d --- /dev/null +++ b/parser/testdata/explicit_cross_join/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin diff --git a/parser/testdata/extract_regex/explain.txt b/parser/testdata/extract_regex/explain.txt new file mode 100644 index 000000000..2e2b07afc --- /dev/null +++ b/parser/testdata/extract_regex/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function extract (children 1) + ExpressionList (children 2) + Literal \'hello world\' + Literal \'w\\\\w+\' diff --git a/parser/testdata/extractall/explain.txt b/parser/testdata/extractall/explain.txt new file mode 100644 index 000000000..f68038a38 --- /dev/null +++ b/parser/testdata/extractall/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function extractAll (children 1) + ExpressionList (children 2) + Literal \'hello world\' + Literal \'\\\\w+\' diff --git a/parser/testdata/extracturlparameter/explain.txt b/parser/testdata/extracturlparameter/explain.txt new file mode 100644 index 000000000..32c7e08d4 --- /dev/null +++ b/parser/testdata/extracturlparameter/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function extractURLParameter (children 1) + ExpressionList (children 2) + Literal \'https://example.com?a=1&b=2\' + Literal \'a\' diff --git a/parser/testdata/extracturlparameternames/explain.txt b/parser/testdata/extracturlparameternames/explain.txt new file mode 100644 index 000000000..855735195 --- /dev/null +++ b/parser/testdata/extracturlparameternames/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function extractURLParameterNames (children 1) + ExpressionList (children 1) + Literal \'https://example.com?a=1&b=2\' diff --git a/parser/testdata/extracturlparameters/explain.txt b/parser/testdata/extracturlparameters/explain.txt new file mode 100644 index 000000000..8a9181c55 --- /dev/null +++ b/parser/testdata/extracturlparameters/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function extractURLParameters (children 1) + ExpressionList (children 1) + Literal \'https://example.com?a=1&b=2\' diff --git a/parser/testdata/first_value_function/explain.txt b/parser/testdata/first_value_function/explain.txt new file mode 100644 index 000000000..b5da13085 --- /dev/null +++ b/parser/testdata/first_value_function/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function first_value (children 2) + ExpressionList (children 1) + Identifier number + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/float_literal/explain.txt b/parser/testdata/float_literal/explain.txt new file mode 100644 index 000000000..48ab7cab7 --- /dev/null +++ b/parser/testdata/float_literal/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal Float64_3.14 diff --git a/parser/testdata/flush_logs/explain.txt b/parser/testdata/flush_logs/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/flush_logs/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/format_csv/explain.txt b/parser/testdata/format_csv/explain.txt new file mode 100644 index 000000000..370918e66 --- /dev/null +++ b/parser/testdata/format_csv/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier CSV diff --git a/parser/testdata/format_function/explain.txt b/parser/testdata/format_function/explain.txt new file mode 100644 index 000000000..9e3258e3a --- /dev/null +++ b/parser/testdata/format_function/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function format (children 1) + ExpressionList (children 3) + Literal \'{0} {1}\' + Literal \'hello\' + Literal \'world\' diff --git a/parser/testdata/format_json/explain.txt b/parser/testdata/format_json/explain.txt new file mode 100644 index 000000000..c601338bb --- /dev/null +++ b/parser/testdata/format_json/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier JSON diff --git a/parser/testdata/format_jsoncompact/explain.txt b/parser/testdata/format_jsoncompact/explain.txt new file mode 100644 index 000000000..8911dca3a --- /dev/null +++ b/parser/testdata/format_jsoncompact/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier JSONCompact diff --git a/parser/testdata/format_jsoneachrow/explain.txt b/parser/testdata/format_jsoneachrow/explain.txt new file mode 100644 index 000000000..353cc69fa --- /dev/null +++ b/parser/testdata/format_jsoneachrow/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier JSONEachRow diff --git a/parser/testdata/format_pretty/explain.txt b/parser/testdata/format_pretty/explain.txt new file mode 100644 index 000000000..199573598 --- /dev/null +++ b/parser/testdata/format_pretty/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier Pretty diff --git a/parser/testdata/format_tabseparated/explain.txt b/parser/testdata/format_tabseparated/explain.txt new file mode 100644 index 000000000..523fec89b --- /dev/null +++ b/parser/testdata/format_tabseparated/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier TabSeparated diff --git a/parser/testdata/format_tsv/explain.txt b/parser/testdata/format_tsv/explain.txt new file mode 100644 index 000000000..b65b532e0 --- /dev/null +++ b/parser/testdata/format_tsv/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier TSV diff --git a/parser/testdata/format_vertical/explain.txt b/parser/testdata/format_vertical/explain.txt new file mode 100644 index 000000000..f232dffce --- /dev/null +++ b/parser/testdata/format_vertical/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier Vertical diff --git a/parser/testdata/formatdatetime/explain.txt b/parser/testdata/formatdatetime/explain.txt new file mode 100644 index 000000000..d50ca3590 --- /dev/null +++ b/parser/testdata/formatdatetime/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function formatDateTime (children 1) + ExpressionList (children 2) + Function now (children 1) + ExpressionList + Literal \'%Y-%m-%d\' diff --git a/parser/testdata/fragment/explain.txt b/parser/testdata/fragment/explain.txt new file mode 100644 index 000000000..071cee5fd --- /dev/null +++ b/parser/testdata/fragment/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function fragment (children 1) + ExpressionList (children 1) + Literal \'https://example.com/path#section\' diff --git a/parser/testdata/freeze_partition/explain.txt b/parser/testdata/freeze_partition/explain.txt new file mode 100644 index 000000000..8fc39b757 --- /dev/null +++ b/parser/testdata/freeze_partition/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand FREEZE_PARTITION (children 1) + Partition (children 1) + Literal UInt64_202301 + Identifier test_table diff --git a/parser/testdata/freeze_table/explain.txt b/parser/testdata/freeze_table/explain.txt new file mode 100644 index 000000000..731441a4f --- /dev/null +++ b/parser/testdata/freeze_table/explain.txt @@ -0,0 +1,4 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand FREEZE_ALL + Identifier test_table diff --git a/parser/testdata/fromunixtimestamp/explain.txt b/parser/testdata/fromunixtimestamp/explain.txt new file mode 100644 index 000000000..ab382afb7 --- /dev/null +++ b/parser/testdata/fromunixtimestamp/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function fromUnixTimestamp (children 1) + ExpressionList (children 1) + Literal UInt64_1234567890 diff --git a/parser/testdata/full_join/explain.txt b/parser/testdata/full_join/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/full_join/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/function_with_multiple_args/explain.txt b/parser/testdata/function_with_multiple_args/explain.txt new file mode 100644 index 000000000..44e84b401 --- /dev/null +++ b/parser/testdata/function_with_multiple_args/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function substring (children 1) + ExpressionList (children 3) + Identifier name + Literal UInt64_1 + Literal UInt64_5 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/generateuuidv4/explain.txt b/parser/testdata/generateuuidv4/explain.txt new file mode 100644 index 000000000..c27f7c5cf --- /dev/null +++ b/parser/testdata/generateuuidv4/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function generateUUIDv4 (children 1) + ExpressionList diff --git a/parser/testdata/global_in/explain.txt b/parser/testdata/global_in/explain.txt new file mode 100644 index 000000000..8ccd32431 --- /dev/null +++ b/parser/testdata/global_in/explain.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table + Function globalIn (children 1) + ExpressionList (children 2) + Identifier id + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier other_table diff --git a/parser/testdata/global_join/explain.txt b/parser/testdata/global_join/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/global_join/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/global_not_in/explain.txt b/parser/testdata/global_not_in/explain.txt new file mode 100644 index 000000000..59d3c57f1 --- /dev/null +++ b/parser/testdata/global_not_in/explain.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table + Function globalNotIn (children 1) + ExpressionList (children 2) + Identifier id + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier other_table diff --git a/parser/testdata/group_by/explain.txt b/parser/testdata/group_by/explain.txt new file mode 100644 index 000000000..c8e722bbb --- /dev/null +++ b/parser/testdata/group_by/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + ExpressionList (children 1) + Identifier status diff --git a/parser/testdata/group_by_having/explain.txt b/parser/testdata/group_by_having/explain.txt new file mode 100644 index 000000000..7a2a372f6 --- /dev/null +++ b/parser/testdata/group_by_having/explain.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Function count (children 1) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + ExpressionList (children 1) + Identifier status + Function greater (children 1) + ExpressionList (children 2) + Function count (children 1) + ExpressionList (children 1) + Asterisk + Literal UInt64_1 diff --git a/parser/testdata/group_by_with_modulo/explain.txt b/parser/testdata/group_by_with_modulo/explain.txt new file mode 100644 index 000000000..084b5f6e2 --- /dev/null +++ b/parser/testdata/group_by_with_modulo/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_100 + ExpressionList (children 1) + Function modulo (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_10 diff --git a/parser/testdata/group_by_with_totals/explain.txt b/parser/testdata/group_by_with_totals/explain.txt new file mode 100644 index 000000000..d9a6bdd32 --- /dev/null +++ b/parser/testdata/group_by_with_totals/explain.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Function modulo (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_10 + Function count (children 1) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_100 + ExpressionList (children 1) + Function modulo (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_10 diff --git a/parser/testdata/grouparray/explain.txt b/parser/testdata/grouparray/explain.txt new file mode 100644 index 000000000..da985cedc --- /dev/null +++ b/parser/testdata/grouparray/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function groupArray (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/groupuniqarray/explain.txt b/parser/testdata/groupuniqarray/explain.txt new file mode 100644 index 000000000..f2ea5f21c --- /dev/null +++ b/parser/testdata/groupuniqarray/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function groupUniqArray (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/has_function/explain.txt b/parser/testdata/has_function/explain.txt new file mode 100644 index 000000000..8dcc81693 --- /dev/null +++ b/parser/testdata/has_function/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function has (children 1) + ExpressionList (children 2) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] + Literal UInt64_2 diff --git a/parser/testdata/hex/explain.txt b/parser/testdata/hex/explain.txt new file mode 100644 index 000000000..4b3ff4f0a --- /dev/null +++ b/parser/testdata/hex/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function hex (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/hostname/explain.txt b/parser/testdata/hostname/explain.txt new file mode 100644 index 000000000..ceac70c2f --- /dev/null +++ b/parser/testdata/hostname/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function hostName (children 1) + ExpressionList diff --git a/parser/testdata/if_function/explain.txt b/parser/testdata/if_function/explain.txt new file mode 100644 index 000000000..57be2bad0 --- /dev/null +++ b/parser/testdata/if_function/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function if (children 1) + ExpressionList (children 3) + Function greater (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_0 + Literal UInt64_1 + Literal UInt64_0 diff --git a/parser/testdata/ifnull/explain.txt b/parser/testdata/ifnull/explain.txt new file mode 100644 index 000000000..f6c413cd7 --- /dev/null +++ b/parser/testdata/ifnull/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function ifNull (children 1) + ExpressionList (children 2) + Literal NULL + Literal UInt64_0 diff --git a/parser/testdata/ignore/explain.txt b/parser/testdata/ignore/explain.txt new file mode 100644 index 000000000..9e7c93c35 --- /dev/null +++ b/parser/testdata/ignore/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function ignore (children 1) + ExpressionList (children 3) + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/ilike/explain.txt b/parser/testdata/ilike/explain.txt new file mode 100644 index 000000000..653f15dec --- /dev/null +++ b/parser/testdata/ilike/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function ilike (children 1) + ExpressionList (children 2) + Literal \'HELLO\' + Literal \'%ell%\' diff --git a/parser/testdata/implicit_cross_join/explain.txt b/parser/testdata/implicit_cross_join/explain.txt new file mode 100644 index 000000000..c8767344d --- /dev/null +++ b/parser/testdata/implicit_cross_join/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin diff --git a/parser/testdata/in_list/explain.txt b/parser/testdata/in_list/explain.txt new file mode 100644 index 000000000..5e0f1e1be --- /dev/null +++ b/parser/testdata/in_list/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function in (children 1) + ExpressionList (children 2) + Identifier id + Literal Tuple_(UInt64_1, UInt64_2, UInt64_3) diff --git a/parser/testdata/indexof/explain.txt b/parser/testdata/indexof/explain.txt new file mode 100644 index 000000000..6ff342a25 --- /dev/null +++ b/parser/testdata/indexof/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function indexOf (children 1) + ExpressionList (children 2) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] + Literal UInt64_2 diff --git a/parser/testdata/inner_join/explain.txt b/parser/testdata/inner_join/explain.txt new file mode 100644 index 000000000..97343415a --- /dev/null +++ b/parser/testdata/inner_join/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier orders + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier users.id + Identifier orders.user_id diff --git a/parser/testdata/inner_join_on/explain.txt b/parser/testdata/inner_join_on/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/inner_join_on/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/insert_format_csv/explain.txt b/parser/testdata/insert_format_csv/explain.txt new file mode 100644 index 000000000..9b03b6105 --- /dev/null +++ b/parser/testdata/insert_format_csv/explain.txt @@ -0,0 +1,2 @@ +InsertQuery (children 1) + Identifier test_table diff --git a/parser/testdata/insert_format_json/explain.txt b/parser/testdata/insert_format_json/explain.txt new file mode 100644 index 000000000..9b03b6105 --- /dev/null +++ b/parser/testdata/insert_format_json/explain.txt @@ -0,0 +1,2 @@ +InsertQuery (children 1) + Identifier test_table diff --git a/parser/testdata/insert_into/explain.txt b/parser/testdata/insert_into/explain.txt new file mode 100644 index 000000000..3e8bb849b --- /dev/null +++ b/parser/testdata/insert_into/explain.txt @@ -0,0 +1,5 @@ +InsertQuery (children 2) + Identifier users + ExpressionList (children 2) + Identifier id + Identifier name diff --git a/parser/testdata/insert_select/explain.txt b/parser/testdata/insert_select/explain.txt new file mode 100644 index 000000000..21d4a8c7f --- /dev/null +++ b/parser/testdata/insert_select/explain.txt @@ -0,0 +1,11 @@ +InsertQuery (children 2) + Identifier users + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier old_users diff --git a/parser/testdata/insert_select_ddl/explain.txt b/parser/testdata/insert_select_ddl/explain.txt new file mode 100644 index 000000000..672838dd5 --- /dev/null +++ b/parser/testdata/insert_select_ddl/explain.txt @@ -0,0 +1,15 @@ +InsertQuery (children 3) + Identifier test_table + ExpressionList (children 1) + Identifier id + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/insert_values/explain.txt b/parser/testdata/insert_values/explain.txt new file mode 100644 index 000000000..9b03b6105 --- /dev/null +++ b/parser/testdata/insert_values/explain.txt @@ -0,0 +1,2 @@ +InsertQuery (children 1) + Identifier test_table diff --git a/parser/testdata/insert_with_columns/explain.txt b/parser/testdata/insert_with_columns/explain.txt new file mode 100644 index 000000000..707d31a96 --- /dev/null +++ b/parser/testdata/insert_with_columns/explain.txt @@ -0,0 +1,5 @@ +InsertQuery (children 2) + Identifier test_table + ExpressionList (children 2) + Identifier id + Identifier name diff --git a/parser/testdata/integer_literal/explain.txt b/parser/testdata/integer_literal/explain.txt new file mode 100644 index 000000000..42828662e --- /dev/null +++ b/parser/testdata/integer_literal/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_42 diff --git a/parser/testdata/interval_add/explain.txt b/parser/testdata/interval_add/explain.txt new file mode 100644 index 000000000..abbd37d7b --- /dev/null +++ b/parser/testdata/interval_add/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function plus (children 1) + ExpressionList (children 2) + Function now (children 1) + ExpressionList + Function toIntervalDay (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/interval_subtract/explain.txt b/parser/testdata/interval_subtract/explain.txt new file mode 100644 index 000000000..5151c8757 --- /dev/null +++ b/parser/testdata/interval_subtract/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function minus (children 1) + ExpressionList (children 2) + Function now (children 1) + ExpressionList + Function toIntervalHour (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/into_outfile/explain.txt b/parser/testdata/into_outfile/explain.txt new file mode 100644 index 000000000..78ca0c1cc --- /dev/null +++ b/parser/testdata/into_outfile/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Literal \'output.csv\' diff --git a/parser/testdata/into_outfile_format/explain.txt b/parser/testdata/into_outfile_format/explain.txt new file mode 100644 index 000000000..d5b255825 --- /dev/null +++ b/parser/testdata/into_outfile_format/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 3) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Literal \'output.csv\' + Identifier CSV diff --git a/parser/testdata/ipv4numtostring/explain.txt b/parser/testdata/ipv4numtostring/explain.txt new file mode 100644 index 000000000..890ff19a7 --- /dev/null +++ b/parser/testdata/ipv4numtostring/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function IPv4NumToString (children 1) + ExpressionList (children 1) + Literal UInt64_3232235777 diff --git a/parser/testdata/ipv4stringtonum/explain.txt b/parser/testdata/ipv4stringtonum/explain.txt new file mode 100644 index 000000000..09c3915d8 --- /dev/null +++ b/parser/testdata/ipv4stringtonum/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'192.168.1.1\' diff --git a/parser/testdata/ipv6numtostring/explain.txt b/parser/testdata/ipv6numtostring/explain.txt new file mode 100644 index 000000000..50f553e2c --- /dev/null +++ b/parser/testdata/ipv6numtostring/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function IPv6NumToString (children 1) + ExpressionList (children 1) + Function toFixedString (children 1) + ExpressionList (children 2) + Literal \'0000000000000001\' + Literal UInt64_16 diff --git a/parser/testdata/is_not_null/explain.txt b/parser/testdata/is_not_null/explain.txt new file mode 100644 index 000000000..cc27f7940 --- /dev/null +++ b/parser/testdata/is_not_null/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function isNotNull (children 1) + ExpressionList (children 1) + Identifier name diff --git a/parser/testdata/is_null/explain.txt b/parser/testdata/is_null/explain.txt new file mode 100644 index 000000000..f7fee2ec0 --- /dev/null +++ b/parser/testdata/is_null/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function isNull (children 1) + ExpressionList (children 1) + Identifier name diff --git a/parser/testdata/join_using/explain.txt b/parser/testdata/join_using/explain.txt new file mode 100644 index 000000000..3cff2891e --- /dev/null +++ b/parser/testdata/join_using/explain.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + ExpressionList (children 1) + Identifier number diff --git a/parser/testdata/jsonextract/explain.txt b/parser/testdata/jsonextract/explain.txt new file mode 100644 index 000000000..3f6be4505 --- /dev/null +++ b/parser/testdata/jsonextract/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtract (children 1) + ExpressionList (children 3) + Literal \'{"a": 1}\' + Literal \'a\' + Literal \'Int32\' diff --git a/parser/testdata/jsonextractarrayraw/explain.txt b/parser/testdata/jsonextractarrayraw/explain.txt new file mode 100644 index 000000000..bf797745d --- /dev/null +++ b/parser/testdata/jsonextractarrayraw/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtractArrayRaw (children 1) + ExpressionList (children 2) + Literal \'{"a": [1,2,3]}\' + Literal \'a\' diff --git a/parser/testdata/jsonextractbool/explain.txt b/parser/testdata/jsonextractbool/explain.txt new file mode 100644 index 000000000..5084670d3 --- /dev/null +++ b/parser/testdata/jsonextractbool/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtractBool (children 1) + ExpressionList (children 2) + Literal \'{"a": true}\' + Literal \'a\' diff --git a/parser/testdata/jsonextractfloat/explain.txt b/parser/testdata/jsonextractfloat/explain.txt new file mode 100644 index 000000000..3e7d65a73 --- /dev/null +++ b/parser/testdata/jsonextractfloat/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtractFloat (children 1) + ExpressionList (children 2) + Literal \'{"a": 1.5}\' + Literal \'a\' diff --git a/parser/testdata/jsonextractint/explain.txt b/parser/testdata/jsonextractint/explain.txt new file mode 100644 index 000000000..fbaf37402 --- /dev/null +++ b/parser/testdata/jsonextractint/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtractInt (children 1) + ExpressionList (children 2) + Literal \'{"a": 1}\' + Literal \'a\' diff --git a/parser/testdata/jsonextractkeysandvalues/explain.txt b/parser/testdata/jsonextractkeysandvalues/explain.txt new file mode 100644 index 000000000..06c76fb92 --- /dev/null +++ b/parser/testdata/jsonextractkeysandvalues/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtractKeysAndValues (children 1) + ExpressionList (children 2) + Literal \'{"a": 1, "b": 2}\' + Literal \'Int32\' diff --git a/parser/testdata/jsonextractraw/explain.txt b/parser/testdata/jsonextractraw/explain.txt new file mode 100644 index 000000000..08e2a2227 --- /dev/null +++ b/parser/testdata/jsonextractraw/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtractRaw (children 1) + ExpressionList (children 2) + Literal \'{"a": [1,2,3]}\' + Literal \'a\' diff --git a/parser/testdata/jsonextractstring/explain.txt b/parser/testdata/jsonextractstring/explain.txt new file mode 100644 index 000000000..e42a0b420 --- /dev/null +++ b/parser/testdata/jsonextractstring/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function JSONExtractString (children 1) + ExpressionList (children 2) + Literal \'{"a": "b"}\' + Literal \'a\' diff --git a/parser/testdata/lag_function/explain.txt b/parser/testdata/lag_function/explain.txt new file mode 100644 index 000000000..e7245f45b --- /dev/null +++ b/parser/testdata/lag_function/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function lag (children 2) + ExpressionList (children 1) + Identifier number + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/last_value_function/explain.txt b/parser/testdata/last_value_function/explain.txt new file mode 100644 index 000000000..2372a025c --- /dev/null +++ b/parser/testdata/last_value_function/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function last_value (children 2) + ExpressionList (children 1) + Identifier number + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/lead_function/explain.txt b/parser/testdata/lead_function/explain.txt new file mode 100644 index 000000000..ffca4674d --- /dev/null +++ b/parser/testdata/lead_function/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function lead (children 2) + ExpressionList (children 1) + Identifier number + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/left_array_join/explain.txt b/parser/testdata/left_array_join/explain.txt new file mode 100644 index 000000000..8607ddb1b --- /dev/null +++ b/parser/testdata/left_array_join/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 3) + Identifier s + Identifier arr + Identifier a + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier arrays_test + TablesInSelectQueryElement (children 1) + ArrayJoin (children 1) + ExpressionList (children 1) + Identifier arr (alias a) diff --git a/parser/testdata/left_join/explain.txt b/parser/testdata/left_join/explain.txt new file mode 100644 index 000000000..97343415a --- /dev/null +++ b/parser/testdata/left_join/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier orders + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier users.id + Identifier orders.user_id diff --git a/parser/testdata/left_join_on/explain.txt b/parser/testdata/left_join_on/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/left_join_on/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/left_outer_join/explain.txt b/parser/testdata/left_outer_join/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/left_outer_join/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/leftpad/explain.txt b/parser/testdata/leftpad/explain.txt new file mode 100644 index 000000000..aeb33b7bc --- /dev/null +++ b/parser/testdata/leftpad/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function leftPad (children 1) + ExpressionList (children 3) + Literal \'123\' + Literal UInt64_5 + Literal \'0\' diff --git a/parser/testdata/length_on_array/explain.txt b/parser/testdata/length_on_array/explain.txt new file mode 100644 index 000000000..5f442ad48 --- /dev/null +++ b/parser/testdata/length_on_array/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function length (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/length_string/explain.txt b/parser/testdata/length_string/explain.txt new file mode 100644 index 000000000..8918b9986 --- /dev/null +++ b/parser/testdata/length_string/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function length (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/like/explain.txt b/parser/testdata/like/explain.txt new file mode 100644 index 000000000..64a8cc29e --- /dev/null +++ b/parser/testdata/like/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function like (children 1) + ExpressionList (children 2) + Identifier name + Literal \'%test%\' diff --git a/parser/testdata/like_regex/explain.txt b/parser/testdata/like_regex/explain.txt new file mode 100644 index 000000000..54b42328e --- /dev/null +++ b/parser/testdata/like_regex/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function like (children 1) + ExpressionList (children 2) + Literal \'hello\' + Literal \'%ell%\' diff --git a/parser/testdata/limit/explain.txt b/parser/testdata/limit/explain.txt new file mode 100644 index 000000000..cecede825 --- /dev/null +++ b/parser/testdata/limit/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Literal UInt64_10 diff --git a/parser/testdata/limit_offset/explain.txt b/parser/testdata/limit_offset/explain.txt new file mode 100644 index 000000000..675aa6b31 --- /dev/null +++ b/parser/testdata/limit_offset/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Literal UInt64_1 + Literal UInt64_5 + Literal UInt64_10 diff --git a/parser/testdata/logical_and/explain.txt b/parser/testdata/logical_and/explain.txt new file mode 100644 index 000000000..7b5212a41 --- /dev/null +++ b/parser/testdata/logical_and/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function and (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/logical_not/explain.txt b/parser/testdata/logical_not/explain.txt new file mode 100644 index 000000000..c6ac2a7a0 --- /dev/null +++ b/parser/testdata/logical_not/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function not (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/logical_not_true/explain.txt b/parser/testdata/logical_not_true/explain.txt new file mode 100644 index 000000000..ca7ee27d3 --- /dev/null +++ b/parser/testdata/logical_not_true/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function not (children 1) + ExpressionList (children 1) + Literal Bool_1 diff --git a/parser/testdata/logical_or/explain.txt b/parser/testdata/logical_or/explain.txt new file mode 100644 index 000000000..ac456115b --- /dev/null +++ b/parser/testdata/logical_or/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function or (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/lower/explain.txt b/parser/testdata/lower/explain.txt new file mode 100644 index 000000000..8ef2dbc4b --- /dev/null +++ b/parser/testdata/lower/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function lower (children 1) + ExpressionList (children 1) + Literal \'HELLO\' diff --git a/parser/testdata/ltrim/explain.txt b/parser/testdata/ltrim/explain.txt new file mode 100644 index 000000000..dcf2b619f --- /dev/null +++ b/parser/testdata/ltrim/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function trimLeft (children 1) + ExpressionList (children 1) + Literal \' hello\' diff --git a/parser/testdata/map_element_access/explain.txt b/parser/testdata/map_element_access/explain.txt new file mode 100644 index 000000000..c46f5f0f0 --- /dev/null +++ b/parser/testdata/map_element_access/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayElement (children 1) + ExpressionList (children 2) + Function map (children 1) + ExpressionList (children 2) + Literal \'key\' + Literal \'value\' + Literal \'key\' diff --git a/parser/testdata/map_function/explain.txt b/parser/testdata/map_function/explain.txt new file mode 100644 index 000000000..5630699a4 --- /dev/null +++ b/parser/testdata/map_function/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function map (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 diff --git a/parser/testdata/mapcontains/explain.txt b/parser/testdata/mapcontains/explain.txt new file mode 100644 index 000000000..21ba72cd1 --- /dev/null +++ b/parser/testdata/mapcontains/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function mapContains (children 1) + ExpressionList (children 2) + Function map (children 1) + ExpressionList (children 2) + Literal \'a\' + Literal UInt64_1 + Literal \'a\' diff --git a/parser/testdata/mapkeys/explain.txt b/parser/testdata/mapkeys/explain.txt new file mode 100644 index 000000000..43ef5dba2 --- /dev/null +++ b/parser/testdata/mapkeys/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function mapKeys (children 1) + ExpressionList (children 1) + Function map (children 1) + ExpressionList (children 4) + Literal \'a\' + Literal UInt64_1 + Literal \'b\' + Literal UInt64_2 diff --git a/parser/testdata/mapvalues/explain.txt b/parser/testdata/mapvalues/explain.txt new file mode 100644 index 000000000..773f857af --- /dev/null +++ b/parser/testdata/mapvalues/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function mapValues (children 1) + ExpressionList (children 1) + Function map (children 1) + ExpressionList (children 4) + Literal \'a\' + Literal UInt64_1 + Literal \'b\' + Literal UInt64_2 diff --git a/parser/testdata/match/explain.txt b/parser/testdata/match/explain.txt new file mode 100644 index 000000000..870d15ba0 --- /dev/null +++ b/parser/testdata/match/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function match (children 1) + ExpressionList (children 2) + Literal \'hello\' + Literal \'h.*o\' diff --git a/parser/testdata/materialize/explain.txt b/parser/testdata/materialize/explain.txt new file mode 100644 index 000000000..1abae3e95 --- /dev/null +++ b/parser/testdata/materialize/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function materialize (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/materialize_index/explain.txt b/parser/testdata/materialize_index/explain.txt new file mode 100644 index 000000000..72f7be4d1 --- /dev/null +++ b/parser/testdata/materialize_index/explain.txt @@ -0,0 +1,5 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand MATERIALIZE_INDEX (children 1) + Identifier idx + Identifier test_table diff --git a/parser/testdata/md5/explain.txt b/parser/testdata/md5/explain.txt new file mode 100644 index 000000000..2aff8a8ba --- /dev/null +++ b/parser/testdata/md5/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function MD5 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/min_max/explain.txt b/parser/testdata/min_max/explain.txt new file mode 100644 index 000000000..1ef702630 --- /dev/null +++ b/parser/testdata/min_max/explain.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function min (children 1) + ExpressionList (children 1) + Identifier id + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/min_max_functions/explain.txt b/parser/testdata/min_max_functions/explain.txt new file mode 100644 index 000000000..83f6a63f6 --- /dev/null +++ b/parser/testdata/min_max_functions/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Function min (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Function max (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/modify_column/explain.txt b/parser/testdata/modify_column/explain.txt new file mode 100644 index 000000000..437f1afc3 --- /dev/null +++ b/parser/testdata/modify_column/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand MODIFY_COLUMN (children 1) + ColumnDeclaration col (children 1) + DataType UInt64 + Identifier test_table diff --git a/parser/testdata/modify_ttl/explain.txt b/parser/testdata/modify_ttl/explain.txt new file mode 100644 index 000000000..1f5bf5c09 --- /dev/null +++ b/parser/testdata/modify_ttl/explain.txt @@ -0,0 +1,12 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand MODIFY_TTL (children 1) + ExpressionList (children 1) + TTLElement (children 1) + Function plus (children 1) + ExpressionList (children 2) + Identifier dt + Function toIntervalMonth (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Identifier test_table diff --git a/parser/testdata/multiif_function/explain.txt b/parser/testdata/multiif_function/explain.txt new file mode 100644 index 000000000..d65c7d785 --- /dev/null +++ b/parser/testdata/multiif_function/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function multiIf (children 1) + ExpressionList (children 5) + Function greater (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_0 + Literal UInt64_1 + Function greater (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Literal UInt64_0 + Literal UInt64_2 + Literal UInt64_0 diff --git a/parser/testdata/multiple_aliases/explain.txt b/parser/testdata/multiple_aliases/explain.txt new file mode 100644 index 000000000..2cda4d6ff --- /dev/null +++ b/parser/testdata/multiple_aliases/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal UInt64_1 (alias x) + Literal UInt64_2 (alias y) diff --git a/parser/testdata/multiple_tables/explain.txt b/parser/testdata/multiple_tables/explain.txt new file mode 100644 index 000000000..866876992 --- /dev/null +++ b/parser/testdata/multiple_tables/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier orders + TableJoin diff --git a/parser/testdata/multiplication_precedence/explain.txt b/parser/testdata/multiplication_precedence/explain.txt new file mode 100644 index 000000000..ec26ab304 --- /dev/null +++ b/parser/testdata/multiplication_precedence/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function plus (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function multiply (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/murmurhash2_32/explain.txt b/parser/testdata/murmurhash2_32/explain.txt new file mode 100644 index 000000000..5a1d053ef --- /dev/null +++ b/parser/testdata/murmurhash2_32/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function murmurHash2_32 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/murmurhash2_64/explain.txt b/parser/testdata/murmurhash2_64/explain.txt new file mode 100644 index 000000000..cf8243d39 --- /dev/null +++ b/parser/testdata/murmurhash2_64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function murmurHash2_64 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/murmurhash3_128/explain.txt b/parser/testdata/murmurhash3_128/explain.txt new file mode 100644 index 000000000..e92e9a84f --- /dev/null +++ b/parser/testdata/murmurhash3_128/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function murmurHash3_128 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/murmurhash3_32/explain.txt b/parser/testdata/murmurhash3_32/explain.txt new file mode 100644 index 000000000..4cd28ad28 --- /dev/null +++ b/parser/testdata/murmurhash3_32/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function murmurHash3_32 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/murmurhash3_64/explain.txt b/parser/testdata/murmurhash3_64/explain.txt new file mode 100644 index 000000000..da1dd92cd --- /dev/null +++ b/parser/testdata/murmurhash3_64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function murmurHash3_64 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/named_tuple_access/explain.txt b/parser/testdata/named_tuple_access/explain.txt new file mode 100644 index 000000000..678d308f2 --- /dev/null +++ b/parser/testdata/named_tuple_access/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal Tuple_(UInt64_1, UInt64_2, UInt64_3) (alias t) + Function tupleElement (children 1) + ExpressionList (children 2) + Identifier t + Literal UInt64_1 diff --git a/parser/testdata/named_window/explain.txt b/parser/testdata/named_window/explain.txt new file mode 100644 index 000000000..f8f838146 --- /dev/null +++ b/parser/testdata/named_window/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier number + Function sum (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + ExpressionList (children 1) + WindowListElement diff --git a/parser/testdata/neighbor/explain.txt b/parser/testdata/neighbor/explain.txt new file mode 100644 index 000000000..fd4cd357a --- /dev/null +++ b/parser/testdata/neighbor/explain.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function neighbor (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_1 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/nested_function_call/explain.txt b/parser/testdata/nested_function_call/explain.txt new file mode 100644 index 000000000..626f9712b --- /dev/null +++ b/parser/testdata/nested_function_call/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDate (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/nested_functions/explain.txt b/parser/testdata/nested_functions/explain.txt new file mode 100644 index 000000000..1a16764c5 --- /dev/null +++ b/parser/testdata/nested_functions/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function toDate (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/not_exists_subquery/explain.txt b/parser/testdata/not_exists_subquery/explain.txt new file mode 100644 index 000000000..c73ac87d0 --- /dev/null +++ b/parser/testdata/not_exists_subquery/explain.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + Function not (children 1) + ExpressionList (children 1) + Function exists (children 1) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Literal UInt64_0 diff --git a/parser/testdata/not_ilike/explain.txt b/parser/testdata/not_ilike/explain.txt new file mode 100644 index 000000000..824c13a5d --- /dev/null +++ b/parser/testdata/not_ilike/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function notILike (children 1) + ExpressionList (children 2) + Literal \'HELLO\' + Literal \'%xyz%\' diff --git a/parser/testdata/not_in/explain.txt b/parser/testdata/not_in/explain.txt new file mode 100644 index 000000000..f834df5b6 --- /dev/null +++ b/parser/testdata/not_in/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function notIn (children 1) + ExpressionList (children 2) + Identifier id + Literal Tuple_(UInt64_1, UInt64_2, UInt64_3) diff --git a/parser/testdata/not_like/explain.txt b/parser/testdata/not_like/explain.txt new file mode 100644 index 000000000..cca874984 --- /dev/null +++ b/parser/testdata/not_like/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function notLike (children 1) + ExpressionList (children 2) + Literal \'hello\' + Literal \'%xyz%\' diff --git a/parser/testdata/notempty_on_array/explain.txt b/parser/testdata/notempty_on_array/explain.txt new file mode 100644 index 000000000..3ed04150e --- /dev/null +++ b/parser/testdata/notempty_on_array/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function notEmpty (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/notempty_string/explain.txt b/parser/testdata/notempty_string/explain.txt new file mode 100644 index 000000000..77e22c34f --- /dev/null +++ b/parser/testdata/notempty_string/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function notEmpty (children 1) + ExpressionList (children 1) + Literal \'\' diff --git a/parser/testdata/now_function/explain.txt b/parser/testdata/now_function/explain.txt new file mode 100644 index 000000000..c8c2953c8 --- /dev/null +++ b/parser/testdata/now_function/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/nth_value_function/explain.txt b/parser/testdata/nth_value_function/explain.txt new file mode 100644 index 000000000..c7c26a330 --- /dev/null +++ b/parser/testdata/nth_value_function/explain.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function nth_value (children 2) + ExpressionList (children 2) + Identifier number + Literal UInt64_2 + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/null_literal/explain.txt b/parser/testdata/null_literal/explain.txt new file mode 100644 index 000000000..c67ca85d2 --- /dev/null +++ b/parser/testdata/null_literal/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal NULL diff --git a/parser/testdata/null_safe_equal/explain.txt b/parser/testdata/null_safe_equal/explain.txt new file mode 100644 index 000000000..3891134bb --- /dev/null +++ b/parser/testdata/null_safe_equal/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function isNotDistinctFrom (children 1) + ExpressionList (children 2) + Literal NULL + Literal NULL diff --git a/parser/testdata/nullif/explain.txt b/parser/testdata/nullif/explain.txt new file mode 100644 index 000000000..c79173b57 --- /dev/null +++ b/parser/testdata/nullif/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function nullIf (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_1 diff --git a/parser/testdata/numbers_function/explain.txt b/parser/testdata/numbers_function/explain.txt new file mode 100644 index 000000000..f8090559f --- /dev/null +++ b/parser/testdata/numbers_function/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/optimize_deduplicate/explain.txt b/parser/testdata/optimize_deduplicate/explain.txt new file mode 100644 index 000000000..07e75e1a0 --- /dev/null +++ b/parser/testdata/optimize_deduplicate/explain.txt @@ -0,0 +1,2 @@ +OptimizeQuery test_table_deduplicate (children 1) + Identifier test_table diff --git a/parser/testdata/optimize_final/explain.txt b/parser/testdata/optimize_final/explain.txt new file mode 100644 index 000000000..cb786f43a --- /dev/null +++ b/parser/testdata/optimize_final/explain.txt @@ -0,0 +1,2 @@ +OptimizeQuery test_table_final (children 1) + Identifier test_table diff --git a/parser/testdata/optimize_partition/explain.txt b/parser/testdata/optimize_partition/explain.txt new file mode 100644 index 000000000..cad0673ff --- /dev/null +++ b/parser/testdata/optimize_partition/explain.txt @@ -0,0 +1,4 @@ +OptimizeQuery test_table (children 2) + Partition (children 1) + Literal UInt64_202301 + Identifier test_table diff --git a/parser/testdata/optimize_table/explain.txt b/parser/testdata/optimize_table/explain.txt new file mode 100644 index 000000000..5f8cd4b32 --- /dev/null +++ b/parser/testdata/optimize_table/explain.txt @@ -0,0 +1,2 @@ +OptimizeQuery test_table (children 1) + Identifier test_table diff --git a/parser/testdata/order_by/explain.txt b/parser/testdata/order_by/explain.txt new file mode 100644 index 000000000..c6ac63946 --- /dev/null +++ b/parser/testdata/order_by/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + ExpressionList (children 1) + OrderByElement (children 1) + Literal UInt64_1 diff --git a/parser/testdata/order_by_asc/explain.txt b/parser/testdata/order_by_asc/explain.txt new file mode 100644 index 000000000..c6ac63946 --- /dev/null +++ b/parser/testdata/order_by_asc/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + ExpressionList (children 1) + OrderByElement (children 1) + Literal UInt64_1 diff --git a/parser/testdata/order_by_desc/explain.txt b/parser/testdata/order_by_desc/explain.txt new file mode 100644 index 000000000..c6ac63946 --- /dev/null +++ b/parser/testdata/order_by_desc/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + ExpressionList (children 1) + OrderByElement (children 1) + Literal UInt64_1 diff --git a/parser/testdata/order_by_desc_nulls_first/explain.txt b/parser/testdata/order_by_desc_nulls_first/explain.txt new file mode 100644 index 000000000..c6ac63946 --- /dev/null +++ b/parser/testdata/order_by_desc_nulls_first/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + ExpressionList (children 1) + OrderByElement (children 1) + Literal UInt64_1 diff --git a/parser/testdata/order_by_desc_nulls_last/explain.txt b/parser/testdata/order_by_desc_nulls_last/explain.txt new file mode 100644 index 000000000..c6ac63946 --- /dev/null +++ b/parser/testdata/order_by_desc_nulls_last/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + ExpressionList (children 1) + OrderByElement (children 1) + Literal UInt64_1 diff --git a/parser/testdata/order_by_with_fill/explain.txt b/parser/testdata/order_by_with_fill/explain.txt new file mode 100644 index 000000000..0c317efee --- /dev/null +++ b/parser/testdata/order_by_with_fill/explain.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number diff --git a/parser/testdata/order_by_with_fill_from_to/explain.txt b/parser/testdata/order_by_with_fill_from_to/explain.txt new file mode 100644 index 000000000..5ae233292 --- /dev/null +++ b/parser/testdata/order_by_with_fill_from_to/explain.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + ExpressionList (children 1) + OrderByElement (children 3) + Identifier number + Literal UInt64_0 + Literal UInt64_20 diff --git a/parser/testdata/order_by_with_fill_step/explain.txt b/parser/testdata/order_by_with_fill_step/explain.txt new file mode 100644 index 000000000..717288c21 --- /dev/null +++ b/parser/testdata/order_by_with_fill_step/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + ExpressionList (children 1) + OrderByElement (children 4) + Identifier number + Literal UInt64_0 + Literal UInt64_20 + Literal UInt64_2 diff --git a/parser/testdata/parentheses/explain.txt b/parser/testdata/parentheses/explain.txt new file mode 100644 index 000000000..655ee38e0 --- /dev/null +++ b/parser/testdata/parentheses/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function multiply (children 1) + ExpressionList (children 2) + Function plus (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/parentheses_precedence/explain.txt b/parser/testdata/parentheses_precedence/explain.txt new file mode 100644 index 000000000..655ee38e0 --- /dev/null +++ b/parser/testdata/parentheses_precedence/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function multiply (children 1) + ExpressionList (children 2) + Function plus (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/path/explain.txt b/parser/testdata/path/explain.txt new file mode 100644 index 000000000..e2167accf --- /dev/null +++ b/parser/testdata/path/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function path (children 1) + ExpressionList (children 1) + Literal \'https://example.com/path/to/page\' diff --git a/parser/testdata/pathfull/explain.txt b/parser/testdata/pathfull/explain.txt new file mode 100644 index 000000000..07a0efaca --- /dev/null +++ b/parser/testdata/pathfull/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function pathFull (children 1) + ExpressionList (children 1) + Literal \'https://example.com/path?query=1\' diff --git a/parser/testdata/position/explain.txt b/parser/testdata/position/explain.txt new file mode 100644 index 000000000..a1701d92c --- /dev/null +++ b/parser/testdata/position/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function position (children 1) + ExpressionList (children 2) + Literal \'hello\' + Literal \'l\' diff --git a/parser/testdata/positioncaseinsensitive/explain.txt b/parser/testdata/positioncaseinsensitive/explain.txt new file mode 100644 index 000000000..b9e8281da --- /dev/null +++ b/parser/testdata/positioncaseinsensitive/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function positionCaseInsensitive (children 1) + ExpressionList (children 2) + Literal \'HELLO\' + Literal \'l\' diff --git a/parser/testdata/prewhere/explain.txt b/parser/testdata/prewhere/explain.txt new file mode 100644 index 000000000..faedf2a17 --- /dev/null +++ b/parser/testdata/prewhere/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table + Function greater (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_0 diff --git a/parser/testdata/prewhere_and_where/explain.txt b/parser/testdata/prewhere_and_where/explain.txt new file mode 100644 index 000000000..197669cff --- /dev/null +++ b/parser/testdata/prewhere_and_where/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table + Function greater (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_0 + Function notEquals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'\' diff --git a/parser/testdata/protocol/explain.txt b/parser/testdata/protocol/explain.txt new file mode 100644 index 000000000..7f3f97614 --- /dev/null +++ b/parser/testdata/protocol/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function protocol (children 1) + ExpressionList (children 1) + Literal \'https://example.com/path\' diff --git a/parser/testdata/quantile_parametric/explain.txt b/parser/testdata/quantile_parametric/explain.txt new file mode 100644 index 000000000..0747ec282 --- /dev/null +++ b/parser/testdata/quantile_parametric/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function quantile (children 2) + ExpressionList (children 1) + Identifier number + ExpressionList (children 1) + Literal Float64_0.9 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_100 diff --git a/parser/testdata/quantiles_parametric/explain.txt b/parser/testdata/quantiles_parametric/explain.txt new file mode 100644 index 000000000..0eafc5ab7 --- /dev/null +++ b/parser/testdata/quantiles_parametric/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function quantiles (children 2) + ExpressionList (children 1) + Identifier number + ExpressionList (children 3) + Literal Float64_0.5 + Literal Float64_0.9 + Literal Float64_0.99 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_100 diff --git a/parser/testdata/querystring/explain.txt b/parser/testdata/querystring/explain.txt new file mode 100644 index 000000000..386aed9f4 --- /dev/null +++ b/parser/testdata/querystring/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function queryString (children 1) + ExpressionList (children 1) + Literal \'https://example.com/path?query=1\' diff --git a/parser/testdata/range_function/explain.txt b/parser/testdata/range_function/explain.txt new file mode 100644 index 000000000..33161fb9b --- /dev/null +++ b/parser/testdata/range_function/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function range (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/rank_function/explain.txt b/parser/testdata/rank_function/explain.txt new file mode 100644 index 000000000..e6a2a2297 --- /dev/null +++ b/parser/testdata/rank_function/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function rank (children 2) + ExpressionList + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/reinterpretasuint64/explain.txt b/parser/testdata/reinterpretasuint64/explain.txt new file mode 100644 index 000000000..5610980f7 --- /dev/null +++ b/parser/testdata/reinterpretasuint64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function reinterpretAsUInt64 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/reload_config/explain.txt b/parser/testdata/reload_config/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/reload_config/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/reload_dictionaries/explain.txt b/parser/testdata/reload_dictionaries/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/reload_dictionaries/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/rename_column/explain.txt b/parser/testdata/rename_column/explain.txt new file mode 100644 index 000000000..fd0f2fa30 --- /dev/null +++ b/parser/testdata/rename_column/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand RENAME_COLUMN (children 2) + Identifier old_name + Identifier new_name + Identifier test_table diff --git a/parser/testdata/rename_table/explain.txt b/parser/testdata/rename_table/explain.txt new file mode 100644 index 000000000..5b5554265 --- /dev/null +++ b/parser/testdata/rename_table/explain.txt @@ -0,0 +1,3 @@ +Rename (children 2) + Identifier old_table + Identifier new_table diff --git a/parser/testdata/repeat/explain.txt b/parser/testdata/repeat/explain.txt new file mode 100644 index 000000000..7d538bcae --- /dev/null +++ b/parser/testdata/repeat/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function repeat (children 1) + ExpressionList (children 2) + Literal \'abc\' + Literal UInt64_3 diff --git a/parser/testdata/replace_partition/explain.txt b/parser/testdata/replace_partition/explain.txt new file mode 100644 index 000000000..4e3124699 --- /dev/null +++ b/parser/testdata/replace_partition/explain.txt @@ -0,0 +1,6 @@ +AlterQuery test_table (children 2) + ExpressionList (children 1) + AlterCommand REPLACE_PARTITION (children 1) + Partition (children 1) + Literal UInt64_202301 + Identifier test_table diff --git a/parser/testdata/replaceall/explain.txt b/parser/testdata/replaceall/explain.txt new file mode 100644 index 000000000..fae79eab1 --- /dev/null +++ b/parser/testdata/replaceall/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function replaceAll (children 1) + ExpressionList (children 3) + Literal \'hello\' + Literal \'l\' + Literal \'x\' diff --git a/parser/testdata/replaceone/explain.txt b/parser/testdata/replaceone/explain.txt new file mode 100644 index 000000000..8a6490ff0 --- /dev/null +++ b/parser/testdata/replaceone/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function replaceOne (children 1) + ExpressionList (children 3) + Literal \'hello\' + Literal \'l\' + Literal \'x\' diff --git a/parser/testdata/restart_replica/explain.txt b/parser/testdata/restart_replica/explain.txt new file mode 100644 index 000000000..4375432bb --- /dev/null +++ b/parser/testdata/restart_replica/explain.txt @@ -0,0 +1,3 @@ +SYSTEM query (children 2) + Identifier system + Identifier one diff --git a/parser/testdata/reverse_string/explain.txt b/parser/testdata/reverse_string/explain.txt new file mode 100644 index 000000000..562fd0987 --- /dev/null +++ b/parser/testdata/reverse_string/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function reverse (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/right_join_on/explain.txt b/parser/testdata/right_join_on/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/right_join_on/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/rightpad/explain.txt b/parser/testdata/rightpad/explain.txt new file mode 100644 index 000000000..bf059fcfc --- /dev/null +++ b/parser/testdata/rightpad/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function rightPad (children 1) + ExpressionList (children 3) + Literal \'123\' + Literal UInt64_5 + Literal \'0\' diff --git a/parser/testdata/row_number_over_empty/explain.txt b/parser/testdata/row_number_over_empty/explain.txt new file mode 100644 index 000000000..aff2a1537 --- /dev/null +++ b/parser/testdata/row_number_over_empty/explain.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function row_number (children 2) + ExpressionList + WindowDefinition + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/row_number_over_order_by/explain.txt b/parser/testdata/row_number_over_order_by/explain.txt new file mode 100644 index 000000000..b032a2503 --- /dev/null +++ b/parser/testdata/row_number_over_order_by/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function row_number (children 2) + ExpressionList + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/rownumberinallblocks/explain.txt b/parser/testdata/rownumberinallblocks/explain.txt new file mode 100644 index 000000000..99079a4d0 --- /dev/null +++ b/parser/testdata/rownumberinallblocks/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function rowNumberInAllBlocks (children 1) + ExpressionList diff --git a/parser/testdata/rownumberinblock/explain.txt b/parser/testdata/rownumberinblock/explain.txt new file mode 100644 index 000000000..e4779d87d --- /dev/null +++ b/parser/testdata/rownumberinblock/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function rowNumberInBlock (children 1) + ExpressionList diff --git a/parser/testdata/rtrim/explain.txt b/parser/testdata/rtrim/explain.txt new file mode 100644 index 000000000..a7e34ab26 --- /dev/null +++ b/parser/testdata/rtrim/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function trimRight (children 1) + ExpressionList (children 1) + Literal \'hello \' diff --git a/parser/testdata/runningaccumulate/explain.txt b/parser/testdata/runningaccumulate/explain.txt new file mode 100644 index 000000000..072fbd995 --- /dev/null +++ b/parser/testdata/runningaccumulate/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function runningAccumulate (children 1) + ExpressionList (children 1) + Function sumState (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/runningdifference/explain.txt b/parser/testdata/runningdifference/explain.txt new file mode 100644 index 000000000..fe15af0be --- /dev/null +++ b/parser/testdata/runningdifference/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function runningDifference (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/sample/explain.txt b/parser/testdata/sample/explain.txt new file mode 100644 index 000000000..0bb521926 --- /dev/null +++ b/parser/testdata/sample/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 2) + TableIdentifier test_table + SampleRatio 1 / 10 diff --git a/parser/testdata/sample_n/explain.txt b/parser/testdata/sample_n/explain.txt new file mode 100644 index 000000000..8c4fd77b4 --- /dev/null +++ b/parser/testdata/sample_n/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 2) + TableIdentifier test_table + SampleRatio 1000 diff --git a/parser/testdata/sample_offset/explain.txt b/parser/testdata/sample_offset/explain.txt new file mode 100644 index 000000000..8e546f5f6 --- /dev/null +++ b/parser/testdata/sample_offset/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 3) + TableIdentifier test_table + SampleRatio 1 / 10 + SampleRatio 5 / 10 diff --git a/parser/testdata/scalar_subquery/explain.txt b/parser/testdata/scalar_subquery/explain.txt new file mode 100644 index 000000000..be752a4a7 --- /dev/null +++ b/parser/testdata/scalar_subquery/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/scalar_subquery_aggregate/explain.txt b/parser/testdata/scalar_subquery_aggregate/explain.txt new file mode 100644 index 000000000..9c7aceffc --- /dev/null +++ b/parser/testdata/scalar_subquery_aggregate/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/select_columns/explain.txt b/parser/testdata/select_columns/explain.txt new file mode 100644 index 000000000..700b2648d --- /dev/null +++ b/parser/testdata/select_columns/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier id + Identifier name + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/select_distinct/explain.txt b/parser/testdata/select_distinct/explain.txt new file mode 100644 index 000000000..15b5e01f2 --- /dev/null +++ b/parser/testdata/select_distinct/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier name + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/select_final/explain.txt b/parser/testdata/select_final/explain.txt new file mode 100644 index 000000000..3d3fc5477 --- /dev/null +++ b/parser/testdata/select_final/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_table diff --git a/parser/testdata/select_from_system_table/explain.txt b/parser/testdata/select_from_system_table/explain.txt new file mode 100644 index 000000000..c1b565496 --- /dev/null +++ b/parser/testdata/select_from_system_table/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.one diff --git a/parser/testdata/select_with_alias/explain.txt b/parser/testdata/select_with_alias/explain.txt new file mode 100644 index 000000000..e90ca7dfc --- /dev/null +++ b/parser/testdata/select_with_alias/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier id (alias user_id) + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/select_with_limit/explain.txt b/parser/testdata/select_with_limit/explain.txt new file mode 100644 index 000000000..409eec5c6 --- /dev/null +++ b/parser/testdata/select_with_limit/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Literal UInt64_10 diff --git a/parser/testdata/select_with_offset/explain.txt b/parser/testdata/select_with_offset/explain.txt new file mode 100644 index 000000000..feb062fbc --- /dev/null +++ b/parser/testdata/select_with_offset/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Literal UInt64_5 + Literal UInt64_10 diff --git a/parser/testdata/select_with_order/explain.txt b/parser/testdata/select_with_order/explain.txt new file mode 100644 index 000000000..625e44c49 --- /dev/null +++ b/parser/testdata/select_with_order/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + ExpressionList (children 1) + OrderByElement (children 1) + Identifier name diff --git a/parser/testdata/select_with_order_desc/explain.txt b/parser/testdata/select_with_order_desc/explain.txt new file mode 100644 index 000000000..ba1071d32 --- /dev/null +++ b/parser/testdata/select_with_order_desc/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/select_with_settings/explain.txt b/parser/testdata/select_with_settings/explain.txt new file mode 100644 index 000000000..f58e3fbda --- /dev/null +++ b/parser/testdata/select_with_settings/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Set diff --git a/parser/testdata/select_with_where/explain.txt b/parser/testdata/select_with_where/explain.txt new file mode 100644 index 000000000..581bf40e7 --- /dev/null +++ b/parser/testdata/select_with_where/explain.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 diff --git a/parser/testdata/semi_join/explain.txt b/parser/testdata/semi_join/explain.txt new file mode 100644 index 000000000..ae57e89c2 --- /dev/null +++ b/parser/testdata/semi_join/explain.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (alias a) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Function numbers (alias b) (children 1) + ExpressionList (children 1) + Literal UInt64_5 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier a.number + Identifier b.number diff --git a/parser/testdata/set_boolean_setting/explain.txt b/parser/testdata/set_boolean_setting/explain.txt new file mode 100644 index 000000000..cb1142253 --- /dev/null +++ b/parser/testdata/set_boolean_setting/explain.txt @@ -0,0 +1 @@ +Set diff --git a/parser/testdata/set_max_memory_usage/explain.txt b/parser/testdata/set_max_memory_usage/explain.txt new file mode 100644 index 000000000..cb1142253 --- /dev/null +++ b/parser/testdata/set_max_memory_usage/explain.txt @@ -0,0 +1 @@ +Set diff --git a/parser/testdata/set_max_threads/explain.txt b/parser/testdata/set_max_threads/explain.txt new file mode 100644 index 000000000..cb1142253 --- /dev/null +++ b/parser/testdata/set_max_threads/explain.txt @@ -0,0 +1 @@ +Set diff --git a/parser/testdata/set_setting/explain.txt b/parser/testdata/set_setting/explain.txt new file mode 100644 index 000000000..cb1142253 --- /dev/null +++ b/parser/testdata/set_setting/explain.txt @@ -0,0 +1 @@ +Set diff --git a/parser/testdata/sha1/explain.txt b/parser/testdata/sha1/explain.txt new file mode 100644 index 000000000..0e114f5e9 --- /dev/null +++ b/parser/testdata/sha1/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function SHA1 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/sha256/explain.txt b/parser/testdata/sha256/explain.txt new file mode 100644 index 000000000..8ad147d91 --- /dev/null +++ b/parser/testdata/sha256/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function SHA256 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/show_columns/explain.txt b/parser/testdata/show_columns/explain.txt new file mode 100644 index 000000000..96200a0c7 --- /dev/null +++ b/parser/testdata/show_columns/explain.txt @@ -0,0 +1 @@ +ShowColumns diff --git a/parser/testdata/show_create_database/explain.txt b/parser/testdata/show_create_database/explain.txt new file mode 100644 index 000000000..fb23bef7f --- /dev/null +++ b/parser/testdata/show_create_database/explain.txt @@ -0,0 +1,2 @@ +ShowCreateDatabaseQuery system (children 1) + Identifier system diff --git a/parser/testdata/show_create_table/explain.txt b/parser/testdata/show_create_table/explain.txt new file mode 100644 index 000000000..4e3a6730e --- /dev/null +++ b/parser/testdata/show_create_table/explain.txt @@ -0,0 +1,3 @@ +ShowCreateTableQuery system one (children 2) + Identifier system + Identifier one diff --git a/parser/testdata/show_databases/explain.txt b/parser/testdata/show_databases/explain.txt new file mode 100644 index 000000000..9cf4575c9 --- /dev/null +++ b/parser/testdata/show_databases/explain.txt @@ -0,0 +1 @@ +ShowTables diff --git a/parser/testdata/show_databases_stmt/explain.txt b/parser/testdata/show_databases_stmt/explain.txt new file mode 100644 index 000000000..9cf4575c9 --- /dev/null +++ b/parser/testdata/show_databases_stmt/explain.txt @@ -0,0 +1 @@ +ShowTables diff --git a/parser/testdata/show_dictionaries/explain.txt b/parser/testdata/show_dictionaries/explain.txt new file mode 100644 index 000000000..9cf4575c9 --- /dev/null +++ b/parser/testdata/show_dictionaries/explain.txt @@ -0,0 +1 @@ +ShowTables diff --git a/parser/testdata/show_processlist/explain.txt b/parser/testdata/show_processlist/explain.txt new file mode 100644 index 000000000..7a5e7380b --- /dev/null +++ b/parser/testdata/show_processlist/explain.txt @@ -0,0 +1 @@ +ShowProcesslistQuery diff --git a/parser/testdata/show_tables/explain.txt b/parser/testdata/show_tables/explain.txt new file mode 100644 index 000000000..9cf4575c9 --- /dev/null +++ b/parser/testdata/show_tables/explain.txt @@ -0,0 +1 @@ +ShowTables diff --git a/parser/testdata/show_tables_from/explain.txt b/parser/testdata/show_tables_from/explain.txt new file mode 100644 index 000000000..a3c174ff2 --- /dev/null +++ b/parser/testdata/show_tables_from/explain.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier system diff --git a/parser/testdata/show_tables_stmt/explain.txt b/parser/testdata/show_tables_stmt/explain.txt new file mode 100644 index 000000000..9cf4575c9 --- /dev/null +++ b/parser/testdata/show_tables_stmt/explain.txt @@ -0,0 +1 @@ +ShowTables diff --git a/parser/testdata/simple_select/explain.txt b/parser/testdata/simple_select/explain.txt new file mode 100644 index 000000000..8827c47de --- /dev/null +++ b/parser/testdata/simple_select/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/siphash64/explain.txt b/parser/testdata/siphash64/explain.txt new file mode 100644 index 000000000..36b6fca9e --- /dev/null +++ b/parser/testdata/siphash64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function sipHash64 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/sleep/explain.txt b/parser/testdata/sleep/explain.txt new file mode 100644 index 000000000..04ea5a250 --- /dev/null +++ b/parser/testdata/sleep/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function sleep (children 1) + ExpressionList (children 1) + Literal Float64_0.001 diff --git a/parser/testdata/splitbychar/explain.txt b/parser/testdata/splitbychar/explain.txt new file mode 100644 index 000000000..f5fd26d20 --- /dev/null +++ b/parser/testdata/splitbychar/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function splitByChar (children 1) + ExpressionList (children 2) + Literal \',\' + Literal \'a,b,c\' diff --git a/parser/testdata/splitbystring/explain.txt b/parser/testdata/splitbystring/explain.txt new file mode 100644 index 000000000..4d4aeca2e --- /dev/null +++ b/parser/testdata/splitbystring/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function splitByString (children 1) + ExpressionList (children 2) + Literal \',,\' + Literal \'a,,b,,c\' diff --git a/parser/testdata/start_fetches/explain.txt b/parser/testdata/start_fetches/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/start_fetches/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/start_merges/explain.txt b/parser/testdata/start_merges/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/start_merges/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/start_moves/explain.txt b/parser/testdata/start_moves/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/start_moves/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/start_replication_queues/explain.txt b/parser/testdata/start_replication_queues/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/start_replication_queues/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/start_ttl_merges/explain.txt b/parser/testdata/start_ttl_merges/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/start_ttl_merges/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/stop_fetches/explain.txt b/parser/testdata/stop_fetches/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/stop_fetches/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/stop_merges/explain.txt b/parser/testdata/stop_merges/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/stop_merges/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/stop_moves/explain.txt b/parser/testdata/stop_moves/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/stop_moves/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/stop_replication_queues/explain.txt b/parser/testdata/stop_replication_queues/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/stop_replication_queues/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/stop_ttl_merges/explain.txt b/parser/testdata/stop_ttl_merges/explain.txt new file mode 100644 index 000000000..1684cb9d8 --- /dev/null +++ b/parser/testdata/stop_ttl_merges/explain.txt @@ -0,0 +1 @@ +SYSTEM query diff --git a/parser/testdata/string_literal/explain.txt b/parser/testdata/string_literal/explain.txt new file mode 100644 index 000000000..681d1bcb8 --- /dev/null +++ b/parser/testdata/string_literal/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/subquery_in_from/explain.txt b/parser/testdata/subquery_in_from/explain.txt new file mode 100644 index 000000000..a4421e20c --- /dev/null +++ b/parser/testdata/subquery_in_from/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (alias t) (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users diff --git a/parser/testdata/subquery_in_from_basic/explain.txt b/parser/testdata/subquery_in_from_basic/explain.txt new file mode 100644 index 000000000..855e73a03 --- /dev/null +++ b/parser/testdata/subquery_in_from_basic/explain.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/subquery_in_from_with_alias/explain.txt b/parser/testdata/subquery_in_from_with_alias/explain.txt new file mode 100644 index 000000000..abe5234be --- /dev/null +++ b/parser/testdata/subquery_in_from_with_alias/explain.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (alias t) (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/subquery_in_in_clause/explain.txt b/parser/testdata/subquery_in_in_clause/explain.txt new file mode 100644 index 000000000..3c72b1dfb --- /dev/null +++ b/parser/testdata/subquery_in_in_clause/explain.txt @@ -0,0 +1,26 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + Function in (children 1) + ExpressionList (children 2) + Identifier number + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_5 diff --git a/parser/testdata/subquery_in_not_in_clause/explain.txt b/parser/testdata/subquery_in_not_in_clause/explain.txt new file mode 100644 index 000000000..61c74eede --- /dev/null +++ b/parser/testdata/subquery_in_not_in_clause/explain.txt @@ -0,0 +1,26 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + Function notIn (children 1) + ExpressionList (children 2) + Identifier number + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_5 diff --git a/parser/testdata/subquery_in_where/explain.txt b/parser/testdata/subquery_in_where/explain.txt new file mode 100644 index 000000000..c8b79fe62 --- /dev/null +++ b/parser/testdata/subquery_in_where/explain.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier users + Function in (children 1) + ExpressionList (children 2) + Identifier id + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier user_id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier orders diff --git a/parser/testdata/subquery_with_where/explain.txt b/parser/testdata/subquery_with_where/explain.txt new file mode 100644 index 000000000..a52e2eeaa --- /dev/null +++ b/parser/testdata/subquery_with_where/explain.txt @@ -0,0 +1,24 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier number (alias x) + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 + Function greater (children 1) + ExpressionList (children 2) + Identifier x + Literal UInt64_5 diff --git a/parser/testdata/substring/explain.txt b/parser/testdata/substring/explain.txt new file mode 100644 index 000000000..043d090af --- /dev/null +++ b/parser/testdata/substring/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function substring (children 1) + ExpressionList (children 3) + Literal \'hello\' + Literal UInt64_1 + Literal UInt64_3 diff --git a/parser/testdata/subtractdays/explain.txt b/parser/testdata/subtractdays/explain.txt new file mode 100644 index 000000000..6a969555a --- /dev/null +++ b/parser/testdata/subtractdays/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function subtractDays (children 1) + ExpressionList (children 2) + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2023-01-06\' + Literal UInt64_5 diff --git a/parser/testdata/sum/explain.txt b/parser/testdata/sum/explain.txt new file mode 100644 index 000000000..759aee997 --- /dev/null +++ b/parser/testdata/sum/explain.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function sum (children 1) + ExpressionList (children 1) + Identifier amount + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier orders diff --git a/parser/testdata/sum_function/explain.txt b/parser/testdata/sum_function/explain.txt new file mode 100644 index 000000000..2b7b69b9d --- /dev/null +++ b/parser/testdata/sum_function/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function sum (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/sum_over_empty/explain.txt b/parser/testdata/sum_over_empty/explain.txt new file mode 100644 index 000000000..acf414b73 --- /dev/null +++ b/parser/testdata/sum_over_empty/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function sum (children 2) + ExpressionList (children 1) + Identifier number + WindowDefinition + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/sum_over_order_by/explain.txt b/parser/testdata/sum_over_order_by/explain.txt new file mode 100644 index 000000000..70e67be03 --- /dev/null +++ b/parser/testdata/sum_over_order_by/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function sum (children 2) + ExpressionList (children 1) + Identifier number + WindowDefinition (children 1) + ExpressionList (children 1) + OrderByElement (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/sumif_with_lambda/explain.txt b/parser/testdata/sumif_with_lambda/explain.txt new file mode 100644 index 000000000..87001252a --- /dev/null +++ b/parser/testdata/sumif_with_lambda/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function sumIf (children 1) + ExpressionList (children 2) + Identifier number + Function greater (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_5 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/summerge_uniqmerge/explain.txt b/parser/testdata/summerge_uniqmerge/explain.txt new file mode 100644 index 000000000..a2f91b131 --- /dev/null +++ b/parser/testdata/summerge_uniqmerge/explain.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 3) + Identifier StartDate + Function sumMerge (alias Visits) (children 1) + ExpressionList (children 1) + Identifier Visits + Function uniqMerge (alias Users) (children 1) + ExpressionList (children 1) + Identifier Users + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier basic_mv + ExpressionList (children 1) + Identifier StartDate + ExpressionList (children 1) + OrderByElement (children 1) + Identifier StartDate diff --git a/parser/testdata/sync_replica/explain.txt b/parser/testdata/sync_replica/explain.txt new file mode 100644 index 000000000..4375432bb --- /dev/null +++ b/parser/testdata/sync_replica/explain.txt @@ -0,0 +1,3 @@ +SYSTEM query (children 2) + Identifier system + Identifier one diff --git a/parser/testdata/todate/explain.txt b/parser/testdata/todate/explain.txt new file mode 100644 index 000000000..e31a3a30d --- /dev/null +++ b/parser/testdata/todate/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2023-01-01\' diff --git a/parser/testdata/todatetime/explain.txt b/parser/testdata/todatetime/explain.txt new file mode 100644 index 000000000..7f054242f --- /dev/null +++ b/parser/testdata/todatetime/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime (children 1) + ExpressionList (children 1) + Literal \'2023-01-01 12:00:00\' diff --git a/parser/testdata/todatetime64/explain.txt b/parser/testdata/todatetime64/explain.txt new file mode 100644 index 000000000..f96e59e22 --- /dev/null +++ b/parser/testdata/todatetime64/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime64 (children 1) + ExpressionList (children 2) + Literal \'2023-01-01 12:00:00.123\' + Literal UInt64_3 diff --git a/parser/testdata/today/explain.txt b/parser/testdata/today/explain.txt new file mode 100644 index 000000000..be0836632 --- /dev/null +++ b/parser/testdata/today/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function today (children 1) + ExpressionList diff --git a/parser/testdata/todayofmonth/explain.txt b/parser/testdata/todayofmonth/explain.txt new file mode 100644 index 000000000..0be56a29b --- /dev/null +++ b/parser/testdata/todayofmonth/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDayOfMonth (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/todayofweek/explain.txt b/parser/testdata/todayofweek/explain.txt new file mode 100644 index 000000000..925a2aa08 --- /dev/null +++ b/parser/testdata/todayofweek/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDayOfWeek (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/todecimal32/explain.txt b/parser/testdata/todecimal32/explain.txt new file mode 100644 index 000000000..6e11f7423 --- /dev/null +++ b/parser/testdata/todecimal32/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDecimal32 (children 1) + ExpressionList (children 2) + Literal Float64_123.456 + Literal UInt64_2 diff --git a/parser/testdata/todecimal64/explain.txt b/parser/testdata/todecimal64/explain.txt new file mode 100644 index 000000000..b5a03e4af --- /dev/null +++ b/parser/testdata/todecimal64/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDecimal64 (children 1) + ExpressionList (children 2) + Literal Float64_123.456 + Literal UInt64_2 diff --git a/parser/testdata/tofixedstring/explain.txt b/parser/testdata/tofixedstring/explain.txt new file mode 100644 index 000000000..3a721770b --- /dev/null +++ b/parser/testdata/tofixedstring/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toFixedString (children 1) + ExpressionList (children 2) + Literal \'hello\' + Literal UInt64_10 diff --git a/parser/testdata/tofloat32/explain.txt b/parser/testdata/tofloat32/explain.txt new file mode 100644 index 000000000..ecd3545e4 --- /dev/null +++ b/parser/testdata/tofloat32/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toFloat32 (children 1) + ExpressionList (children 1) + Literal Float64_123.456 diff --git a/parser/testdata/tofloat64/explain.txt b/parser/testdata/tofloat64/explain.txt new file mode 100644 index 000000000..bb0e22488 --- /dev/null +++ b/parser/testdata/tofloat64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toFloat64 (children 1) + ExpressionList (children 1) + Literal Float64_123.456 diff --git a/parser/testdata/tohour/explain.txt b/parser/testdata/tohour/explain.txt new file mode 100644 index 000000000..ef72105e5 --- /dev/null +++ b/parser/testdata/tohour/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toHour (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/toint16/explain.txt b/parser/testdata/toint16/explain.txt new file mode 100644 index 000000000..76e96f8f6 --- /dev/null +++ b/parser/testdata/toint16/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toInt16 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/toint32/explain.txt b/parser/testdata/toint32/explain.txt new file mode 100644 index 000000000..96fa45a64 --- /dev/null +++ b/parser/testdata/toint32/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toInt32 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/toint64/explain.txt b/parser/testdata/toint64/explain.txt new file mode 100644 index 000000000..fdd4e8f3e --- /dev/null +++ b/parser/testdata/toint64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/toint8/explain.txt b/parser/testdata/toint8/explain.txt new file mode 100644 index 000000000..52facd445 --- /dev/null +++ b/parser/testdata/toint8/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toInt8 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/tointervalday/explain.txt b/parser/testdata/tointervalday/explain.txt new file mode 100644 index 000000000..87a0c4754 --- /dev/null +++ b/parser/testdata/tointervalday/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toIntervalDay (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/tointervalmonth/explain.txt b/parser/testdata/tointervalmonth/explain.txt new file mode 100644 index 000000000..eb04b312c --- /dev/null +++ b/parser/testdata/tointervalmonth/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toIntervalMonth (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/toipv4/explain.txt b/parser/testdata/toipv4/explain.txt new file mode 100644 index 000000000..76e4807f1 --- /dev/null +++ b/parser/testdata/toipv4/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toIPv4 (children 1) + ExpressionList (children 1) + Literal \'192.168.1.1\' diff --git a/parser/testdata/toipv6/explain.txt b/parser/testdata/toipv6/explain.txt new file mode 100644 index 000000000..5f44ee1c6 --- /dev/null +++ b/parser/testdata/toipv6/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toIPv6 (children 1) + ExpressionList (children 1) + Literal \'::1\' diff --git a/parser/testdata/tominute/explain.txt b/parser/testdata/tominute/explain.txt new file mode 100644 index 000000000..3fb90eda0 --- /dev/null +++ b/parser/testdata/tominute/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toMinute (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tomonday/explain.txt b/parser/testdata/tomonday/explain.txt new file mode 100644 index 000000000..d950178fd --- /dev/null +++ b/parser/testdata/tomonday/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toMonday (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tomonth/explain.txt b/parser/testdata/tomonth/explain.txt new file mode 100644 index 000000000..deec1427d --- /dev/null +++ b/parser/testdata/tomonth/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toMonth (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tonullable/explain.txt b/parser/testdata/tonullable/explain.txt new file mode 100644 index 000000000..db84cad67 --- /dev/null +++ b/parser/testdata/tonullable/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toNullable (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/topk_parametric/explain.txt b/parser/testdata/topk_parametric/explain.txt new file mode 100644 index 000000000..a20becc92 --- /dev/null +++ b/parser/testdata/topk_parametric/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function topK (children 2) + ExpressionList (children 1) + Identifier number + ExpressionList (children 1) + Literal UInt64_5 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_100 diff --git a/parser/testdata/topleveldomain/explain.txt b/parser/testdata/topleveldomain/explain.txt new file mode 100644 index 000000000..783a8e196 --- /dev/null +++ b/parser/testdata/topleveldomain/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function topLevelDomain (children 1) + ExpressionList (children 1) + Literal \'https://example.com\' diff --git a/parser/testdata/tosecond/explain.txt b/parser/testdata/tosecond/explain.txt new file mode 100644 index 000000000..febd082d4 --- /dev/null +++ b/parser/testdata/tosecond/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toSecond (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tostartofday/explain.txt b/parser/testdata/tostartofday/explain.txt new file mode 100644 index 000000000..ad041780e --- /dev/null +++ b/parser/testdata/tostartofday/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toStartOfDay (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tostartofhour/explain.txt b/parser/testdata/tostartofhour/explain.txt new file mode 100644 index 000000000..7e99976f9 --- /dev/null +++ b/parser/testdata/tostartofhour/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toStartOfHour (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tostartofminute/explain.txt b/parser/testdata/tostartofminute/explain.txt new file mode 100644 index 000000000..15e99859a --- /dev/null +++ b/parser/testdata/tostartofminute/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toStartOfMinute (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tostartofmonth/explain.txt b/parser/testdata/tostartofmonth/explain.txt new file mode 100644 index 000000000..cf33ef257 --- /dev/null +++ b/parser/testdata/tostartofmonth/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toStartOfMonth (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tostartofweek/explain.txt b/parser/testdata/tostartofweek/explain.txt new file mode 100644 index 000000000..78779b8b9 --- /dev/null +++ b/parser/testdata/tostartofweek/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toStartOfWeek (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tostartofyear/explain.txt b/parser/testdata/tostartofyear/explain.txt new file mode 100644 index 000000000..acf864fad --- /dev/null +++ b/parser/testdata/tostartofyear/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toStartOfYear (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/tostring/explain.txt b/parser/testdata/tostring/explain.txt new file mode 100644 index 000000000..29bf4516f --- /dev/null +++ b/parser/testdata/tostring/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toString (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/tostring_conversion/explain.txt b/parser/testdata/tostring_conversion/explain.txt new file mode 100644 index 000000000..29bf4516f --- /dev/null +++ b/parser/testdata/tostring_conversion/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toString (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/totypename_array/explain.txt b/parser/testdata/totypename_array/explain.txt new file mode 100644 index 000000000..30e4f561c --- /dev/null +++ b/parser/testdata/totypename_array/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toTypeName (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1, UInt64_2, UInt64_3] diff --git a/parser/testdata/totypename_int/explain.txt b/parser/testdata/totypename_int/explain.txt new file mode 100644 index 000000000..c769ae5bf --- /dev/null +++ b/parser/testdata/totypename_int/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toTypeName (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/totypename_string/explain.txt b/parser/testdata/totypename_string/explain.txt new file mode 100644 index 000000000..ec09787ca --- /dev/null +++ b/parser/testdata/totypename_string/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toTypeName (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/touint16/explain.txt b/parser/testdata/touint16/explain.txt new file mode 100644 index 000000000..5d1b34651 --- /dev/null +++ b/parser/testdata/touint16/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toUInt16 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/touint32/explain.txt b/parser/testdata/touint32/explain.txt new file mode 100644 index 000000000..b270d3ffa --- /dev/null +++ b/parser/testdata/touint32/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toUInt32 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/touint64/explain.txt b/parser/testdata/touint64/explain.txt new file mode 100644 index 000000000..706a96b2f --- /dev/null +++ b/parser/testdata/touint64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/touint8/explain.txt b/parser/testdata/touint8/explain.txt new file mode 100644 index 000000000..210571977 --- /dev/null +++ b/parser/testdata/touint8/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toUInt8 (children 1) + ExpressionList (children 1) + Literal UInt64_123 diff --git a/parser/testdata/tounixtimestamp/explain.txt b/parser/testdata/tounixtimestamp/explain.txt new file mode 100644 index 000000000..5fc588e27 --- /dev/null +++ b/parser/testdata/tounixtimestamp/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toUnixTimestamp (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/touuid/explain.txt b/parser/testdata/touuid/explain.txt new file mode 100644 index 000000000..a3a148318 --- /dev/null +++ b/parser/testdata/touuid/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toUUID (children 1) + ExpressionList (children 1) + Literal \'00000000-0000-0000-0000-000000000000\' diff --git a/parser/testdata/toyear/explain.txt b/parser/testdata/toyear/explain.txt new file mode 100644 index 000000000..344e289b7 --- /dev/null +++ b/parser/testdata/toyear/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toYear (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/transform_function/explain.txt b/parser/testdata/transform_function/explain.txt new file mode 100644 index 000000000..9095d170a --- /dev/null +++ b/parser/testdata/transform_function/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function transform (children 1) + ExpressionList (children 4) + Literal UInt64_1 + Literal Array_[UInt64_1, UInt64_2] + Literal Array_[UInt64_10, UInt64_20] + Literal UInt64_0 diff --git a/parser/testdata/trim/explain.txt b/parser/testdata/trim/explain.txt new file mode 100644 index 000000000..a41621d41 --- /dev/null +++ b/parser/testdata/trim/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function trimBoth (children 1) + ExpressionList (children 1) + Literal \' hello \' diff --git a/parser/testdata/truncate_table/explain.txt b/parser/testdata/truncate_table/explain.txt new file mode 100644 index 000000000..b901a5e5b --- /dev/null +++ b/parser/testdata/truncate_table/explain.txt @@ -0,0 +1,2 @@ +TruncateQuery test (children 1) + Identifier test diff --git a/parser/testdata/truncate_table_ddl/explain.txt b/parser/testdata/truncate_table_ddl/explain.txt new file mode 100644 index 000000000..ed163a101 --- /dev/null +++ b/parser/testdata/truncate_table_ddl/explain.txt @@ -0,0 +1,2 @@ +TruncateQuery test_table (children 1) + Identifier test_table diff --git a/parser/testdata/tuple_element_dot/explain.txt b/parser/testdata/tuple_element_dot/explain.txt new file mode 100644 index 000000000..d4799404c --- /dev/null +++ b/parser/testdata/tuple_element_dot/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function tupleElement (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 3) + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 + Literal UInt64_1 diff --git a/parser/testdata/tuple_element_subscript/explain.txt b/parser/testdata/tuple_element_subscript/explain.txt new file mode 100644 index 000000000..a07b08ed3 --- /dev/null +++ b/parser/testdata/tuple_element_subscript/explain.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function arrayElement (children 1) + ExpressionList (children 2) + Function tuple (children 1) + ExpressionList (children 3) + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 + Literal UInt64_1 diff --git a/parser/testdata/tuple_function/explain.txt b/parser/testdata/tuple_function/explain.txt new file mode 100644 index 000000000..6a0590a02 --- /dev/null +++ b/parser/testdata/tuple_function/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function tuple (children 1) + ExpressionList (children 3) + Literal UInt64_1 + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/tuple_literal/explain.txt b/parser/testdata/tuple_literal/explain.txt new file mode 100644 index 000000000..d763dbc37 --- /dev/null +++ b/parser/testdata/tuple_literal/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal Tuple_(UInt64_1, \'a\') diff --git a/parser/testdata/unary_minus/explain.txt b/parser/testdata/unary_minus/explain.txt new file mode 100644 index 000000000..671943f97 --- /dev/null +++ b/parser/testdata/unary_minus/explain.txt @@ -0,0 +1,5 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal Int64_-5 diff --git a/parser/testdata/unhex/explain.txt b/parser/testdata/unhex/explain.txt new file mode 100644 index 000000000..95ed20dc3 --- /dev/null +++ b/parser/testdata/unhex/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function unhex (children 1) + ExpressionList (children 1) + Literal \'68656C6C6F\' diff --git a/parser/testdata/union_all/explain.txt b/parser/testdata/union_all/explain.txt new file mode 100644 index 000000000..8aadabac2 --- /dev/null +++ b/parser/testdata/union_all/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 2) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_2 diff --git a/parser/testdata/union_distinct/explain.txt b/parser/testdata/union_distinct/explain.txt new file mode 100644 index 000000000..a2d3a7633 --- /dev/null +++ b/parser/testdata/union_distinct/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 2) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/uniq_sum_aggregate/explain.txt b/parser/testdata/uniq_sum_aggregate/explain.txt new file mode 100644 index 000000000..d241ba529 --- /dev/null +++ b/parser/testdata/uniq_sum_aggregate/explain.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Function uniq (children 1) + ExpressionList (children 1) + Identifier UserID + Function sum (children 1) + ExpressionList (children 1) + Identifier Sign + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test.visits + Function equals (children 1) + ExpressionList (children 2) + Identifier CounterID + Literal UInt64_942285 diff --git a/parser/testdata/upper/explain.txt b/parser/testdata/upper/explain.txt new file mode 100644 index 000000000..5d0605a3a --- /dev/null +++ b/parser/testdata/upper/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function upper (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/uptime/explain.txt b/parser/testdata/uptime/explain.txt new file mode 100644 index 000000000..7cdb9fb88 --- /dev/null +++ b/parser/testdata/uptime/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function uptime (children 1) + ExpressionList diff --git a/parser/testdata/use_database/explain.txt b/parser/testdata/use_database/explain.txt new file mode 100644 index 000000000..ba3949f06 --- /dev/null +++ b/parser/testdata/use_database/explain.txt @@ -0,0 +1,2 @@ +UseQuery mydb (children 1) + Identifier mydb diff --git a/parser/testdata/use_default/explain.txt b/parser/testdata/use_default/explain.txt new file mode 100644 index 000000000..54c11811c --- /dev/null +++ b/parser/testdata/use_default/explain.txt @@ -0,0 +1,2 @@ +UseQuery default (children 1) + Identifier default diff --git a/parser/testdata/use_system/explain.txt b/parser/testdata/use_system/explain.txt new file mode 100644 index 000000000..c70fa3b42 --- /dev/null +++ b/parser/testdata/use_system/explain.txt @@ -0,0 +1,2 @@ +UseQuery system (children 1) + Identifier system diff --git a/parser/testdata/uuidnumtostring/explain.txt b/parser/testdata/uuidnumtostring/explain.txt new file mode 100644 index 000000000..87fabaf71 --- /dev/null +++ b/parser/testdata/uuidnumtostring/explain.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function UUIDNumToString (children 1) + ExpressionList (children 1) + Function toFixedString (children 1) + ExpressionList (children 2) + Literal \'0000000000000000\' + Literal UInt64_16 diff --git a/parser/testdata/uuidstringtonum/explain.txt b/parser/testdata/uuidstringtonum/explain.txt new file mode 100644 index 000000000..b36cf4738 --- /dev/null +++ b/parser/testdata/uuidstringtonum/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function UUIDStringToNum (children 1) + ExpressionList (children 1) + Literal \'00000000-0000-0000-0000-000000000000\' diff --git a/parser/testdata/version/explain.txt b/parser/testdata/version/explain.txt new file mode 100644 index 000000000..c4d7e8958 --- /dev/null +++ b/parser/testdata/version/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function version (children 1) + ExpressionList diff --git a/parser/testdata/where_and_condition/explain.txt b/parser/testdata/where_and_condition/explain.txt new file mode 100644 index 000000000..54a547106 --- /dev/null +++ b/parser/testdata/where_and_condition/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Function and (children 1) + ExpressionList (children 2) + Function greater (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_0 + Function less (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Literal UInt64_3 diff --git a/parser/testdata/where_between/explain.txt b/parser/testdata/where_between/explain.txt new file mode 100644 index 000000000..09e8ec996 --- /dev/null +++ b/parser/testdata/where_between/explain.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Function and (children 1) + ExpressionList (children 2) + Function greaterOrEquals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_0 + Function lessOrEquals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_10 diff --git a/parser/testdata/where_equality/explain.txt b/parser/testdata/where_equality/explain.txt new file mode 100644 index 000000000..d79ac2ace --- /dev/null +++ b/parser/testdata/where_equality/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal UInt64_1 diff --git a/parser/testdata/where_in_list/explain.txt b/parser/testdata/where_in_list/explain.txt new file mode 100644 index 000000000..e422f8782 --- /dev/null +++ b/parser/testdata/where_in_list/explain.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Function in (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Literal Tuple_(UInt64_1, UInt64_2, UInt64_3) diff --git a/parser/testdata/where_is_not_null/explain.txt b/parser/testdata/where_is_not_null/explain.txt new file mode 100644 index 000000000..215c53ea9 --- /dev/null +++ b/parser/testdata/where_is_not_null/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Function isNotNull (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/where_is_null/explain.txt b/parser/testdata/where_is_null/explain.txt new file mode 100644 index 000000000..49d98d24b --- /dev/null +++ b/parser/testdata/where_is_null/explain.txt @@ -0,0 +1,8 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + Function isNull (children 1) + ExpressionList (children 1) + Literal NULL diff --git a/parser/testdata/window_frame_rows/explain.txt b/parser/testdata/window_frame_rows/explain.txt new file mode 100644 index 000000000..e0f0e4791 --- /dev/null +++ b/parser/testdata/window_frame_rows/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function avg (children 2) + ExpressionList (children 1) + Identifier number + WindowDefinition (children 2) + Literal UInt64_1 + Literal UInt64_1 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/with_scalar/explain.txt b/parser/testdata/with_scalar/explain.txt new file mode 100644 index 000000000..29d4f0a17 --- /dev/null +++ b/parser/testdata/with_scalar/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 (alias x) + ExpressionList (children 1) + Identifier x diff --git a/parser/testdata/with_subquery_cte/explain.txt b/parser/testdata/with_subquery_cte/explain.txt new file mode 100644 index 000000000..e8ac7890d --- /dev/null +++ b/parser/testdata/with_subquery_cte/explain.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier x diff --git a/parser/testdata/xxhash32/explain.txt b/parser/testdata/xxhash32/explain.txt new file mode 100644 index 000000000..a35267a08 --- /dev/null +++ b/parser/testdata/xxhash32/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function xxHash32 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/xxhash64/explain.txt b/parser/testdata/xxhash64/explain.txt new file mode 100644 index 000000000..334a4254c --- /dev/null +++ b/parser/testdata/xxhash64/explain.txt @@ -0,0 +1,7 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function xxHash64 (children 1) + ExpressionList (children 1) + Literal \'hello\' diff --git a/parser/testdata/yesterday/explain.txt b/parser/testdata/yesterday/explain.txt new file mode 100644 index 000000000..582dee513 --- /dev/null +++ b/parser/testdata/yesterday/explain.txt @@ -0,0 +1,6 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function yesterday (children 1) + ExpressionList