diff --git a/cmd/regenerate-explain/main.go b/cmd/regenerate-explain/main.go index 9c172d2dee..ee5535a156 100644 --- a/cmd/regenerate-explain/main.go +++ b/cmd/regenerate-explain/main.go @@ -753,7 +753,11 @@ var localClient = &http.Client{ Transport: &http.Transport{Proxy: nil, MaxIdleConnsPerHost: 64}, } -const httpURL = "http://127.0.0.1:8123/" +// httpURL sets the database-name parameters that ClickHouse's own test +// runner sets. Without them ClickHouse refuses to explain statements that +// use {CLICKHOUSE_DATABASE:Identifier}. The parser tests substitute the +// same names (see substituteTestParams in parser/parser_test.go). +const httpURL = "http://127.0.0.1:8123/?param_CLICKHOUSE_DATABASE=test_db¶m_CLICKHOUSE_DATABASE_1=test_db_1¶m_CLICKHOUSE_DATABASE_2=test_db_2" func truncate(s string, n int) string { s = strings.ReplaceAll(s, "\n", " ") diff --git a/parser/parser_test.go b/parser/parser_test.go index ea9cb919f4..df51a7b59d 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -280,7 +280,7 @@ func TestParser(t *testing.T) { defer cancel() // Parse this statement - stmts, parseErr := parser.Parse(ctx, strings.NewReader(stmt)) + stmts, parseErr := parser.Parse(ctx, strings.NewReader(substituteTestParams(stmt))) if len(stmts) == 0 { // If parse_error is true, this is expected - the query is intentionally invalid if metadata.ParseError { @@ -421,3 +421,19 @@ func inOpenString(s string) bool { } return open } + +// testParamReplacer substitutes the database-name parameters that +// ClickHouse's test runner sets. ClickHouse replaces them before EXPLAIN, +// and cmd/regenerate-explain passes the same values. +var testParamReplacer = strings.NewReplacer( + "{CLICKHOUSE_DATABASE:Identifier}", "test_db", + "{CLICKHOUSE_DATABASE:String}", "'test_db'", + "{CLICKHOUSE_DATABASE_1:Identifier}", "test_db_1", + "{CLICKHOUSE_DATABASE_1:String}", "'test_db_1'", + "{CLICKHOUSE_DATABASE_2:Identifier}", "test_db_2", + "{CLICKHOUSE_DATABASE_2:String}", "'test_db_2'", +) + +func substituteTestParams(stmt string) string { + return testParamReplacer.Replace(stmt) +} diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain.txt b/parser/testdata/00080_show_tables_and_system_tables/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_10.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_10.txt new file mode 100644 index 0000000000..0f6302cc4b --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_10.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test_log (children 4) + Identifier test_db + Identifier test_log + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 1) + Function Log diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_11.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_11.txt new file mode 100644 index 0000000000..b1ba378950 --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_11.txt @@ -0,0 +1,15 @@ +CreateQuery test_db test_materialized (children 4) + Identifier test_db + Identifier test_materialized + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_log + ViewTargets (children 1) + Storage definition (children 1) + Function Log diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_13.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_13.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_14.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_14.txt new file mode 100644 index 0000000000..ad7d61b2a7 --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_14.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_15.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_15.txt new file mode 100644 index 0000000000..129b2a2254 --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_15.txt @@ -0,0 +1,9 @@ +CreateQuery test_db A (children 4) + Identifier test_db + Identifier A + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration A (children 1) + DataType UInt8 + Storage definition (children 1) + Function Null diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_2.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_2.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_3.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_3.txt new file mode 100644 index 0000000000..cc2305bf68 --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_3.txt @@ -0,0 +1,9 @@ +CreateQuery test_db A (children 4) + Identifier test_db + Identifier A + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration A (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_4.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_4.txt new file mode 100644 index 0000000000..994c5656b9 --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_4.txt @@ -0,0 +1,9 @@ +CreateQuery test_db B (children 4) + Identifier test_db + Identifier B + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration A (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/00080_show_tables_and_system_tables/explain_5.txt b/parser/testdata/00080_show_tables_and_system_tables/explain_5.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/00080_show_tables_and_system_tables/explain_5.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/00080_show_tables_and_system_tables/metadata.json b/parser/testdata/00080_show_tables_and_system_tables/metadata.json index 0967ef424b..7b4455cd5f 100644 --- a/parser/testdata/00080_show_tables_and_system_tables/metadata.json +++ b/parser/testdata/00080_show_tables_and_system_tables/metadata.json @@ -1 +1,5 @@ -{} +{ + "explain_todo": { + "stmt16": true + } +} diff --git a/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_15.txt b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_15.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_15.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_16.txt b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_16.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_16.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_40.txt b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_40.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_40.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_41.txt b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_41.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/explain_41.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00157_cache_dictionary/explain_12.txt b/parser/testdata/00157_cache_dictionary/explain_12.txt new file mode 100644 index 0000000000..4acf5b45c1 --- /dev/null +++ b/parser/testdata/00157_cache_dictionary/explain_12.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_hits (children 2) + Identifier test_db_1 + Identifier cache_hits diff --git a/parser/testdata/00157_cache_dictionary/explain_13.txt b/parser/testdata/00157_cache_dictionary/explain_13.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/00157_cache_dictionary/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00157_cache_dictionary/explain_5.txt b/parser/testdata/00157_cache_dictionary/explain_5.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/00157_cache_dictionary/explain_5.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00157_cache_dictionary/explain_6.txt b/parser/testdata/00157_cache_dictionary/explain_6.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/00157_cache_dictionary/explain_6.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00157_cache_dictionary/explain_7.txt b/parser/testdata/00157_cache_dictionary/explain_7.txt new file mode 100644 index 0000000000..4acf5b45c1 --- /dev/null +++ b/parser/testdata/00157_cache_dictionary/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_hits (children 2) + Identifier test_db_1 + Identifier cache_hits diff --git a/parser/testdata/00157_cache_dictionary/explain_8.txt b/parser/testdata/00157_cache_dictionary/explain_8.txt new file mode 100644 index 0000000000..ce162566f4 --- /dev/null +++ b/parser/testdata/00157_cache_dictionary/explain_8.txt @@ -0,0 +1,35 @@ +CreateQuery test_db_1 cache_hits (children 4) + Identifier test_db_1 + Identifier cache_hits + ExpressionList (children 3) + DictionaryAttributeDeclaration WatchID (children 1) + DataType UInt64 + DictionaryAttributeDeclaration UserID (children 1) + DataType UInt64 + DictionaryAttributeDeclaration SearchPhrase (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier WatchID + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'hits_1m\' + pair (children 1) + Literal \'\' + pair (children 1) + Literal \'test\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 2) + pair (children 1) + Literal UInt64_1 + pair (children 1) + Literal UInt64_60000 diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain_2.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain_2.txt new file mode 100644 index 0000000000..f27cd8df6b --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain_2.txt @@ -0,0 +1,3 @@ +DropQuery test_db mt_buffer_00158 (children 2) + Identifier test_db + Identifier mt_buffer_00158 diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain_3.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain_3.txt new file mode 100644 index 0000000000..74601a16a2 --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain_3.txt @@ -0,0 +1,3 @@ +DropQuery test_db mt_00158 (children 2) + Identifier test_db + Identifier mt_00158 diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain_4.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain_4.txt new file mode 100644 index 0000000000..b253638058 --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain_4.txt @@ -0,0 +1,23 @@ +CreateQuery test_db mt_buffer_00158 (children 4) + Identifier test_db + Identifier mt_buffer_00158 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration d (children 2) + DataType Date + Function today (children 1) + ExpressionList + ColumnDeclaration x (children 1) + DataType UInt64 + Storage definition (children 1) + Function Buffer (children 1) + ExpressionList (children 9) + Identifier test_db + Identifier mt_00158 + Literal UInt64_16 + Literal UInt64_100 + Literal UInt64_100 + Literal UInt64_1000000 + Literal UInt64_1000000 + Literal UInt64_1000000000 + Literal UInt64_1000000000 diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain_6.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain_6.txt new file mode 100644 index 0000000000..0669e2f3e1 --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain_6.txt @@ -0,0 +1,15 @@ +InsertQuery (children 4) + Identifier test_db + Identifier mt_buffer_00158 + ExpressionList (children 1) + Identifier x + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number (alias x) + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.numbers + Literal UInt64_100000 diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain_7.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain_7.txt new file mode 100644 index 0000000000..fd59e37109 --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain_7.txt @@ -0,0 +1,15 @@ +InsertQuery (children 4) + Identifier test_db + Identifier mt_buffer_00158 + ExpressionList (children 1) + Identifier x + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier number (alias x) + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.numbers + Literal UInt64_1000000 diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain_8.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain_8.txt new file mode 100644 index 0000000000..f27cd8df6b --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain_8.txt @@ -0,0 +1,3 @@ +DropQuery test_db mt_buffer_00158 (children 2) + Identifier test_db + Identifier mt_buffer_00158 diff --git a/parser/testdata/00158_buffer_and_nonexistent_table/explain_9.txt b/parser/testdata/00158_buffer_and_nonexistent_table/explain_9.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/00158_buffer_and_nonexistent_table/explain_9.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00467_qualified_names/explain_22.txt b/parser/testdata/00467_qualified_names/explain_22.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/00467_qualified_names/explain_22.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00508_materialized_view_to/explain_10.txt b/parser/testdata/00508_materialized_view_to/explain_10.txt new file mode 100644 index 0000000000..f54a3e10f7 --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_10.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier src diff --git a/parser/testdata/00508_materialized_view_to/explain_11.txt b/parser/testdata/00508_materialized_view_to/explain_11.txt new file mode 100644 index 0000000000..bd5037a7b4 --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_11.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 test_db.mv_00508 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier x diff --git a/parser/testdata/00508_materialized_view_to/explain_12.txt b/parser/testdata/00508_materialized_view_to/explain_12.txt new file mode 100644 index 0000000000..50cbf0cf05 --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_12.txt @@ -0,0 +1,3 @@ +DropQuery test_db mv_00508 (children 2) + Identifier test_db + Identifier mv_00508 diff --git a/parser/testdata/00508_materialized_view_to/explain_13.txt b/parser/testdata/00508_materialized_view_to/explain_13.txt new file mode 100644 index 0000000000..fab5b61fc8 --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_13.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 test_db.dst + ExpressionList (children 1) + OrderByElement (children 1) + Identifier x diff --git a/parser/testdata/00508_materialized_view_to/explain_14.txt b/parser/testdata/00508_materialized_view_to/explain_14.txt new file mode 100644 index 0000000000..6b0e54340f --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_14.txt @@ -0,0 +1,3 @@ +DropQuery test_db src (children 2) + Identifier test_db + Identifier src diff --git a/parser/testdata/00508_materialized_view_to/explain_15.txt b/parser/testdata/00508_materialized_view_to/explain_15.txt new file mode 100644 index 0000000000..15043336ee --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_15.txt @@ -0,0 +1,3 @@ +DropQuery test_db dst (children 2) + Identifier test_db + Identifier dst diff --git a/parser/testdata/00508_materialized_view_to/explain_16.txt b/parser/testdata/00508_materialized_view_to/explain_16.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_16.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00508_materialized_view_to/explain_9.txt b/parser/testdata/00508_materialized_view_to/explain_9.txt new file mode 100644 index 0000000000..e0d18273a8 --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/explain_9.txt @@ -0,0 +1,3 @@ +AttachQuery test_db mv_00508 (children 2) + Identifier test_db + Identifier mv_00508 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_10.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_10.txt new file mode 100644 index 0000000000..1403a3502a --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_10.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_db.test_00571 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_11.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_11.txt new file mode 100644 index 0000000000..11f2822692 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_11.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_db.test_materialized_00571 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_12.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_12.txt new file mode 100644 index 0000000000..e3ed2d5e89 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_12.txt @@ -0,0 +1,3 @@ +DetachQuery test_db test_materialized_00571 (children 2) + Identifier test_db + Identifier test_materialized_00571 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_13.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_13.txt new file mode 100644 index 0000000000..3ec58b7f81 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_13.txt @@ -0,0 +1,3 @@ +AttachQuery test_db test_materialized_00571 (children 2) + Identifier test_db + Identifier test_materialized_00571 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_14.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_14.txt new file mode 100644 index 0000000000..11f2822692 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_14.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_db.test_materialized_00571 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_15.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_15.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_15.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_16.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_16.txt new file mode 100644 index 0000000000..12457b0444 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_16.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_00571 (children 2) + Identifier test_db + Identifier test_00571 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_17.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_17.txt new file mode 100644 index 0000000000..9589d96a0c --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_17.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_materialized_00571 (children 2) + Identifier test_db + Identifier test_materialized_00571 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_2.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_2.txt new file mode 100644 index 0000000000..80490f4e45 --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_5.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_5.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_5.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_8.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_8.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_8.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_9.txt b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_9.txt new file mode 100644 index 0000000000..723f0a99da --- /dev/null +++ b/parser/testdata/00571_non_exist_database_when_create_materializ_view/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier test_00571 diff --git a/parser/testdata/00604_show_create_database/explain.txt b/parser/testdata/00604_show_create_database/explain.txt new file mode 100644 index 0000000000..2cce9e078e --- /dev/null +++ b/parser/testdata/00604_show_create_database/explain.txt @@ -0,0 +1,2 @@ +ShowCreateDatabaseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00623_truncate_all_tables/explain_21.txt b/parser/testdata/00623_truncate_all_tables/explain_21.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/00623_truncate_all_tables/explain_21.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00623_truncate_all_tables/metadata.json b/parser/testdata/00623_truncate_all_tables/metadata.json index 0967ef424b..a08759fb21 100644 --- a/parser/testdata/00623_truncate_all_tables/metadata.json +++ b/parser/testdata/00623_truncate_all_tables/metadata.json @@ -1 +1,5 @@ -{} +{ + "explain_todo": { + "stmt21": true + } +} diff --git a/parser/testdata/00716_allow_ddl/explain_3.txt b/parser/testdata/00716_allow_ddl/explain_3.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/00716_allow_ddl/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00740_database_in_nested_view/explain.txt b/parser/testdata/00740_database_in_nested_view/explain.txt new file mode 100644 index 0000000000..80490f4e45 --- /dev/null +++ b/parser/testdata/00740_database_in_nested_view/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00740_database_in_nested_view/explain_13.txt b/parser/testdata/00740_database_in_nested_view/explain_13.txt new file mode 100644 index 0000000000..f889338c4b --- /dev/null +++ b/parser/testdata/00740_database_in_nested_view/explain_13.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_db.test_view_00740 diff --git a/parser/testdata/00740_database_in_nested_view/explain_14.txt b/parser/testdata/00740_database_in_nested_view/explain_14.txt new file mode 100644 index 0000000000..d4f4c8bc5b --- /dev/null +++ b/parser/testdata/00740_database_in_nested_view/explain_14.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_db.test_nested_view_00740 diff --git a/parser/testdata/00740_database_in_nested_view/explain_15.txt b/parser/testdata/00740_database_in_nested_view/explain_15.txt new file mode 100644 index 0000000000..d475a713b9 --- /dev/null +++ b/parser/testdata/00740_database_in_nested_view/explain_15.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_db.test_joined_view_00740 diff --git a/parser/testdata/00740_database_in_nested_view/explain_16.txt b/parser/testdata/00740_database_in_nested_view/explain_16.txt new file mode 100644 index 0000000000..045962d579 --- /dev/null +++ b/parser/testdata/00740_database_in_nested_view/explain_16.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_00740 (children 2) + Identifier test_db + Identifier test_00740 diff --git a/parser/testdata/00740_database_in_nested_view/explain_17.txt b/parser/testdata/00740_database_in_nested_view/explain_17.txt new file mode 100644 index 0000000000..34104d6881 --- /dev/null +++ b/parser/testdata/00740_database_in_nested_view/explain_17.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_view_00740 (children 2) + Identifier test_db + Identifier test_view_00740 diff --git a/parser/testdata/00740_database_in_nested_view/explain_18.txt b/parser/testdata/00740_database_in_nested_view/explain_18.txt new file mode 100644 index 0000000000..c9234bdbf5 --- /dev/null +++ b/parser/testdata/00740_database_in_nested_view/explain_18.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_nested_view_00740 (children 2) + Identifier test_db + Identifier test_nested_view_00740 diff --git a/parser/testdata/00741_client_comment_multiline/explain.txt b/parser/testdata/00741_client_comment_multiline/explain.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/00741_client_comment_multiline/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00741_client_comment_multiline/explain_2.txt b/parser/testdata/00741_client_comment_multiline/explain_2.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/00741_client_comment_multiline/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_11.txt b/parser/testdata/00751_default_databasename_for_view/explain_11.txt new file mode 100644 index 0000000000..ea9bb63c96 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_11.txt @@ -0,0 +1,4 @@ +ShowCreateTableQuery test_db t_mv_00751 (children 3) + Identifier test_db + Identifier t_mv_00751 + Identifier TabSeparatedRaw diff --git a/parser/testdata/00751_default_databasename_for_view/explain_13.txt b/parser/testdata/00751_default_databasename_for_view/explain_13.txt new file mode 100644 index 0000000000..0963ede232 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_13.txt @@ -0,0 +1,3 @@ +DetachQuery test_db t_mv_00751 (children 2) + Identifier test_db + Identifier t_mv_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_14.txt b/parser/testdata/00751_default_databasename_for_view/explain_14.txt new file mode 100644 index 0000000000..5ca46da2d1 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_14.txt @@ -0,0 +1,3 @@ +AttachQuery test_db t_mv_00751 (children 2) + Identifier test_db + Identifier t_mv_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_15.txt b/parser/testdata/00751_default_databasename_for_view/explain_15.txt new file mode 100644 index 0000000000..db1f3e0798 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_15.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier t_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_16.txt b/parser/testdata/00751_default_databasename_for_view/explain_16.txt new file mode 100644 index 0000000000..036ccce971 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_16.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier u_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_17.txt b/parser/testdata/00751_default_databasename_for_view/explain_17.txt new file mode 100644 index 0000000000..a00c870c56 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_17.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier v_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_18.txt b/parser/testdata/00751_default_databasename_for_view/explain_18.txt new file mode 100644 index 0000000000..db1f3e0798 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_18.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier t_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_19.txt b/parser/testdata/00751_default_databasename_for_view/explain_19.txt new file mode 100644 index 0000000000..5643b68f99 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_19.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 test_db.t_00751 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier date diff --git a/parser/testdata/00751_default_databasename_for_view/explain_20.txt b/parser/testdata/00751_default_databasename_for_view/explain_20.txt new file mode 100644 index 0000000000..ffc9b7683e --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_20.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 test_db.t_mv_00751 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier date diff --git a/parser/testdata/00751_default_databasename_for_view/explain_21.txt b/parser/testdata/00751_default_databasename_for_view/explain_21.txt new file mode 100644 index 0000000000..364f972d49 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_21.txt @@ -0,0 +1,3 @@ +DropQuery test_db t_00751 (children 2) + Identifier test_db + Identifier t_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_22.txt b/parser/testdata/00751_default_databasename_for_view/explain_22.txt new file mode 100644 index 0000000000..a9c48ea5de --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db t_mv_00751 (children 2) + Identifier test_db + Identifier t_mv_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_23.txt b/parser/testdata/00751_default_databasename_for_view/explain_23.txt new file mode 100644 index 0000000000..525a85f837 --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db u_00751 (children 2) + Identifier test_db + Identifier u_00751 diff --git a/parser/testdata/00751_default_databasename_for_view/explain_24.txt b/parser/testdata/00751_default_databasename_for_view/explain_24.txt new file mode 100644 index 0000000000..b8839a6b5e --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/explain_24.txt @@ -0,0 +1,3 @@ +DropQuery test_db v_00751 (children 2) + Identifier test_db + Identifier v_00751 diff --git a/parser/testdata/00800_versatile_storage_join/explain_35.txt b/parser/testdata/00800_versatile_storage_join/explain_35.txt new file mode 100644 index 0000000000..bfdeec84de --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_35.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_any_inner (children 2) + Identifier test_db + Identifier join_any_inner diff --git a/parser/testdata/00800_versatile_storage_join/explain_36.txt b/parser/testdata/00800_versatile_storage_join/explain_36.txt new file mode 100644 index 0000000000..13b5027f8d --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_36.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_any_left (children 2) + Identifier test_db + Identifier join_any_left diff --git a/parser/testdata/00800_versatile_storage_join/explain_37.txt b/parser/testdata/00800_versatile_storage_join/explain_37.txt new file mode 100644 index 0000000000..087da5fa4f --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_37.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_any_left_null (children 2) + Identifier test_db + Identifier join_any_left_null diff --git a/parser/testdata/00800_versatile_storage_join/explain_38.txt b/parser/testdata/00800_versatile_storage_join/explain_38.txt new file mode 100644 index 0000000000..fee28cd9cd --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_38.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_all_inner (children 2) + Identifier test_db + Identifier join_all_inner diff --git a/parser/testdata/00800_versatile_storage_join/explain_39.txt b/parser/testdata/00800_versatile_storage_join/explain_39.txt new file mode 100644 index 0000000000..d79f841c21 --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_39.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_all_left (children 2) + Identifier test_db + Identifier join_all_left diff --git a/parser/testdata/00800_versatile_storage_join/explain_40.txt b/parser/testdata/00800_versatile_storage_join/explain_40.txt new file mode 100644 index 0000000000..56b692258a --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_40.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_string_key (children 2) + Identifier test_db + Identifier join_string_key diff --git a/parser/testdata/00800_versatile_storage_join/explain_41.txt b/parser/testdata/00800_versatile_storage_join/explain_41.txt new file mode 100644 index 0000000000..42e31244ba --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_41.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_test (children 2) + Identifier test_db + Identifier join_test diff --git a/parser/testdata/00800_versatile_storage_join/explain_42.txt b/parser/testdata/00800_versatile_storage_join/explain_42.txt new file mode 100644 index 0000000000..828d296a45 --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_42.txt @@ -0,0 +1,15 @@ +CreateQuery test_db join_test (children 4) + Identifier test_db + Identifier join_test + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration a (children 1) + DataType UInt8 + ColumnDeclaration b (children 1) + DataType UInt8 + Storage definition (children 1) + Function Join (children 1) + ExpressionList (children 3) + Identifier ANY + Identifier LEFT + Identifier a diff --git a/parser/testdata/00800_versatile_storage_join/explain_43.txt b/parser/testdata/00800_versatile_storage_join/explain_43.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_43.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00800_versatile_storage_join/explain_46.txt b/parser/testdata/00800_versatile_storage_join/explain_46.txt new file mode 100644 index 0000000000..70a3ce1fc0 --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_46.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function joinGet (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.join_test\' + Literal \'b\' + Literal UInt64_1 diff --git a/parser/testdata/00800_versatile_storage_join/explain_48.txt b/parser/testdata/00800_versatile_storage_join/explain_48.txt new file mode 100644 index 0000000000..42e31244ba --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/explain_48.txt @@ -0,0 +1,3 @@ +DropQuery test_db join_test (children 2) + Identifier test_db + Identifier join_test diff --git a/parser/testdata/00815_left_join_on_stepanel/explain_10.txt b/parser/testdata/00815_left_join_on_stepanel/explain_10.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/00815_left_join_on_stepanel/explain_10.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/00815_left_join_on_stepanel/explain_9.txt b/parser/testdata/00815_left_join_on_stepanel/explain_9.txt new file mode 100644 index 0000000000..9b898196ac --- /dev/null +++ b/parser/testdata/00815_left_join_on_stepanel/explain_9.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier f.model_id + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.fact_cpc_clicks (alias f) + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.dim_model (alias d) + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier f.model_id + Identifier d.model_id + Literal UInt64_10 diff --git a/parser/testdata/00857_global_joinsavel_table_alias/explain_9.txt b/parser/testdata/00857_global_joinsavel_table_alias/explain_9.txt new file mode 100644 index 0000000000..5ec59caa74 --- /dev/null +++ b/parser/testdata/00857_global_joinsavel_table_alias/explain_9.txt @@ -0,0 +1,25 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier t2.name + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function remote (alias t1) (children 1) + ExpressionList (children 3) + Literal \'127.0.0.2\' + Function currentDatabase (children 1) + ExpressionList + Literal \'local_table\' + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.other_table (alias t2) + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier t1.oth_id + Identifier t2.id + ExpressionList (children 1) + OrderByElement (children 1) + Identifier t2.name diff --git a/parser/testdata/00910_buffer_prewhere/explain_2.txt b/parser/testdata/00910_buffer_prewhere/explain_2.txt new file mode 100644 index 0000000000..f2f25a1c08 --- /dev/null +++ b/parser/testdata/00910_buffer_prewhere/explain_2.txt @@ -0,0 +1,14 @@ +CreateQuery buf (children 2) + Identifier buf + Storage definition (children 1) + Function Buffer (children 1) + ExpressionList (children 9) + Identifier test_db + Identifier mt + Literal UInt64_2 + Literal UInt64_10 + Literal UInt64_60 + Literal UInt64_10000 + Literal UInt64_100000 + Literal UInt64_1000000 + Literal UInt64_10000000 diff --git a/parser/testdata/01012_show_tables_limit/explain.txt b/parser/testdata/01012_show_tables_limit/explain.txt new file mode 100644 index 0000000000..a5237f7606 --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test1 (children 4) + Identifier test_db + Identifier test1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration test (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01012_show_tables_limit/explain_10.txt b/parser/testdata/01012_show_tables_limit/explain_10.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_10.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01012_show_tables_limit/explain_12.txt b/parser/testdata/01012_show_tables_limit/explain_12.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_12.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01012_show_tables_limit/explain_2.txt b/parser/testdata/01012_show_tables_limit/explain_2.txt new file mode 100644 index 0000000000..81c93371af --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_2.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test2 (children 4) + Identifier test_db + Identifier test2 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration test (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01012_show_tables_limit/explain_3.txt b/parser/testdata/01012_show_tables_limit/explain_3.txt new file mode 100644 index 0000000000..5c1cfbdf55 --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_3.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test3 (children 4) + Identifier test_db + Identifier test3 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration test (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01012_show_tables_limit/explain_4.txt b/parser/testdata/01012_show_tables_limit/explain_4.txt new file mode 100644 index 0000000000..369ac7e78e --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_4.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test4 (children 4) + Identifier test_db + Identifier test4 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration test (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01012_show_tables_limit/explain_5.txt b/parser/testdata/01012_show_tables_limit/explain_5.txt new file mode 100644 index 0000000000..55a0de2258 --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_5.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test5 (children 4) + Identifier test_db + Identifier test5 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration test (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01012_show_tables_limit/explain_6.txt b/parser/testdata/01012_show_tables_limit/explain_6.txt new file mode 100644 index 0000000000..d0e6456f02 --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_6.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test6 (children 4) + Identifier test_db + Identifier test6 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration test (children 1) + DataType UInt8 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01012_show_tables_limit/explain_8.txt b/parser/testdata/01012_show_tables_limit/explain_8.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01012_show_tables_limit/explain_8.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_10.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_10.txt new file mode 100644 index 0000000000..f7e85beb20 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_10.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'fourth_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_14 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_11.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_11.txt new file mode 100644 index 0000000000..fe8610f01e --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_11.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier fourth_column + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.dict1 + Function equals (children 1) + ExpressionList (children 2) + Identifier key_column + Literal UInt64_14 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_12.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_12.txt new file mode 100644 index 0000000000..2af988d093 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_12.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function countDistinct (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (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_100 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_13.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_13.txt new file mode 100644 index 0000000000..bcbc9a1e57 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_13.txt @@ -0,0 +1,3 @@ +DetachQuery test_db dict1 (children 2) + Identifier test_db + Identifier dict1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_14.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_14.txt new file mode 100644 index 0000000000..c318401777 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_14.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_15.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_15.txt new file mode 100644 index 0000000000..bd36c376bb --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_15.txt @@ -0,0 +1,3 @@ +AttachQuery test_db dict1 (children 2) + Identifier test_db + Identifier dict1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_16.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_16.txt new file mode 100644 index 0000000000..c318401777 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_16.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_17.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_17.txt new file mode 100644 index 0000000000..a04e616e5f --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_17.txt @@ -0,0 +1,3 @@ +DropQuery test_db dict1 (children 2) + Identifier test_db + Identifier dict1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_18.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_18.txt new file mode 100644 index 0000000000..c318401777 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_18.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_19.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_19.txt new file mode 100644 index 0000000000..a04e616e5f --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_19.txt @@ -0,0 +1,3 @@ +DropQuery test_db dict1 (children 2) + Identifier test_db + Identifier dict1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_20.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_20.txt new file mode 100644 index 0000000000..06fee601ae --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_20.txt @@ -0,0 +1,29 @@ +CreateQuery test_db dict1 (children 4) + Identifier test_db + Identifier dict1 + ExpressionList (children 4) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_21.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_21.txt new file mode 100644 index 0000000000..c318401777 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_21.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_22.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_22.txt new file mode 100644 index 0000000000..2af988d093 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_22.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function countDistinct (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (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_100 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_23.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_23.txt new file mode 100644 index 0000000000..a04e616e5f --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db dict1 (children 2) + Identifier test_db + Identifier dict1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_24.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_24.txt new file mode 100644 index 0000000000..e9cace950b --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_24.txt @@ -0,0 +1,39 @@ +CreateQuery test_db dict1 (children 4) + Identifier test_db + Identifier dict1 + ExpressionList (children 4) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 2) + Identifier key_column + Identifier third_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_25.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_25.txt new file mode 100644 index 0000000000..0753c2ba68 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_25.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function tuple (children 1) + ExpressionList (children 2) + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 + Literal \'121\' diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_26.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_26.txt new file mode 100644 index 0000000000..f34072671a --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_26.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'fourth_column\' + Function tuple (children 1) + ExpressionList (children 2) + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_14 + Literal \'196\' diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_27.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_27.txt new file mode 100644 index 0000000000..bcbc9a1e57 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_27.txt @@ -0,0 +1,3 @@ +DetachQuery test_db dict1 (children 2) + Identifier test_db + Identifier dict1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_28.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_28.txt new file mode 100644 index 0000000000..0753c2ba68 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_28.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function tuple (children 1) + ExpressionList (children 2) + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 + Literal \'121\' diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_29.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_29.txt new file mode 100644 index 0000000000..bd36c376bb --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_29.txt @@ -0,0 +1,3 @@ +AttachQuery test_db dict1 (children 2) + Identifier test_db + Identifier dict1 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_3.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_3.txt new file mode 100644 index 0000000000..ea8b5dd54b --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_3.txt @@ -0,0 +1,16 @@ +CreateQuery test_db table_for_dict (children 4) + Identifier test_db + Identifier table_for_dict + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration key_column (children 1) + DataType UInt64 + ColumnDeclaration second_column (children 1) + DataType UInt8 + ColumnDeclaration third_column (children 1) + DataType String + ColumnDeclaration fourth_column (children 1) + DataType Float64 + Storage definition (children 2) + Function MergeTree + Identifier key_column diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_30.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_30.txt new file mode 100644 index 0000000000..0753c2ba68 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_30.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function tuple (children 1) + ExpressionList (children 2) + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 + Literal \'121\' diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_31.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_31.txt new file mode 100644 index 0000000000..8bdae8c5ca --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_31.txt @@ -0,0 +1,35 @@ +CreateQuery test_db dict2 (children 4) + Identifier test_db + Identifier dict2 + ExpressionList (children 3) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration some_column (children 2) + DataType String + Function toString (children 1) + ExpressionList (children 1) + Identifier fourth_column + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_32.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_32.txt new file mode 100644 index 0000000000..783c05da58 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_32.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict2\' + Literal \'some_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_33.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_33.txt new file mode 100644 index 0000000000..6295b0a9ff --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_33.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 2) + Identifier name + Identifier engine + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.tables + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db\' + ExpressionList (children 1) + OrderByElement (children 1) + Identifier name diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_34.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_34.txt new file mode 100644 index 0000000000..f4f6d175c4 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_34.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 3) + Identifier database + Identifier name + Identifier type + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db\' + ExpressionList (children 1) + OrderByElement (children 1) + Identifier name diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_35.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_35.txt new file mode 100644 index 0000000000..daf78b30b2 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_35.txt @@ -0,0 +1,35 @@ +CreateQuery test_db dict3 (children 4) + Identifier test_db + Identifier dict3 + ExpressionList (children 3) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration some_column (children 2) + DataType String + Function toString (children 1) + ExpressionList (children 1) + Identifier fourth_column + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_36.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_36.txt new file mode 100644 index 0000000000..059b32f3eb --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_36.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict3\' + Literal \'some_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_37.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_37.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_37.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_39.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_39.txt new file mode 100644 index 0000000000..de90d488db --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_39.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Identifier test_db.dict3 + Literal \'some_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_4.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_4.txt new file mode 100644 index 0000000000..b39a273948 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_4.txt @@ -0,0 +1,28 @@ +InsertQuery (children 3) + Identifier test_db + Identifier table_for_dict + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier number + Function modulo (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_17 + Function toString (children 1) + ExpressionList (children 1) + Function multiply (children 1) + ExpressionList (children 2) + Identifier number + Identifier number + Function divide (children 1) + ExpressionList (children 2) + Identifier number + Literal Float64_2 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_100 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_42.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_42.txt new file mode 100644 index 0000000000..f38efb8682 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_42.txt @@ -0,0 +1,11 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGet (children 1) + ExpressionList (children 3) + Identifier test_db.dict3 + Literal \'some_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_45.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_45.txt new file mode 100644 index 0000000000..32d4a907cf --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_45.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Function concat (alias n) (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict3\' + Function dictGet (children 1) + ExpressionList (children 3) + Identifier n + Literal \'some_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_46.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_46.txt new file mode 100644 index 0000000000..ec59624242 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_46.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_for_dict (children 2) + Identifier test_db + Identifier table_for_dict diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_47.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_47.txt new file mode 100644 index 0000000000..5482803a1e --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_47.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db + Identifier dict3 + Identifier test_db + Identifier dict3 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_48.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_48.txt new file mode 100644 index 0000000000..059b32f3eb --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_48.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict3\' + Literal \'some_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_5.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_5.txt new file mode 100644 index 0000000000..45f8fe2713 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_5.txt @@ -0,0 +1,38 @@ +CreateQuery test_db dict1 (children 4) + Identifier test_db + Identifier dict1 + ExpressionList (children 4) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_6.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_6.txt new file mode 100644 index 0000000000..c318401777 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_6.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_11 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_7.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_7.txt new file mode 100644 index 0000000000..39b3470b7e --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_7.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier second_column + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.dict1 + Function equals (children 1) + ExpressionList (children 2) + Identifier key_column + Literal UInt64_11 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_8.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_8.txt new file mode 100644 index 0000000000..e18ba57dce --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_8.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'third_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_select/explain_9.txt b/parser/testdata/01018_ddl_dictionaries_select/explain_9.txt new file mode 100644 index 0000000000..587a1e0f49 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/explain_9.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier third_column + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.dict1 + Function equals (children 1) + ExpressionList (children 2) + Identifier key_column + Literal UInt64_12 diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_10.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_10.txt new file mode 100644 index 0000000000..8bd89b42be --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_10.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_2 + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2019-05-29\' diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_11.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_11.txt new file mode 100644 index 0000000000..3b0ae223b1 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_11.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_2 + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2019-05-31\' diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_13.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_13.txt new file mode 100644 index 0000000000..712e6309ce --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_13.txt @@ -0,0 +1,16 @@ +CreateQuery test_db datetime_table (children 4) + Identifier test_db + Identifier datetime_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration CountryID (children 1) + DataType UInt64 + ColumnDeclaration StartDate (children 1) + DataType DateTime + ColumnDeclaration EndDate (children 1) + DataType DateTime + ColumnDeclaration Tax (children 1) + DataType Float64 + Storage definition (children 2) + Function MergeTree + Identifier CountryID diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_14.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_14.txt new file mode 100644 index 0000000000..5d1c194703 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_14.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier datetime_table diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_15.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_15.txt new file mode 100644 index 0000000000..5d1c194703 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_15.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier datetime_table diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_16.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_16.txt new file mode 100644 index 0000000000..5d1c194703 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_16.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier datetime_table diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_17.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_17.txt new file mode 100644 index 0000000000..09fd448a91 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_17.txt @@ -0,0 +1,33 @@ +CreateQuery test_db dict2 (children 4) + Identifier test_db + Identifier dict2 + ExpressionList (children 4) + DictionaryAttributeDeclaration CountryID (children 1) + DataType UInt64 + DictionaryAttributeDeclaration StartDate (children 1) + DataType DateTime + DictionaryAttributeDeclaration EndDate (children 1) + DataType DateTime + DictionaryAttributeDeclaration Tax (children 1) + DataType Float64 + Dictionary definition (children 5) + ExpressionList (children 1) + Identifier CountryID + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'datetime_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList + Dictionary range diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_18.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_18.txt new file mode 100644 index 0000000000..2659b0a2ee --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_18.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict2\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Function toDateTime (children 1) + ExpressionList (children 1) + Literal \'2019-05-15 00:00:00\' diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_19.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_19.txt new file mode 100644 index 0000000000..2eac578ec8 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_19.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict2\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Function toDateTime (children 1) + ExpressionList (children 1) + Literal \'2019-05-29 00:00:00\' diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_20.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_20.txt new file mode 100644 index 0000000000..9197356259 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_20.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict2\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_2 + Function toDateTime (children 1) + ExpressionList (children 1) + Literal \'2019-05-29 00:00:00\' diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_21.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_21.txt new file mode 100644 index 0000000000..80ad28ed84 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_21.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict2\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_2 + Function toDateTime (children 1) + ExpressionList (children 1) + Literal \'2019-05-31 00:00:00\' diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_23.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_23.txt new file mode 100644 index 0000000000..711dbf8d5c --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_23.txt @@ -0,0 +1,14 @@ +CreateQuery test_db table_with_hierarchy (children 4) + Identifier test_db + Identifier table_with_hierarchy + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration RegionID (children 1) + DataType UInt64 + ColumnDeclaration ParentRegionID (children 1) + DataType UInt64 + ColumnDeclaration RegionName (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier RegionID diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_24.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_24.txt new file mode 100644 index 0000000000..89481eb53f --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_24.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_with_hierarchy diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_25.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_25.txt new file mode 100644 index 0000000000..abc3b96b05 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_25.txt @@ -0,0 +1,30 @@ +CreateQuery test_db dictionary_with_hierarchy (children 4) + Identifier test_db + Identifier dictionary_with_hierarchy + ExpressionList (children 3) + DictionaryAttributeDeclaration RegionID (children 1) + DataType UInt64 + DictionaryAttributeDeclaration ParentRegionID (children 1) + DataType UInt64 + DictionaryAttributeDeclaration RegionName (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier RegionID + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_with_hierarchy\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_26.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_26.txt new file mode 100644 index 0000000000..f179e365a6 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_26.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dictionary_with_hierarchy\' + Literal \'RegionName\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_2 diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_27.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_27.txt new file mode 100644 index 0000000000..23aafc1752 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_27.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetHierarchy (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dictionary_with_hierarchy\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_3 diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_28.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_28.txt new file mode 100644 index 0000000000..e524be4a76 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_28.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictIsIn (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dictionary_with_hierarchy\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_3 + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_2 diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_29.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_29.txt new file mode 100644 index 0000000000..63bd2ba23b --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_29.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictIsIn (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dictionary_with_hierarchy\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_7 + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_10000 diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_3.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_3.txt new file mode 100644 index 0000000000..038a3b3334 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_3.txt @@ -0,0 +1,16 @@ +CreateQuery test_db date_table (children 4) + Identifier test_db + Identifier date_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration CountryID (children 1) + DataType UInt64 + ColumnDeclaration StartDate (children 1) + DataType Date + ColumnDeclaration EndDate (children 1) + DataType Date + ColumnDeclaration Tax (children 1) + DataType Float64 + Storage definition (children 2) + Function MergeTree + Identifier CountryID diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_30.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_30.txt new file mode 100644 index 0000000000..68b1146d4e --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_30.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictIsIn (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dictionary_with_hierarchy\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_5 diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_31.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_31.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_31.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_4.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_4.txt new file mode 100644 index 0000000000..dcd9a89548 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_4.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier date_table diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_5.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_5.txt new file mode 100644 index 0000000000..dcd9a89548 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier date_table diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_6.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_6.txt new file mode 100644 index 0000000000..dcd9a89548 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier date_table diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_7.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_7.txt new file mode 100644 index 0000000000..be4298b8de --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_7.txt @@ -0,0 +1,33 @@ +CreateQuery test_db dict1 (children 4) + Identifier test_db + Identifier dict1 + ExpressionList (children 4) + DictionaryAttributeDeclaration CountryID (children 1) + DataType UInt64 + DictionaryAttributeDeclaration StartDate (children 1) + DataType Date + DictionaryAttributeDeclaration EndDate (children 1) + DataType Date + DictionaryAttributeDeclaration Tax (children 1) + DataType Float64 + Dictionary definition (children 5) + ExpressionList (children 1) + Identifier CountryID + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'date_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList + Dictionary range diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_8.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_8.txt new file mode 100644 index 0000000000..38bd336e4e --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_8.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2019-05-15\' diff --git a/parser/testdata/01018_ddl_dictionaries_special/explain_9.txt b/parser/testdata/01018_ddl_dictionaries_special/explain_9.txt new file mode 100644 index 0000000000..c201da92c4 --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/explain_9.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 4) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict1\' + Literal \'Tax\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Function toDate (children 1) + ExpressionList (children 1) + Literal \'2019-05-29\' diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_10.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_10.txt new file mode 100644 index 0000000000..20a754596d --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_10.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 test_db_1.dict2 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_11.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_11.txt new file mode 100644 index 0000000000..19535376ca --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_11.txt @@ -0,0 +1,29 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier table_for_dict + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier number + Function modulo (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_17 + Function toString (children 1) + ExpressionList (children 1) + Function multiply (children 1) + ExpressionList (children 2) + Identifier number + Identifier number + Function divide (children 1) + ExpressionList (children 2) + Identifier number + Literal Float64_2 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 2) + Literal UInt64_100 + Literal UInt64_100 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_12.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_12.txt new file mode 100644 index 0000000000..7efb51b5ba --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_12.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dict1 + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_13.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_13.txt new file mode 100644 index 0000000000..365898f66e --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_13.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dict2 + Identifier test_db_1 + Identifier dict2 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_14.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_14.txt new file mode 100644 index 0000000000..20a754596d --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_14.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 test_db_1.dict2 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_15.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_15.txt new file mode 100644 index 0000000000..2d773769d6 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_15.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 test_db_1.dict1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_16.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_16.txt new file mode 100644 index 0000000000..ccee6be320 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_16.txt @@ -0,0 +1,36 @@ +CreateQuery test_db_1 dict3 (children 4) + Identifier test_db_1 + Identifier dict3 + ExpressionList (children 4) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'dict2\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_17.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_17.txt new file mode 100644 index 0000000000..e8497d6e7a --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_17.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 test_db_1.dict3 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_18.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_18.txt new file mode 100644 index 0000000000..8b13ff4c63 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_18.txt @@ -0,0 +1,29 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier table_for_dict + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier number + Function modulo (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_17 + Function toString (children 1) + ExpressionList (children 1) + Function multiply (children 1) + ExpressionList (children 2) + Identifier number + Identifier number + Function divide (children 1) + ExpressionList (children 2) + Identifier number + Literal Float64_2 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 2) + Literal UInt64_200 + Literal UInt64_100 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_19.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_19.txt new file mode 100644 index 0000000000..7efb51b5ba --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_19.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dict1 + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_2.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_2.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_20.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_20.txt new file mode 100644 index 0000000000..365898f66e --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_20.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dict2 + Identifier test_db_1 + Identifier dict2 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_21.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_21.txt new file mode 100644 index 0000000000..08603e3328 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_21.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dict3 + Identifier test_db_1 + Identifier dict3 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_22.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_22.txt new file mode 100644 index 0000000000..e8497d6e7a --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_22.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 test_db_1.dict3 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_23.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_23.txt new file mode 100644 index 0000000000..20a754596d --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_23.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 test_db_1.dict2 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_24.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_24.txt new file mode 100644 index 0000000000..2d773769d6 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_24.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 test_db_1.dict1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_25.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_25.txt new file mode 100644 index 0000000000..87ab13302d --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_25.txt @@ -0,0 +1,36 @@ +CreateQuery test_db_1 dict4 (children 4) + Identifier test_db_1 + Identifier dict4 + ExpressionList (children 4) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'non_existing_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_26.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_26.txt new file mode 100644 index 0000000000..a17f77ed2c --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_26.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 test_db_1.dict4 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_29.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_29.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_29.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_3.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_3.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_30.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_30.txt new file mode 100644 index 0000000000..e8497d6e7a --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_30.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 test_db_1.dict3 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_4.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_4.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_4.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_5.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_5.txt new file mode 100644 index 0000000000..0cd8586f04 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_5.txt @@ -0,0 +1,16 @@ +CreateQuery test_db_1 table_for_dict (children 4) + Identifier test_db_1 + Identifier table_for_dict + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration key_column (children 1) + DataType UInt64 + ColumnDeclaration second_column (children 1) + DataType UInt8 + ColumnDeclaration third_column (children 1) + DataType String + ColumnDeclaration fourth_column (children 1) + DataType Float64 + Storage definition (children 2) + Function MergeTree + Identifier key_column diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_6.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_6.txt new file mode 100644 index 0000000000..cb20023d5a --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_6.txt @@ -0,0 +1,28 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier table_for_dict + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier number + Function modulo (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_17 + Function toString (children 1) + ExpressionList (children 1) + Function multiply (children 1) + ExpressionList (children 2) + Identifier number + Identifier number + Function divide (children 1) + ExpressionList (children 2) + Identifier number + Literal Float64_2 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_100 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_7.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_7.txt new file mode 100644 index 0000000000..2336c26499 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_7.txt @@ -0,0 +1,36 @@ +CreateQuery test_db_1 dict1 (children 4) + Identifier test_db_1 + Identifier dict1 + ExpressionList (children 4) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_8.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_8.txt new file mode 100644 index 0000000000..2d773769d6 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_8.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 test_db_1.dict1 diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/explain_9.txt b/parser/testdata/01018_dictionaries_from_dictionaries/explain_9.txt new file mode 100644 index 0000000000..a439335ca5 --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/explain_9.txt @@ -0,0 +1,36 @@ +CreateQuery test_db_1 dict2 (children 4) + Identifier test_db_1 + Identifier dict2 + ExpressionList (children 4) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration fourth_column (children 2) + DataType Float64 + Literal Float64_42 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'dict1\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ip_dictionary_long/explain_10.txt b/parser/testdata/01018_ip_dictionary_long/explain_10.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_10.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_100.txt b/parser/testdata/01018_ip_dictionary_long/explain_100.txt new file mode 100644 index 0000000000..8cc860da56 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_100.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_24 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.128\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_101.txt b/parser/testdata/01018_ip_dictionary_long/explain_101.txt new file mode 100644 index 0000000000..1082193f4a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_101.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_24 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.192\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_102.txt b/parser/testdata/01018_ip_dictionary_long/explain_102.txt new file mode 100644 index 0000000000..32508c0366 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_102.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_24 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.224\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_103.txt b/parser/testdata/01018_ip_dictionary_long/explain_103.txt new file mode 100644 index 0000000000..d3764d6b47 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_103.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_24 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.240\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_104.txt b/parser/testdata/01018_ip_dictionary_long/explain_104.txt new file mode 100644 index 0000000000..631d835cc1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_104.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_24 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.248\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_105.txt b/parser/testdata/01018_ip_dictionary_long/explain_105.txt new file mode 100644 index 0000000000..7ee4c4aec1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_105.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_30 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.252\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_106.txt b/parser/testdata/01018_ip_dictionary_long/explain_106.txt new file mode 100644 index 0000000000..9b7709aa18 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_106.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_30 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.254\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_107.txt b/parser/testdata/01018_ip_dictionary_long/explain_107.txt new file mode 100644 index 0000000000..21892c6d8b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_107.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_30 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_108.txt b/parser/testdata/01018_ip_dictionary_long/explain_108.txt new file mode 100644 index 0000000000..816438063c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_108.txt @@ -0,0 +1,3 @@ +DropQuery test_db dict_ipv4_trie (children 2) + Identifier test_db + Identifier dict_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_109.txt b/parser/testdata/01018_ip_dictionary_long/explain_109.txt new file mode 100644 index 0000000000..f59a36501f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_109.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_from_ipv4_trie_dict (children 2) + Identifier test_db + Identifier table_from_ipv4_trie_dict diff --git a/parser/testdata/01018_ip_dictionary_long/explain_11.txt b/parser/testdata/01018_ip_dictionary_long/explain_11.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_11.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_110.txt b/parser/testdata/01018_ip_dictionary_long/explain_110.txt new file mode 100644 index 0000000000..4ec0f19712 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_110.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_ipv4_trie (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_112.txt b/parser/testdata/01018_ip_dictionary_long/explain_112.txt new file mode 100644 index 0000000000..734ca71202 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_112.txt @@ -0,0 +1,11 @@ +CreateQuery test_db table_ipv4_trie (children 4) + Identifier test_db + Identifier table_ipv4_trie + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration prefix (children 1) + DataType String + ColumnDeclaration val (children 1) + DataType UInt32 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01018_ip_dictionary_long/explain_113.txt b/parser/testdata/01018_ip_dictionary_long/explain_113.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_113.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_114.txt b/parser/testdata/01018_ip_dictionary_long/explain_114.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_114.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_115.txt b/parser/testdata/01018_ip_dictionary_long/explain_115.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_115.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_116.txt b/parser/testdata/01018_ip_dictionary_long/explain_116.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_116.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_117.txt b/parser/testdata/01018_ip_dictionary_long/explain_117.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_117.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_118.txt b/parser/testdata/01018_ip_dictionary_long/explain_118.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_118.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_119.txt b/parser/testdata/01018_ip_dictionary_long/explain_119.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_119.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_12.txt b/parser/testdata/01018_ip_dictionary_long/explain_12.txt new file mode 100644 index 0000000000..e982ced123 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_12.txt @@ -0,0 +1,31 @@ +CreateQuery test_db dict_ipv4_trie (children 4) + Identifier test_db + Identifier dict_ipv4_trie + ExpressionList (children 3) + DictionaryAttributeDeclaration prefix (children 1) + DataType String + DictionaryAttributeDeclaration asn (children 1) + DataType UInt32 + DictionaryAttributeDeclaration cca2 (children 1) + DataType String + Dictionary definition (children 5) + ExpressionList (children 1) + Identifier prefix + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_ipv4_trie\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList + Dictionary settings diff --git a/parser/testdata/01018_ip_dictionary_long/explain_120.txt b/parser/testdata/01018_ip_dictionary_long/explain_120.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_120.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_121.txt b/parser/testdata/01018_ip_dictionary_long/explain_121.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_121.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_122.txt b/parser/testdata/01018_ip_dictionary_long/explain_122.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_122.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_123.txt b/parser/testdata/01018_ip_dictionary_long/explain_123.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_123.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_124.txt b/parser/testdata/01018_ip_dictionary_long/explain_124.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_124.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_125.txt b/parser/testdata/01018_ip_dictionary_long/explain_125.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_125.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_126.txt b/parser/testdata/01018_ip_dictionary_long/explain_126.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_126.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_127.txt b/parser/testdata/01018_ip_dictionary_long/explain_127.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_127.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_128.txt b/parser/testdata/01018_ip_dictionary_long/explain_128.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_128.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_129.txt b/parser/testdata/01018_ip_dictionary_long/explain_129.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_129.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_13.txt b/parser/testdata/01018_ip_dictionary_long/explain_13.txt new file mode 100644 index 0000000000..61903fb8ea --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_13.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.0.0.0/24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefixprefixprefixprefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNumOrDefault (children 1) + ExpressionList (children 1) + Literal \'127.0.0.0127.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_130.txt b/parser/testdata/01018_ip_dictionary_long/explain_130.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_130.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_131.txt b/parser/testdata/01018_ip_dictionary_long/explain_131.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_131.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_132.txt b/parser/testdata/01018_ip_dictionary_long/explain_132.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_132.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_133.txt b/parser/testdata/01018_ip_dictionary_long/explain_133.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_133.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_134.txt b/parser/testdata/01018_ip_dictionary_long/explain_134.txt new file mode 100644 index 0000000000..c960d1a195 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_134.txt @@ -0,0 +1,30 @@ +CreateQuery test_db dict_ipv4_trie (children 4) + Identifier test_db + Identifier dict_ipv4_trie + ExpressionList (children 2) + DictionaryAttributeDeclaration prefix (children 1) + DataType String + DictionaryAttributeDeclaration val (children 1) + DataType UInt32 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier prefix + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_ipv4_trie\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01018_ip_dictionary_long/explain_135.txt b/parser/testdata/01018_ip_dictionary_long/explain_135.txt new file mode 100644 index 0000000000..03a66ba29e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_135.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.0.0.0/24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_136.txt b/parser/testdata/01018_ip_dictionary_long/explain_136.txt new file mode 100644 index 0000000000..3d16fc337b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_136.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.0.0.1/32\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_137.txt b/parser/testdata/01018_ip_dictionary_long/explain_137.txt new file mode 100644 index 0000000000..ceaf1829b9 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_137.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.0.0.0/24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_138.txt b/parser/testdata/01018_ip_dictionary_long/explain_138.txt new file mode 100644 index 0000000000..3e8557ae98 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_138.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.0.0.0/16\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.255.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_139.txt b/parser/testdata/01018_ip_dictionary_long/explain_139.txt new file mode 100644 index 0000000000..7f77c60758 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_139.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.255.0.0/16\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.127.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_14.txt b/parser/testdata/01018_ip_dictionary_long/explain_14.txt new file mode 100644 index 0000000000..55fc87e263 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_14.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'0.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_140.txt b/parser/testdata/01018_ip_dictionary_long/explain_140.txt new file mode 100644 index 0000000000..e76e445008 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_140.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.255.128.0/24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.9\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_141.txt b/parser/testdata/01018_ip_dictionary_long/explain_141.txt new file mode 100644 index 0000000000..9c16d63f66 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_141.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.255.128.0/24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_142.txt b/parser/testdata/01018_ip_dictionary_long/explain_142.txt new file mode 100644 index 0000000000..f82a90408e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_142.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.255.128.10/32\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.10\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_143.txt b/parser/testdata/01018_ip_dictionary_long/explain_143.txt new file mode 100644 index 0000000000..637ee4d6c4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_143.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.255.128.128/25\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_144.txt b/parser/testdata/01018_ip_dictionary_long/explain_144.txt new file mode 100644 index 0000000000..fea6d96b71 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_144.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127.255.255.128/32\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.255.128\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_145.txt b/parser/testdata/01018_ip_dictionary_long/explain_145.txt new file mode 100644 index 0000000000..bbd722edfb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_145.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_3 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_146.txt b/parser/testdata/01018_ip_dictionary_long/explain_146.txt new file mode 100644 index 0000000000..4fb3bf899c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_146.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_4 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_147.txt b/parser/testdata/01018_ip_dictionary_long/explain_147.txt new file mode 100644 index 0000000000..7bdf8e3e9c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_147.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_3 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_148.txt b/parser/testdata/01018_ip_dictionary_long/explain_148.txt new file mode 100644 index 0000000000..d2f93fd555 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_148.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.255.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_149.txt b/parser/testdata/01018_ip_dictionary_long/explain_149.txt new file mode 100644 index 0000000000..1516639e68 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_149.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_15 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.127.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_15.txt b/parser/testdata/01018_ip_dictionary_long/explain_15.txt new file mode 100644 index 0000000000..76323aac1d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_15.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'128.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_150.txt b/parser/testdata/01018_ip_dictionary_long/explain_150.txt new file mode 100644 index 0000000000..bfa72d03a5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_150.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_16 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.9\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_151.txt b/parser/testdata/01018_ip_dictionary_long/explain_151.txt new file mode 100644 index 0000000000..b557ae2365 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_151.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_16 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_152.txt b/parser/testdata/01018_ip_dictionary_long/explain_152.txt new file mode 100644 index 0000000000..a8ad8f0106 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_152.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_18 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.10\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_153.txt b/parser/testdata/01018_ip_dictionary_long/explain_153.txt new file mode 100644 index 0000000000..5b957b06cd --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_153.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_19 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_154.txt b/parser/testdata/01018_ip_dictionary_long/explain_154.txt new file mode 100644 index 0000000000..37a44df986 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_154.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_20 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.255.128\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_155.txt b/parser/testdata/01018_ip_dictionary_long/explain_155.txt new file mode 100644 index 0000000000..55118dabf3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_155.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_3 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7f00:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_156.txt b/parser/testdata/01018_ip_dictionary_long/explain_156.txt new file mode 100644 index 0000000000..c9f47515e7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_156.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_4 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7f00:1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_157.txt b/parser/testdata/01018_ip_dictionary_long/explain_157.txt new file mode 100644 index 0000000000..3420e676a8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_157.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_3 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7f00:7f\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_158.txt b/parser/testdata/01018_ip_dictionary_long/explain_158.txt new file mode 100644 index 0000000000..cc383bff7a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_158.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7f00:ff7f\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_159.txt b/parser/testdata/01018_ip_dictionary_long/explain_159.txt new file mode 100644 index 0000000000..96ac85a944 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_159.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_15 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7fff:7f7f\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_16.txt b/parser/testdata/01018_ip_dictionary_long/explain_16.txt new file mode 100644 index 0000000000..b51b4d0ca7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_16.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_2 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'192.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_160.txt b/parser/testdata/01018_ip_dictionary_long/explain_160.txt new file mode 100644 index 0000000000..b6ed51dc5c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_160.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_16 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7fff:8009\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_161.txt b/parser/testdata/01018_ip_dictionary_long/explain_161.txt new file mode 100644 index 0000000000..d78b5c6491 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_161.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_16 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7fff:807f\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_162.txt b/parser/testdata/01018_ip_dictionary_long/explain_162.txt new file mode 100644 index 0000000000..f1766d6c08 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_162.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_18 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7fff:800a\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_163.txt b/parser/testdata/01018_ip_dictionary_long/explain_163.txt new file mode 100644 index 0000000000..aa14229b42 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_163.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_19 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7fff:80ff\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_164.txt b/parser/testdata/01018_ip_dictionary_long/explain_164.txt new file mode 100644 index 0000000000..dcebf7de07 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_164.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_20 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:7fff:ff80\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_165.txt b/parser/testdata/01018_ip_dictionary_long/explain_165.txt new file mode 100644 index 0000000000..1709cc8b25 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_165.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_166.txt b/parser/testdata/01018_ip_dictionary_long/explain_166.txt new file mode 100644 index 0000000000..3ae559dcc7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_166.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_167.txt b/parser/testdata/01018_ip_dictionary_long/explain_167.txt new file mode 100644 index 0000000000..fee62d6d9b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_167.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_168.txt b/parser/testdata/01018_ip_dictionary_long/explain_168.txt new file mode 100644 index 0000000000..6604d8e37b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_168.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.255.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_169.txt b/parser/testdata/01018_ip_dictionary_long/explain_169.txt new file mode 100644 index 0000000000..1abf7e94dc --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_169.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.127.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_17.txt b/parser/testdata/01018_ip_dictionary_long/explain_17.txt new file mode 100644 index 0000000000..3477137f79 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_17.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_3 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'224.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_170.txt b/parser/testdata/01018_ip_dictionary_long/explain_170.txt new file mode 100644 index 0000000000..443c394411 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_170.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.9\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_171.txt b/parser/testdata/01018_ip_dictionary_long/explain_171.txt new file mode 100644 index 0000000000..dddf2b77c4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_171.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_172.txt b/parser/testdata/01018_ip_dictionary_long/explain_172.txt new file mode 100644 index 0000000000..13e7929a83 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_172.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.10\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_173.txt b/parser/testdata/01018_ip_dictionary_long/explain_173.txt new file mode 100644 index 0000000000..263f247986 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_173.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.128.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_174.txt b/parser/testdata/01018_ip_dictionary_long/explain_174.txt new file mode 100644 index 0000000000..973f0e0858 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_174.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.255.255.128\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_175.txt b/parser/testdata/01018_ip_dictionary_long/explain_175.txt new file mode 100644 index 0000000000..b17c6070d6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_175.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'128.127.127.127\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_176.txt b/parser/testdata/01018_ip_dictionary_long/explain_176.txt new file mode 100644 index 0000000000..d94b62546b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_176.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'128.127.127.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_177.txt b/parser/testdata/01018_ip_dictionary_long/explain_177.txt new file mode 100644 index 0000000000..2375a1126b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_177.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.127.127.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_178.txt b/parser/testdata/01018_ip_dictionary_long/explain_178.txt new file mode 100644 index 0000000000..a4c291da76 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_178.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_179.txt b/parser/testdata/01018_ip_dictionary_long/explain_179.txt new file mode 100644 index 0000000000..4dcb4c73ae --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_179.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'0.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_18.txt b/parser/testdata/01018_ip_dictionary_long/explain_18.txt new file mode 100644 index 0000000000..1b72000abb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_18.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_4 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'240.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_180.txt b/parser/testdata/01018_ip_dictionary_long/explain_180.txt new file mode 100644 index 0000000000..d09f609605 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_180.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'1.1.1.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_182.txt b/parser/testdata/01018_ip_dictionary_long/explain_182.txt new file mode 100644 index 0000000000..7a57a3e121 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_182.txt @@ -0,0 +1,11 @@ +CreateQuery test_db table_ip_trie (children 4) + Identifier test_db + Identifier table_ip_trie + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration prefix (children 1) + DataType String + ColumnDeclaration val (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01018_ip_dictionary_long/explain_183.txt b/parser/testdata/01018_ip_dictionary_long/explain_183.txt new file mode 100644 index 0000000000..e9cab60b2f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_183.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ip_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_184.txt b/parser/testdata/01018_ip_dictionary_long/explain_184.txt new file mode 100644 index 0000000000..0bd184aaef --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_184.txt @@ -0,0 +1,39 @@ +InsertQuery (children 3) + Identifier test_db + Identifier table_ip_trie + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Function concat (alias prefix) (children 1) + ExpressionList (children 2) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/\' + Function toString (children 1) + ExpressionList (children 1) + Function modulo (children 1) + ExpressionList (children 2) + Function multiply (children 1) + ExpressionList (children 2) + Function plus (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_1 + Literal UInt64_13 + Literal UInt64_129 + Function toString (alias val) (children 1) + ExpressionList (children 1) + Function modulo (children 1) + ExpressionList (children 2) + Function multiply (children 1) + ExpressionList (children 2) + Function plus (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_1 + Literal UInt64_13 + Literal UInt64_129 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.numbers + Literal UInt64_129 diff --git a/parser/testdata/01018_ip_dictionary_long/explain_185.txt b/parser/testdata/01018_ip_dictionary_long/explain_185.txt new file mode 100644 index 0000000000..81ea08ca97 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_185.txt @@ -0,0 +1,30 @@ +CreateQuery test_db dict_ip_trie (children 4) + Identifier test_db + Identifier dict_ip_trie + ExpressionList (children 2) + DictionaryAttributeDeclaration prefix (children 1) + DataType String + DictionaryAttributeDeclaration val (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier prefix + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_ip_trie\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01018_ip_dictionary_long/explain_186.txt b/parser/testdata/01018_ip_dictionary_long/explain_186.txt new file mode 100644 index 0000000000..87f3db3138 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_186.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'US\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2620:0:870::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_187.txt b/parser/testdata/01018_ip_dictionary_long/explain_187.txt new file mode 100644 index 0000000000..33f44bb721 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_187.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'UK\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2a02:6b8:1::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_188.txt b/parser/testdata/01018_ip_dictionary_long/explain_188.txt new file mode 100644 index 0000000000..8f38415ec4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_188.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'ZZ\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2001:db8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_189.txt b/parser/testdata/01018_ip_dictionary_long/explain_189.txt new file mode 100644 index 0000000000..a67c32a82e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_189.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'ZZ\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2001:db8:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_19.txt b/parser/testdata/01018_ip_dictionary_long/explain_19.txt new file mode 100644 index 0000000000..279f02fe7e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_19.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'248.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_190.txt b/parser/testdata/01018_ip_dictionary_long/explain_190.txt new file mode 100644 index 0000000000..50c57c9268 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_190.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2001:db8:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_191.txt b/parser/testdata/01018_ip_dictionary_long/explain_191.txt new file mode 100644 index 0000000000..164b47ff80 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_191.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2001:db8:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_192.txt b/parser/testdata/01018_ip_dictionary_long/explain_192.txt new file mode 100644 index 0000000000..82c52b3a4c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_192.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2001:db8:ffff:1::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_193.txt b/parser/testdata/01018_ip_dictionary_long/explain_193.txt new file mode 100644 index 0000000000..8f54ffe0da --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_193.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'0\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'654f:3716::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_194.txt b/parser/testdata/01018_ip_dictionary_long/explain_194.txt new file mode 100644 index 0000000000..e76218033a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_194.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'JA\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:654f:3716\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_195.txt b/parser/testdata/01018_ip_dictionary_long/explain_195.txt new file mode 100644 index 0000000000..b7344fe29b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_195.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'JA\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_196.txt b/parser/testdata/01018_ip_dictionary_long/explain_196.txt new file mode 100644 index 0000000000..0922718d53 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_196.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'JA\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_197.txt b/parser/testdata/01018_ip_dictionary_long/explain_197.txt new file mode 100644 index 0000000000..9a178b1a8a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_197.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_198.txt b/parser/testdata/01018_ip_dictionary_long/explain_198.txt new file mode 100644 index 0000000000..25a7e4ff0c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_198.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_199.txt b/parser/testdata/01018_ip_dictionary_long/explain_199.txt new file mode 100644 index 0000000000..3bdaf7ad13 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_199.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'2620:0:870::/48\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2620:0:870::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_20.txt b/parser/testdata/01018_ip_dictionary_long/explain_20.txt new file mode 100644 index 0000000000..4a9d432989 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_20.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_6 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'252.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_200.txt b/parser/testdata/01018_ip_dictionary_long/explain_200.txt new file mode 100644 index 0000000000..91d7eed9fe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_200.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'2a02:6b8:1::/48\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2a02:6b8:1::1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_201.txt b/parser/testdata/01018_ip_dictionary_long/explain_201.txt new file mode 100644 index 0000000000..3d9617303b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_201.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'2001:db8::/32\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'2001:db8::1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_202.txt b/parser/testdata/01018_ip_dictionary_long/explain_202.txt new file mode 100644 index 0000000000..64454008f8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_202.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'::ffff:101.79.55.22/128\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:654f:3716\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_203.txt b/parser/testdata/01018_ip_dictionary_long/explain_203.txt new file mode 100644 index 0000000000..27836e1f6d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_203.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'::ffff:101.79.55.22/128\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'prefix\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_204.txt b/parser/testdata/01018_ip_dictionary_long/explain_204.txt new file mode 100644 index 0000000000..aa5f41321b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_204.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'0\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_205.txt b/parser/testdata/01018_ip_dictionary_long/explain_205.txt new file mode 100644 index 0000000000..a7c3ecdbf6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_205.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'1\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_206.txt b/parser/testdata/01018_ip_dictionary_long/explain_206.txt new file mode 100644 index 0000000000..9e44f5c3c2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_206.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'2\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_207.txt b/parser/testdata/01018_ip_dictionary_long/explain_207.txt new file mode 100644 index 0000000000..24e5a29764 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_207.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'3\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_208.txt b/parser/testdata/01018_ip_dictionary_long/explain_208.txt new file mode 100644 index 0000000000..fb8d11e5fe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_208.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'4\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_209.txt b/parser/testdata/01018_ip_dictionary_long/explain_209.txt new file mode 100644 index 0000000000..cd2a224ed5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_209.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_21.txt b/parser/testdata/01018_ip_dictionary_long/explain_21.txt new file mode 100644 index 0000000000..d2cd1d5b60 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_21.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_7 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'254.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_210.txt b/parser/testdata/01018_ip_dictionary_long/explain_210.txt new file mode 100644 index 0000000000..df4ca6522a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_210.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'6\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_211.txt b/parser/testdata/01018_ip_dictionary_long/explain_211.txt new file mode 100644 index 0000000000..e068462908 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_211.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'7\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_212.txt b/parser/testdata/01018_ip_dictionary_long/explain_212.txt new file mode 100644 index 0000000000..3dd3d9425e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_212.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'8\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_213.txt b/parser/testdata/01018_ip_dictionary_long/explain_213.txt new file mode 100644 index 0000000000..5184825207 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_213.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'9\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_214.txt b/parser/testdata/01018_ip_dictionary_long/explain_214.txt new file mode 100644 index 0000000000..7783590bf3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_214.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'10\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_215.txt b/parser/testdata/01018_ip_dictionary_long/explain_215.txt new file mode 100644 index 0000000000..cd337fe4ef --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_215.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'11\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_216.txt b/parser/testdata/01018_ip_dictionary_long/explain_216.txt new file mode 100644 index 0000000000..7f20b36983 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_216.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'12\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_217.txt b/parser/testdata/01018_ip_dictionary_long/explain_217.txt new file mode 100644 index 0000000000..f508e74b07 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_217.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_218.txt b/parser/testdata/01018_ip_dictionary_long/explain_218.txt new file mode 100644 index 0000000000..159e7b902f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_218.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'14\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_219.txt b/parser/testdata/01018_ip_dictionary_long/explain_219.txt new file mode 100644 index 0000000000..963e3dc488 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_219.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'15\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_22.txt b/parser/testdata/01018_ip_dictionary_long/explain_22.txt new file mode 100644 index 0000000000..393cd04b10 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_22.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_8 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_220.txt b/parser/testdata/01018_ip_dictionary_long/explain_220.txt new file mode 100644 index 0000000000..574e34aaee --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_220.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'16\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_221.txt b/parser/testdata/01018_ip_dictionary_long/explain_221.txt new file mode 100644 index 0000000000..257ae6b241 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_221.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'17\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_222.txt b/parser/testdata/01018_ip_dictionary_long/explain_222.txt new file mode 100644 index 0000000000..756326b1a0 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_222.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'18\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_223.txt b/parser/testdata/01018_ip_dictionary_long/explain_223.txt new file mode 100644 index 0000000000..5d00fd38d2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_223.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'19\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_224.txt b/parser/testdata/01018_ip_dictionary_long/explain_224.txt new file mode 100644 index 0000000000..cb9e8bfeb6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_224.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'20\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_225.txt b/parser/testdata/01018_ip_dictionary_long/explain_225.txt new file mode 100644 index 0000000000..87e002be54 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_225.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'21\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_226.txt b/parser/testdata/01018_ip_dictionary_long/explain_226.txt new file mode 100644 index 0000000000..439b53ced6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_226.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'22\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_227.txt b/parser/testdata/01018_ip_dictionary_long/explain_227.txt new file mode 100644 index 0000000000..756326b1a0 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_227.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'18\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_228.txt b/parser/testdata/01018_ip_dictionary_long/explain_228.txt new file mode 100644 index 0000000000..5d00fd38d2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_228.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'19\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_229.txt b/parser/testdata/01018_ip_dictionary_long/explain_229.txt new file mode 100644 index 0000000000..cb9e8bfeb6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_229.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'20\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_23.txt b/parser/testdata/01018_ip_dictionary_long/explain_23.txt new file mode 100644 index 0000000000..9002e35947 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_23.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_9 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.128.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_230.txt b/parser/testdata/01018_ip_dictionary_long/explain_230.txt new file mode 100644 index 0000000000..87e002be54 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_230.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'21\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_231.txt b/parser/testdata/01018_ip_dictionary_long/explain_231.txt new file mode 100644 index 0000000000..439b53ced6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_231.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'22\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_232.txt b/parser/testdata/01018_ip_dictionary_long/explain_232.txt new file mode 100644 index 0000000000..ed5d12e5fe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_232.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'23\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_233.txt b/parser/testdata/01018_ip_dictionary_long/explain_233.txt new file mode 100644 index 0000000000..3d40832df8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_233.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_234.txt b/parser/testdata/01018_ip_dictionary_long/explain_234.txt new file mode 100644 index 0000000000..7e6914efab --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_234.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'25\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_235.txt b/parser/testdata/01018_ip_dictionary_long/explain_235.txt new file mode 100644 index 0000000000..cecd409b0e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_235.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'26\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_236.txt b/parser/testdata/01018_ip_dictionary_long/explain_236.txt new file mode 100644 index 0000000000..9ba21cb765 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_236.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'27\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_237.txt b/parser/testdata/01018_ip_dictionary_long/explain_237.txt new file mode 100644 index 0000000000..9039fddcf4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_237.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'28\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_238.txt b/parser/testdata/01018_ip_dictionary_long/explain_238.txt new file mode 100644 index 0000000000..c8aa6563a9 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_238.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'29\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_239.txt b/parser/testdata/01018_ip_dictionary_long/explain_239.txt new file mode 100644 index 0000000000..5744a5da01 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_239.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'30\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_24.txt b/parser/testdata/01018_ip_dictionary_long/explain_24.txt new file mode 100644 index 0000000000..335113c24f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_24.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_10 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.192.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_240.txt b/parser/testdata/01018_ip_dictionary_long/explain_240.txt new file mode 100644 index 0000000000..f6281bdb05 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_240.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'31\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_241.txt b/parser/testdata/01018_ip_dictionary_long/explain_241.txt new file mode 100644 index 0000000000..7ae3b90ed4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_241.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'32\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_242.txt b/parser/testdata/01018_ip_dictionary_long/explain_242.txt new file mode 100644 index 0000000000..a5f992d88d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_242.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'33\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_243.txt b/parser/testdata/01018_ip_dictionary_long/explain_243.txt new file mode 100644 index 0000000000..72103d4e61 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_243.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'34\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_244.txt b/parser/testdata/01018_ip_dictionary_long/explain_244.txt new file mode 100644 index 0000000000..212f68b35d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_244.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'35\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_245.txt b/parser/testdata/01018_ip_dictionary_long/explain_245.txt new file mode 100644 index 0000000000..18e516a7e4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_245.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'36\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_246.txt b/parser/testdata/01018_ip_dictionary_long/explain_246.txt new file mode 100644 index 0000000000..6d859672df --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_246.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'37\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_247.txt b/parser/testdata/01018_ip_dictionary_long/explain_247.txt new file mode 100644 index 0000000000..8a9408d4d9 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_247.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'38\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_248.txt b/parser/testdata/01018_ip_dictionary_long/explain_248.txt new file mode 100644 index 0000000000..91d98b06f3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_248.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'39\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_249.txt b/parser/testdata/01018_ip_dictionary_long/explain_249.txt new file mode 100644 index 0000000000..d897c1a75d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_249.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'40\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_25.txt b/parser/testdata/01018_ip_dictionary_long/explain_25.txt new file mode 100644 index 0000000000..f4ab70a19d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_25.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_11 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.224.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_250.txt b/parser/testdata/01018_ip_dictionary_long/explain_250.txt new file mode 100644 index 0000000000..cdf706e030 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_250.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'41\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_251.txt b/parser/testdata/01018_ip_dictionary_long/explain_251.txt new file mode 100644 index 0000000000..a5ed974cc1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_251.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'42\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_252.txt b/parser/testdata/01018_ip_dictionary_long/explain_252.txt new file mode 100644 index 0000000000..26fabf2804 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_252.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'43\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_253.txt b/parser/testdata/01018_ip_dictionary_long/explain_253.txt new file mode 100644 index 0000000000..a9738270ad --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_253.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'44\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_254.txt b/parser/testdata/01018_ip_dictionary_long/explain_254.txt new file mode 100644 index 0000000000..1255d13fe3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_254.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'45\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_255.txt b/parser/testdata/01018_ip_dictionary_long/explain_255.txt new file mode 100644 index 0000000000..65cea14fbe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_255.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'46\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_256.txt b/parser/testdata/01018_ip_dictionary_long/explain_256.txt new file mode 100644 index 0000000000..2f34f53dc4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_256.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'47\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_257.txt b/parser/testdata/01018_ip_dictionary_long/explain_257.txt new file mode 100644 index 0000000000..acb89e6968 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_257.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'48\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_258.txt b/parser/testdata/01018_ip_dictionary_long/explain_258.txt new file mode 100644 index 0000000000..80aa89cd80 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_258.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_259.txt b/parser/testdata/01018_ip_dictionary_long/explain_259.txt new file mode 100644 index 0000000000..f7d812bc3f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_259.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'50\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_26.txt b/parser/testdata/01018_ip_dictionary_long/explain_26.txt new file mode 100644 index 0000000000..2b41ff951f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_26.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_12 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.240.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_260.txt b/parser/testdata/01018_ip_dictionary_long/explain_260.txt new file mode 100644 index 0000000000..681b1f4a4d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_260.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'51\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_261.txt b/parser/testdata/01018_ip_dictionary_long/explain_261.txt new file mode 100644 index 0000000000..792c7e00ca --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_261.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'52\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_262.txt b/parser/testdata/01018_ip_dictionary_long/explain_262.txt new file mode 100644 index 0000000000..8096eb4c0e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_262.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'53\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_263.txt b/parser/testdata/01018_ip_dictionary_long/explain_263.txt new file mode 100644 index 0000000000..1e2d85a026 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_263.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'54\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_264.txt b/parser/testdata/01018_ip_dictionary_long/explain_264.txt new file mode 100644 index 0000000000..9344b7104e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_264.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'55\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_265.txt b/parser/testdata/01018_ip_dictionary_long/explain_265.txt new file mode 100644 index 0000000000..e4b26c90dc --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_265.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'56\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_266.txt b/parser/testdata/01018_ip_dictionary_long/explain_266.txt new file mode 100644 index 0000000000..6a4e4c20a0 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_266.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'57\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_267.txt b/parser/testdata/01018_ip_dictionary_long/explain_267.txt new file mode 100644 index 0000000000..67d9245d84 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_267.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'58\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_268.txt b/parser/testdata/01018_ip_dictionary_long/explain_268.txt new file mode 100644 index 0000000000..3a0aa4ff51 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_268.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'59\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_269.txt b/parser/testdata/01018_ip_dictionary_long/explain_269.txt new file mode 100644 index 0000000000..3122388172 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_269.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'60\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_27.txt b/parser/testdata/01018_ip_dictionary_long/explain_27.txt new file mode 100644 index 0000000000..9bd033bad3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_27.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.248.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_270.txt b/parser/testdata/01018_ip_dictionary_long/explain_270.txt new file mode 100644 index 0000000000..41bb8f292d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_270.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'61\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_271.txt b/parser/testdata/01018_ip_dictionary_long/explain_271.txt new file mode 100644 index 0000000000..4bdf53b035 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_271.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'62\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_272.txt b/parser/testdata/01018_ip_dictionary_long/explain_272.txt new file mode 100644 index 0000000000..a8b9b6709b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_272.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'63\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_273.txt b/parser/testdata/01018_ip_dictionary_long/explain_273.txt new file mode 100644 index 0000000000..64e135bec8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_273.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'64\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_274.txt b/parser/testdata/01018_ip_dictionary_long/explain_274.txt new file mode 100644 index 0000000000..92b91fd96a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_274.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'65\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_275.txt b/parser/testdata/01018_ip_dictionary_long/explain_275.txt new file mode 100644 index 0000000000..5c7f7a2e60 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_275.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'66\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_276.txt b/parser/testdata/01018_ip_dictionary_long/explain_276.txt new file mode 100644 index 0000000000..8e10d407d3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_276.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'67\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_277.txt b/parser/testdata/01018_ip_dictionary_long/explain_277.txt new file mode 100644 index 0000000000..8f5bed293e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_277.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'68\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_278.txt b/parser/testdata/01018_ip_dictionary_long/explain_278.txt new file mode 100644 index 0000000000..ca6b42614e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_278.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'69\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_279.txt b/parser/testdata/01018_ip_dictionary_long/explain_279.txt new file mode 100644 index 0000000000..da198786a3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_279.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'70\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_28.txt b/parser/testdata/01018_ip_dictionary_long/explain_28.txt new file mode 100644 index 0000000000..9c760d5fef --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_28.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_14 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.252.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_280.txt b/parser/testdata/01018_ip_dictionary_long/explain_280.txt new file mode 100644 index 0000000000..7f621eed25 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_280.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'71\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_281.txt b/parser/testdata/01018_ip_dictionary_long/explain_281.txt new file mode 100644 index 0000000000..d750301b95 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_281.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'72\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_282.txt b/parser/testdata/01018_ip_dictionary_long/explain_282.txt new file mode 100644 index 0000000000..4573103b76 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_282.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'73\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_283.txt b/parser/testdata/01018_ip_dictionary_long/explain_283.txt new file mode 100644 index 0000000000..ece05d9d88 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_283.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'74\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_284.txt b/parser/testdata/01018_ip_dictionary_long/explain_284.txt new file mode 100644 index 0000000000..6afcfc5ce6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_284.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'75\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_285.txt b/parser/testdata/01018_ip_dictionary_long/explain_285.txt new file mode 100644 index 0000000000..61556e6a52 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_285.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'76\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_286.txt b/parser/testdata/01018_ip_dictionary_long/explain_286.txt new file mode 100644 index 0000000000..002c4cead8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_286.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'77\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_287.txt b/parser/testdata/01018_ip_dictionary_long/explain_287.txt new file mode 100644 index 0000000000..cbbfef15cf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_287.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'78\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_288.txt b/parser/testdata/01018_ip_dictionary_long/explain_288.txt new file mode 100644 index 0000000000..5ea49fa687 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_288.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'79\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_289.txt b/parser/testdata/01018_ip_dictionary_long/explain_289.txt new file mode 100644 index 0000000000..c4996ef892 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_289.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'80\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_29.txt b/parser/testdata/01018_ip_dictionary_long/explain_29.txt new file mode 100644 index 0000000000..abf2fe4ce4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_29.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_15 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.254.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_290.txt b/parser/testdata/01018_ip_dictionary_long/explain_290.txt new file mode 100644 index 0000000000..48d3647d71 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_290.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'81\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_291.txt b/parser/testdata/01018_ip_dictionary_long/explain_291.txt new file mode 100644 index 0000000000..f1b3eb2b2b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_291.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'82\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_292.txt b/parser/testdata/01018_ip_dictionary_long/explain_292.txt new file mode 100644 index 0000000000..d37d79652f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_292.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'83\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_293.txt b/parser/testdata/01018_ip_dictionary_long/explain_293.txt new file mode 100644 index 0000000000..e5c183224c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_293.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'84\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_294.txt b/parser/testdata/01018_ip_dictionary_long/explain_294.txt new file mode 100644 index 0000000000..13db2cda2c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_294.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'85\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_295.txt b/parser/testdata/01018_ip_dictionary_long/explain_295.txt new file mode 100644 index 0000000000..0a3f67ac84 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_295.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'86\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_296.txt b/parser/testdata/01018_ip_dictionary_long/explain_296.txt new file mode 100644 index 0000000000..d335cb2809 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_296.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'87\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_297.txt b/parser/testdata/01018_ip_dictionary_long/explain_297.txt new file mode 100644 index 0000000000..32787f2204 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_297.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'88\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_298.txt b/parser/testdata/01018_ip_dictionary_long/explain_298.txt new file mode 100644 index 0000000000..750c82eac3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_298.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'89\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_299.txt b/parser/testdata/01018_ip_dictionary_long/explain_299.txt new file mode 100644 index 0000000000..385a730605 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_299.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'90\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_3.txt b/parser/testdata/01018_ip_dictionary_long/explain_3.txt new file mode 100644 index 0000000000..97392be944 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_3.txt @@ -0,0 +1,13 @@ +CreateQuery test_db table_ipv4_trie (children 4) + Identifier test_db + Identifier table_ipv4_trie + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration prefix (children 1) + DataType String + ColumnDeclaration asn (children 1) + DataType UInt32 + ColumnDeclaration cca2 (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01018_ip_dictionary_long/explain_30.txt b/parser/testdata/01018_ip_dictionary_long/explain_30.txt new file mode 100644 index 0000000000..bdcb007cdf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_30.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_16 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_300.txt b/parser/testdata/01018_ip_dictionary_long/explain_300.txt new file mode 100644 index 0000000000..c555069440 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_300.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'91\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_301.txt b/parser/testdata/01018_ip_dictionary_long/explain_301.txt new file mode 100644 index 0000000000..c7e2979c91 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_301.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'92\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_302.txt b/parser/testdata/01018_ip_dictionary_long/explain_302.txt new file mode 100644 index 0000000000..0d7ccea296 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_302.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'93\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_303.txt b/parser/testdata/01018_ip_dictionary_long/explain_303.txt new file mode 100644 index 0000000000..a620e02c82 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_303.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'94\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_304.txt b/parser/testdata/01018_ip_dictionary_long/explain_304.txt new file mode 100644 index 0000000000..0ba86b80a4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_304.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'95\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_305.txt b/parser/testdata/01018_ip_dictionary_long/explain_305.txt new file mode 100644 index 0000000000..d7f82c2870 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_305.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'96\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_306.txt b/parser/testdata/01018_ip_dictionary_long/explain_306.txt new file mode 100644 index 0000000000..3da5c85ce2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_306.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'97\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:8000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_307.txt b/parser/testdata/01018_ip_dictionary_long/explain_307.txt new file mode 100644 index 0000000000..06f2544671 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_307.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'98\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:c000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_308.txt b/parser/testdata/01018_ip_dictionary_long/explain_308.txt new file mode 100644 index 0000000000..5634a325c7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_308.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:e000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_309.txt b/parser/testdata/01018_ip_dictionary_long/explain_309.txt new file mode 100644 index 0000000000..69981fc4b8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_309.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'100\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:f000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_31.txt b/parser/testdata/01018_ip_dictionary_long/explain_31.txt new file mode 100644 index 0000000000..a10886fb8d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_31.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_17 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.128.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_310.txt b/parser/testdata/01018_ip_dictionary_long/explain_310.txt new file mode 100644 index 0000000000..83841424f7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_310.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'101\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:f800:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_311.txt b/parser/testdata/01018_ip_dictionary_long/explain_311.txt new file mode 100644 index 0000000000..a1ad5244c5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_311.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'102\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fc00:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_312.txt b/parser/testdata/01018_ip_dictionary_long/explain_312.txt new file mode 100644 index 0000000000..a8b489415a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_312.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'103\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fe00:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_313.txt b/parser/testdata/01018_ip_dictionary_long/explain_313.txt new file mode 100644 index 0000000000..8005d42510 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_313.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'104\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ff00:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_314.txt b/parser/testdata/01018_ip_dictionary_long/explain_314.txt new file mode 100644 index 0000000000..7a151b0daf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_314.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'105\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ff80:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_315.txt b/parser/testdata/01018_ip_dictionary_long/explain_315.txt new file mode 100644 index 0000000000..0e799c237a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_315.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'106\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffc0:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_316.txt b/parser/testdata/01018_ip_dictionary_long/explain_316.txt new file mode 100644 index 0000000000..2705930824 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_316.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'107\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffe0:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_317.txt b/parser/testdata/01018_ip_dictionary_long/explain_317.txt new file mode 100644 index 0000000000..d79b42baa8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_317.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'108\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fff0:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_318.txt b/parser/testdata/01018_ip_dictionary_long/explain_318.txt new file mode 100644 index 0000000000..84dcdbeeb3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_318.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'109\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fff8:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_319.txt b/parser/testdata/01018_ip_dictionary_long/explain_319.txt new file mode 100644 index 0000000000..8a47c291ac --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_319.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'110\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fffc:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_32.txt b/parser/testdata/01018_ip_dictionary_long/explain_32.txt new file mode 100644 index 0000000000..6052650c46 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_32.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_18 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.192.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_320.txt b/parser/testdata/01018_ip_dictionary_long/explain_320.txt new file mode 100644 index 0000000000..174a722bdb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_320.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'111\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fffe:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_321.txt b/parser/testdata/01018_ip_dictionary_long/explain_321.txt new file mode 100644 index 0000000000..772e851160 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_321.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'112\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_322.txt b/parser/testdata/01018_ip_dictionary_long/explain_322.txt new file mode 100644 index 0000000000..73882b35af --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_322.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'113\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:8000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_323.txt b/parser/testdata/01018_ip_dictionary_long/explain_323.txt new file mode 100644 index 0000000000..879c7d13ed --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_323.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'114\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:c000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_324.txt b/parser/testdata/01018_ip_dictionary_long/explain_324.txt new file mode 100644 index 0000000000..f859437a72 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_324.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'115\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:e000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_325.txt b/parser/testdata/01018_ip_dictionary_long/explain_325.txt new file mode 100644 index 0000000000..eb1d51e1bf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_325.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'116\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:f000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_326.txt b/parser/testdata/01018_ip_dictionary_long/explain_326.txt new file mode 100644 index 0000000000..e5f46daf3d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_326.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'117\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:f800\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_327.txt b/parser/testdata/01018_ip_dictionary_long/explain_327.txt new file mode 100644 index 0000000000..ae4f55ede9 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_327.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'118\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fc00\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_328.txt b/parser/testdata/01018_ip_dictionary_long/explain_328.txt new file mode 100644 index 0000000000..0479bd395e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_328.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'119\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fe00\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_329.txt b/parser/testdata/01018_ip_dictionary_long/explain_329.txt new file mode 100644 index 0000000000..b445056acf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_329.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'120\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_33.txt b/parser/testdata/01018_ip_dictionary_long/explain_33.txt new file mode 100644 index 0000000000..5fe0a10c07 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_33.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_19 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.224.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_330.txt b/parser/testdata/01018_ip_dictionary_long/explain_330.txt new file mode 100644 index 0000000000..d2065f7f41 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_330.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'121\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff80\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_331.txt b/parser/testdata/01018_ip_dictionary_long/explain_331.txt new file mode 100644 index 0000000000..312145038c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_331.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'122\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffc0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_332.txt b/parser/testdata/01018_ip_dictionary_long/explain_332.txt new file mode 100644 index 0000000000..a26a87e290 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_332.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'123\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffe0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_333.txt b/parser/testdata/01018_ip_dictionary_long/explain_333.txt new file mode 100644 index 0000000000..5e45e5d135 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_333.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'124\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_334.txt b/parser/testdata/01018_ip_dictionary_long/explain_334.txt new file mode 100644 index 0000000000..e0050e4383 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_334.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'125\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff8\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_335.txt b/parser/testdata/01018_ip_dictionary_long/explain_335.txt new file mode 100644 index 0000000000..6c23208a2f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_335.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'126\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_336.txt b/parser/testdata/01018_ip_dictionary_long/explain_336.txt new file mode 100644 index 0000000000..bc4c30a9eb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_336.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_337.txt b/parser/testdata/01018_ip_dictionary_long/explain_337.txt new file mode 100644 index 0000000000..00b57809e3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_337.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'128\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_338.txt b/parser/testdata/01018_ip_dictionary_long/explain_338.txt new file mode 100644 index 0000000000..61191fb488 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_338.txt @@ -0,0 +1,13 @@ +CreateQuery test_db table_from_ip_trie_dict (children 4) + Identifier test_db + Identifier table_from_ip_trie_dict + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration prefix (children 1) + DataType String + ColumnDeclaration val (children 1) + DataType String + Storage definition (children 1) + Function Dictionary (children 1) + ExpressionList (children 1) + Identifier test_db.dict_ip_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_339.txt b/parser/testdata/01018_ip_dictionary_long/explain_339.txt new file mode 100644 index 0000000000..1ffc5ead2e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_339.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function MIN (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier val + Literal \'US\' + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.table_from_ip_trie_dict + Function equals (children 1) + ExpressionList (children 2) + Identifier prefix + Literal \'2620:0:870::/48\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_34.txt b/parser/testdata/01018_ip_dictionary_long/explain_34.txt new file mode 100644 index 0000000000..0f21b93caa --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_34.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_20 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.240.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_340.txt b/parser/testdata/01018_ip_dictionary_long/explain_340.txt new file mode 100644 index 0000000000..111e5fcf8b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_340.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_134 + Function COUNT (children 1) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.table_from_ip_trie_dict diff --git a/parser/testdata/01018_ip_dictionary_long/explain_341.txt b/parser/testdata/01018_ip_dictionary_long/explain_341.txt new file mode 100644 index 0000000000..af7d581c94 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_341.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_from_ip_trie_dict (children 2) + Identifier test_db + Identifier table_from_ip_trie_dict diff --git a/parser/testdata/01018_ip_dictionary_long/explain_342.txt b/parser/testdata/01018_ip_dictionary_long/explain_342.txt new file mode 100644 index 0000000000..c42722f245 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_342.txt @@ -0,0 +1,3 @@ +DropQuery test_db dict_ip_trie (children 2) + Identifier test_db + Identifier dict_ip_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_343.txt b/parser/testdata/01018_ip_dictionary_long/explain_343.txt new file mode 100644 index 0000000000..c3f614cff4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_343.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_ip_trie (children 2) + Identifier test_db + Identifier table_ip_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_345.txt b/parser/testdata/01018_ip_dictionary_long/explain_345.txt new file mode 100644 index 0000000000..7a57a3e121 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_345.txt @@ -0,0 +1,11 @@ +CreateQuery test_db table_ip_trie (children 4) + Identifier test_db + Identifier table_ip_trie + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration prefix (children 1) + DataType String + ColumnDeclaration val (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01018_ip_dictionary_long/explain_346.txt b/parser/testdata/01018_ip_dictionary_long/explain_346.txt new file mode 100644 index 0000000000..bf6124c81d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_346.txt @@ -0,0 +1,29 @@ +InsertQuery (children 3) + Identifier test_db + Identifier table_ip_trie + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function concat (alias prefix) (children 1) + ExpressionList (children 2) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/\' + Function toString (children 1) + ExpressionList (children 1) + Identifier number + Function toString (alias val) (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function VALUES (children 1) + ExpressionList (children 8) + Literal \'number UInt32\' + Literal UInt64_5 + Literal UInt64_13 + Literal UInt64_24 + Literal UInt64_48 + Literal UInt64_49 + Literal UInt64_99 + Literal UInt64_127 diff --git a/parser/testdata/01018_ip_dictionary_long/explain_347.txt b/parser/testdata/01018_ip_dictionary_long/explain_347.txt new file mode 100644 index 0000000000..e9cab60b2f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_347.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ip_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_348.txt b/parser/testdata/01018_ip_dictionary_long/explain_348.txt new file mode 100644 index 0000000000..314f0b1291 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_348.txt @@ -0,0 +1,26 @@ +InsertQuery (children 3) + Identifier test_db + Identifier table_ip_trie + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function concat (alias prefix) (children 1) + ExpressionList (children 2) + Literal \'255.255.255.255/\' + Function toString (children 1) + ExpressionList (children 1) + Identifier number + Function toString (alias val) (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function VALUES (children 1) + ExpressionList (children 5) + Literal \'number UInt32\' + Literal UInt64_5 + Literal UInt64_13 + Literal UInt64_24 + Literal UInt64_30 diff --git a/parser/testdata/01018_ip_dictionary_long/explain_349.txt b/parser/testdata/01018_ip_dictionary_long/explain_349.txt new file mode 100644 index 0000000000..a7f7878a8f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_349.txt @@ -0,0 +1,28 @@ +CreateQuery test_db dict_ip_trie (children 4) + Identifier test_db + Identifier dict_ip_trie + ExpressionList (children 2) + DictionaryAttributeDeclaration prefix (children 1) + DataType String + DictionaryAttributeDeclaration val (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier prefix + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_ip_trie\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ip_dictionary_long/explain_35.txt b/parser/testdata/01018_ip_dictionary_long/explain_35.txt new file mode 100644 index 0000000000..528473cf29 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_35.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_21 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.248.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_350.txt b/parser/testdata/01018_ip_dictionary_long/explain_350.txt new file mode 100644 index 0000000000..5b5808ae4c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_350.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:1:1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_351.txt b/parser/testdata/01018_ip_dictionary_long/explain_351.txt new file mode 100644 index 0000000000..d2540b5e14 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_351.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'654f:3716::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_352.txt b/parser/testdata/01018_ip_dictionary_long/explain_352.txt new file mode 100644 index 0000000000..ee29509ee0 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_352.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'654f:3716::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_353.txt b/parser/testdata/01018_ip_dictionary_long/explain_353.txt new file mode 100644 index 0000000000..cb1dd904b9 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_353.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'654f:3716:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_354.txt b/parser/testdata/01018_ip_dictionary_long/explain_354.txt new file mode 100644 index 0000000000..e76218033a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_354.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'JA\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:654f:3716\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_355.txt b/parser/testdata/01018_ip_dictionary_long/explain_355.txt new file mode 100644 index 0000000000..b7344fe29b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_355.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'JA\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_356.txt b/parser/testdata/01018_ip_dictionary_long/explain_356.txt new file mode 100644 index 0000000000..0922718d53 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_356.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'JA\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_357.txt b/parser/testdata/01018_ip_dictionary_long/explain_357.txt new file mode 100644 index 0000000000..6d6e81bb27 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_357.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_358.txt b/parser/testdata/01018_ip_dictionary_long/explain_358.txt new file mode 100644 index 0000000000..dc9b9f6b57 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_358.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_359.txt b/parser/testdata/01018_ip_dictionary_long/explain_359.txt new file mode 100644 index 0000000000..8e2f7eba7e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_359.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_36.txt b/parser/testdata/01018_ip_dictionary_long/explain_36.txt new file mode 100644 index 0000000000..91fb2812e2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_36.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_22 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.252.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_360.txt b/parser/testdata/01018_ip_dictionary_long/explain_360.txt new file mode 100644 index 0000000000..db6d57a738 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_360.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_361.txt b/parser/testdata/01018_ip_dictionary_long/explain_361.txt new file mode 100644 index 0000000000..0c3cec5b2d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_361.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_362.txt b/parser/testdata/01018_ip_dictionary_long/explain_362.txt new file mode 100644 index 0000000000..cd2a224ed5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_362.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_363.txt b/parser/testdata/01018_ip_dictionary_long/explain_363.txt new file mode 100644 index 0000000000..68b2265215 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_363.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_364.txt b/parser/testdata/01018_ip_dictionary_long/explain_364.txt new file mode 100644 index 0000000000..8c37db2ee1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_364.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_365.txt b/parser/testdata/01018_ip_dictionary_long/explain_365.txt new file mode 100644 index 0000000000..3fde19828a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_365.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_366.txt b/parser/testdata/01018_ip_dictionary_long/explain_366.txt new file mode 100644 index 0000000000..8448b6888c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_366.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_367.txt b/parser/testdata/01018_ip_dictionary_long/explain_367.txt new file mode 100644 index 0000000000..d803d7419c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_367.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_368.txt b/parser/testdata/01018_ip_dictionary_long/explain_368.txt new file mode 100644 index 0000000000..326d64a7b5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_368.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_369.txt b/parser/testdata/01018_ip_dictionary_long/explain_369.txt new file mode 100644 index 0000000000..907eb3fafb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_369.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_37.txt b/parser/testdata/01018_ip_dictionary_long/explain_37.txt new file mode 100644 index 0000000000..cfe48489cc --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_37.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_23 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.254.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_370.txt b/parser/testdata/01018_ip_dictionary_long/explain_370.txt new file mode 100644 index 0000000000..f508e74b07 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_370.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_371.txt b/parser/testdata/01018_ip_dictionary_long/explain_371.txt new file mode 100644 index 0000000000..7a06c9a07e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_371.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_372.txt b/parser/testdata/01018_ip_dictionary_long/explain_372.txt new file mode 100644 index 0000000000..d7e74c3787 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_372.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_373.txt b/parser/testdata/01018_ip_dictionary_long/explain_373.txt new file mode 100644 index 0000000000..727b70ca88 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_373.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_374.txt b/parser/testdata/01018_ip_dictionary_long/explain_374.txt new file mode 100644 index 0000000000..ac168ed83f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_374.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_375.txt b/parser/testdata/01018_ip_dictionary_long/explain_375.txt new file mode 100644 index 0000000000..da25dd7b2c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_375.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_376.txt b/parser/testdata/01018_ip_dictionary_long/explain_376.txt new file mode 100644 index 0000000000..4b1ac84b01 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_376.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_377.txt b/parser/testdata/01018_ip_dictionary_long/explain_377.txt new file mode 100644 index 0000000000..dea48e53e4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_377.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_378.txt b/parser/testdata/01018_ip_dictionary_long/explain_378.txt new file mode 100644 index 0000000000..820de90465 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_378.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_379.txt b/parser/testdata/01018_ip_dictionary_long/explain_379.txt new file mode 100644 index 0000000000..9de1841905 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_379.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_38.txt b/parser/testdata/01018_ip_dictionary_long/explain_38.txt new file mode 100644 index 0000000000..95b70ef966 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_38.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_24 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_380.txt b/parser/testdata/01018_ip_dictionary_long/explain_380.txt new file mode 100644 index 0000000000..da25dd7b2c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_380.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_381.txt b/parser/testdata/01018_ip_dictionary_long/explain_381.txt new file mode 100644 index 0000000000..4b1ac84b01 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_381.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_382.txt b/parser/testdata/01018_ip_dictionary_long/explain_382.txt new file mode 100644 index 0000000000..dea48e53e4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_382.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_383.txt b/parser/testdata/01018_ip_dictionary_long/explain_383.txt new file mode 100644 index 0000000000..820de90465 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_383.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_384.txt b/parser/testdata/01018_ip_dictionary_long/explain_384.txt new file mode 100644 index 0000000000..9de1841905 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_384.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_385.txt b/parser/testdata/01018_ip_dictionary_long/explain_385.txt new file mode 100644 index 0000000000..a1fed435fc --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_385.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_386.txt b/parser/testdata/01018_ip_dictionary_long/explain_386.txt new file mode 100644 index 0000000000..3d40832df8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_386.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_387.txt b/parser/testdata/01018_ip_dictionary_long/explain_387.txt new file mode 100644 index 0000000000..2076b5c3bc --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_387.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_388.txt b/parser/testdata/01018_ip_dictionary_long/explain_388.txt new file mode 100644 index 0000000000..9274c49fd2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_388.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_389.txt b/parser/testdata/01018_ip_dictionary_long/explain_389.txt new file mode 100644 index 0000000000..cc3217e0ac --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_389.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_39.txt b/parser/testdata/01018_ip_dictionary_long/explain_39.txt new file mode 100644 index 0000000000..5b09319937 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_39.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_25 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.128\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_390.txt b/parser/testdata/01018_ip_dictionary_long/explain_390.txt new file mode 100644 index 0000000000..cb12da7808 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_390.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_391.txt b/parser/testdata/01018_ip_dictionary_long/explain_391.txt new file mode 100644 index 0000000000..ad5245b3fe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_391.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_392.txt b/parser/testdata/01018_ip_dictionary_long/explain_392.txt new file mode 100644 index 0000000000..c5112420fe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_392.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_393.txt b/parser/testdata/01018_ip_dictionary_long/explain_393.txt new file mode 100644 index 0000000000..f7abd89520 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_393.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_394.txt b/parser/testdata/01018_ip_dictionary_long/explain_394.txt new file mode 100644 index 0000000000..8a66318c5a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_394.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_395.txt b/parser/testdata/01018_ip_dictionary_long/explain_395.txt new file mode 100644 index 0000000000..53d654b4a8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_395.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_396.txt b/parser/testdata/01018_ip_dictionary_long/explain_396.txt new file mode 100644 index 0000000000..eab06d2728 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_396.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_397.txt b/parser/testdata/01018_ip_dictionary_long/explain_397.txt new file mode 100644 index 0000000000..daaf024447 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_397.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_398.txt b/parser/testdata/01018_ip_dictionary_long/explain_398.txt new file mode 100644 index 0000000000..fae09c4989 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_398.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_399.txt b/parser/testdata/01018_ip_dictionary_long/explain_399.txt new file mode 100644 index 0000000000..b6c8362f4d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_399.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_4.txt b/parser/testdata/01018_ip_dictionary_long/explain_4.txt new file mode 100644 index 0000000000..bcbd0db38c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_4.txt @@ -0,0 +1,40 @@ +InsertQuery (children 3) + Identifier test_db + Identifier table_ipv4_trie + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 3) + Function concat (alias prefix) (children 1) + ExpressionList (children 2) + Literal \'255.255.255.255/\' + Function toString (children 1) + ExpressionList (children 1) + Function modulo (children 1) + ExpressionList (children 2) + Function multiply (children 1) + ExpressionList (children 2) + Function plus (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_1 + Literal UInt64_13 + Literal UInt64_33 + Function toUInt32 (alias asn) (children 1) + ExpressionList (children 1) + Function modulo (children 1) + ExpressionList (children 2) + Function multiply (children 1) + ExpressionList (children 2) + Function plus (children 1) + ExpressionList (children 2) + Identifier number + Literal UInt64_1 + Literal UInt64_13 + Literal UInt64_33 + Literal \'NA\' (alias cca2) + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.numbers + Literal UInt64_33 diff --git a/parser/testdata/01018_ip_dictionary_long/explain_40.txt b/parser/testdata/01018_ip_dictionary_long/explain_40.txt new file mode 100644 index 0000000000..0a2ddcfdcf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_40.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_26 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.192\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_400.txt b/parser/testdata/01018_ip_dictionary_long/explain_400.txt new file mode 100644 index 0000000000..b640ac6a1a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_400.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_401.txt b/parser/testdata/01018_ip_dictionary_long/explain_401.txt new file mode 100644 index 0000000000..0c7390d752 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_401.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_402.txt b/parser/testdata/01018_ip_dictionary_long/explain_402.txt new file mode 100644 index 0000000000..dfc070c860 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_402.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_403.txt b/parser/testdata/01018_ip_dictionary_long/explain_403.txt new file mode 100644 index 0000000000..0946f8362a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_403.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_404.txt b/parser/testdata/01018_ip_dictionary_long/explain_404.txt new file mode 100644 index 0000000000..fe13a5b414 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_404.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_405.txt b/parser/testdata/01018_ip_dictionary_long/explain_405.txt new file mode 100644 index 0000000000..1b1b459fe0 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_405.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_406.txt b/parser/testdata/01018_ip_dictionary_long/explain_406.txt new file mode 100644 index 0000000000..fb7260fccd --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_406.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_407.txt b/parser/testdata/01018_ip_dictionary_long/explain_407.txt new file mode 100644 index 0000000000..b39c24ab7b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_407.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_408.txt b/parser/testdata/01018_ip_dictionary_long/explain_408.txt new file mode 100644 index 0000000000..9d5d70ad55 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_408.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_409.txt b/parser/testdata/01018_ip_dictionary_long/explain_409.txt new file mode 100644 index 0000000000..befa29acb0 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_409.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_41.txt b/parser/testdata/01018_ip_dictionary_long/explain_41.txt new file mode 100644 index 0000000000..314dc544cf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_41.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_27 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.224\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_410.txt b/parser/testdata/01018_ip_dictionary_long/explain_410.txt new file mode 100644 index 0000000000..acb89e6968 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_410.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'48\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_411.txt b/parser/testdata/01018_ip_dictionary_long/explain_411.txt new file mode 100644 index 0000000000..80aa89cd80 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_411.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_412.txt b/parser/testdata/01018_ip_dictionary_long/explain_412.txt new file mode 100644 index 0000000000..f60204d5ab --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_412.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_413.txt b/parser/testdata/01018_ip_dictionary_long/explain_413.txt new file mode 100644 index 0000000000..10c14575e3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_413.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_414.txt b/parser/testdata/01018_ip_dictionary_long/explain_414.txt new file mode 100644 index 0000000000..596ca1f182 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_414.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_415.txt b/parser/testdata/01018_ip_dictionary_long/explain_415.txt new file mode 100644 index 0000000000..7648c27f30 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_415.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_416.txt b/parser/testdata/01018_ip_dictionary_long/explain_416.txt new file mode 100644 index 0000000000..75884bab53 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_416.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_417.txt b/parser/testdata/01018_ip_dictionary_long/explain_417.txt new file mode 100644 index 0000000000..47eb8c291d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_417.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_418.txt b/parser/testdata/01018_ip_dictionary_long/explain_418.txt new file mode 100644 index 0000000000..1ceb613e54 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_418.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_419.txt b/parser/testdata/01018_ip_dictionary_long/explain_419.txt new file mode 100644 index 0000000000..f31956b556 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_419.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_42.txt b/parser/testdata/01018_ip_dictionary_long/explain_42.txt new file mode 100644 index 0000000000..4d5fc0719c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_42.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_28 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.240\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_420.txt b/parser/testdata/01018_ip_dictionary_long/explain_420.txt new file mode 100644 index 0000000000..bf8d3e61de --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_420.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_421.txt b/parser/testdata/01018_ip_dictionary_long/explain_421.txt new file mode 100644 index 0000000000..32efe2d7d8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_421.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_422.txt b/parser/testdata/01018_ip_dictionary_long/explain_422.txt new file mode 100644 index 0000000000..5235dce8b7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_422.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_423.txt b/parser/testdata/01018_ip_dictionary_long/explain_423.txt new file mode 100644 index 0000000000..d29d011a66 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_423.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_424.txt b/parser/testdata/01018_ip_dictionary_long/explain_424.txt new file mode 100644 index 0000000000..8accf4a040 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_424.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_425.txt b/parser/testdata/01018_ip_dictionary_long/explain_425.txt new file mode 100644 index 0000000000..9f343e8c9d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_425.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_426.txt b/parser/testdata/01018_ip_dictionary_long/explain_426.txt new file mode 100644 index 0000000000..7f5f3d9c8a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_426.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_427.txt b/parser/testdata/01018_ip_dictionary_long/explain_427.txt new file mode 100644 index 0000000000..d20c1a094e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_427.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_428.txt b/parser/testdata/01018_ip_dictionary_long/explain_428.txt new file mode 100644 index 0000000000..ed6f3b539b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_428.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_429.txt b/parser/testdata/01018_ip_dictionary_long/explain_429.txt new file mode 100644 index 0000000000..2b12fa055e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_429.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_43.txt b/parser/testdata/01018_ip_dictionary_long/explain_43.txt new file mode 100644 index 0000000000..fab6f1735e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_43.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_29 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.248\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_430.txt b/parser/testdata/01018_ip_dictionary_long/explain_430.txt new file mode 100644 index 0000000000..b860c88882 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_430.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_431.txt b/parser/testdata/01018_ip_dictionary_long/explain_431.txt new file mode 100644 index 0000000000..ae659cd860 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_431.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_432.txt b/parser/testdata/01018_ip_dictionary_long/explain_432.txt new file mode 100644 index 0000000000..d536a13dbf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_432.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_433.txt b/parser/testdata/01018_ip_dictionary_long/explain_433.txt new file mode 100644 index 0000000000..f3a398ab95 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_433.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_434.txt b/parser/testdata/01018_ip_dictionary_long/explain_434.txt new file mode 100644 index 0000000000..02adf0be84 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_434.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_435.txt b/parser/testdata/01018_ip_dictionary_long/explain_435.txt new file mode 100644 index 0000000000..be2e9e01bf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_435.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_436.txt b/parser/testdata/01018_ip_dictionary_long/explain_436.txt new file mode 100644 index 0000000000..20706be687 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_436.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_437.txt b/parser/testdata/01018_ip_dictionary_long/explain_437.txt new file mode 100644 index 0000000000..112e5bff15 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_437.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_438.txt b/parser/testdata/01018_ip_dictionary_long/explain_438.txt new file mode 100644 index 0000000000..3dfc8b8bfd --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_438.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_439.txt b/parser/testdata/01018_ip_dictionary_long/explain_439.txt new file mode 100644 index 0000000000..18159bc56c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_439.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_44.txt b/parser/testdata/01018_ip_dictionary_long/explain_44.txt new file mode 100644 index 0000000000..8a13e1cc4a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_44.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_30 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.252\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_440.txt b/parser/testdata/01018_ip_dictionary_long/explain_440.txt new file mode 100644 index 0000000000..d8755938f6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_440.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_441.txt b/parser/testdata/01018_ip_dictionary_long/explain_441.txt new file mode 100644 index 0000000000..8b9a07b4b5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_441.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_442.txt b/parser/testdata/01018_ip_dictionary_long/explain_442.txt new file mode 100644 index 0000000000..cc99486f8f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_442.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_443.txt b/parser/testdata/01018_ip_dictionary_long/explain_443.txt new file mode 100644 index 0000000000..58b69dd3ed --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_443.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:8000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_444.txt b/parser/testdata/01018_ip_dictionary_long/explain_444.txt new file mode 100644 index 0000000000..21999762da --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_444.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:c000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_445.txt b/parser/testdata/01018_ip_dictionary_long/explain_445.txt new file mode 100644 index 0000000000..5c1a1192a0 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_445.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:e000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_446.txt b/parser/testdata/01018_ip_dictionary_long/explain_446.txt new file mode 100644 index 0000000000..2da4c897d6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_446.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:f000::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_447.txt b/parser/testdata/01018_ip_dictionary_long/explain_447.txt new file mode 100644 index 0000000000..42ae51a3b6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_447.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:f800::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_448.txt b/parser/testdata/01018_ip_dictionary_long/explain_448.txt new file mode 100644 index 0000000000..212058a319 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_448.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fc00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_449.txt b/parser/testdata/01018_ip_dictionary_long/explain_449.txt new file mode 100644 index 0000000000..46e9178a55 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_449.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fe00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_45.txt b/parser/testdata/01018_ip_dictionary_long/explain_45.txt new file mode 100644 index 0000000000..0fd3ac9692 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_45.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_31 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.254\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_450.txt b/parser/testdata/01018_ip_dictionary_long/explain_450.txt new file mode 100644 index 0000000000..3a88e1faa6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_450.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ff00::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_451.txt b/parser/testdata/01018_ip_dictionary_long/explain_451.txt new file mode 100644 index 0000000000..4b13e5e7e6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_451.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ff80::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_452.txt b/parser/testdata/01018_ip_dictionary_long/explain_452.txt new file mode 100644 index 0000000000..28712e13d4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_452.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffc0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_453.txt b/parser/testdata/01018_ip_dictionary_long/explain_453.txt new file mode 100644 index 0000000000..9ccf9d5fe5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_453.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffe0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_454.txt b/parser/testdata/01018_ip_dictionary_long/explain_454.txt new file mode 100644 index 0000000000..59fa6caac4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_454.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fff0::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_455.txt b/parser/testdata/01018_ip_dictionary_long/explain_455.txt new file mode 100644 index 0000000000..4d7c98a119 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_455.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fff8::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_456.txt b/parser/testdata/01018_ip_dictionary_long/explain_456.txt new file mode 100644 index 0000000000..5069682177 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_456.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fffc::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_457.txt b/parser/testdata/01018_ip_dictionary_long/explain_457.txt new file mode 100644 index 0000000000..7bb42d4500 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_457.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:fffe::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_458.txt b/parser/testdata/01018_ip_dictionary_long/explain_458.txt new file mode 100644 index 0000000000..49b23f2599 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_458.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff::\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_459.txt b/parser/testdata/01018_ip_dictionary_long/explain_459.txt new file mode 100644 index 0000000000..aad5adaebe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_459.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:8000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_46.txt b/parser/testdata/01018_ip_dictionary_long/explain_46.txt new file mode 100644 index 0000000000..dacbc8b400 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_46.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_32 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_460.txt b/parser/testdata/01018_ip_dictionary_long/explain_460.txt new file mode 100644 index 0000000000..a8287e1ac6 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_460.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'49\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:c000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_461.txt b/parser/testdata/01018_ip_dictionary_long/explain_461.txt new file mode 100644 index 0000000000..5634a325c7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_461.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:e000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_462.txt b/parser/testdata/01018_ip_dictionary_long/explain_462.txt new file mode 100644 index 0000000000..92b6c0b125 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_462.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:f000:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_463.txt b/parser/testdata/01018_ip_dictionary_long/explain_463.txt new file mode 100644 index 0000000000..f364298d73 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_463.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:f800:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_464.txt b/parser/testdata/01018_ip_dictionary_long/explain_464.txt new file mode 100644 index 0000000000..84c3219e98 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_464.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fc00:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_465.txt b/parser/testdata/01018_ip_dictionary_long/explain_465.txt new file mode 100644 index 0000000000..255e9251eb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_465.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fe00:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_466.txt b/parser/testdata/01018_ip_dictionary_long/explain_466.txt new file mode 100644 index 0000000000..59e8f54fdb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_466.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ff00:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_467.txt b/parser/testdata/01018_ip_dictionary_long/explain_467.txt new file mode 100644 index 0000000000..5ddb0e5ca2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_467.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ff80:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_468.txt b/parser/testdata/01018_ip_dictionary_long/explain_468.txt new file mode 100644 index 0000000000..0701bcd1df --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_468.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffc0:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_469.txt b/parser/testdata/01018_ip_dictionary_long/explain_469.txt new file mode 100644 index 0000000000..7fb8f2d8b1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_469.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffe0:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_47.txt b/parser/testdata/01018_ip_dictionary_long/explain_47.txt new file mode 100644 index 0000000000..88eec7074b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_47.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'RU\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'cca2\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_470.txt b/parser/testdata/01018_ip_dictionary_long/explain_470.txt new file mode 100644 index 0000000000..4a02b8a3fb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_470.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fff0:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_471.txt b/parser/testdata/01018_ip_dictionary_long/explain_471.txt new file mode 100644 index 0000000000..77d93d5783 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_471.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fff8:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_472.txt b/parser/testdata/01018_ip_dictionary_long/explain_472.txt new file mode 100644 index 0000000000..54a3b100e3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_472.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fffc:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_473.txt b/parser/testdata/01018_ip_dictionary_long/explain_473.txt new file mode 100644 index 0000000000..8882341031 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_473.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:fffe:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_474.txt b/parser/testdata/01018_ip_dictionary_long/explain_474.txt new file mode 100644 index 0000000000..2b524d037a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_474.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_475.txt b/parser/testdata/01018_ip_dictionary_long/explain_475.txt new file mode 100644 index 0000000000..305c09d13a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_475.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:8000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_476.txt b/parser/testdata/01018_ip_dictionary_long/explain_476.txt new file mode 100644 index 0000000000..066cf8aa6a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_476.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:c000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_477.txt b/parser/testdata/01018_ip_dictionary_long/explain_477.txt new file mode 100644 index 0000000000..fcb200197d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_477.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:e000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_478.txt b/parser/testdata/01018_ip_dictionary_long/explain_478.txt new file mode 100644 index 0000000000..bc6aa82cfb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_478.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:f000\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_479.txt b/parser/testdata/01018_ip_dictionary_long/explain_479.txt new file mode 100644 index 0000000000..1e237c3175 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_479.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:f800\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_48.txt b/parser/testdata/01018_ip_dictionary_long/explain_48.txt new file mode 100644 index 0000000000..5e5d05ff37 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_48.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1270 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_480.txt b/parser/testdata/01018_ip_dictionary_long/explain_480.txt new file mode 100644 index 0000000000..cbaa29b428 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_480.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fc00\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_481.txt b/parser/testdata/01018_ip_dictionary_long/explain_481.txt new file mode 100644 index 0000000000..a7eea03d01 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_481.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fe00\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_482.txt b/parser/testdata/01018_ip_dictionary_long/explain_482.txt new file mode 100644 index 0000000000..2b5654b8ff --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_482.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_483.txt b/parser/testdata/01018_ip_dictionary_long/explain_483.txt new file mode 100644 index 0000000000..4270b7cc04 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_483.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff80\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_484.txt b/parser/testdata/01018_ip_dictionary_long/explain_484.txt new file mode 100644 index 0000000000..a218f677c4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_484.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffc0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_485.txt b/parser/testdata/01018_ip_dictionary_long/explain_485.txt new file mode 100644 index 0000000000..b5ac0e5a23 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_485.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffe0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_486.txt b/parser/testdata/01018_ip_dictionary_long/explain_486.txt new file mode 100644 index 0000000000..75c961fc59 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_486.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_487.txt b/parser/testdata/01018_ip_dictionary_long/explain_487.txt new file mode 100644 index 0000000000..d2d93d4d62 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_487.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff8\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_488.txt b/parser/testdata/01018_ip_dictionary_long/explain_488.txt new file mode 100644 index 0000000000..e557d83e2e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_488.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'99\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_489.txt b/parser/testdata/01018_ip_dictionary_long/explain_489.txt new file mode 100644 index 0000000000..bc4c30a9eb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_489.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_49.txt b/parser/testdata/01018_ip_dictionary_long/explain_49.txt new file mode 100644 index 0000000000..2af96d4be5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_49.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1270 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_490.txt b/parser/testdata/01018_ip_dictionary_long/explain_490.txt new file mode 100644 index 0000000000..a8fbf7ba15 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_490.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'127\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_491.txt b/parser/testdata/01018_ip_dictionary_long/explain_491.txt new file mode 100644 index 0000000000..18331367d5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_491.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'0.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_492.txt b/parser/testdata/01018_ip_dictionary_long/explain_492.txt new file mode 100644 index 0000000000..eecc894cb3 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_492.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'128.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_493.txt b/parser/testdata/01018_ip_dictionary_long/explain_493.txt new file mode 100644 index 0000000000..830c7ee5e8 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_493.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'240.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_494.txt b/parser/testdata/01018_ip_dictionary_long/explain_494.txt new file mode 100644 index 0000000000..7e1183324e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_494.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'248.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_495.txt b/parser/testdata/01018_ip_dictionary_long/explain_495.txt new file mode 100644 index 0000000000..d10093e671 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_495.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'252.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_496.txt b/parser/testdata/01018_ip_dictionary_long/explain_496.txt new file mode 100644 index 0000000000..4cb67cd67a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_496.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'5\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.240.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_497.txt b/parser/testdata/01018_ip_dictionary_long/explain_497.txt new file mode 100644 index 0000000000..d2d1c95a94 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_497.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.248.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_498.txt b/parser/testdata/01018_ip_dictionary_long/explain_498.txt new file mode 100644 index 0000000000..85543a5e2b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_498.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.252.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_499.txt b/parser/testdata/01018_ip_dictionary_long/explain_499.txt new file mode 100644 index 0000000000..b035e58b08 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_499.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'13\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.254.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_5.txt b/parser/testdata/01018_ip_dictionary_long/explain_5.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_50.txt b/parser/testdata/01018_ip_dictionary_long/explain_50.txt new file mode 100644 index 0000000000..65e39875f9 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_50.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1272 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.2\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_500.txt b/parser/testdata/01018_ip_dictionary_long/explain_500.txt new file mode 100644 index 0000000000..3d8bc23b89 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_500.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_501.txt b/parser/testdata/01018_ip_dictionary_long/explain_501.txt new file mode 100644 index 0000000000..b007fcca42 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_501.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.128\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_502.txt b/parser/testdata/01018_ip_dictionary_long/explain_502.txt new file mode 100644 index 0000000000..6e66cf71cb --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_502.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'24\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.248\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_503.txt b/parser/testdata/01018_ip_dictionary_long/explain_503.txt new file mode 100644 index 0000000000..dd4b1ff3f1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_503.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'30\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.252\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_504.txt b/parser/testdata/01018_ip_dictionary_long/explain_504.txt new file mode 100644 index 0000000000..4fded1c74e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_504.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'30\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.254\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_505.txt b/parser/testdata/01018_ip_dictionary_long/explain_505.txt new file mode 100644 index 0000000000..edf6720263 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_505.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal \'30\' + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ip_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_506.txt b/parser/testdata/01018_ip_dictionary_long/explain_506.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_506.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01018_ip_dictionary_long/explain_51.txt b/parser/testdata/01018_ip_dictionary_long/explain_51.txt new file mode 100644 index 0000000000..a677633b85 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_51.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1270 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.3\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_52.txt b/parser/testdata/01018_ip_dictionary_long/explain_52.txt new file mode 100644 index 0000000000..9ecb9ccd6d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_52.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1270 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_53.txt b/parser/testdata/01018_ip_dictionary_long/explain_53.txt new file mode 100644 index 0000000000..1709cc8b25 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_53.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_54.txt b/parser/testdata/01018_ip_dictionary_long/explain_54.txt new file mode 100644 index 0000000000..3ae559dcc7 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_54.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.1\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_55.txt b/parser/testdata/01018_ip_dictionary_long/explain_55.txt new file mode 100644 index 0000000000..588ebc9eba --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_55.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.2\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_56.txt b/parser/testdata/01018_ip_dictionary_long/explain_56.txt new file mode 100644 index 0000000000..660b3700e2 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_56.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.3\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_57.txt b/parser/testdata/01018_ip_dictionary_long/explain_57.txt new file mode 100644 index 0000000000..da8f25a695 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_57.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1 + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'127.0.0.255\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_58.txt b/parser/testdata/01018_ip_dictionary_long/explain_58.txt new file mode 100644 index 0000000000..dd80b435da --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_58.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_11212 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_59.txt b/parser/testdata/01018_ip_dictionary_long/explain_59.txt new file mode 100644 index 0000000000..bbe753dbbe --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_59.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_11212 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:654f:3716\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_6.txt b/parser/testdata/01018_ip_dictionary_long/explain_6.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_60.txt b/parser/testdata/01018_ip_dictionary_long/explain_60.txt new file mode 100644 index 0000000000..4b6d77a00f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_60.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_11212 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv6StringToNum (children 1) + ExpressionList (children 1) + Literal \'::ffff:101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_61.txt b/parser/testdata/01018_ip_dictionary_long/explain_61.txt new file mode 100644 index 0000000000..d518a94092 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_61.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_11211 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'202.79.32.2\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_62.txt b/parser/testdata/01018_ip_dictionary_long/explain_62.txt new file mode 100644 index 0000000000..e9ca178d6b --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_62.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_11211 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function toIPv4 (children 1) + ExpressionList (children 1) + Literal \'202.79.32.2\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_63.txt b/parser/testdata/01018_ip_dictionary_long/explain_63.txt new file mode 100644 index 0000000000..0763e9b1b1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_63.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_11212 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'asn\' + Function tuple (children 1) + ExpressionList (children 1) + Function toIPv6 (children 1) + ExpressionList (children 1) + Literal \'::ffff:101.79.55.22\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_64.txt b/parser/testdata/01018_ip_dictionary_long/explain_64.txt new file mode 100644 index 0000000000..c2932885ea --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_64.txt @@ -0,0 +1,15 @@ +CreateQuery test_db table_from_ipv4_trie_dict (children 4) + Identifier test_db + Identifier table_from_ipv4_trie_dict + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration prefix (children 1) + DataType String + ColumnDeclaration asn (children 1) + DataType UInt32 + ColumnDeclaration cca2 (children 1) + DataType String + Storage definition (children 1) + Function Dictionary (children 1) + ExpressionList (children 1) + Identifier test_db.dict_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_65.txt b/parser/testdata/01018_ip_dictionary_long/explain_65.txt new file mode 100644 index 0000000000..da66c8816d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_65.txt @@ -0,0 +1,22 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_1272 + Identifier asn + Function equals (children 1) + ExpressionList (children 2) + Literal \'RU\' + Identifier cca2 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.table_from_ipv4_trie_dict + Function equals (children 1) + ExpressionList (children 2) + Identifier prefix + Literal \'127.0.0.2/32\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_66.txt b/parser/testdata/01018_ip_dictionary_long/explain_66.txt new file mode 100644 index 0000000000..791bc39339 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_66.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_37 + Function COUNT (children 1) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.table_from_ipv4_trie_dict diff --git a/parser/testdata/01018_ip_dictionary_long/explain_67.txt b/parser/testdata/01018_ip_dictionary_long/explain_67.txt new file mode 100644 index 0000000000..44f400cf00 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_67.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_37 + Function COUNTDistinct (children 1) + ExpressionList (children 1) + Identifier prefix + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.table_from_ipv4_trie_dict diff --git a/parser/testdata/01018_ip_dictionary_long/explain_68.txt b/parser/testdata/01018_ip_dictionary_long/explain_68.txt new file mode 100644 index 0000000000..f59a36501f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_68.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_from_ipv4_trie_dict (children 2) + Identifier test_db + Identifier table_from_ipv4_trie_dict diff --git a/parser/testdata/01018_ip_dictionary_long/explain_69.txt b/parser/testdata/01018_ip_dictionary_long/explain_69.txt new file mode 100644 index 0000000000..816438063c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_69.txt @@ -0,0 +1,3 @@ +DropQuery test_db dict_ipv4_trie (children 2) + Identifier test_db + Identifier dict_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_7.txt b/parser/testdata/01018_ip_dictionary_long/explain_7.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_70.txt b/parser/testdata/01018_ip_dictionary_long/explain_70.txt new file mode 100644 index 0000000000..4ec0f19712 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_70.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_ipv4_trie (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_72.txt b/parser/testdata/01018_ip_dictionary_long/explain_72.txt new file mode 100644 index 0000000000..734ca71202 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_72.txt @@ -0,0 +1,11 @@ +CreateQuery test_db table_ipv4_trie (children 4) + Identifier test_db + Identifier table_ipv4_trie + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration prefix (children 1) + DataType String + ColumnDeclaration val (children 1) + DataType UInt32 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01018_ip_dictionary_long/explain_73.txt b/parser/testdata/01018_ip_dictionary_long/explain_73.txt new file mode 100644 index 0000000000..401e6950c1 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_73.txt @@ -0,0 +1,26 @@ +InsertQuery (children 3) + Identifier test_db + Identifier table_ipv4_trie + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function concat (alias prefix) (children 1) + ExpressionList (children 2) + Literal \'255.255.255.255/\' + Function toString (children 1) + ExpressionList (children 1) + Identifier number + Function toUInt32 (alias val) (children 1) + ExpressionList (children 1) + Identifier number + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function VALUES (children 1) + ExpressionList (children 5) + Literal \'number UInt32\' + Literal UInt64_5 + Literal UInt64_13 + Literal UInt64_24 + Literal UInt64_30 diff --git a/parser/testdata/01018_ip_dictionary_long/explain_74.txt b/parser/testdata/01018_ip_dictionary_long/explain_74.txt new file mode 100644 index 0000000000..b7fb28bb9d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_74.txt @@ -0,0 +1,28 @@ +CreateQuery test_db dict_ipv4_trie (children 4) + Identifier test_db + Identifier dict_ipv4_trie + ExpressionList (children 2) + DictionaryAttributeDeclaration prefix (children 1) + DataType String + DictionaryAttributeDeclaration val (children 1) + DataType UInt32 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier prefix + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_ipv4_trie\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01018_ip_dictionary_long/explain_75.txt b/parser/testdata/01018_ip_dictionary_long/explain_75.txt new file mode 100644 index 0000000000..b437076489 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_75.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'0.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_76.txt b/parser/testdata/01018_ip_dictionary_long/explain_76.txt new file mode 100644 index 0000000000..ac7dc95927 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_76.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'128.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_77.txt b/parser/testdata/01018_ip_dictionary_long/explain_77.txt new file mode 100644 index 0000000000..152c70432c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_77.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'192.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_78.txt b/parser/testdata/01018_ip_dictionary_long/explain_78.txt new file mode 100644 index 0000000000..ee38455324 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_78.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'224.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_79.txt b/parser/testdata/01018_ip_dictionary_long/explain_79.txt new file mode 100644 index 0000000000..82a077129e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_79.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'240.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_8.txt b/parser/testdata/01018_ip_dictionary_long/explain_8.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_8.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_80.txt b/parser/testdata/01018_ip_dictionary_long/explain_80.txt new file mode 100644 index 0000000000..90b3405ba4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_80.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'248.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_81.txt b/parser/testdata/01018_ip_dictionary_long/explain_81.txt new file mode 100644 index 0000000000..d4ed664b9e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_81.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'252.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_82.txt b/parser/testdata/01018_ip_dictionary_long/explain_82.txt new file mode 100644 index 0000000000..edcf3a8fb5 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_82.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'254.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_83.txt b/parser/testdata/01018_ip_dictionary_long/explain_83.txt new file mode 100644 index 0000000000..849d969f31 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_83.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.0.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_84.txt b/parser/testdata/01018_ip_dictionary_long/explain_84.txt new file mode 100644 index 0000000000..a36eca6e30 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_84.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.128.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_85.txt b/parser/testdata/01018_ip_dictionary_long/explain_85.txt new file mode 100644 index 0000000000..05f430aa7a --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_85.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.192.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_86.txt b/parser/testdata/01018_ip_dictionary_long/explain_86.txt new file mode 100644 index 0000000000..48c9cceb33 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_86.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.224.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_87.txt b/parser/testdata/01018_ip_dictionary_long/explain_87.txt new file mode 100644 index 0000000000..93b6a9a65f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_87.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.240.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_88.txt b/parser/testdata/01018_ip_dictionary_long/explain_88.txt new file mode 100644 index 0000000000..0273f81f6e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_88.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.248.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_89.txt b/parser/testdata/01018_ip_dictionary_long/explain_89.txt new file mode 100644 index 0000000000..5876490550 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_89.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.252.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_9.txt b/parser/testdata/01018_ip_dictionary_long/explain_9.txt new file mode 100644 index 0000000000..bf5d41becf --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_ipv4_trie diff --git a/parser/testdata/01018_ip_dictionary_long/explain_90.txt b/parser/testdata/01018_ip_dictionary_long/explain_90.txt new file mode 100644 index 0000000000..e066ca12c4 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_90.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.254.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_91.txt b/parser/testdata/01018_ip_dictionary_long/explain_91.txt new file mode 100644 index 0000000000..742de8bd4e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_91.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.0.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_92.txt b/parser/testdata/01018_ip_dictionary_long/explain_92.txt new file mode 100644 index 0000000000..481e44ab6c --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_92.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.128.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_93.txt b/parser/testdata/01018_ip_dictionary_long/explain_93.txt new file mode 100644 index 0000000000..438e391377 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_93.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.192.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_94.txt b/parser/testdata/01018_ip_dictionary_long/explain_94.txt new file mode 100644 index 0000000000..0a0b03b97f --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_94.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.224.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_95.txt b/parser/testdata/01018_ip_dictionary_long/explain_95.txt new file mode 100644 index 0000000000..63f069bb3e --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_95.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.240.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_96.txt b/parser/testdata/01018_ip_dictionary_long/explain_96.txt new file mode 100644 index 0000000000..057562b35d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_96.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.248.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_97.txt b/parser/testdata/01018_ip_dictionary_long/explain_97.txt new file mode 100644 index 0000000000..2ec1606fc9 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_97.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.252.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_98.txt b/parser/testdata/01018_ip_dictionary_long/explain_98.txt new file mode 100644 index 0000000000..c42cca581d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_98.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_13 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.254.0\' diff --git a/parser/testdata/01018_ip_dictionary_long/explain_99.txt b/parser/testdata/01018_ip_dictionary_long/explain_99.txt new file mode 100644 index 0000000000..38422a8520 --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/explain_99.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Literal UInt64_24 + Function dictGetUInt32 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_ipv4_trie\' + Literal \'val\' + Function tuple (children 1) + ExpressionList (children 1) + Function IPv4StringToNum (children 1) + ExpressionList (children 1) + Literal \'255.255.255.0\' diff --git a/parser/testdata/01023_materialized_view_query_context/explain_22.txt b/parser/testdata/01023_materialized_view_query_context/explain_22.txt new file mode 100644 index 0000000000..61ecde4b73 --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict (children 2) + Identifier test_db_1 + Identifier dict diff --git a/parser/testdata/01023_materialized_view_query_context/explain_23.txt b/parser/testdata/01023_materialized_view_query_context/explain_23.txt new file mode 100644 index 0000000000..a07c8d252e --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict_source (children 2) + Identifier test_db_1 + Identifier dict_source diff --git a/parser/testdata/01023_materialized_view_query_context/explain_24.txt b/parser/testdata/01023_materialized_view_query_context/explain_24.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_24.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01023_materialized_view_query_context/explain_3.txt b/parser/testdata/01023_materialized_view_query_context/explain_3.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_3.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01023_materialized_view_query_context/explain_4.txt b/parser/testdata/01023_materialized_view_query_context/explain_4.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_4.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01023_materialized_view_query_context/explain_5.txt b/parser/testdata/01023_materialized_view_query_context/explain_5.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_5.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01023_materialized_view_query_context/explain_6.txt b/parser/testdata/01023_materialized_view_query_context/explain_6.txt new file mode 100644 index 0000000000..9765d34cbd --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_6.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 dict_source (children 4) + Identifier test_db_1 + Identifier dict_source + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType UInt64 + ColumnDeclaration val (children 1) + DataType UInt64 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01023_materialized_view_query_context/explain_7.txt b/parser/testdata/01023_materialized_view_query_context/explain_7.txt new file mode 100644 index 0000000000..78d6041341 --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/explain_7.txt @@ -0,0 +1,32 @@ +CreateQuery test_db_1 dict (children 4) + Identifier test_db_1 + Identifier dict + ExpressionList (children 2) + DictionaryAttributeDeclaration key (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration val (children 2) + DataType UInt64 + Literal UInt64_1 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'dict_source\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_10.txt b/parser/testdata/01033_dictionaries_lifetime/explain_10.txt new file mode 100644 index 0000000000..2832c3857a --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_11.txt b/parser/testdata/01033_dictionaries_lifetime/explain_11.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_12.txt b/parser/testdata/01033_dictionaries_lifetime/explain_12.txt new file mode 100644 index 0000000000..ec59624242 --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_12.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_for_dict (children 2) + Identifier test_db + Identifier table_for_dict diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_13.txt b/parser/testdata/01033_dictionaries_lifetime/explain_13.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_2.txt b/parser/testdata/01033_dictionaries_lifetime/explain_2.txt new file mode 100644 index 0000000000..65dbcf64b4 --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_2.txt @@ -0,0 +1,14 @@ +CreateQuery test_db table_for_dict (children 4) + Identifier test_db + Identifier table_for_dict + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration key_column (children 1) + DataType UInt64 + ColumnDeclaration second_column (children 1) + DataType UInt8 + ColumnDeclaration third_column (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier key_column diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_3.txt b/parser/testdata/01033_dictionaries_lifetime/explain_3.txt new file mode 100644 index 0000000000..8ed8bd0a55 --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_3.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_for_dict diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_4.txt b/parser/testdata/01033_dictionaries_lifetime/explain_4.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_4.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_5.txt b/parser/testdata/01033_dictionaries_lifetime/explain_5.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_5.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_6.txt b/parser/testdata/01033_dictionaries_lifetime/explain_6.txt new file mode 100644 index 0000000000..732d341f48 --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_6.txt @@ -0,0 +1,35 @@ +CreateQuery test_db_1 dict1 (children 4) + Identifier test_db_1 + Identifier dict1 + ExpressionList (children 3) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt8 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_8.txt b/parser/testdata/01033_dictionaries_lifetime/explain_8.txt new file mode 100644 index 0000000000..cce01d7afb --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_8.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetUInt8 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'.dict1\' + Literal \'second_column\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_100500 diff --git a/parser/testdata/01033_dictionaries_lifetime/explain_9.txt b/parser/testdata/01033_dictionaries_lifetime/explain_9.txt new file mode 100644 index 0000000000..e7c777ec4f --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/explain_9.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier lifetime_min + Identifier lifetime_max + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict1\' diff --git a/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/explain_12.txt b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/explain_12.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/explain_12.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/explain_13.txt b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/explain_13.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/explain_13.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain.txt new file mode 100644 index 0000000000..32420ae51e --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain.txt @@ -0,0 +1,12 @@ +CreateQuery test_db table_for_dict (children 4) + Identifier test_db + Identifier table_for_dict + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key_column (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType Float64 + Storage definition (children 2) + Function MergeTree + Identifier key_column diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain_2.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain_2.txt new file mode 100644 index 0000000000..8ed8bd0a55 --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain_2.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier table_for_dict diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain_3.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain_3.txt new file mode 100644 index 0000000000..417ac99079 --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain_3.txt @@ -0,0 +1,29 @@ +CreateQuery test_db dict_exists (children 4) + Identifier test_db + Identifier dict_exists + ExpressionList (children 2) + DictionaryAttributeDeclaration key_column (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 2) + DataType Float64 + Literal Float64_77.77 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain_4.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain_4.txt new file mode 100644 index 0000000000..21dbac60a9 --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain_4.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_exists\' + Literal \'value\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain_5.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain_5.txt new file mode 100644 index 0000000000..417ac99079 --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain_5.txt @@ -0,0 +1,29 @@ +CreateQuery test_db dict_exists (children 4) + Identifier test_db + Identifier dict_exists + ExpressionList (children 2) + DictionaryAttributeDeclaration key_column (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 2) + DataType Float64 + Literal Float64_77.77 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain_6.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain_6.txt new file mode 100644 index 0000000000..21dbac60a9 --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain_6.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetFloat64 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict_exists\' + Literal \'value\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain_7.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain_7.txt new file mode 100644 index 0000000000..b26baa7a55 --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db dict_exists (children 2) + Identifier test_db + Identifier dict_exists diff --git a/parser/testdata/01041_create_dictionary_if_not_exists/explain_8.txt b/parser/testdata/01041_create_dictionary_if_not_exists/explain_8.txt new file mode 100644 index 0000000000..ec59624242 --- /dev/null +++ b/parser/testdata/01041_create_dictionary_if_not_exists/explain_8.txt @@ -0,0 +1,3 @@ +DropQuery test_db table_for_dict (children 2) + Identifier test_db + Identifier table_for_dict diff --git a/parser/testdata/01043_dictionary_attribute_properties_values/explain.txt b/parser/testdata/01043_dictionary_attribute_properties_values/explain.txt new file mode 100644 index 0000000000..3c5b42a206 --- /dev/null +++ b/parser/testdata/01043_dictionary_attribute_properties_values/explain.txt @@ -0,0 +1,15 @@ +CreateQuery test_db dicttbl (children 4) + Identifier test_db + Identifier dicttbl + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration key (children 1) + DataType Int64 + ColumnDeclaration value_default (children 1) + DataType String + ColumnDeclaration value_expression (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/01043_dictionary_attribute_properties_values/explain_2.txt b/parser/testdata/01043_dictionary_attribute_properties_values/explain_2.txt new file mode 100644 index 0000000000..b31772f937 --- /dev/null +++ b/parser/testdata/01043_dictionary_attribute_properties_values/explain_2.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier dicttbl diff --git a/parser/testdata/01043_dictionary_attribute_properties_values/explain_3.txt b/parser/testdata/01043_dictionary_attribute_properties_values/explain_3.txt new file mode 100644 index 0000000000..368e744d8d --- /dev/null +++ b/parser/testdata/01043_dictionary_attribute_properties_values/explain_3.txt @@ -0,0 +1,34 @@ +CreateQuery test_db dict (children 4) + Identifier test_db + Identifier dict + ExpressionList (children 3) + DictionaryAttributeDeclaration key (children 2) + DataType Int64 + Literal Int64_-1 + DictionaryAttributeDeclaration value_default (children 2) + DataType String + Literal \'world\' + DictionaryAttributeDeclaration value_expression (children 3) + DataType String + Literal \'xxx\' + Literal \'toString(127 * 172)\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'dicttbl\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01043_dictionary_attribute_properties_values/explain_4.txt b/parser/testdata/01043_dictionary_attribute_properties_values/explain_4.txt new file mode 100644 index 0000000000..b89b561751 --- /dev/null +++ b/parser/testdata/01043_dictionary_attribute_properties_values/explain_4.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict\' + Literal \'value_default\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01043_dictionary_attribute_properties_values/explain_5.txt b/parser/testdata/01043_dictionary_attribute_properties_values/explain_5.txt new file mode 100644 index 0000000000..95a3fbc1eb --- /dev/null +++ b/parser/testdata/01043_dictionary_attribute_properties_values/explain_5.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict\' + Literal \'value_default\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_14 diff --git a/parser/testdata/01043_dictionary_attribute_properties_values/explain_6.txt b/parser/testdata/01043_dictionary_attribute_properties_values/explain_6.txt new file mode 100644 index 0000000000..e05ae82681 --- /dev/null +++ b/parser/testdata/01043_dictionary_attribute_properties_values/explain_6.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict\' + Literal \'value_expression\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_12 diff --git a/parser/testdata/01043_dictionary_attribute_properties_values/explain_7.txt b/parser/testdata/01043_dictionary_attribute_properties_values/explain_7.txt new file mode 100644 index 0000000000..4ca4c507c0 --- /dev/null +++ b/parser/testdata/01043_dictionary_attribute_properties_values/explain_7.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.dict\' + Literal \'value_expression\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_14 diff --git a/parser/testdata/01045_dictionaries_restrictions/explain.txt b/parser/testdata/01045_dictionaries_restrictions/explain.txt new file mode 100644 index 0000000000..7691f28bf7 --- /dev/null +++ b/parser/testdata/01045_dictionaries_restrictions/explain.txt @@ -0,0 +1,22 @@ +CreateQuery test_db restricted_dict (children 4) + Identifier test_db + Identifier restricted_dict + ExpressionList (children 2) + DictionaryAttributeDeclaration key (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments executable (children 1) + ExpressionList (children 2) + pair (children 1) + Literal \'echo -E "1\\thello"\' + pair (children 1) + Identifier TabSeparated + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 diff --git a/parser/testdata/01045_dictionaries_restrictions/explain_2.txt b/parser/testdata/01045_dictionaries_restrictions/explain_2.txt new file mode 100644 index 0000000000..e57e4544b2 --- /dev/null +++ b/parser/testdata/01045_dictionaries_restrictions/explain_2.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.restricted_dict\' + Literal \'value\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01045_dictionaries_restrictions/explain_4.txt b/parser/testdata/01045_dictionaries_restrictions/explain_4.txt new file mode 100644 index 0000000000..2cc5bc664f --- /dev/null +++ b/parser/testdata/01045_dictionaries_restrictions/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db restricted_dict (children 2) + Identifier test_db + Identifier restricted_dict diff --git a/parser/testdata/01048_exists_query/explain.txt b/parser/testdata/01048_exists_query/explain.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_10.txt b/parser/testdata/01048_exists_query/explain_10.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_10.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_11.txt b/parser/testdata/01048_exists_query/explain_11.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_11.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_12.txt b/parser/testdata/01048_exists_query/explain_12.txt new file mode 100644 index 0000000000..545aa13627 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_12.txt @@ -0,0 +1,3 @@ +ExistsDictionaryQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_13.txt b/parser/testdata/01048_exists_query/explain_13.txt new file mode 100644 index 0000000000..5ed554065b --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_13.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 t_01048 (children 4) + Identifier test_db_1 + Identifier t_01048 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01048_exists_query/explain_14.txt b/parser/testdata/01048_exists_query/explain_14.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_14.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_15.txt b/parser/testdata/01048_exists_query/explain_15.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_15.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_16.txt b/parser/testdata/01048_exists_query/explain_16.txt new file mode 100644 index 0000000000..545aa13627 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_16.txt @@ -0,0 +1,3 @@ +ExistsDictionaryQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_17.txt b/parser/testdata/01048_exists_query/explain_17.txt new file mode 100644 index 0000000000..d8067bf5f5 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_17.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_18.txt b/parser/testdata/01048_exists_query/explain_18.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_18.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_19.txt b/parser/testdata/01048_exists_query/explain_19.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_19.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_2.txt b/parser/testdata/01048_exists_query/explain_2.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_2.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_20.txt b/parser/testdata/01048_exists_query/explain_20.txt new file mode 100644 index 0000000000..545aa13627 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_20.txt @@ -0,0 +1,3 @@ +ExistsDictionaryQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_26.txt b/parser/testdata/01048_exists_query/explain_26.txt new file mode 100644 index 0000000000..2cf3664e09 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_26.txt @@ -0,0 +1,20 @@ +CreateQuery test_db_1 t_01048 (children 4) + Identifier test_db_1 + Identifier t_01048 + ExpressionList (children 2) + DictionaryAttributeDeclaration k (children 1) + DataType UInt64 + DictionaryAttributeDeclaration v (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier k + FunctionWithKeyValueArguments http (children 1) + ExpressionList (children 2) + pair (children 1) + Literal \'http://example.test/\' + pair (children 1) + Literal \'TSV\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01048_exists_query/explain_27.txt b/parser/testdata/01048_exists_query/explain_27.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_27.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_28.txt b/parser/testdata/01048_exists_query/explain_28.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_28.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_29.txt b/parser/testdata/01048_exists_query/explain_29.txt new file mode 100644 index 0000000000..545aa13627 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_29.txt @@ -0,0 +1,3 @@ +ExistsDictionaryQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_3.txt b/parser/testdata/01048_exists_query/explain_3.txt new file mode 100644 index 0000000000..545aa13627 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_3.txt @@ -0,0 +1,3 @@ +ExistsDictionaryQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_30.txt b/parser/testdata/01048_exists_query/explain_30.txt new file mode 100644 index 0000000000..d8067bf5f5 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_30.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_31.txt b/parser/testdata/01048_exists_query/explain_31.txt new file mode 100644 index 0000000000..d8067bf5f5 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_31.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_32.txt b/parser/testdata/01048_exists_query/explain_32.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_32.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_33.txt b/parser/testdata/01048_exists_query/explain_33.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_33.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_34.txt b/parser/testdata/01048_exists_query/explain_34.txt new file mode 100644 index 0000000000..545aa13627 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_34.txt @@ -0,0 +1,3 @@ +ExistsDictionaryQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_35.txt b/parser/testdata/01048_exists_query/explain_35.txt new file mode 100644 index 0000000000..9ce8656601 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_35.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 t_01048_2 (children 4) + Identifier test_db_1 + Identifier t_01048_2 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01048_exists_query/explain_36.txt b/parser/testdata/01048_exists_query/explain_36.txt new file mode 100644 index 0000000000..2fd5d321dd --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_36.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 v_01048 (children 3) + Identifier test_db_1 + Identifier v_01048 + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_01048_2 diff --git a/parser/testdata/01048_exists_query/explain_37.txt b/parser/testdata/01048_exists_query/explain_37.txt new file mode 100644 index 0000000000..a4e2499e4e --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_37.txt @@ -0,0 +1,3 @@ +ExistsViewQuery test_db_1 v_01048 (children 2) + Identifier test_db_1 + Identifier v_01048 diff --git a/parser/testdata/01048_exists_query/explain_38.txt b/parser/testdata/01048_exists_query/explain_38.txt new file mode 100644 index 0000000000..8935c758a7 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_38.txt @@ -0,0 +1,3 @@ +ExistsViewQuery test_db_1 t_01048_2 (children 2) + Identifier test_db_1 + Identifier t_01048_2 diff --git a/parser/testdata/01048_exists_query/explain_39.txt b/parser/testdata/01048_exists_query/explain_39.txt new file mode 100644 index 0000000000..75cbc3e174 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_39.txt @@ -0,0 +1,3 @@ +ExistsViewQuery test_db_1 v_not_exist (children 2) + Identifier test_db_1 + Identifier v_not_exist diff --git a/parser/testdata/01048_exists_query/explain_4.txt b/parser/testdata/01048_exists_query/explain_4.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_4.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01048_exists_query/explain_40.txt b/parser/testdata/01048_exists_query/explain_40.txt new file mode 100644 index 0000000000..c6ade43b58 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_40.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 v_01048 (children 2) + Identifier test_db_1 + Identifier v_01048 diff --git a/parser/testdata/01048_exists_query/explain_41.txt b/parser/testdata/01048_exists_query/explain_41.txt new file mode 100644 index 0000000000..a4e2499e4e --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_41.txt @@ -0,0 +1,3 @@ +ExistsViewQuery test_db_1 v_01048 (children 2) + Identifier test_db_1 + Identifier v_01048 diff --git a/parser/testdata/01048_exists_query/explain_42.txt b/parser/testdata/01048_exists_query/explain_42.txt new file mode 100644 index 0000000000..8935c758a7 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_42.txt @@ -0,0 +1,3 @@ +ExistsViewQuery test_db_1 t_01048_2 (children 2) + Identifier test_db_1 + Identifier t_01048_2 diff --git a/parser/testdata/01048_exists_query/explain_43.txt b/parser/testdata/01048_exists_query/explain_43.txt new file mode 100644 index 0000000000..75cbc3e174 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_43.txt @@ -0,0 +1,3 @@ +ExistsViewQuery test_db_1 v_not_exist (children 2) + Identifier test_db_1 + Identifier v_not_exist diff --git a/parser/testdata/01048_exists_query/explain_45.txt b/parser/testdata/01048_exists_query/explain_45.txt new file mode 100644 index 0000000000..0ef1491adf --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_45.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 t_01048_2 (children 2) + Identifier test_db_1 + Identifier t_01048_2 diff --git a/parser/testdata/01048_exists_query/explain_46.txt b/parser/testdata/01048_exists_query/explain_46.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_46.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01048_exists_query/explain_47.txt b/parser/testdata/01048_exists_query/explain_47.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_47.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_48.txt b/parser/testdata/01048_exists_query/explain_48.txt new file mode 100644 index 0000000000..c60f26a3ed --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_48.txt @@ -0,0 +1,3 @@ +ExistsTableQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_49.txt b/parser/testdata/01048_exists_query/explain_49.txt new file mode 100644 index 0000000000..545aa13627 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_49.txt @@ -0,0 +1,3 @@ +ExistsDictionaryQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01048_exists_query/explain_5.txt b/parser/testdata/01048_exists_query/explain_5.txt new file mode 100644 index 0000000000..2a6cfab532 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_5.txt @@ -0,0 +1,2 @@ +ExistsDatabaseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01048_exists_query/explain_6.txt b/parser/testdata/01048_exists_query/explain_6.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_6.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01048_exists_query/explain_7.txt b/parser/testdata/01048_exists_query/explain_7.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_7.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01048_exists_query/explain_8.txt b/parser/testdata/01048_exists_query/explain_8.txt new file mode 100644 index 0000000000..2a6cfab532 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_8.txt @@ -0,0 +1,2 @@ +ExistsDatabaseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01048_exists_query/explain_9.txt b/parser/testdata/01048_exists_query/explain_9.txt new file mode 100644 index 0000000000..d8067bf5f5 --- /dev/null +++ b/parser/testdata/01048_exists_query/explain_9.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 t_01048 (children 2) + Identifier test_db_1 + Identifier t_01048 diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain.txt new file mode 100644 index 0000000000..057fc4adcc --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_dict_01051_d (children 2) + Identifier test_db + Identifier test_dict_01051_d diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_10.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_10.txt new file mode 100644 index 0000000000..249606db1e --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_01051_d (children 2) + Identifier test_db + Identifier test_01051_d diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_11.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_11.txt new file mode 100644 index 0000000000..0fdc780eb6 --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_11.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_view_01051_d (children 2) + Identifier test_db + Identifier test_view_01051_d diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_2.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_2.txt new file mode 100644 index 0000000000..249606db1e --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_2.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_01051_d (children 2) + Identifier test_db + Identifier test_01051_d diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_3.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_3.txt new file mode 100644 index 0000000000..0fdc780eb6 --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_3.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_view_01051_d (children 2) + Identifier test_db + Identifier test_view_01051_d diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_4.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_4.txt new file mode 100644 index 0000000000..e7f191b629 --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_4.txt @@ -0,0 +1,12 @@ +CreateQuery test_db test_01051_d (children 4) + Identifier test_db + Identifier test_01051_d + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier key diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_5.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_5.txt new file mode 100644 index 0000000000..8a3915e6f3 --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_5.txt @@ -0,0 +1,41 @@ +CreateQuery test_db test_view_01051_d (children 4) + Identifier test_db + Identifier test_view_01051_d + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function plus (alias key) (children 1) + ExpressionList (children 2) + Identifier k2 + Literal UInt64_1 + Function concat (alias value) (children 1) + ExpressionList (children 2) + Identifier v2 + Literal \'_x\' + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function plus (alias k2) (children 1) + ExpressionList (children 2) + Identifier key + Literal UInt64_2 + Function concat (alias v2) (children 1) + ExpressionList (children 2) + Identifier value + Literal \'_y\' + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_01051_d diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_6.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_6.txt new file mode 100644 index 0000000000..d21edf5fd7 --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier test_01051_d diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_7.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_7.txt new file mode 100644 index 0000000000..a6b062a96d --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_7.txt @@ -0,0 +1,29 @@ +CreateQuery test_db test_dict_01051_d (children 4) + Identifier test_db + Identifier test_dict_01051_d + ExpressionList (children 2) + DictionaryAttributeDeclaration key (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Literal \'9000\' + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'test_view_01051_d\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_8.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_8.txt new file mode 100644 index 0000000000..2265175777 --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_8.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGet (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01051_d\' + Literal \'value\' + Function toUInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_4 diff --git a/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_9.txt b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_9.txt new file mode 100644 index 0000000000..057fc4adcc --- /dev/null +++ b/parser/testdata/01050_clickhouse_dict_source_with_subquery/explain_9.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_dict_01051_d (children 2) + Identifier test_db + Identifier test_dict_01051_d diff --git a/parser/testdata/01053_drop_database_mat_view/explain_10.txt b/parser/testdata/01053_drop_database_mat_view/explain_10.txt new file mode 100644 index 0000000000..5ba0e9c171 --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_10.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_db.my_materialized_view diff --git a/parser/testdata/01053_drop_database_mat_view/explain_11.txt b/parser/testdata/01053_drop_database_mat_view/explain_11.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01053_drop_database_mat_view/explain_2.txt b/parser/testdata/01053_drop_database_mat_view/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01053_drop_database_mat_view/explain_4.txt b/parser/testdata/01053_drop_database_mat_view/explain_4.txt new file mode 100644 index 0000000000..ff71112107 --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_4.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Ordinary diff --git a/parser/testdata/01053_drop_database_mat_view/explain_6.txt b/parser/testdata/01053_drop_database_mat_view/explain_6.txt new file mode 100644 index 0000000000..75d1b338bb --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_6.txt @@ -0,0 +1,16 @@ +CreateQuery test_db my_table (children 4) + Identifier test_db + Identifier my_table + Storage definition (children 1) + Function MergeTree (children 1) + ExpressionList (children 3) + Identifier day + Identifier day + Literal UInt64_8192 + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Function today (alias day) (children 1) + ExpressionList + Literal \'mystring\' (alias str) diff --git a/parser/testdata/01053_drop_database_mat_view/explain_7.txt b/parser/testdata/01053_drop_database_mat_view/explain_7.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_7.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01053_drop_database_mat_view/explain_8.txt b/parser/testdata/01053_drop_database_mat_view/explain_8.txt new file mode 100644 index 0000000000..c9a7adee38 --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_8.txt @@ -0,0 +1,19 @@ +CreateQuery test_db my_materialized_view (children 4) + Identifier test_db + Identifier my_materialized_view + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.my_table + ViewTargets (children 1) + Storage definition (children 1) + Function MergeTree (children 1) + ExpressionList (children 3) + Identifier day + Identifier day + Literal UInt64_8192 diff --git a/parser/testdata/01053_drop_database_mat_view/explain_9.txt b/parser/testdata/01053_drop_database_mat_view/explain_9.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/explain_9.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01056_create_table_as/explain_19.txt b/parser/testdata/01056_create_table_as/explain_19.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01056_create_table_as/explain_19.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01056_create_table_as/explain_20.txt b/parser/testdata/01056_create_table_as/explain_20.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01056_create_table_as/explain_20.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01056_create_table_as/explain_21.txt b/parser/testdata/01056_create_table_as/explain_21.txt new file mode 100644 index 0000000000..f95668aea2 --- /dev/null +++ b/parser/testdata/01056_create_table_as/explain_21.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 dict_data (children 4) + Identifier test_db_1 + Identifier dict_data + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType Int + ColumnDeclaration value (children 1) + DataType UInt16 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01056_create_table_as/explain_27.txt b/parser/testdata/01056_create_table_as/explain_27.txt new file mode 100644 index 0000000000..8291df4aa4 --- /dev/null +++ b/parser/testdata/01056_create_table_as/explain_27.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict_data (children 2) + Identifier test_db_1 + Identifier dict_data diff --git a/parser/testdata/01056_create_table_as/explain_28.txt b/parser/testdata/01056_create_table_as/explain_28.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01056_create_table_as/explain_28.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01073_show_tables_not_like/explain_16.txt b/parser/testdata/01073_show_tables_not_like/explain_16.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01073_show_tables_not_like/explain_16.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01073_show_tables_not_like/explain_18.txt b/parser/testdata/01073_show_tables_not_like/explain_18.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01073_show_tables_not_like/explain_18.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01073_show_tables_not_like/explain_20.txt b/parser/testdata/01073_show_tables_not_like/explain_20.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01073_show_tables_not_like/explain_20.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01073_show_tables_not_like/explain_22.txt b/parser/testdata/01073_show_tables_not_like/explain_22.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01073_show_tables_not_like/explain_22.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01073_show_tables_not_like/explain_24.txt b/parser/testdata/01073_show_tables_not_like/explain_24.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/01073_show_tables_not_like/explain_24.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/01073_show_tables_not_like/explain_25.txt b/parser/testdata/01073_show_tables_not_like/explain_25.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/01073_show_tables_not_like/explain_25.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain.txt new file mode 100644 index 0000000000..8e90a7e8f5 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_table_01080 (children 2) + Identifier test_db + Identifier test_table_01080 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_10.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_10.txt new file mode 100644 index 0000000000..7c316601b9 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_10.txt @@ -0,0 +1,31 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + Identifier x + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function tuple (alias x) (children 1) + ExpressionList (children 1) + Function toInt64 (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_5 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_11.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_11.txt new file mode 100644 index 0000000000..13db01c129 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_11.txt @@ -0,0 +1,29 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + 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 1) + Function tuple (alias x) (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Function multiply (children 1) + ExpressionList (children 2) + Function rand64 (children 1) + ExpressionList + Literal UInt64_0 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_12.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_12.txt new file mode 100644 index 0000000000..58184b7026 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_12.txt @@ -0,0 +1,29 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + 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 1) + Function tuple (alias x) (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Function blockSize (children 1) + ExpressionList + Literal UInt64_0 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_13.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_13.txt new file mode 100644 index 0000000000..d2856c045c --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_13.txt @@ -0,0 +1,27 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + 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 1) + Function tuple (alias x) (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Function materialize (children 1) + ExpressionList (children 1) + Literal UInt64_0 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_14.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_14.txt new file mode 100644 index 0000000000..c1ac0fc7e4 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_14.txt @@ -0,0 +1,27 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + 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 1) + Function tuple (alias x) (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Function materialize (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_15.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_15.txt new file mode 100644 index 0000000000..d43d99bb4a --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_15.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_dict_01080 (children 2) + Identifier test_db + Identifier test_dict_01080 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_16.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_16.txt new file mode 100644 index 0000000000..8e90a7e8f5 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_16.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_table_01080 (children 2) + Identifier test_db + Identifier test_table_01080 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_2.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_2.txt new file mode 100644 index 0000000000..1254702604 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_2.txt @@ -0,0 +1,12 @@ +CreateQuery test_db test_table_01080 (children 4) + Identifier test_db + Identifier test_table_01080 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration dim_key (children 1) + DataType Int64 + ColumnDeclaration dim_id (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier dim_key diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_3.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_3.txt new file mode 100644 index 0000000000..7b3e5fc816 --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_3.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier test_table_01080 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_4.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_4.txt new file mode 100644 index 0000000000..d43d99bb4a --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_dict_01080 (children 2) + Identifier test_db + Identifier test_dict_01080 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_5.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_5.txt new file mode 100644 index 0000000000..83913ab12b --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_5.txt @@ -0,0 +1,30 @@ +CreateQuery test_db test_dict_01080 (children 4) + Identifier test_db + Identifier test_dict_01080 + ExpressionList (children 2) + DictionaryAttributeDeclaration dim_key (children 1) + DataType Int64 + DictionaryAttributeDeclaration dim_id (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier dim_key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'test_table_01080\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_6.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_6.txt new file mode 100644 index 0000000000..da55a5222d --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_6.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + Function tuple (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_7.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_7.txt new file mode 100644 index 0000000000..bde270670d --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_7.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + Function tuple (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_0 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_8.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_8.txt new file mode 100644 index 0000000000..f41090930e --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_8.txt @@ -0,0 +1,25 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + 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 1) + Function tuple (alias x) (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_0 diff --git a/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_9.txt b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_9.txt new file mode 100644 index 0000000000..999d404ead --- /dev/null +++ b/parser/testdata/01080_check_for_error_incorrect_size_of_nested_column/explain_9.txt @@ -0,0 +1,25 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function dictGetString (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.test_dict_01080\' + Literal \'dim_id\' + 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 1) + Function tuple (alias x) (children 1) + ExpressionList (children 1) + Function toInt64 (children 1) + ExpressionList (children 1) + Literal UInt64_1 diff --git a/parser/testdata/01084_regexp_empty/explain.txt b/parser/testdata/01084_regexp_empty/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01084_regexp_empty/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01084_regexp_empty/explain_2.txt b/parser/testdata/01084_regexp_empty/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01084_regexp_empty/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01084_regexp_empty/explain_3.txt b/parser/testdata/01084_regexp_empty/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01084_regexp_empty/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01084_regexp_empty/explain_6.txt b/parser/testdata/01084_regexp_empty/explain_6.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01084_regexp_empty/explain_6.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/explain.txt b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_10.txt b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_10.txt new file mode 100644 index 0000000000..98db11faec --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_10.txt @@ -0,0 +1,9 @@ +CreateQuery t2_distr (children 2) + Identifier t2_distr + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 4) + Identifier test_cluster_two_shards_localhost + Identifier test_db_1 + Identifier t2_shard + Identifier id diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_16.txt b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_16.txt new file mode 100644 index 0000000000..5b81a78ed5 --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_16.txt @@ -0,0 +1,37 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier test_db_1.t1_distr.id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t1_distr + Function in (children 1) + ExpressionList (children 2) + Identifier test_db_1.t1_distr.id + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Identifier test_db_1.t1_distr.id + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t1_distr (alias d1) + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.t2_distr (alias d2) + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier test_db_1.t1_distr.id + Identifier test_db_1.t2_distr.id + Function greater (children 1) + ExpressionList (children 2) + Identifier test_db_1.t1_distr.id + Literal UInt64_0 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier test_db_1.t1_distr.id diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_19.txt b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_19.txt new file mode 100644 index 0000000000..b74515261e --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_19.txt @@ -0,0 +1,39 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db_1.t1_distr.id + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t1_distr + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + Subquery (alias s0) (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Identifier test_db_1.t1_distr.id + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t1_distr (alias d1) + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.t2_distr (alias d2) + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier test_db_1.t1_distr.id + Identifier test_db_1.t2_distr.id + Function greater (children 1) + ExpressionList (children 2) + Identifier test_db_1.t1_distr.id + Literal UInt64_0 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier test_db_1.t1_distr.id + TableJoin (children 1) + ExpressionList (children 1) + Identifier id diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_2.txt b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_2.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_2.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_24.txt b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_24.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_24.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_9.txt b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_9.txt new file mode 100644 index 0000000000..7d586295e8 --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/explain_9.txt @@ -0,0 +1,9 @@ +CreateQuery t1_distr (children 2) + Identifier t1_distr + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 4) + Identifier test_cluster_two_shards_localhost + Identifier test_db_1 + Identifier t1_shard + Identifier id diff --git a/parser/testdata/01114_mysql_database_engine_segfault/explain.txt b/parser/testdata/01114_mysql_database_engine_segfault/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01114_mysql_database_engine_segfault/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01114_mysql_database_engine_segfault/explain_2.txt b/parser/testdata/01114_mysql_database_engine_segfault/explain_2.txt new file mode 100644 index 0000000000..73aad5d882 --- /dev/null +++ b/parser/testdata/01114_mysql_database_engine_segfault/explain_2.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function MySQL (children 1) + ExpressionList (children 4) + Literal \'127.0.0.1:3456\' + Identifier conv_main + Literal \'metrika\' + Literal \'[HIDDEN]\' diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_2.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_22.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_22.txt new file mode 100644 index 0000000000..eac31fcf51 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_with_hierarchy (children 2) + Identifier test_db_1 + Identifier dictionary_with_hierarchy diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_23.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_23.txt new file mode 100644 index 0000000000..49ea259165 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_23.txt @@ -0,0 +1,30 @@ +CreateQuery test_db_1 dictionary_with_hierarchy (children 4) + Identifier test_db_1 + Identifier dictionary_with_hierarchy + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'dict_source\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_3.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_37.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_37.txt new file mode 100644 index 0000000000..eac31fcf51 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_37.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_with_hierarchy (children 2) + Identifier test_db_1 + Identifier dictionary_with_hierarchy diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_38.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_38.txt new file mode 100644 index 0000000000..db5eae899b --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_38.txt @@ -0,0 +1,32 @@ +CreateQuery test_db_1 dictionary_with_hierarchy (children 4) + Identifier test_db_1 + Identifier dictionary_with_hierarchy + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'dict_source\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_4.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_4.txt new file mode 100644 index 0000000000..a07c8d252e --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict_source (children 2) + Identifier test_db_1 + Identifier dict_source diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_5.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_5.txt new file mode 100644 index 0000000000..29cc53a15a --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_5.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 dict_source (children 4) + Identifier test_db_1 + Identifier dict_source + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration parent_id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_52.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_52.txt new file mode 100644 index 0000000000..eac31fcf51 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_52.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_with_hierarchy (children 2) + Identifier test_db_1 + Identifier dictionary_with_hierarchy diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_53.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_53.txt new file mode 100644 index 0000000000..a07c8d252e --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_53.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict_source (children 2) + Identifier test_db_1 + Identifier dict_source diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_54.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_54.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_54.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_6.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_6.txt new file mode 100644 index 0000000000..0e5ab4458b --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier dict_source diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_7.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_7.txt new file mode 100644 index 0000000000..eac31fcf51 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_with_hierarchy (children 2) + Identifier test_db_1 + Identifier dictionary_with_hierarchy diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/explain_8.txt b/parser/testdata/01251_dict_is_in_infinite_loop/explain_8.txt new file mode 100644 index 0000000000..49ea259165 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/explain_8.txt @@ -0,0 +1,30 @@ +CreateQuery test_db_1 dictionary_with_hierarchy (children 4) + Identifier test_db_1 + Identifier dictionary_with_hierarchy + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'dict_source\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01254_dict_load_after_detach_attach/explain_3.txt b/parser/testdata/01254_dict_load_after_detach_attach/explain_3.txt new file mode 100644 index 0000000000..f3ceba3935 --- /dev/null +++ b/parser/testdata/01254_dict_load_after_detach_attach/explain_3.txt @@ -0,0 +1,2 @@ +DetachQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01254_dict_load_after_detach_attach/explain_4.txt b/parser/testdata/01254_dict_load_after_detach_attach/explain_4.txt new file mode 100644 index 0000000000..a69ab6cbef --- /dev/null +++ b/parser/testdata/01254_dict_load_after_detach_attach/explain_4.txt @@ -0,0 +1,2 @@ +AttachQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/01259_dictionary_custom_settings_ddl/explain.txt b/parser/testdata/01259_dictionary_custom_settings_ddl/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01259_dictionary_custom_settings_ddl/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01259_dictionary_custom_settings_ddl/explain_11.txt b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_11.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01259_dictionary_custom_settings_ddl/explain_2.txt b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01259_dictionary_custom_settings_ddl/explain_3.txt b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01259_dictionary_custom_settings_ddl/explain_6.txt b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_6.txt new file mode 100644 index 0000000000..2832c3857a --- /dev/null +++ b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_6.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01259_dictionary_custom_settings_ddl/explain_7.txt b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_7.txt new file mode 100644 index 0000000000..90c0f3c0a7 --- /dev/null +++ b/parser/testdata/01259_dictionary_custom_settings_ddl/explain_7.txt @@ -0,0 +1,36 @@ +CreateQuery test_db_1 dict1 (children 4) + Identifier test_db_1 + Identifier dict1 + ExpressionList (children 3) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt64 + Literal UInt64_1 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + Dictionary definition (children 5) + ExpressionList (children 1) + Identifier key_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList + Dictionary settings diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain.txt b/parser/testdata/01294_system_distributed_on_cluster/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_10.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_10.txt new file mode 100644 index 0000000000..1c794657b6 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_10.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dist_01294 + Identifier test_db_1 + Identifier dist_01294 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_11.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_11.txt new file mode 100644 index 0000000000..1c794657b6 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_11.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dist_01294 + Identifier test_db_1 + Identifier dist_01294 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_12.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_12.txt new file mode 100644 index 0000000000..1c794657b6 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_12.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dist_01294 + Identifier test_db_1 + Identifier dist_01294 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_13.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_13.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_2.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_3.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_5.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_5.txt new file mode 100644 index 0000000000..48a9a2dad3 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_5.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dist_01294 (children 2) + Identifier test_db_1 + Identifier dist_01294 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_6.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_6.txt new file mode 100644 index 0000000000..f8f4467b32 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_6.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 dist_01294 (children 3) + Identifier test_db_1 + Identifier dist_01294 + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 3) + Identifier test_shard_localhost + Identifier system + Identifier one diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_7.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_7.txt new file mode 100644 index 0000000000..1c794657b6 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_7.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dist_01294 + Identifier test_db_1 + Identifier dist_01294 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_8.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_8.txt new file mode 100644 index 0000000000..1c794657b6 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_8.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dist_01294 + Identifier test_db_1 + Identifier dist_01294 diff --git a/parser/testdata/01294_system_distributed_on_cluster/explain_9.txt b/parser/testdata/01294_system_distributed_on_cluster/explain_9.txt new file mode 100644 index 0000000000..1c794657b6 --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/explain_9.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier dist_01294 + Identifier test_db_1 + Identifier dist_01294 diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain_2.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain_3.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain_3.txt new file mode 100644 index 0000000000..3e3d88a392 --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain_3.txt @@ -0,0 +1,14 @@ +CreateQuery test_db_1 fact (children 4) + Identifier test_db_1 + Identifier fact + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id1 (children 1) + DataType Int64 + ColumnDeclaration id2 (children 1) + DataType Int64 + ColumnDeclaration value (children 1) + DataType Int64 + Storage definition (children 2) + Function MergeTree + Identifier id1 diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain_4.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain_4.txt new file mode 100644 index 0000000000..b4e8662dcd --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain_4.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 dimension (children 4) + Identifier test_db_1 + Identifier dimension + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id1 (children 1) + DataType Int64 + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier id1 diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain_5.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain_5.txt new file mode 100644 index 0000000000..885ed26390 --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier fact diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain_6.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain_6.txt new file mode 100644 index 0000000000..0ec122d1a3 --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier dimension diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain_7.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain_7.txt new file mode 100644 index 0000000000..92ff9a7018 --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain_7.txt @@ -0,0 +1,34 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 5) + ExpressionList (children 3) + Identifier f.id1 (alias ID) + Identifier d.name (alias Name) + Function sum (children 1) + ExpressionList (children 1) + Identifier f.value + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function remote (alias f) (children 1) + ExpressionList (children 2) + Literal \'127.0.0.{1,2,3}\' + Identifier test_db_1.fact + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.dimension (alias d) + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier f.id1 + Identifier d.id1 + Function equals (children 1) + ExpressionList (children 2) + Identifier f.id1 + Identifier f.id2 + ExpressionList (children 2) + Identifier ID + Identifier Name + ExpressionList (children 1) + OrderByElement (children 1) + Identifier ID diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/explain_8.txt b/parser/testdata/01383_remote_ambiguous_column_shard/explain_8.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/explain_8.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01455_rank_correlation_spearman/explain.txt b/parser/testdata/01455_rank_correlation_spearman/explain.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01455_rank_correlation_spearman/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01455_rank_correlation_spearman/explain_2.txt b/parser/testdata/01455_rank_correlation_spearman/explain_2.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01455_rank_correlation_spearman/explain_2.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01455_rank_correlation_spearman/explain_21.txt b/parser/testdata/01455_rank_correlation_spearman/explain_21.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01455_rank_correlation_spearman/explain_21.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_10.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_10.txt new file mode 100644 index 0000000000..9bf9212404 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_10.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_cache_dict diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_2.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_3.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_4.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_4.txt new file mode 100644 index 0000000000..51d851a417 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_4.txt @@ -0,0 +1,52 @@ +CreateQuery test_db_1 table_cache_dict (children 4) + Identifier test_db_1 + Identifier table_cache_dict + Columns definition (children 1) + ExpressionList (children 19) + ColumnDeclaration KeyField (children 1) + DataType UInt64 + ColumnDeclaration UInt8_ (children 1) + DataType UInt8 + ColumnDeclaration UInt16_ (children 1) + DataType UInt16 + ColumnDeclaration UInt32_ (children 1) + DataType UInt32 + ColumnDeclaration UInt64_ (children 1) + DataType UInt64 + ColumnDeclaration Int8_ (children 1) + DataType Int8 + ColumnDeclaration Int16_ (children 1) + DataType Int16 + ColumnDeclaration Int32_ (children 1) + DataType Int32 + ColumnDeclaration Int64_ (children 1) + DataType Int64 + ColumnDeclaration UUID_ (children 1) + DataType UUID + ColumnDeclaration Date_ (children 1) + DataType Date + ColumnDeclaration DateTime_ (children 1) + DataType DateTime + ColumnDeclaration String_ (children 1) + DataType String + ColumnDeclaration Float32_ (children 1) + DataType Float32 + ColumnDeclaration Float64_ (children 1) + DataType Float64 + ColumnDeclaration Decimal32_ (children 1) + DataType Decimal32 (children 1) + ExpressionList (children 1) + Literal UInt64_5 + ColumnDeclaration Decimal64_ (children 1) + DataType Decimal64 (children 1) + ExpressionList (children 1) + Literal UInt64_15 + ColumnDeclaration Decimal128_ (children 1) + DataType Decimal128 (children 1) + ExpressionList (children 1) + Literal UInt64_35 + ColumnDeclaration ParentKeyField (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier KeyField diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_5.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_5.txt new file mode 100644 index 0000000000..6847fe1a00 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_5.txt @@ -0,0 +1,89 @@ +CreateQuery test_db_1 cache_dict (children 4) + Identifier test_db_1 + Identifier cache_dict + ExpressionList (children 19) + DictionaryAttributeDeclaration KeyField (children 2) + DataType UInt64 + Literal UInt64_9999999 + DictionaryAttributeDeclaration UInt8_ (children 2) + DataType UInt8 + Literal UInt64_55 + DictionaryAttributeDeclaration UInt16_ (children 2) + DataType UInt16 + Literal UInt64_65535 + DictionaryAttributeDeclaration UInt32_ (children 2) + DataType UInt32 + Literal UInt64_4294967295 + DictionaryAttributeDeclaration UInt64_ (children 2) + DataType UInt64 + Literal UInt64_18446744073709551615 + DictionaryAttributeDeclaration Int8_ (children 2) + DataType Int8 + Literal Int64_-128 + DictionaryAttributeDeclaration Int16_ (children 2) + DataType Int16 + Literal Int64_-32768 + DictionaryAttributeDeclaration Int32_ (children 2) + DataType Int32 + Literal Int64_-2147483648 + DictionaryAttributeDeclaration Int64_ (children 2) + DataType Int64 + Literal Int64_-9223372036854775808 + DictionaryAttributeDeclaration UUID_ (children 2) + DataType UUID + Literal \'550e8400-0000-0000-0000-000000000000\' + DictionaryAttributeDeclaration Date_ (children 2) + DataType Date + Literal \'2018-12-30\' + DictionaryAttributeDeclaration DateTime_ (children 2) + DataType DateTime + Literal \'2018-12-30 00:00:00\' + DictionaryAttributeDeclaration String_ (children 2) + DataType String + Literal \'hi\' + DictionaryAttributeDeclaration Float32_ (children 2) + DataType Float32 + Literal Float64_111.11 + DictionaryAttributeDeclaration Float64_ (children 2) + DataType Float64 + Literal Float64_222.11 + DictionaryAttributeDeclaration Decimal32_ (children 2) + DataType Decimal32 (children 1) + ExpressionList (children 1) + Literal UInt64_5 + Literal Float64_333.11 + DictionaryAttributeDeclaration Decimal64_ (children 2) + DataType Decimal64 (children 1) + ExpressionList (children 1) + Literal UInt64_15 + Literal Float64_444.11 + DictionaryAttributeDeclaration Decimal128_ (children 2) + DataType Decimal128 (children 1) + ExpressionList (children 1) + Literal UInt64_35 + Literal Float64_555.11 + DictionaryAttributeDeclaration ParentKeyField (children 2) + DataType UInt64 + Literal UInt64_444 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier KeyField + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_cache_dict\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_20 diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_58.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_58.txt new file mode 100644 index 0000000000..977201e861 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_58.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_dict (children 2) + Identifier test_db_1 + Identifier cache_dict diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_59.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_59.txt new file mode 100644 index 0000000000..ad35b78ab7 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_59.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 table_cache_dict (children 2) + Identifier test_db_1 + Identifier table_cache_dict diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_6.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_6.txt new file mode 100644 index 0000000000..9bf9212404 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_cache_dict diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_60.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_60.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_60.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_7.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_7.txt new file mode 100644 index 0000000000..9bf9212404 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_cache_dict diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_8.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_8.txt new file mode 100644 index 0000000000..9bf9212404 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_8.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_cache_dict diff --git a/parser/testdata/01501_cache_dictionary_all_fields/explain_9.txt b/parser/testdata/01501_cache_dictionary_all_fields/explain_9.txt new file mode 100644 index 0000000000..9bf9212404 --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_cache_dict diff --git a/parser/testdata/01516_create_table_primary_key/explain_2.txt b/parser/testdata/01516_create_table_primary_key/explain_2.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01516_create_table_primary_key/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01516_create_table_primary_key/explain_36.txt b/parser/testdata/01516_create_table_primary_key/explain_36.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01516_create_table_primary_key/explain_36.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01516_create_table_primary_key/explain_4.txt b/parser/testdata/01516_create_table_primary_key/explain_4.txt new file mode 100644 index 0000000000..95e4194d1f --- /dev/null +++ b/parser/testdata/01516_create_table_primary_key/explain_4.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Ordinary diff --git a/parser/testdata/01516_create_table_primary_key/explain_5.txt b/parser/testdata/01516_create_table_primary_key/explain_5.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01516_create_table_primary_key/explain_5.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_10.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_10.txt new file mode 100644 index 0000000000..92cc8ddf76 --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 table_for_dict1 (children 2) + Identifier test_db_1 + Identifier table_for_dict1 diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_11.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_11.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_2.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_3.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_4.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_4.txt new file mode 100644 index 0000000000..2c1d4890ed --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_4.txt @@ -0,0 +1,17 @@ +CreateQuery test_db_1 table_for_dict1 (children 4) + Identifier test_db_1 + Identifier table_for_dict1 + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration key_column (children 1) + DataType UInt64 + ColumnDeclaration second_column (children 1) + DataType UInt64 + ColumnDeclaration third_column (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList (children 2) + Identifier key_column + Identifier second_column diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_5.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_5.txt new file mode 100644 index 0000000000..1f38e930cb --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_for_dict1 diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_6.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_6.txt new file mode 100644 index 0000000000..4416233d97 --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_6.txt @@ -0,0 +1,35 @@ +CreateQuery test_db_1 dict1 (children 4) + Identifier test_db_1 + Identifier dict1 + ExpressionList (children 3) + DictionaryAttributeDeclaration key_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration second_column (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration third_column (children 2) + DataType String + Literal \'qqq\' + Dictionary definition (children 3) + ExpressionList (children 2) + Identifier key_column + Identifier second_column + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict1\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/explain_9.txt b/parser/testdata/01526_complex_key_dict_direct_layout/explain_9.txt new file mode 100644 index 0000000000..2832c3857a --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/explain_9.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain.txt b/parser/testdata/01530_drop_database_atomic_sync/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_10.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_10.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_10.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_11.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_11.txt new file mode 100644 index 0000000000..7eec29c62f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_11.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 data (children 4) + Identifier test_db_1 + Identifier data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration key (children 1) + DataType Int + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/db_01530_atomic/data\' + Literal \'test\' + Identifier key diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_12.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_12.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_12.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_13.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_13.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_13.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_14.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_14.txt new file mode 100644 index 0000000000..7eec29c62f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_14.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 data (children 4) + Identifier test_db_1 + Identifier data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration key (children 1) + DataType Int + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/db_01530_atomic/data\' + Literal \'test\' + Identifier key diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_15.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_15.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_15.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_17.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_17.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_17.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_18.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_18.txt new file mode 100644 index 0000000000..7eec29c62f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_18.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 data (children 4) + Identifier test_db_1 + Identifier data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration key (children 1) + DataType Int + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/db_01530_atomic/data\' + Literal \'test\' + Identifier key diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_19.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_19.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_19.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_2.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_2.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_20.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_20.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_20.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_21.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_21.txt new file mode 100644 index 0000000000..7eec29c62f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_21.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 data (children 4) + Identifier test_db_1 + Identifier data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration key (children 1) + DataType Int + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/db_01530_atomic/data\' + Literal \'test\' + Identifier key diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_23.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_23.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_23.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_3.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_4.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_4.txt new file mode 100644 index 0000000000..7eec29c62f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 data (children 4) + Identifier test_db_1 + Identifier data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration key (children 1) + DataType Int + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/db_01530_atomic/data\' + Literal \'test\' + Identifier key diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_5.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_5.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_5.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_6.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_6.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_6.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_7.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_7.txt new file mode 100644 index 0000000000..7eec29c62f --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_7.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 data (children 4) + Identifier test_db_1 + Identifier data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration key (children 1) + DataType Int + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/db_01530_atomic/data\' + Literal \'test\' + Identifier key diff --git a/parser/testdata/01530_drop_database_atomic_sync/explain_8.txt b/parser/testdata/01530_drop_database_atomic_sync/explain_8.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/explain_8.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_10.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_10.txt new file mode 100644 index 0000000000..b479bf9ced --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_10.txt @@ -0,0 +1,3 @@ +AttachQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_11.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_11.txt new file mode 100644 index 0000000000..2832c3857a --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_11.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_12.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_12.txt new file mode 100644 index 0000000000..24a1e6641a --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_12.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 table_for_dict (children 2) + Identifier test_db_1 + Identifier table_for_dict diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_13.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_13.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_2.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_3.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_4.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_4.txt new file mode 100644 index 0000000000..6f48500f69 --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_4.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 table_for_dict (children 4) + Identifier test_db_1 + Identifier table_for_dict + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration k (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType UInt8 + Storage definition (children 2) + Function MergeTree + Identifier k diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_5.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_5.txt new file mode 100644 index 0000000000..2832c3857a --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_5.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_6.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_6.txt new file mode 100644 index 0000000000..333c9f67b2 --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_6.txt @@ -0,0 +1,32 @@ +CreateQuery test_db_1 dict1 (children 4) + Identifier test_db_1 + Identifier dict1 + ExpressionList (children 2) + DictionaryAttributeDeclaration k (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration v (children 2) + DataType UInt8 + Literal UInt64_1 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier k + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'table_for_dict\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_7.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_7.txt new file mode 100644 index 0000000000..35f8870b44 --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_7.txt @@ -0,0 +1,3 @@ +DetachQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_8.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_8.txt new file mode 100644 index 0000000000..35f8870b44 --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_8.txt @@ -0,0 +1,3 @@ +DetachQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/explain_9.txt b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_9.txt new file mode 100644 index 0000000000..b479bf9ced --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/explain_9.txt @@ -0,0 +1,3 @@ +AttachQuery test_db_1 dict1 (children 2) + Identifier test_db_1 + Identifier dict1 diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain.txt b/parser/testdata/01670_dictionary_create_key_expression/explain.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_10.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_10.txt new file mode 100644 index 0000000000..3cfe3cf29f --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_10.txt @@ -0,0 +1,37 @@ +CreateQuery test_db_1 test_query_log_dictionary_complex (children 4) + Identifier test_db_1 + Identifier test_query_log_dictionary_complex + ExpressionList (children 3) + DictionaryAttributeDeclaration value_id (children 2) + DataType UInt64 + Function cityHash64 (children 1) + ExpressionList (children 1) + Identifier value + DictionaryAttributeDeclaration value_length (children 2) + DataType UInt64 + Function length (children 1) + ExpressionList (children 1) + Identifier value + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 2) + Identifier value_id + Identifier value_length + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'test_for_dictionary\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_11.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_11.txt new file mode 100644 index 0000000000..7e42775f3a --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_11.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 test_db_1.test_query_log_dictionary_complex + ExpressionList (children 1) + OrderByElement (children 1) + Identifier value_id diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_12.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_12.txt new file mode 100644 index 0000000000..cc2ddd4487 --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_12.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_query_log_dictionary_complex (children 2) + Identifier test_db_1 + Identifier test_query_log_dictionary_complex diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_13.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_13.txt new file mode 100644 index 0000000000..22ae31798b --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_13.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_for_dictionary (children 2) + Identifier test_db_1 + Identifier test_for_dictionary diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_14.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_14.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_14.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_2.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_2.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_2.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_3.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_3.txt new file mode 100644 index 0000000000..a4494baa17 --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_3.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 test_for_dictionary (children 4) + Identifier test_db_1 + Identifier test_for_dictionary + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_4.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_4.txt new file mode 100644 index 0000000000..e30d29ed88 --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_4.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_for_dictionary diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_6.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_6.txt new file mode 100644 index 0000000000..a29ee7bdb4 --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_6.txt @@ -0,0 +1,31 @@ +CreateQuery test_db_1 test_query_log_dictionary_simple (children 4) + Identifier test_db_1 + Identifier test_query_log_dictionary_simple + ExpressionList (children 2) + DictionaryAttributeDeclaration value_id (children 2) + DataType UInt64 + Function cityHash64 (children 1) + ExpressionList (children 1) + Identifier value + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier value_id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'test_for_dictionary\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_7.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_7.txt new file mode 100644 index 0000000000..a31005ad28 --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_7.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 test_db_1.test_query_log_dictionary_simple + ExpressionList (children 1) + OrderByElement (children 1) + Identifier value_id diff --git a/parser/testdata/01670_dictionary_create_key_expression/explain_8.txt b/parser/testdata/01670_dictionary_create_key_expression/explain_8.txt new file mode 100644 index 0000000000..bf83498e76 --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/explain_8.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_query_log_dictionary_simple (children 2) + Identifier test_db_1 + Identifier test_query_log_dictionary_simple diff --git a/parser/testdata/01676_dictget_in_default_expression/explain.txt b/parser/testdata/01676_dictget_in_default_expression/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_10.txt b/parser/testdata/01676_dictget_in_default_expression/explain_10.txt new file mode 100644 index 0000000000..863eb1a387 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_10.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 test_db_1.table + ExpressionList (children 1) + OrderByElement (children 1) + Identifier x diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_12.txt b/parser/testdata/01676_dictget_in_default_expression/explain_12.txt new file mode 100644 index 0000000000..5b0eac1dea --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_12.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier status + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_13.txt b/parser/testdata/01676_dictget_in_default_expression/explain_13.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_13.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_14.txt b/parser/testdata/01676_dictget_in_default_expression/explain_14.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_14.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_16.txt b/parser/testdata/01676_dictget_in_default_expression/explain_16.txt new file mode 100644 index 0000000000..29970bf231 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_16.txt @@ -0,0 +1,30 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function COALESCE (children 1) + ExpressionList (children 2) + Function CAST (children 1) + ExpressionList (children 2) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier status + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' + Literal \'Nullable(String)\' + Literal \'NOT_LOADED\' diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_17.txt b/parser/testdata/01676_dictget_in_default_expression/explain_17.txt new file mode 100644 index 0000000000..e33a23a557 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_17.txt @@ -0,0 +1,5 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier table + ExpressionList (children 1) + Identifier x diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_18.txt b/parser/testdata/01676_dictget_in_default_expression/explain_18.txt new file mode 100644 index 0000000000..863eb1a387 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_18.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 test_db_1.table + ExpressionList (children 1) + OrderByElement (children 1) + Identifier x diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_2.txt b/parser/testdata/01676_dictget_in_default_expression/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_20.txt b/parser/testdata/01676_dictget_in_default_expression/explain_20.txt new file mode 100644 index 0000000000..5b0eac1dea --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_20.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier status + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_21.txt b/parser/testdata/01676_dictget_in_default_expression/explain_21.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_21.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_3.txt b/parser/testdata/01676_dictget_in_default_expression/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_4.txt b/parser/testdata/01676_dictget_in_default_expression/explain_4.txt new file mode 100644 index 0000000000..5ae303d31d --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 dict_data (children 4) + Identifier test_db_1 + Identifier dict_data + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_5.txt b/parser/testdata/01676_dictget_in_default_expression/explain_5.txt new file mode 100644 index 0000000000..3d450d487f --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier dict_data diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_6.txt b/parser/testdata/01676_dictget_in_default_expression/explain_6.txt new file mode 100644 index 0000000000..c2c75a7fb4 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_6.txt @@ -0,0 +1,26 @@ +CreateQuery test_db_1 dict (children 4) + Identifier test_db_1 + Identifier dict + ExpressionList (children 2) + DictionaryAttributeDeclaration key (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'dict_data\' + pair (children 1) + Literal \'127.0.0.1\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_7.txt b/parser/testdata/01676_dictget_in_default_expression/explain_7.txt new file mode 100644 index 0000000000..d4075afed0 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_7.txt @@ -0,0 +1,18 @@ +CreateQuery test_db_1 table (children 4) + Identifier test_db_1 + Identifier table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration x (children 1) + DataType UInt64 + ColumnDeclaration y (children 2) + DataType UInt64 + Function dictGet (children 1) + ExpressionList (children 3) + Literal \'dict\' + Literal \'value\' + Identifier x + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_8.txt b/parser/testdata/01676_dictget_in_default_expression/explain_8.txt new file mode 100644 index 0000000000..e33a23a557 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_8.txt @@ -0,0 +1,5 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier table + ExpressionList (children 1) + Identifier x diff --git a/parser/testdata/01676_dictget_in_default_expression/explain_9.txt b/parser/testdata/01676_dictget_in_default_expression/explain_9.txt new file mode 100644 index 0000000000..1ae313c1a9 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_2.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_21.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_21.txt new file mode 100644 index 0000000000..6e140f60df --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_21.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 test_db_1.cache_dictionary_simple_key_simple_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_22.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_22.txt new file mode 100644 index 0000000000..f7146999e0 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_dictionary_simple_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier cache_dictionary_simple_key_simple_attributes diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_23.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_23.txt new file mode 100644 index 0000000000..2d15088fe7 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_simple_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_24.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_24.txt new file mode 100644 index 0000000000..5d0c95f810 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_24.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 simple_key_complex_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_25.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_25.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_25.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_26.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_26.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_26.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_27.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_27.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_27.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_28.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_28.txt new file mode 100644 index 0000000000..06d75abab9 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_28.txt @@ -0,0 +1,33 @@ +CreateQuery test_db_1 cache_dictionary_simple_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier cache_dictionary_simple_key_complex_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_complex_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_3.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_4.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_4.txt new file mode 100644 index 0000000000..a91e8975a0 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 simple_key_simple_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_41.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_41.txt new file mode 100644 index 0000000000..fe03f30fcd --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_41.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 test_db_1.cache_dictionary_simple_key_complex_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_42.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_42.txt new file mode 100644 index 0000000000..891624ece3 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_42.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_dictionary_simple_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier cache_dictionary_simple_key_complex_attributes diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_43.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_43.txt new file mode 100644 index 0000000000..d2cef94bf8 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_43.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_complex_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_44.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_44.txt new file mode 100644 index 0000000000..a80ad0fb39 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_44.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 simple_key_hierarchy_table (children 4) + Identifier test_db_1 + Identifier simple_key_hierarchy_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration parent_id (children 1) + DataType UInt64 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_45.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_45.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_45.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_46.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_46.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_46.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_47.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_47.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_47.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_48.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_48.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_48.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_49.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_49.txt new file mode 100644 index 0000000000..e32af06521 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_49.txt @@ -0,0 +1,27 @@ +CreateQuery test_db_1 cache_dictionary_simple_key_hierarchy (children 4) + Identifier test_db_1 + Identifier cache_dictionary_simple_key_hierarchy + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_hierarchy_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_5.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_5.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_56.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_56.txt new file mode 100644 index 0000000000..13b43a62e2 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_56.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_dictionary_simple_key_hierarchy (children 2) + Identifier test_db_1 + Identifier cache_dictionary_simple_key_hierarchy diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_57.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_57.txt new file mode 100644 index 0000000000..d3795b5991 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_57.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_hierarchy_table (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_58.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_58.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_58.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_6.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_6.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_7.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_7.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01681_cache_dictionary_simple_key/explain_8.txt b/parser/testdata/01681_cache_dictionary_simple_key/explain_8.txt new file mode 100644 index 0000000000..9dd8107903 --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/explain_8.txt @@ -0,0 +1,32 @@ +CreateQuery test_db_1 cache_dictionary_simple_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier cache_dictionary_simple_key_simple_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 5) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_simple_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 + Dictionary settings diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_2.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_21.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_21.txt new file mode 100644 index 0000000000..3175af67f0 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_21.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 test_db_1.cache_dictionary_complex_key_simple_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_22.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_22.txt new file mode 100644 index 0000000000..ca58048aaa --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_dictionary_complex_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier cache_dictionary_complex_key_simple_attributes diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_23.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_23.txt new file mode 100644 index 0000000000..27e218fd57 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 complex_key_simple_attributes_source_table (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_24.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_24.txt new file mode 100644 index 0000000000..7b3ffbdae1 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_24.txt @@ -0,0 +1,17 @@ +CreateQuery test_db_1 complex_key_complex_attributes_source_table (children 4) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration id_key (children 1) + DataType String + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_25.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_25.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_25.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_26.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_26.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_26.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_27.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_27.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_27.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_28.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_28.txt new file mode 100644 index 0000000000..907578049d --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_28.txt @@ -0,0 +1,39 @@ +CreateQuery test_db_1 cache_dictionary_complex_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier cache_dictionary_complex_key_complex_attributes + ExpressionList (children 4) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration id_key (children 1) + DataType String + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 2) + Identifier id + Identifier id_key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'complex_key_complex_attributes_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_3.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_4.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_4.txt new file mode 100644 index 0000000000..c6672d5c4a --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_4.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 complex_key_simple_attributes_source_table (children 4) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration id_key (children 1) + DataType String + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_41.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_41.txt new file mode 100644 index 0000000000..8cb50ad3f2 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_41.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 test_db_1.cache_dictionary_complex_key_complex_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_42.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_42.txt new file mode 100644 index 0000000000..840c739e57 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_42.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cache_dictionary_complex_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier cache_dictionary_complex_key_complex_attributes diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_43.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_43.txt new file mode 100644 index 0000000000..6dc3cc5980 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_43.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 complex_key_complex_attributes_source_table (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_44.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_44.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_44.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_5.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_5.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_6.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_6.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_7.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_7.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01682_cache_dictionary_complex_key/explain_8.txt b/parser/testdata/01682_cache_dictionary_complex_key/explain_8.txt new file mode 100644 index 0000000000..27bc4ed131 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/explain_8.txt @@ -0,0 +1,37 @@ +CreateQuery test_db_1 cache_dictionary_complex_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier cache_dictionary_complex_key_simple_attributes + ExpressionList (children 4) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration id_key (children 1) + DataType String + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 2) + Identifier id + Identifier id_key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'complex_key_simple_attributes_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 diff --git a/parser/testdata/01683_flat_dictionary/explain.txt b/parser/testdata/01683_flat_dictionary/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01683_flat_dictionary/explain_2.txt b/parser/testdata/01683_flat_dictionary/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01683_flat_dictionary/explain_20.txt b/parser/testdata/01683_flat_dictionary/explain_20.txt new file mode 100644 index 0000000000..ea47f3365f --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_20.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 flat_dictionary_simple_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier flat_dictionary_simple_key_simple_attributes diff --git a/parser/testdata/01683_flat_dictionary/explain_21.txt b/parser/testdata/01683_flat_dictionary/explain_21.txt new file mode 100644 index 0000000000..2d15088fe7 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_21.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_simple_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_22.txt b/parser/testdata/01683_flat_dictionary/explain_22.txt new file mode 100644 index 0000000000..5d0c95f810 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_22.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 simple_key_complex_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01683_flat_dictionary/explain_23.txt b/parser/testdata/01683_flat_dictionary/explain_23.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_23.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_24.txt b/parser/testdata/01683_flat_dictionary/explain_24.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_24.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_25.txt b/parser/testdata/01683_flat_dictionary/explain_25.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_25.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_26.txt b/parser/testdata/01683_flat_dictionary/explain_26.txt new file mode 100644 index 0000000000..0539ab281f --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_26.txt @@ -0,0 +1,31 @@ +CreateQuery test_db_1 flat_dictionary_simple_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier flat_dictionary_simple_key_complex_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_complex_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01683_flat_dictionary/explain_3.txt b/parser/testdata/01683_flat_dictionary/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01683_flat_dictionary/explain_38.txt b/parser/testdata/01683_flat_dictionary/explain_38.txt new file mode 100644 index 0000000000..e84e5ac33c --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_38.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 flat_dictionary_simple_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier flat_dictionary_simple_key_complex_attributes diff --git a/parser/testdata/01683_flat_dictionary/explain_39.txt b/parser/testdata/01683_flat_dictionary/explain_39.txt new file mode 100644 index 0000000000..d2cef94bf8 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_39.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_complex_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_4.txt b/parser/testdata/01683_flat_dictionary/explain_4.txt new file mode 100644 index 0000000000..a91e8975a0 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 simple_key_simple_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01683_flat_dictionary/explain_40.txt b/parser/testdata/01683_flat_dictionary/explain_40.txt new file mode 100644 index 0000000000..a80ad0fb39 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_40.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 simple_key_hierarchy_table (children 4) + Identifier test_db_1 + Identifier simple_key_hierarchy_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration parent_id (children 1) + DataType UInt64 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01683_flat_dictionary/explain_41.txt b/parser/testdata/01683_flat_dictionary/explain_41.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_41.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01683_flat_dictionary/explain_42.txt b/parser/testdata/01683_flat_dictionary/explain_42.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_42.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01683_flat_dictionary/explain_43.txt b/parser/testdata/01683_flat_dictionary/explain_43.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_43.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01683_flat_dictionary/explain_44.txt b/parser/testdata/01683_flat_dictionary/explain_44.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_44.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01683_flat_dictionary/explain_45.txt b/parser/testdata/01683_flat_dictionary/explain_45.txt new file mode 100644 index 0000000000..adf26c808e --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_45.txt @@ -0,0 +1,25 @@ +CreateQuery test_db_1 flat_dictionary_simple_key_hierarchy (children 4) + Identifier test_db_1 + Identifier flat_dictionary_simple_key_hierarchy + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_hierarchy_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01683_flat_dictionary/explain_5.txt b/parser/testdata/01683_flat_dictionary/explain_5.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_52.txt b/parser/testdata/01683_flat_dictionary/explain_52.txt new file mode 100644 index 0000000000..2bf081d314 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_52.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 flat_dictionary_simple_key_hierarchy (children 2) + Identifier test_db_1 + Identifier flat_dictionary_simple_key_hierarchy diff --git a/parser/testdata/01683_flat_dictionary/explain_53.txt b/parser/testdata/01683_flat_dictionary/explain_53.txt new file mode 100644 index 0000000000..d3795b5991 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_53.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_hierarchy_table (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01683_flat_dictionary/explain_54.txt b/parser/testdata/01683_flat_dictionary/explain_54.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_54.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01683_flat_dictionary/explain_6.txt b/parser/testdata/01683_flat_dictionary/explain_6.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_7.txt b/parser/testdata/01683_flat_dictionary/explain_7.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01683_flat_dictionary/explain_8.txt b/parser/testdata/01683_flat_dictionary/explain_8.txt new file mode 100644 index 0000000000..cfdf989ccd --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/explain_8.txt @@ -0,0 +1,29 @@ +CreateQuery test_db_1 flat_dictionary_simple_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier flat_dictionary_simple_key_simple_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_simple_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_10.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_10.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_10.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_2.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_3.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_4.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_4.txt new file mode 100644 index 0000000000..45a5a6aced --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_4.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 dictionary_source_table (children 4) + Identifier test_db_1 + Identifier dictionary_source_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType UInt8 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_5.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_5.txt new file mode 100644 index 0000000000..272cd0dcc8 --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier dictionary_source_table diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_6.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_6.txt new file mode 100644 index 0000000000..c72747c11d --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_6.txt @@ -0,0 +1,27 @@ +CreateQuery test_db_1 dictionary (children 4) + Identifier test_db_1 + Identifier dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration key (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'dictionary_source_table\' + pair (children 1) + Function hostName (children 1) + ExpressionList + pair (children 1) + Function tcpPort (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_7.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_7.txt new file mode 100644 index 0000000000..d5f8ffddb0 --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_7.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_db_1.dictionary diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_8.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_8.txt new file mode 100644 index 0000000000..2b8d1e3872 --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_8.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary (children 2) + Identifier test_db_1 + Identifier dictionary diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/explain_9.txt b/parser/testdata/01720_dictionary_create_source_with_functions/explain_9.txt new file mode 100644 index 0000000000..45aebf2a9a --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/explain_9.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_source_table (children 2) + Identifier test_db_1 + Identifier dictionary_source_table diff --git a/parser/testdata/01748_dictionary_table_dot/explain.txt b/parser/testdata/01748_dictionary_table_dot/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01748_dictionary_table_dot/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01748_dictionary_table_dot/explain_11.txt b/parser/testdata/01748_dictionary_table_dot/explain_11.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01748_dictionary_table_dot/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01748_dictionary_table_dot/explain_2.txt b/parser/testdata/01748_dictionary_table_dot/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01748_dictionary_table_dot/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01748_dictionary_table_dot/explain_3.txt b/parser/testdata/01748_dictionary_table_dot/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01748_dictionary_table_dot/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01748_dictionary_table_dot/explain_9.txt b/parser/testdata/01748_dictionary_table_dot/explain_9.txt new file mode 100644 index 0000000000..1409bd1d83 --- /dev/null +++ b/parser/testdata/01748_dictionary_table_dot/explain_9.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db_1 + Identifier test_dict + Identifier test_db_1 + Identifier test_dict diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_2.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_21.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_21.txt new file mode 100644 index 0000000000..1ed27d02c5 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_21.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 test_db_1.direct_dictionary_simple_key_simple_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_22.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_22.txt new file mode 100644 index 0000000000..f9a14be70a --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 direct_dictionary_simple_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier direct_dictionary_simple_key_simple_attributes diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_23.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_23.txt new file mode 100644 index 0000000000..2d15088fe7 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_simple_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_24.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_24.txt new file mode 100644 index 0000000000..5d0c95f810 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_24.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 simple_key_complex_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_25.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_25.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_25.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_26.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_26.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_26.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_27.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_27.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_27.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_28.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_28.txt new file mode 100644 index 0000000000..751f0f752f --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_28.txt @@ -0,0 +1,30 @@ +CreateQuery test_db_1 direct_dictionary_simple_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier direct_dictionary_simple_key_complex_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_complex_attributes_source_table\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_3.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_4.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_4.txt new file mode 100644 index 0000000000..a91e8975a0 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 simple_key_simple_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_41.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_41.txt new file mode 100644 index 0000000000..1caee671ba --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_41.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 test_db_1.direct_dictionary_simple_key_complex_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_42.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_42.txt new file mode 100644 index 0000000000..9421ef5900 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_42.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 direct_dictionary_simple_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier direct_dictionary_simple_key_complex_attributes diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_43.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_43.txt new file mode 100644 index 0000000000..d2cef94bf8 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_43.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_complex_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_44.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_44.txt new file mode 100644 index 0000000000..a80ad0fb39 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_44.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 simple_key_hierarchy_table (children 4) + Identifier test_db_1 + Identifier simple_key_hierarchy_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration parent_id (children 1) + DataType UInt64 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_45.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_45.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_45.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_46.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_46.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_46.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_47.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_47.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_47.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_48.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_48.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_48.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_49.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_49.txt new file mode 100644 index 0000000000..293efdb2ec --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_49.txt @@ -0,0 +1,24 @@ +CreateQuery test_db_1 direct_dictionary_simple_key_hierarchy (children 4) + Identifier test_db_1 + Identifier direct_dictionary_simple_key_hierarchy + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_hierarchy_table\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_5.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_5.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_56.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_56.txt new file mode 100644 index 0000000000..ec6caf9884 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_56.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 direct_dictionary_simple_key_hierarchy (children 2) + Identifier test_db_1 + Identifier direct_dictionary_simple_key_hierarchy diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_57.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_57.txt new file mode 100644 index 0000000000..d3795b5991 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_57.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_hierarchy_table (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_58.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_58.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_58.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_6.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_6.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_7.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_7.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01753_direct_dictionary_simple_key/explain_8.txt b/parser/testdata/01753_direct_dictionary_simple_key/explain_8.txt new file mode 100644 index 0000000000..c826feb5c6 --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/explain_8.txt @@ -0,0 +1,28 @@ +CreateQuery test_db_1 direct_dictionary_simple_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier direct_dictionary_simple_key_simple_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_simple_attributes_source_table\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_2.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_21.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_21.txt new file mode 100644 index 0000000000..0f7f31166d --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_21.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 test_db_1.direct_dictionary_complex_key_simple_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_22.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_22.txt new file mode 100644 index 0000000000..1f5a76d860 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 direct_dictionary_complex_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier direct_dictionary_complex_key_simple_attributes diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_23.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_23.txt new file mode 100644 index 0000000000..27e218fd57 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 complex_key_simple_attributes_source_table (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_24.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_24.txt new file mode 100644 index 0000000000..017f6ff191 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_24.txt @@ -0,0 +1,19 @@ +CreateQuery test_db_1 complex_key_complex_attributes_source_table (children 4) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration id_key (children 1) + DataType String + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_25.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_25.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_25.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_26.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_26.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_26.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_27.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_27.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_27.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_28.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_28.txt new file mode 100644 index 0000000000..7d5ddeabd0 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_28.txt @@ -0,0 +1,33 @@ +CreateQuery test_db_1 direct_dictionary_complex_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier direct_dictionary_complex_key_complex_attributes + ExpressionList (children 4) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration id_key (children 1) + DataType String + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 3) + ExpressionList (children 2) + Identifier id + Identifier id_key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'complex_key_complex_attributes_source_table\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_3.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_4.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_4.txt new file mode 100644 index 0000000000..50e4defe40 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_4.txt @@ -0,0 +1,17 @@ +CreateQuery test_db_1 complex_key_simple_attributes_source_table (children 4) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration id_key (children 1) + DataType String + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_41.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_41.txt new file mode 100644 index 0000000000..0542151712 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_41.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 test_db_1.direct_dictionary_complex_key_complex_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_42.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_42.txt new file mode 100644 index 0000000000..17908aa06b --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_42.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 direct_dictionary_complex_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier direct_dictionary_complex_key_complex_attributes diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_43.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_43.txt new file mode 100644 index 0000000000..6dc3cc5980 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_43.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 complex_key_complex_attributes_source_table (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_44.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_44.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_44.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_5.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_5.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_6.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_6.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_7.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_7.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01754_direct_dictionary_complex_key/explain_8.txt b/parser/testdata/01754_direct_dictionary_complex_key/explain_8.txt new file mode 100644 index 0000000000..c31e7c8fbd --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/explain_8.txt @@ -0,0 +1,32 @@ +CreateQuery test_db_1 direct_dictionary_complex_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier direct_dictionary_complex_key_simple_attributes + ExpressionList (children 4) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration id_key (children 2) + DataType String + Literal \'test_default_id_key\' + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 3) + ExpressionList (children 2) + Identifier id + Identifier id_key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'complex_key_simple_attributes_source_table\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain_2.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain_3.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain_4.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain_4.txt new file mode 100644 index 0000000000..31950e930f --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 dictionary_source_table (children 4) + Identifier test_db_1 + Identifier dictionary_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration key (children 1) + DataType UInt64 + ColumnDeclaration value1 (children 1) + DataType UInt64 + ColumnDeclaration value2 (children 1) + DataType UInt64 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain_5.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain_5.txt new file mode 100644 index 0000000000..272cd0dcc8 --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier dictionary_source_table diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain_6.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain_6.txt new file mode 100644 index 0000000000..1467ff3b71 --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain_6.txt @@ -0,0 +1,29 @@ +CreateQuery test_db_1 test_dictionary (children 4) + Identifier test_db_1 + Identifier test_dictionary + ExpressionList (children 3) + DictionaryAttributeDeclaration key (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value1 (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value1 (children 1) + DataType UInt64 + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'dictionary_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain_7.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain_7.txt new file mode 100644 index 0000000000..b00844c574 --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain_7.txt @@ -0,0 +1,29 @@ +CreateQuery test_db_1 test_dictionary (children 4) + Identifier test_db_1 + Identifier test_dictionary + ExpressionList (children 3) + DictionaryAttributeDeclaration key (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value1 (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value2 (children 1) + DataType UInt64 + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'dictionary_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/explain_9.txt b/parser/testdata/01759_dictionary_unique_attribute_names/explain_9.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/explain_9.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01760_polygon_dictionaries/explain.txt b/parser/testdata/01760_polygon_dictionaries/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01760_polygon_dictionaries/explain_10.txt b/parser/testdata/01760_polygon_dictionaries/explain_10.txt new file mode 100644 index 0000000000..4620033fe4 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 points (children 2) + Identifier test_db_1 + Identifier points diff --git a/parser/testdata/01760_polygon_dictionaries/explain_11.txt b/parser/testdata/01760_polygon_dictionaries/explain_11.txt new file mode 100644 index 0000000000..08c424dd03 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_11.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 points (children 4) + Identifier test_db_1 + Identifier points + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration x (children 1) + DataType Float64 + ColumnDeclaration y (children 1) + DataType Float64 + ColumnDeclaration def_i (children 1) + DataType UInt64 + ColumnDeclaration def_s (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01760_polygon_dictionaries/explain_12.txt b/parser/testdata/01760_polygon_dictionaries/explain_12.txt new file mode 100644 index 0000000000..b6b18919e9 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_12.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier points diff --git a/parser/testdata/01760_polygon_dictionaries/explain_13.txt b/parser/testdata/01760_polygon_dictionaries/explain_13.txt new file mode 100644 index 0000000000..b6b18919e9 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_13.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier points diff --git a/parser/testdata/01760_polygon_dictionaries/explain_14.txt b/parser/testdata/01760_polygon_dictionaries/explain_14.txt new file mode 100644 index 0000000000..b6b18919e9 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_14.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier points diff --git a/parser/testdata/01760_polygon_dictionaries/explain_15.txt b/parser/testdata/01760_polygon_dictionaries/explain_15.txt new file mode 100644 index 0000000000..b6b18919e9 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_15.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier points diff --git a/parser/testdata/01760_polygon_dictionaries/explain_16.txt b/parser/testdata/01760_polygon_dictionaries/explain_16.txt new file mode 100644 index 0000000000..b6b18919e9 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_16.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier points diff --git a/parser/testdata/01760_polygon_dictionaries/explain_17.txt b/parser/testdata/01760_polygon_dictionaries/explain_17.txt new file mode 100644 index 0000000000..c49f0072a7 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_17.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict_array (children 2) + Identifier test_db_1 + Identifier dict_array diff --git a/parser/testdata/01760_polygon_dictionaries/explain_18.txt b/parser/testdata/01760_polygon_dictionaries/explain_18.txt new file mode 100644 index 0000000000..de6e1ac59e --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_18.txt @@ -0,0 +1,47 @@ +CreateQuery test_db_1 dict_array (children 4) + Identifier test_db_1 + Identifier dict_array + ExpressionList (children 4) + DictionaryAttributeDeclaration key (children 1) + DataType Array (children 1) + ExpressionList (children 1) + DataType Array (children 1) + ExpressionList (children 1) + DataType Array (children 1) + ExpressionList (children 1) + TupleDataType Tuple (children 1) + ExpressionList (children 2) + DataType Float64 + DataType Float64 + DictionaryAttributeDeclaration name (children 2) + DataType String + Literal \'qqq\' + DictionaryAttributeDeclaration value (children 2) + DataType UInt64 + Literal UInt64_10 + DictionaryAttributeDeclaration value_nullable (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType UInt64 + Literal UInt64_20 + Dictionary definition (children 5) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'polygons\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList + Dictionary settings diff --git a/parser/testdata/01760_polygon_dictionaries/explain_2.txt b/parser/testdata/01760_polygon_dictionaries/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01760_polygon_dictionaries/explain_20.txt b/parser/testdata/01760_polygon_dictionaries/explain_20.txt new file mode 100644 index 0000000000..005455084b --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_20.txt @@ -0,0 +1,32 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 4) + Function tuple (alias key) (children 1) + ExpressionList (children 2) + Identifier x + Identifier y + Function dictGet (children 1) + ExpressionList (children 3) + Literal \'dict_array\' + Literal \'name\' + Identifier key + Function dictGet (children 1) + ExpressionList (children 3) + Literal \'dict_array\' + Literal \'value\' + Identifier key + Function dictGet (children 1) + ExpressionList (children 3) + Literal \'dict_array\' + Literal \'value_nullable\' + Identifier key + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.points + ExpressionList (children 2) + OrderByElement (children 1) + Identifier x + OrderByElement (children 1) + Identifier y diff --git a/parser/testdata/01760_polygon_dictionaries/explain_22.txt b/parser/testdata/01760_polygon_dictionaries/explain_22.txt new file mode 100644 index 0000000000..12791159b2 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_22.txt @@ -0,0 +1,35 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 4) + Function tuple (alias key) (children 1) + ExpressionList (children 2) + Identifier x + Identifier y + Function dictGetOrDefault (children 1) + ExpressionList (children 4) + Literal \'dict_array\' + Literal \'name\' + Identifier key + Literal \'DefaultName\' + Function dictGetOrDefault (children 1) + ExpressionList (children 4) + Literal \'dict_array\' + Literal \'value\' + Identifier key + Literal UInt64_30 + Function dictGetOrDefault (children 1) + ExpressionList (children 4) + Literal \'dict_array\' + Literal \'value_nullable\' + Identifier key + Literal UInt64_40 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.points + ExpressionList (children 2) + OrderByElement (children 1) + Identifier x + OrderByElement (children 1) + Identifier y diff --git a/parser/testdata/01760_polygon_dictionaries/explain_24.txt b/parser/testdata/01760_polygon_dictionaries/explain_24.txt new file mode 100644 index 0000000000..ec0c592870 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_24.txt @@ -0,0 +1,29 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 4) + Function tuple (alias key) (children 1) + ExpressionList (children 2) + Identifier x + Identifier y + Function dictHas (children 1) + ExpressionList (children 2) + Literal \'dict_array\' + Identifier key + Function dictHas (children 1) + ExpressionList (children 2) + Literal \'dict_array\' + Identifier key + Function dictHas (children 1) + ExpressionList (children 2) + Literal \'dict_array\' + Identifier key + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.points + ExpressionList (children 2) + OrderByElement (children 1) + Identifier x + OrderByElement (children 1) + Identifier y diff --git a/parser/testdata/01760_polygon_dictionaries/explain_27.txt b/parser/testdata/01760_polygon_dictionaries/explain_27.txt new file mode 100644 index 0000000000..4620033fe4 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_27.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 points (children 2) + Identifier test_db_1 + Identifier points diff --git a/parser/testdata/01760_polygon_dictionaries/explain_28.txt b/parser/testdata/01760_polygon_dictionaries/explain_28.txt new file mode 100644 index 0000000000..fc6a56f1fe --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_28.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 polygons (children 2) + Identifier test_db_1 + Identifier polygons diff --git a/parser/testdata/01760_polygon_dictionaries/explain_29.txt b/parser/testdata/01760_polygon_dictionaries/explain_29.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_29.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01760_polygon_dictionaries/explain_3.txt b/parser/testdata/01760_polygon_dictionaries/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01760_polygon_dictionaries/explain_4.txt b/parser/testdata/01760_polygon_dictionaries/explain_4.txt new file mode 100644 index 0000000000..fc6a56f1fe --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 polygons (children 2) + Identifier test_db_1 + Identifier polygons diff --git a/parser/testdata/01760_polygon_dictionaries/explain_5.txt b/parser/testdata/01760_polygon_dictionaries/explain_5.txt new file mode 100644 index 0000000000..25f79a42ad --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_5.txt @@ -0,0 +1,26 @@ +CreateQuery test_db_1 polygons (children 4) + Identifier test_db_1 + Identifier polygons + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration key (children 1) + DataType Array (children 1) + ExpressionList (children 1) + DataType Array (children 1) + ExpressionList (children 1) + DataType Array (children 1) + ExpressionList (children 1) + TupleDataType Tuple (children 1) + ExpressionList (children 2) + DataType Float64 + DataType Float64 + ColumnDeclaration name (children 1) + DataType String + ColumnDeclaration value (children 1) + DataType UInt64 + ColumnDeclaration value_nullable (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType UInt64 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01760_polygon_dictionaries/explain_6.txt b/parser/testdata/01760_polygon_dictionaries/explain_6.txt new file mode 100644 index 0000000000..f62e07abb3 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier polygons diff --git a/parser/testdata/01760_polygon_dictionaries/explain_7.txt b/parser/testdata/01760_polygon_dictionaries/explain_7.txt new file mode 100644 index 0000000000..f62e07abb3 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier polygons diff --git a/parser/testdata/01760_polygon_dictionaries/explain_8.txt b/parser/testdata/01760_polygon_dictionaries/explain_8.txt new file mode 100644 index 0000000000..f62e07abb3 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_8.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier polygons diff --git a/parser/testdata/01760_polygon_dictionaries/explain_9.txt b/parser/testdata/01760_polygon_dictionaries/explain_9.txt new file mode 100644 index 0000000000..f62e07abb3 --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier polygons diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_2.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_21.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_21.txt new file mode 100644 index 0000000000..507dadbad9 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_21.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 test_db_1.hashed_dictionary_simple_key_simple_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_22.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_22.txt new file mode 100644 index 0000000000..1aabef8b2c --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hashed_dictionary_simple_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier hashed_dictionary_simple_key_simple_attributes diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_23.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_23.txt new file mode 100644 index 0000000000..7aad3d7f09 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_23.txt @@ -0,0 +1,29 @@ +CreateQuery test_db_1 sparse_hashed_dictionary_simple_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier sparse_hashed_dictionary_simple_key_simple_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_simple_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_3.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_36.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_36.txt new file mode 100644 index 0000000000..26e3e2fbde --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_36.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 test_db_1.sparse_hashed_dictionary_simple_key_simple_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_37.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_37.txt new file mode 100644 index 0000000000..adf5d74896 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_37.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 sparse_hashed_dictionary_simple_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier sparse_hashed_dictionary_simple_key_simple_attributes diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_38.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_38.txt new file mode 100644 index 0000000000..2d15088fe7 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_38.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_simple_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_39.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_39.txt new file mode 100644 index 0000000000..5d0c95f810 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_39.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 simple_key_complex_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_4.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_4.txt new file mode 100644 index 0000000000..a91e8975a0 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 simple_key_simple_attributes_source_table (children 4) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_40.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_40.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_40.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_41.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_41.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_41.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_42.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_42.txt new file mode 100644 index 0000000000..3103fd8b0a --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_42.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_43.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_43.txt new file mode 100644 index 0000000000..697f89c2f8 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_43.txt @@ -0,0 +1,31 @@ +CreateQuery test_db_1 hashed_dictionary_simple_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier hashed_dictionary_simple_key_complex_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_complex_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_5.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_5.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_56.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_56.txt new file mode 100644 index 0000000000..ba335e3fc4 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_56.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 test_db_1.hashed_dictionary_simple_key_complex_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_57.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_57.txt new file mode 100644 index 0000000000..079d15ff7e --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_57.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hashed_dictionary_simple_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier hashed_dictionary_simple_key_complex_attributes diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_58.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_58.txt new file mode 100644 index 0000000000..f1126e5b73 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_58.txt @@ -0,0 +1,31 @@ +CreateQuery test_db_1 sparse_hashed_dictionary_simple_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier sparse_hashed_dictionary_simple_key_complex_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_complex_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_6.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_6.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_7.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_7.txt new file mode 100644 index 0000000000..736cae4aae --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_simple_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_71.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_71.txt new file mode 100644 index 0000000000..c04641efa8 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_71.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 test_db_1.sparse_hashed_dictionary_simple_key_complex_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_72.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_72.txt new file mode 100644 index 0000000000..cba81e4048 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_72.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 sparse_hashed_dictionary_simple_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier sparse_hashed_dictionary_simple_key_complex_attributes diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_73.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_73.txt new file mode 100644 index 0000000000..d2cef94bf8 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_73.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_complex_attributes_source_table (children 2) + Identifier test_db_1 + Identifier simple_key_complex_attributes_source_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_74.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_74.txt new file mode 100644 index 0000000000..a80ad0fb39 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_74.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 simple_key_hierarchy_table (children 4) + Identifier test_db_1 + Identifier simple_key_hierarchy_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration parent_id (children 1) + DataType UInt64 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_75.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_75.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_75.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_76.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_76.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_76.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_77.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_77.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_77.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_78.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_78.txt new file mode 100644 index 0000000000..a1708114da --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_78.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_79.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_79.txt new file mode 100644 index 0000000000..b7dc2dec62 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_79.txt @@ -0,0 +1,25 @@ +CreateQuery test_db_1 hashed_dictionary_simple_key_hierarchy (children 4) + Identifier test_db_1 + Identifier hashed_dictionary_simple_key_hierarchy + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_hierarchy_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_8.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_8.txt new file mode 100644 index 0000000000..8a43ffe50d --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_8.txt @@ -0,0 +1,30 @@ +CreateQuery test_db_1 hashed_dictionary_simple_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier hashed_dictionary_simple_key_simple_attributes + ExpressionList (children 3) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 5) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_simple_attributes_source_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList + Dictionary settings diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_86.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_86.txt new file mode 100644 index 0000000000..5211fa2263 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_86.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hashed_dictionary_simple_key_hierarchy (children 2) + Identifier test_db_1 + Identifier hashed_dictionary_simple_key_hierarchy diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_87.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_87.txt new file mode 100644 index 0000000000..87a54c9d8e --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_87.txt @@ -0,0 +1,25 @@ +CreateQuery test_db_1 sparse_hashed_dictionary_simple_key_hierarchy (children 4) + Identifier test_db_1 + Identifier sparse_hashed_dictionary_simple_key_hierarchy + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'simple_key_hierarchy_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_94.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_94.txt new file mode 100644 index 0000000000..2c6497768e --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_94.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 sparse_hashed_dictionary_simple_key_hierarchy (children 2) + Identifier test_db_1 + Identifier sparse_hashed_dictionary_simple_key_hierarchy diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_95.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_95.txt new file mode 100644 index 0000000000..d3795b5991 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_95.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_hierarchy_table (children 2) + Identifier test_db_1 + Identifier simple_key_hierarchy_table diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/explain_96.txt b/parser/testdata/01765_hashed_dictionary_simple_key/explain_96.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/explain_96.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_2.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_21.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_21.txt new file mode 100644 index 0000000000..07ceeb08b4 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_21.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.hashed_dictionary_complex_key_simple_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Function tuple (children 1) + ExpressionList (children 2) + Identifier id + Identifier id_key diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_22.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_22.txt new file mode 100644 index 0000000000..120d5c6ef4 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hashed_dictionary_complex_key_simple_attributes (children 2) + Identifier test_db_1 + Identifier hashed_dictionary_complex_key_simple_attributes diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_23.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_23.txt new file mode 100644 index 0000000000..27e218fd57 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 complex_key_simple_attributes_source_table (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_24.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_24.txt new file mode 100644 index 0000000000..7b3ffbdae1 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_24.txt @@ -0,0 +1,17 @@ +CreateQuery test_db_1 complex_key_complex_attributes_source_table (children 4) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration id_key (children 1) + DataType String + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_25.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_25.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_25.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_26.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_26.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_26.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_27.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_27.txt new file mode 100644 index 0000000000..bf601126b7 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_27.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_28.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_28.txt new file mode 100644 index 0000000000..a39bfaa259 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_28.txt @@ -0,0 +1,37 @@ +CreateQuery test_db_1 hashed_dictionary_complex_key_complex_attributes (children 4) + Identifier test_db_1 + Identifier hashed_dictionary_complex_key_complex_attributes + ExpressionList (children 4) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration id_key (children 1) + DataType String + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 2) + Identifier id + Identifier id_key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'complex_key_complex_attributes_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_3.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_4.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_4.txt new file mode 100644 index 0000000000..c6672d5c4a --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_4.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 complex_key_simple_attributes_source_table (children 4) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration id_key (children 1) + DataType String + ColumnDeclaration value_first (children 1) + DataType String + ColumnDeclaration value_second (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_41.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_41.txt new file mode 100644 index 0000000000..57ac30b781 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_41.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.hashed_dictionary_complex_key_complex_attributes + ExpressionList (children 1) + OrderByElement (children 1) + Function tuple (children 1) + ExpressionList (children 2) + Identifier id + Identifier id_key diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_42.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_42.txt new file mode 100644 index 0000000000..2a9b2d5267 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_42.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hashed_dictionary_complex_key_complex_attributes (children 2) + Identifier test_db_1 + Identifier hashed_dictionary_complex_key_complex_attributes diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_43.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_43.txt new file mode 100644 index 0000000000..6dc3cc5980 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_43.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 complex_key_complex_attributes_source_table (children 2) + Identifier test_db_1 + Identifier complex_key_complex_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_44.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_44.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_44.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_5.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_5.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_6.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_6.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_7.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_7.txt new file mode 100644 index 0000000000..7b92d0e960 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier complex_key_simple_attributes_source_table diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/explain_8.txt b/parser/testdata/01766_hashed_dictionary_complex_key/explain_8.txt new file mode 100644 index 0000000000..bba925f33e --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/explain_8.txt @@ -0,0 +1,35 @@ +CreateQuery test_db_1 hashed_dictionary_complex_key_simple_attributes (children 4) + Identifier test_db_1 + Identifier hashed_dictionary_complex_key_simple_attributes + ExpressionList (children 4) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration id_key (children 1) + DataType String + DictionaryAttributeDeclaration value_first (children 2) + DataType String + Literal \'value_first_default\' + DictionaryAttributeDeclaration value_second (children 2) + DataType String + Literal \'value_second_default\' + Dictionary definition (children 4) + ExpressionList (children 2) + Identifier id + Identifier id_key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'complex_key_simple_attributes_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain.txt b/parser/testdata/01778_hierarchical_dictionaries/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_18.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_18.txt new file mode 100644 index 0000000000..087f90f779 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_18.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hierarchy_flat_dictionary (children 2) + Identifier test_db_1 + Identifier hierarchy_flat_dictionary diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_19.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_19.txt new file mode 100644 index 0000000000..b8e0d22e36 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_19.txt @@ -0,0 +1,28 @@ +CreateQuery test_db_1 hierarchy_hashed_dictionary (children 4) + Identifier test_db_1 + Identifier hierarchy_hashed_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'hierarchy_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_2.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_3.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_31.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_31.txt new file mode 100644 index 0000000000..c916bafff2 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_31.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hierarchy_hashed_dictionary (children 2) + Identifier test_db_1 + Identifier hierarchy_hashed_dictionary diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_32.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_32.txt new file mode 100644 index 0000000000..5d5d270557 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_32.txt @@ -0,0 +1,30 @@ +CreateQuery test_db_1 hierarchy_cache_dictionary (children 4) + Identifier test_db_1 + Identifier hierarchy_cache_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'hierarchy_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList (children 1) + pair (children 1) + Literal UInt64_10 diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_38.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_38.txt new file mode 100644 index 0000000000..bf953263ae --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_38.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hierarchy_cache_dictionary (children 2) + Identifier test_db_1 + Identifier hierarchy_cache_dictionary diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_39.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_39.txt new file mode 100644 index 0000000000..9fbe50c706 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_39.txt @@ -0,0 +1,27 @@ +CreateQuery test_db_1 hierarchy_direct_dictionary (children 4) + Identifier test_db_1 + Identifier hierarchy_direct_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'hierarchy_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_4.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_4.txt new file mode 100644 index 0000000000..a78e54b1d5 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_4.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 hierarchy_source_table (children 4) + Identifier test_db_1 + Identifier hierarchy_source_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration parent_id (children 1) + DataType UInt64 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_45.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_45.txt new file mode 100644 index 0000000000..06a540153e --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_45.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hierarchy_direct_dictionary (children 2) + Identifier test_db_1 + Identifier hierarchy_direct_dictionary diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_46.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_46.txt new file mode 100644 index 0000000000..5f71e71ab7 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_46.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 hierarchy_source_table (children 2) + Identifier test_db_1 + Identifier hierarchy_source_table diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_47.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_47.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_47.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_5.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_5.txt new file mode 100644 index 0000000000..0eea253d35 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier hierarchy_source_table diff --git a/parser/testdata/01778_hierarchical_dictionaries/explain_6.txt b/parser/testdata/01778_hierarchical_dictionaries/explain_6.txt new file mode 100644 index 0000000000..223893c428 --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/explain_6.txt @@ -0,0 +1,28 @@ +CreateQuery test_db_1 hierarchy_flat_dictionary (children 4) + Identifier test_db_1 + Identifier hierarchy_flat_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration parent_id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 5) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'hierarchy_source_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_10.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_10.txt new file mode 100644 index 0000000000..6540fb7599 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict3_source (children 2) + Identifier test_db_1 + Identifier dict3_source diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_11.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_11.txt new file mode 100644 index 0000000000..26bb7c6811 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_11.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 dict3_source (children 4) + Identifier test_db_1 + Identifier dict3_source + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_12.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_12.txt new file mode 100644 index 0000000000..aa6bfc90c2 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_12.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier dict3_source diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_13.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_13.txt new file mode 100644 index 0000000000..f200b4d940 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_13.txt @@ -0,0 +1,25 @@ +CreateQuery test_db_1 dict3 (children 4) + Identifier test_db_1 + Identifier dict3 + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'dict3_source\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_14.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_14.txt new file mode 100644 index 0000000000..2d461ea96f --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_14.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_db_1.dict3 diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_15.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_15.txt new file mode 100644 index 0000000000..892d291c73 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_15.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict3 (children 2) + Identifier test_db_1 + Identifier dict3 diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_16.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_16.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_16.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_2.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_3.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_8.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_8.txt new file mode 100644 index 0000000000..870cb250eb --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_8.txt @@ -0,0 +1,25 @@ +CreateQuery test_db_1 dict2 (children 4) + Identifier test_db_1 + Identifier dict2 + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'dict2\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_9.txt b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_9.txt new file mode 100644 index 0000000000..2c5d8b53f7 --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/explain_9.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_db_1.dict2 diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_10.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_10.txt new file mode 100644 index 0000000000..2d9c19a839 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_10.txt @@ -0,0 +1,25 @@ +CreateQuery test_db_1 simple_key_direct_dictionary (children 4) + Identifier test_db_1 + Identifier simple_key_direct_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 4) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'simple_key_dictionary_source\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_11.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_11.txt new file mode 100644 index 0000000000..6c9d9af5d2 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_11.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 test_db_1.simple_key_direct_dictionary + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_12.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_12.txt new file mode 100644 index 0000000000..6be9633b13 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_12.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_direct_dictionary (children 2) + Identifier test_db_1 + Identifier simple_key_direct_dictionary diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_13.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_13.txt new file mode 100644 index 0000000000..66e7846949 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_13.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_dictionary_source (children 2) + Identifier test_db_1 + Identifier simple_key_dictionary_source diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_14.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_14.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_14.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_2.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_2.txt new file mode 100644 index 0000000000..9f23c67970 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_3.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_4.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_4.txt new file mode 100644 index 0000000000..66e7846949 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_dictionary_source (children 2) + Identifier test_db_1 + Identifier simple_key_dictionary_source diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_5.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_5.txt new file mode 100644 index 0000000000..f21de41cbc --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_5.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 simple_key_dictionary_source (children 4) + Identifier test_db_1 + Identifier simple_key_dictionary_source + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_6.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_6.txt new file mode 100644 index 0000000000..8545e4201d --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_dictionary_source diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_7.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_7.txt new file mode 100644 index 0000000000..8545e4201d --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_dictionary_source diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_8.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_8.txt new file mode 100644 index 0000000000..8545e4201d --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_8.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier simple_key_dictionary_source diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/explain_9.txt b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_9.txt new file mode 100644 index 0000000000..6be9633b13 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/explain_9.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 simple_key_direct_dictionary (children 2) + Identifier test_db_1 + Identifier simple_key_direct_dictionary diff --git a/parser/testdata/01870_buffer_flush/explain.txt b/parser/testdata/01870_buffer_flush/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01870_buffer_flush/explain_10.txt b/parser/testdata/01870_buffer_flush/explain_10.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_10.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01870_buffer_flush/explain_2.txt b/parser/testdata/01870_buffer_flush/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01870_buffer_flush/explain_3.txt b/parser/testdata/01870_buffer_flush/explain_3.txt new file mode 100644 index 0000000000..c2875d2d0f --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_3.txt @@ -0,0 +1,5 @@ +CreateQuery test_db_1 a_data_01870 (children 3) + Identifier test_db_1 + Identifier a_data_01870 + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01870_buffer_flush/explain_4.txt b/parser/testdata/01870_buffer_flush/explain_4.txt new file mode 100644 index 0000000000..4781378bb9 --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_4.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 z_buffer_01870 (children 3) + Identifier test_db_1 + Identifier z_buffer_01870 + Storage definition (children 1) + Function Buffer (children 1) + ExpressionList (children 9) + Identifier test_db_1 + Identifier a_data_01870 + Literal UInt64_1 + Literal UInt64_100 + Literal UInt64_100 + Literal UInt64_100 + Literal UInt64_100 + Literal UInt64_100 + Literal Float64_1000000 diff --git a/parser/testdata/01870_buffer_flush/explain_5.txt b/parser/testdata/01870_buffer_flush/explain_5.txt new file mode 100644 index 0000000000..8ece78057a --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_5.txt @@ -0,0 +1,13 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier z_buffer_01870 + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.numbers + Literal UInt64_5 diff --git a/parser/testdata/01870_buffer_flush/explain_6.txt b/parser/testdata/01870_buffer_flush/explain_6.txt new file mode 100644 index 0000000000..f8ffa78241 --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_6.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.a_data_01870 diff --git a/parser/testdata/01870_buffer_flush/explain_7.txt b/parser/testdata/01870_buffer_flush/explain_7.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_7.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01870_buffer_flush/explain_8.txt b/parser/testdata/01870_buffer_flush/explain_8.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_8.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01870_buffer_flush/explain_9.txt b/parser/testdata/01870_buffer_flush/explain_9.txt new file mode 100644 index 0000000000..f8ffa78241 --- /dev/null +++ b/parser/testdata/01870_buffer_flush/explain_9.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.a_data_01870 diff --git a/parser/testdata/01913_replace_dictionary/explain.txt b/parser/testdata/01913_replace_dictionary/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01913_replace_dictionary/explain_10.txt b/parser/testdata/01913_replace_dictionary/explain_10.txt new file mode 100644 index 0000000000..0adeb723be --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_2 (children 2) + Identifier test_db_1 + Identifier test_source_table_2 diff --git a/parser/testdata/01913_replace_dictionary/explain_11.txt b/parser/testdata/01913_replace_dictionary/explain_11.txt new file mode 100644 index 0000000000..d87b5203a5 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_11.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 test_source_table_2 (children 4) + Identifier test_db_1 + Identifier test_source_table_2 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_1 (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01913_replace_dictionary/explain_12.txt b/parser/testdata/01913_replace_dictionary/explain_12.txt new file mode 100644 index 0000000000..ed6a0ac9fe --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_12.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_source_table_2 diff --git a/parser/testdata/01913_replace_dictionary/explain_13.txt b/parser/testdata/01913_replace_dictionary/explain_13.txt new file mode 100644 index 0000000000..b1b7ad41bf --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_13.txt @@ -0,0 +1,21 @@ +CreateQuery test_db_1 test_dictionary (children 4) + Identifier test_db_1 + Identifier test_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_1 (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'test_source_table_2\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01913_replace_dictionary/explain_14.txt b/parser/testdata/01913_replace_dictionary/explain_14.txt new file mode 100644 index 0000000000..bab70002cf --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_14.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_db_1.test_dictionary diff --git a/parser/testdata/01913_replace_dictionary/explain_15.txt b/parser/testdata/01913_replace_dictionary/explain_15.txt new file mode 100644 index 0000000000..246ba78296 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_15.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_dictionary (children 2) + Identifier test_db_1 + Identifier test_dictionary diff --git a/parser/testdata/01913_replace_dictionary/explain_16.txt b/parser/testdata/01913_replace_dictionary/explain_16.txt new file mode 100644 index 0000000000..d4c5b30f15 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_16.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_1 (children 2) + Identifier test_db_1 + Identifier test_source_table_1 diff --git a/parser/testdata/01913_replace_dictionary/explain_17.txt b/parser/testdata/01913_replace_dictionary/explain_17.txt new file mode 100644 index 0000000000..0adeb723be --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_17.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_2 (children 2) + Identifier test_db_1 + Identifier test_source_table_2 diff --git a/parser/testdata/01913_replace_dictionary/explain_18.txt b/parser/testdata/01913_replace_dictionary/explain_18.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_18.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01913_replace_dictionary/explain_2.txt b/parser/testdata/01913_replace_dictionary/explain_2.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01913_replace_dictionary/explain_3.txt b/parser/testdata/01913_replace_dictionary/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01913_replace_dictionary/explain_4.txt b/parser/testdata/01913_replace_dictionary/explain_4.txt new file mode 100644 index 0000000000..d4c5b30f15 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_1 (children 2) + Identifier test_db_1 + Identifier test_source_table_1 diff --git a/parser/testdata/01913_replace_dictionary/explain_5.txt b/parser/testdata/01913_replace_dictionary/explain_5.txt new file mode 100644 index 0000000000..1b47ba0075 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_5.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 test_source_table_1 (children 4) + Identifier test_db_1 + Identifier test_source_table_1 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01913_replace_dictionary/explain_6.txt b/parser/testdata/01913_replace_dictionary/explain_6.txt new file mode 100644 index 0000000000..7919e394b7 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_source_table_1 diff --git a/parser/testdata/01913_replace_dictionary/explain_7.txt b/parser/testdata/01913_replace_dictionary/explain_7.txt new file mode 100644 index 0000000000..246ba78296 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_dictionary (children 2) + Identifier test_db_1 + Identifier test_dictionary diff --git a/parser/testdata/01913_replace_dictionary/explain_8.txt b/parser/testdata/01913_replace_dictionary/explain_8.txt new file mode 100644 index 0000000000..a50c3e1fc0 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_8.txt @@ -0,0 +1,20 @@ +CreateQuery test_db_1 test_dictionary (children 4) + Identifier test_db_1 + Identifier test_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'test_source_table_1\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01913_replace_dictionary/explain_9.txt b/parser/testdata/01913_replace_dictionary/explain_9.txt new file mode 100644 index 0000000000..bab70002cf --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/explain_9.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_db_1.test_dictionary diff --git a/parser/testdata/01914_exchange_dictionaries/explain.txt b/parser/testdata/01914_exchange_dictionaries/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_10.txt b/parser/testdata/01914_exchange_dictionaries/explain_10.txt new file mode 100644 index 0000000000..3816966238 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_1 (children 2) + Identifier test_db_1 + Identifier dictionary_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_11.txt b/parser/testdata/01914_exchange_dictionaries/explain_11.txt new file mode 100644 index 0000000000..af2fce5588 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_11.txt @@ -0,0 +1,20 @@ +CreateQuery test_db_1 dictionary_1 (children 4) + Identifier test_db_1 + Identifier dictionary_1 + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_1\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01914_exchange_dictionaries/explain_12.txt b/parser/testdata/01914_exchange_dictionaries/explain_12.txt new file mode 100644 index 0000000000..b32f279939 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_12.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_2 (children 2) + Identifier test_db_1 + Identifier dictionary_2 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_13.txt b/parser/testdata/01914_exchange_dictionaries/explain_13.txt new file mode 100644 index 0000000000..13f725ec76 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_13.txt @@ -0,0 +1,20 @@ +CreateQuery test_db_1 dictionary_2 (children 4) + Identifier test_db_1 + Identifier dictionary_2 + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'table_2\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01914_exchange_dictionaries/explain_14.txt b/parser/testdata/01914_exchange_dictionaries/explain_14.txt new file mode 100644 index 0000000000..37c623259c --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_14.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_db_1.dictionary_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_15.txt b/parser/testdata/01914_exchange_dictionaries/explain_15.txt new file mode 100644 index 0000000000..a0d22c336e --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_15.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_db_1.dictionary_2 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_16.txt b/parser/testdata/01914_exchange_dictionaries/explain_16.txt new file mode 100644 index 0000000000..b5695266f4 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_16.txt @@ -0,0 +1,5 @@ +Rename (children 4) + Identifier test_db_1 + Identifier dictionary_1 + Identifier test_db_1 + Identifier dictionary_2 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_17.txt b/parser/testdata/01914_exchange_dictionaries/explain_17.txt new file mode 100644 index 0000000000..37c623259c --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_17.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_db_1.dictionary_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_18.txt b/parser/testdata/01914_exchange_dictionaries/explain_18.txt new file mode 100644 index 0000000000..a0d22c336e --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_18.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_db_1.dictionary_2 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_19.txt b/parser/testdata/01914_exchange_dictionaries/explain_19.txt new file mode 100644 index 0000000000..3816966238 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_19.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_1 (children 2) + Identifier test_db_1 + Identifier dictionary_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_2.txt b/parser/testdata/01914_exchange_dictionaries/explain_2.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01914_exchange_dictionaries/explain_20.txt b/parser/testdata/01914_exchange_dictionaries/explain_20.txt new file mode 100644 index 0000000000..b32f279939 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_20.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dictionary_2 (children 2) + Identifier test_db_1 + Identifier dictionary_2 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_21.txt b/parser/testdata/01914_exchange_dictionaries/explain_21.txt new file mode 100644 index 0000000000..d5f8fbd65d --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_21.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 table_1 (children 2) + Identifier test_db_1 + Identifier table_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_22.txt b/parser/testdata/01914_exchange_dictionaries/explain_22.txt new file mode 100644 index 0000000000..086a9fb089 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 table_2 (children 2) + Identifier test_db_1 + Identifier table_2 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_23.txt b/parser/testdata/01914_exchange_dictionaries/explain_23.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_23.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_3.txt b/parser/testdata/01914_exchange_dictionaries/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_4.txt b/parser/testdata/01914_exchange_dictionaries/explain_4.txt new file mode 100644 index 0000000000..d5f8fbd65d --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 table_1 (children 2) + Identifier test_db_1 + Identifier table_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_5.txt b/parser/testdata/01914_exchange_dictionaries/explain_5.txt new file mode 100644 index 0000000000..790e1d3011 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_5.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 table_1 (children 4) + Identifier test_db_1 + Identifier table_1 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01914_exchange_dictionaries/explain_6.txt b/parser/testdata/01914_exchange_dictionaries/explain_6.txt new file mode 100644 index 0000000000..086a9fb089 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_6.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 table_2 (children 2) + Identifier test_db_1 + Identifier table_2 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_7.txt b/parser/testdata/01914_exchange_dictionaries/explain_7.txt new file mode 100644 index 0000000000..eab42b54ee --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_7.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 table_2 (children 4) + Identifier test_db_1 + Identifier table_2 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01914_exchange_dictionaries/explain_8.txt b/parser/testdata/01914_exchange_dictionaries/explain_8.txt new file mode 100644 index 0000000000..bfa958954f --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_8.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_1 diff --git a/parser/testdata/01914_exchange_dictionaries/explain_9.txt b/parser/testdata/01914_exchange_dictionaries/explain_9.txt new file mode 100644 index 0000000000..17ae22a6e3 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier table_2 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain.txt b/parser/testdata/01915_create_or_replace_dictionary/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_10.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_10.txt new file mode 100644 index 0000000000..0adeb723be --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_2 (children 2) + Identifier test_db_1 + Identifier test_source_table_2 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_11.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_11.txt new file mode 100644 index 0000000000..d87b5203a5 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_11.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 test_source_table_2 (children 4) + Identifier test_db_1 + Identifier test_source_table_2 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value_1 (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_12.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_12.txt new file mode 100644 index 0000000000..ed6a0ac9fe --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_12.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_source_table_2 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_13.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_13.txt new file mode 100644 index 0000000000..b1b7ad41bf --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_13.txt @@ -0,0 +1,21 @@ +CreateQuery test_db_1 test_dictionary (children 4) + Identifier test_db_1 + Identifier test_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value_1 (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'test_source_table_2\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_14.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_14.txt new file mode 100644 index 0000000000..bab70002cf --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_14.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_db_1.test_dictionary diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_15.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_15.txt new file mode 100644 index 0000000000..246ba78296 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_15.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_dictionary (children 2) + Identifier test_db_1 + Identifier test_dictionary diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_16.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_16.txt new file mode 100644 index 0000000000..d4c5b30f15 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_16.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_1 (children 2) + Identifier test_db_1 + Identifier test_source_table_1 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_17.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_17.txt new file mode 100644 index 0000000000..0adeb723be --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_17.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_2 (children 2) + Identifier test_db_1 + Identifier test_source_table_2 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_18.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_18.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_18.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_2.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_2.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_3.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_4.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_4.txt new file mode 100644 index 0000000000..d4c5b30f15 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_source_table_1 (children 2) + Identifier test_db_1 + Identifier test_source_table_1 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_5.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_5.txt new file mode 100644 index 0000000000..1b47ba0075 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_5.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 test_source_table_1 (children 4) + Identifier test_db_1 + Identifier test_source_table_1 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_6.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_6.txt new file mode 100644 index 0000000000..7919e394b7 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_source_table_1 diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_7.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_7.txt new file mode 100644 index 0000000000..246ba78296 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_dictionary (children 2) + Identifier test_db_1 + Identifier test_dictionary diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_8.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_8.txt new file mode 100644 index 0000000000..a50c3e1fc0 --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_8.txt @@ -0,0 +1,20 @@ +CreateQuery test_db_1 test_dictionary (children 4) + Identifier test_db_1 + Identifier test_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'test_source_table_1\' + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/01915_create_or_replace_dictionary/explain_9.txt b/parser/testdata/01915_create_or_replace_dictionary/explain_9.txt new file mode 100644 index 0000000000..bab70002cf --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/explain_9.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_db_1.test_dictionary diff --git a/parser/testdata/02025_dictionary_view_different_db/explain.txt b/parser/testdata/02025_dictionary_view_different_db/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_10.txt b/parser/testdata/02025_dictionary_view_different_db/explain_10.txt new file mode 100644 index 0000000000..d8a3185993 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_10.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier view_table diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_14.txt b/parser/testdata/02025_dictionary_view_different_db/explain_14.txt new file mode 100644 index 0000000000..246ba78296 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_14.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_dictionary (children 2) + Identifier test_db_1 + Identifier test_dictionary diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_15.txt b/parser/testdata/02025_dictionary_view_different_db/explain_15.txt new file mode 100644 index 0000000000..9ed3135842 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_15.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_table (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_16.txt b/parser/testdata/02025_dictionary_view_different_db/explain_16.txt new file mode 100644 index 0000000000..5163c26616 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_16.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 view_table (children 2) + Identifier test_db_1 + Identifier view_table diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_18.txt b/parser/testdata/02025_dictionary_view_different_db/explain_18.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_18.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_2.txt b/parser/testdata/02025_dictionary_view_different_db/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_3.txt b/parser/testdata/02025_dictionary_view_different_db/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_4.txt b/parser/testdata/02025_dictionary_view_different_db/explain_4.txt new file mode 100644 index 0000000000..9ed3135842 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_4.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_table (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_5.txt b/parser/testdata/02025_dictionary_view_different_db/explain_5.txt new file mode 100644 index 0000000000..3403d338cc --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_5.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 test_table (children 4) + Identifier test_db_1 + Identifier test_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_6.txt b/parser/testdata/02025_dictionary_view_different_db/explain_6.txt new file mode 100644 index 0000000000..1f198c16d8 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_7.txt b/parser/testdata/02025_dictionary_view_different_db/explain_7.txt new file mode 100644 index 0000000000..03773b396f --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_7.txt @@ -0,0 +1,20 @@ +CreateQuery test_db_1 test_dictionary (children 4) + Identifier test_db_1 + Identifier test_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 3) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Literal \'test_table\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_8.txt b/parser/testdata/02025_dictionary_view_different_db/explain_8.txt new file mode 100644 index 0000000000..5163c26616 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_8.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 view_table (children 2) + Identifier test_db_1 + Identifier view_table diff --git a/parser/testdata/02025_dictionary_view_different_db/explain_9.txt b/parser/testdata/02025_dictionary_view_different_db/explain_9.txt new file mode 100644 index 0000000000..4838055aa8 --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/explain_9.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 view_table (children 4) + Identifier test_db_1 + Identifier view_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain.txt b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_12.txt b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_12.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_12.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_2.txt b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_3.txt b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_10.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_10.txt new file mode 100644 index 0000000000..4a2d39338f --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_10.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_11.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_11.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_2.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_2.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_3.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_3.txt new file mode 100644 index 0000000000..a5e47bb0bc --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_3.txt @@ -0,0 +1,8 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/test/02072/{database}_1\' + Literal \'{shard}\' + Literal \'{replica}_1\' diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_5.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_5.txt new file mode 100644 index 0000000000..f92e875d8c --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_5.txt @@ -0,0 +1,9 @@ +CreateQuery test_db test%_\\_ (children 4) + Identifier test_db + Identifier test%_\\_ + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration n (children 1) + DataType int + Storage definition (children 1) + Function Log diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_6.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_6.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_6.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_7.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_7.txt new file mode 100644 index 0000000000..e5e9c0b6f1 --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_7.txt @@ -0,0 +1,8 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/test/02072/{database}\' + Literal \'{shard}\' + Literal \'{replica}_2\' diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_8.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_8.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_8.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/explain_9.txt b/parser/testdata/02072_rdb_recovery_escaped_name/explain_9.txt new file mode 100644 index 0000000000..b8624b88ab --- /dev/null +++ b/parser/testdata/02072_rdb_recovery_escaped_name/explain_9.txt @@ -0,0 +1,2 @@ +SYSTEM query (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02072_rdb_recovery_escaped_name/metadata.json b/parser/testdata/02072_rdb_recovery_escaped_name/metadata.json index 0967ef424b..3a06a4a1ac 100644 --- a/parser/testdata/02072_rdb_recovery_escaped_name/metadata.json +++ b/parser/testdata/02072_rdb_recovery_escaped_name/metadata.json @@ -1 +1,5 @@ -{} +{ + "explain_todo": { + "stmt5": true + } +} diff --git a/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_10.txt b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_10.txt new file mode 100644 index 0000000000..4fb02b3809 --- /dev/null +++ b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_10.txt @@ -0,0 +1,10 @@ +CreateQuery t1_all (children 2) + Identifier t1_all + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 4) + Identifier test_cluster_two_shards_localhost + Identifier test_db_1 + Identifier t1_local + Function rand (children 1) + ExpressionList diff --git a/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_11.txt b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_11.txt new file mode 100644 index 0000000000..d4c287b8d1 --- /dev/null +++ b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_11.txt @@ -0,0 +1,10 @@ +CreateQuery t2_all (children 2) + Identifier t2_all + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 4) + Identifier test_cluster_two_shards_localhost + Identifier test_db_1 + Identifier t2_local + Function rand (children 1) + ExpressionList diff --git a/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_2.txt b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_27.txt b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_27.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_27.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_3.txt b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/02115_rewrite_local_join_right_distribute_table/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain.txt b/parser/testdata/02179_dict_reload_on_cluster/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_15.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_15.txt new file mode 100644 index 0000000000..ca077e97f8 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_15.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier query_count + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_17.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_17.txt new file mode 100644 index 0000000000..ca077e97f8 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_17.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier query_count + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_19.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_19.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_19.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_2.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_20.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_20.txt new file mode 100644 index 0000000000..4322b86490 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_20.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_21.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_21.txt new file mode 100644 index 0000000000..ca077e97f8 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_21.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier query_count + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_22.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_22.txt new file mode 100644 index 0000000000..61ecde4b73 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_22.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict (children 2) + Identifier test_db_1 + Identifier dict diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_23.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_23.txt new file mode 100644 index 0000000000..8291df4aa4 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_23.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 dict_data (children 2) + Identifier test_db_1 + Identifier dict_data diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_24.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_24.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_24.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_25.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_25.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_25.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_3.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_4.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_4.txt new file mode 100644 index 0000000000..e74f60f5b2 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_4.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 dict_data (children 4) + Identifier test_db_1 + Identifier dict_data + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType UInt64 + ColumnDeclaration val (children 1) + DataType UInt64 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_5.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_5.txt new file mode 100644 index 0000000000..037b9f3b83 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_5.txt @@ -0,0 +1,32 @@ +CreateQuery test_db_1 dict (children 4) + Identifier test_db_1 + Identifier dict + ExpressionList (children 2) + DictionaryAttributeDeclaration key (children 2) + DataType UInt64 + Literal UInt64_0 + DictionaryAttributeDeclaration val (children 2) + DataType UInt64 + Literal UInt64_10 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier key + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'localhost\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'dict_data\' + pair (children 1) + Literal \'\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_6.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_6.txt new file mode 100644 index 0000000000..3d450d487f --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier dict_data diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_7.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_7.txt new file mode 100644 index 0000000000..ca077e97f8 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_7.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier query_count + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' diff --git a/parser/testdata/02179_dict_reload_on_cluster/explain_9.txt b/parser/testdata/02179_dict_reload_on_cluster/explain_9.txt new file mode 100644 index 0000000000..ca077e97f8 --- /dev/null +++ b/parser/testdata/02179_dict_reload_on_cluster/explain_9.txt @@ -0,0 +1,19 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier query_count + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.dictionaries + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'dict\' diff --git a/parser/testdata/02184_default_table_engine/explain_56.txt b/parser/testdata/02184_default_table_engine/explain_56.txt new file mode 100644 index 0000000000..0eab502dea --- /dev/null +++ b/parser/testdata/02184_default_table_engine/explain_56.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Identifier kek diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_39.txt b/parser/testdata/02337_analyzer_columns_basic/explain_39.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_39.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_40.txt b/parser/testdata/02337_analyzer_columns_basic/explain_40.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_40.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_41.txt b/parser/testdata/02337_analyzer_columns_basic/explain_41.txt new file mode 100644 index 0000000000..9ed3135842 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_41.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_table (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_42.txt b/parser/testdata/02337_analyzer_columns_basic/explain_42.txt new file mode 100644 index 0000000000..3403d338cc --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_42.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 test_table (children 4) + Identifier test_db_1 + Identifier test_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_43.txt b/parser/testdata/02337_analyzer_columns_basic/explain_43.txt new file mode 100644 index 0000000000..1f198c16d8 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_43.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_45.txt b/parser/testdata/02337_analyzer_columns_basic/explain_45.txt new file mode 100644 index 0000000000..64e0b32b63 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_45.txt @@ -0,0 +1,13 @@ +DescribeQuery (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier test_table.id + Identifier test_table.value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_46.txt b/parser/testdata/02337_analyzer_columns_basic/explain_46.txt new file mode 100644 index 0000000000..b8d6c480f5 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_46.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier test_table.id + Identifier test_table.value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_48.txt b/parser/testdata/02337_analyzer_columns_basic/explain_48.txt new file mode 100644 index 0000000000..00a3046248 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_48.txt @@ -0,0 +1,13 @@ +DescribeQuery (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier test_db_1.test_table.id + Identifier test_db_1.test_table.value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_49.txt b/parser/testdata/02337_analyzer_columns_basic/explain_49.txt new file mode 100644 index 0000000000..259c4fdef1 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_49.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier test_db_1.test_table.id + Identifier test_db_1.test_table.value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_51.txt b/parser/testdata/02337_analyzer_columns_basic/explain_51.txt new file mode 100644 index 0000000000..aad7d68180 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_51.txt @@ -0,0 +1,13 @@ +DescribeQuery (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier test_table.id + Identifier test_table.value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table (alias test_table) diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_52.txt b/parser/testdata/02337_analyzer_columns_basic/explain_52.txt new file mode 100644 index 0000000000..1b961f77f3 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_52.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier test_table.id + Identifier test_table.value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table (alias test_table) diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_53.txt b/parser/testdata/02337_analyzer_columns_basic/explain_53.txt new file mode 100644 index 0000000000..9ed3135842 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_53.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_table (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02337_analyzer_columns_basic/explain_54.txt b/parser/testdata/02337_analyzer_columns_basic/explain_54.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/explain_54.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_39.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_39.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_39.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_40.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_40.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_40.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_41.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_41.txt new file mode 100644 index 0000000000..9ed3135842 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_41.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_table (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_42.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_42.txt new file mode 100644 index 0000000000..3403d338cc --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_42.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 test_table (children 4) + Identifier test_db_1 + Identifier test_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function TinyLog diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_43.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_43.txt new file mode 100644 index 0000000000..1f198c16d8 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_43.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_45.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_45.txt new file mode 100644 index 0000000000..d6a51af4c9 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_45.txt @@ -0,0 +1,13 @@ +DescribeQuery (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + QualifiedAsterisk (children 1) + Identifier test_db_1.test_table + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_46.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_46.txt new file mode 100644 index 0000000000..d44c3c8d5a --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_46.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + QualifiedAsterisk (children 1) + Identifier test_db_1.test_table + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_48.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_48.txt new file mode 100644 index 0000000000..65acdcd8ca --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_48.txt @@ -0,0 +1,15 @@ +DescribeQuery (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + QualifiedColumnsListMatcher (children 2) + Identifier test_db_1.test_table + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_49.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_49.txt new file mode 100644 index 0000000000..dc782ceb78 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_49.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + QualifiedColumnsListMatcher (children 2) + Identifier test_db_1.test_table + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_51.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_51.txt new file mode 100644 index 0000000000..d988df92b2 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_51.txt @@ -0,0 +1,19 @@ +DescribeQuery (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + QualifiedColumnsListMatcher (children 2) + Identifier test_db_1.test_table + ExpressionList (children 1) + Identifier id + QualifiedColumnsListMatcher (children 2) + Identifier test_db_1.test_table + ExpressionList (children 1) + Identifier value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_52.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_52.txt new file mode 100644 index 0000000000..681103a7f0 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_52.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + QualifiedColumnsListMatcher (children 2) + Identifier test_db_1.test_table + ExpressionList (children 1) + Identifier id + QualifiedColumnsListMatcher (children 2) + Identifier test_db_1.test_table + ExpressionList (children 1) + Identifier value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_54.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_54.txt new file mode 100644 index 0000000000..960b998735 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_54.txt @@ -0,0 +1,15 @@ +DescribeQuery (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + QualifiedColumnsRegexpMatcher (children 1) + Identifier test_db_1.test_table + QualifiedColumnsRegexpMatcher (children 1) + Identifier test_db_1.test_table + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_55.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_55.txt new file mode 100644 index 0000000000..7655dc5cb6 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_55.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + QualifiedColumnsRegexpMatcher (children 1) + Identifier test_db_1.test_table + QualifiedColumnsRegexpMatcher (children 1) + Identifier test_db_1.test_table + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_56.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_56.txt new file mode 100644 index 0000000000..9ed3135842 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_56.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 test_table (children 2) + Identifier test_db_1 + Identifier test_table diff --git a/parser/testdata/02339_analyzer_matcher_basic/explain_57.txt b/parser/testdata/02339_analyzer_matcher_basic/explain_57.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/explain_57.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02346_text_index_bug108874/explain_29.txt b/parser/testdata/02346_text_index_bug108874/explain_29.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_29.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02346_text_index_bug108874/explain_30.txt b/parser/testdata/02346_text_index_bug108874/explain_30.txt new file mode 100644 index 0000000000..7f83293d25 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_30.txt @@ -0,0 +1,5 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 2) + Function Atomic + Set diff --git a/parser/testdata/02346_text_index_bug108874/explain_31.txt b/parser/testdata/02346_text_index_bug108874/explain_31.txt new file mode 100644 index 0000000000..b1b29058ea --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_31.txt @@ -0,0 +1,35 @@ +CreateQuery test_db_1 logs (children 4) + Identifier test_db_1 + Identifier logs + Columns definition (children 2) + ExpressionList (children 1) + ColumnDeclaration attributes (children 1) + DataType Map (children 1) + ExpressionList (children 2) + DataType String + DataType String + ExpressionList (children 2) + Index (children 2) + Function mapValues (children 1) + ExpressionList (children 1) + Identifier attributes + Function text (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier tokenizer + Literal \'array\' + Index (children 2) + Function mapKeys (children 1) + ExpressionList (children 1) + Identifier attributes + Function text (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier tokenizer + Literal \'array\' + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/02346_text_index_bug108874/explain_32.txt b/parser/testdata/02346_text_index_bug108874/explain_32.txt new file mode 100644 index 0000000000..28f7e9e035 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_32.txt @@ -0,0 +1,18 @@ +CreateQuery test_db_1 logs_dist (children 4) + Identifier test_db_1 + Identifier logs_dist + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration attributes (children 1) + DataType Map (children 1) + ExpressionList (children 2) + DataType String + DataType String + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 4) + Literal \'test_cluster_two_shards_localhost\' + Literal \'test_db_1\' + Identifier logs + Function rand (children 1) + ExpressionList diff --git a/parser/testdata/02346_text_index_bug108874/explain_33.txt b/parser/testdata/02346_text_index_bug108874/explain_33.txt new file mode 100644 index 0000000000..0d241eeefe --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_33.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier logs diff --git a/parser/testdata/02346_text_index_bug108874/explain_34.txt b/parser/testdata/02346_text_index_bug108874/explain_34.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_34.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02346_text_index_bug108874/explain_35.txt b/parser/testdata/02346_text_index_bug108874/explain_35.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_35.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02346_text_index_bug108874/explain_36.txt b/parser/testdata/02346_text_index_bug108874/explain_36.txt new file mode 100644 index 0000000000..4882d19852 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_36.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 2) + Literal \'mapValues lazy-proxy dist\' + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.logs_dist + Function has (children 1) + ExpressionList (children 2) + Function mapValues (children 1) + ExpressionList (children 1) + Identifier attributes + Literal \'192.168.1.1\' + Set diff --git a/parser/testdata/02346_text_index_bug108874/explain_37.txt b/parser/testdata/02346_text_index_bug108874/explain_37.txt new file mode 100644 index 0000000000..449e4da074 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_37.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 2) + Literal \'mapKeys lazy-proxy dist\' + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.logs_dist + Function has (children 1) + ExpressionList (children 2) + Function mapKeys (children 1) + ExpressionList (children 1) + Identifier attributes + Literal \'ip\' + Set diff --git a/parser/testdata/02346_text_index_bug108874/explain_38.txt b/parser/testdata/02346_text_index_bug108874/explain_38.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02346_text_index_bug108874/explain_38.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_11.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_11.txt new file mode 100644 index 0000000000..9e1658c03b --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_11.txt @@ -0,0 +1,18 @@ +CreateQuery test_db_2 tab_alias (children 5) + Identifier test_db_2 + Identifier tab_alias + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration val (children 1) + DataType String + ColumnDeclaration mangled (children 2) + DataType String + Function demangle (children 1) + ExpressionList (children 1) + Identifier val + Storage definition (children 2) + Function MergeTree + Identifier id + Identifier Null diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_14.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_14.txt new file mode 100644 index 0000000000..b6b7e30a7c --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_14.txt @@ -0,0 +1,20 @@ +AlterQuery test_db_2 tab_alias (children 3) + ExpressionList (children 2) + AlterCommand RENAME_COLUMN (children 2) + Identifier mangled + Identifier renamed + AlterCommand ADD_INDEX (children 1) + Index (children 2) + Identifier val + Function text (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier tokenizer + Literal \'splitByNonAlpha\' + Function equals (children 1) + ExpressionList (children 2) + Identifier preprocessor + Identifier renamed + Identifier test_db_2 + Identifier tab_alias diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_17.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_17.txt new file mode 100644 index 0000000000..82aebc4954 --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_17.txt @@ -0,0 +1,20 @@ +AlterQuery test_db_2 tab (children 4) + ExpressionList (children 1) + AlterCommand ADD_INDEX (children 1) + Index (children 2) + Identifier val + Function text (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier tokenizer + Literal \'splitByNonAlpha\' + Function equals (children 1) + ExpressionList (children 2) + Identifier preprocessor + Function demangle (children 1) + ExpressionList (children 1) + Identifier val + Identifier test_db_2 + Identifier tab + Identifier Null diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_18.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_18.txt new file mode 100644 index 0000000000..38c1fceec1 --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_18.txt @@ -0,0 +1,3 @@ +DropQuery test_db_2 (children 2) + Identifier test_db_2 + Identifier Null diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_2.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_2.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_3.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_3.txt new file mode 100644 index 0000000000..2a80b0b008 --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_3.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_2 (children 3) + Identifier test_db_2 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/02346_text_index_transform_access/{database}\' + Literal \'shard1\' + Literal \'replica1\' + Identifier Null diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_4.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_4.txt new file mode 100644 index 0000000000..f159de6eb0 --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_4.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_2 tab (children 5) + Identifier test_db_2 + Identifier tab + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration val (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier id + Identifier Null diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_6.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_6.txt new file mode 100644 index 0000000000..a3c33ed107 --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_6.txt @@ -0,0 +1,19 @@ +AlterQuery test_db_2 tab (children 3) + ExpressionList (children 1) + AlterCommand ADD_INDEX (children 1) + Index (children 2) + Identifier val + Function text (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier tokenizer + Literal \'splitByNonAlpha\' + Function equals (children 1) + ExpressionList (children 2) + Identifier preprocessor + Function demangle (children 1) + ExpressionList (children 1) + Identifier val + Identifier test_db_2 + Identifier tab diff --git a/parser/testdata/02346_text_index_transform_access_replicated_database/explain_8.txt b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_8.txt new file mode 100644 index 0000000000..2bc4214a70 --- /dev/null +++ b/parser/testdata/02346_text_index_transform_access_replicated_database/explain_8.txt @@ -0,0 +1,27 @@ +CreateQuery test_db_2 tab_denied (children 4) + Identifier test_db_2 + Identifier tab_denied + Columns definition (children 2) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration val (children 1) + DataType String + ExpressionList (children 1) + Index (children 2) + Identifier val + Function text (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier tokenizer + Literal \'splitByNonAlpha\' + Function equals (children 1) + ExpressionList (children 2) + Identifier preprocessor + Function demangle (children 1) + ExpressionList (children 1) + Identifier val + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/02483_add_engine_full_column_to_system_databases/explain.txt b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_2.txt b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_2.txt new file mode 100644 index 0000000000..7648dacbfa --- /dev/null +++ b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_2.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_2 (children 2) + Identifier test_db_2 + Storage definition (children 2) + Function Replicated (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 3) + Literal \'some/path/\' + Literal \'test_db_2\' + Literal \'/replicated_database_test\' + Literal \'shard_1\' + Literal \'replica_1\' + Set diff --git a/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_3.txt b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_3.txt new file mode 100644 index 0000000000..4877b0aa6b --- /dev/null +++ b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_3.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier engine_full + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'test_db_2\' diff --git a/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_4.txt b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_4.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/02483_add_engine_full_column_to_system_databases/explain_4.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/02716_drop_if_empty/explain_14.txt b/parser/testdata/02716_drop_if_empty/explain_14.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02716_drop_if_empty/explain_14.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02716_drop_if_empty/explain_15.txt b/parser/testdata/02716_drop_if_empty/explain_15.txt new file mode 100644 index 0000000000..6cf2addc80 --- /dev/null +++ b/parser/testdata/02716_drop_if_empty/explain_15.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.tables + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' diff --git a/parser/testdata/02716_drop_if_empty/explain_3.txt b/parser/testdata/02716_drop_if_empty/explain_3.txt new file mode 100644 index 0000000000..467179f9df --- /dev/null +++ b/parser/testdata/02716_drop_if_empty/explain_3.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 data_02716_3 (children 2) + Identifier test_db_1 + Identifier data_02716_3 diff --git a/parser/testdata/02716_drop_if_empty/explain_4.txt b/parser/testdata/02716_drop_if_empty/explain_4.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02716_drop_if_empty/explain_4.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02716_drop_if_empty/explain_7.txt b/parser/testdata/02716_drop_if_empty/explain_7.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02716_drop_if_empty/explain_7.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02716_drop_if_empty/explain_8.txt b/parser/testdata/02716_drop_if_empty/explain_8.txt new file mode 100644 index 0000000000..18f7eb614d --- /dev/null +++ b/parser/testdata/02716_drop_if_empty/explain_8.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 data_02716_3 (children 4) + Identifier test_db_1 + Identifier data_02716_3 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration v (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier v diff --git a/parser/testdata/02762_replicated_database_no_args/explain.txt b/parser/testdata/02762_replicated_database_no_args/explain.txt new file mode 100644 index 0000000000..46ddb9dd4b --- /dev/null +++ b/parser/testdata/02762_replicated_database_no_args/explain.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Replicated diff --git a/parser/testdata/02771_resolve_compound_identifier/explain.txt b/parser/testdata/02771_resolve_compound_identifier/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02771_resolve_compound_identifier/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02771_resolve_compound_identifier/explain_2.txt b/parser/testdata/02771_resolve_compound_identifier/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02771_resolve_compound_identifier/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02771_resolve_compound_identifier/explain_3.txt b/parser/testdata/02771_resolve_compound_identifier/explain_3.txt new file mode 100644 index 0000000000..067679c10c --- /dev/null +++ b/parser/testdata/02771_resolve_compound_identifier/explain_3.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t (children 4) + Identifier test_db_1 + Identifier t + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt8 + Storage definition (children 2) + Function MergeTree + Identifier x diff --git a/parser/testdata/02771_resolve_compound_identifier/explain_4.txt b/parser/testdata/02771_resolve_compound_identifier/explain_4.txt new file mode 100644 index 0000000000..3d9f3b4d77 --- /dev/null +++ b/parser/testdata/02771_resolve_compound_identifier/explain_4.txt @@ -0,0 +1,14 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier t + 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/02771_resolve_compound_identifier/explain_5.txt b/parser/testdata/02771_resolve_compound_identifier/explain_5.txt new file mode 100644 index 0000000000..9d6cff9c16 --- /dev/null +++ b/parser/testdata/02771_resolve_compound_identifier/explain_5.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier t.x + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t + ExpressionList (children 1) + OrderByElement (children 1) + Identifier t.x diff --git a/parser/testdata/02771_resolve_compound_identifier/explain_6.txt b/parser/testdata/02771_resolve_compound_identifier/explain_6.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02771_resolve_compound_identifier/explain_6.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_10.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_10.txt new file mode 100644 index 0000000000..bb20ce7c39 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_10.txt @@ -0,0 +1,10 @@ +CreateQuery test_db tablefunc02_without_schema (children 3) + Identifier test_db + Identifier tablefunc02_without_schema + Function mysql (children 1) + ExpressionList (children 5) + Literal \'127.123.0.1:3306\' + Literal \'mysql_db\' + Literal \'mysql_table\' + Literal \'mysql_user\' + Literal \'[HIDDEN]\' diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_12.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_12.txt new file mode 100644 index 0000000000..f2aab26029 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_12.txt @@ -0,0 +1,3 @@ +DetachQuery test_db tablefunc01 (children 2) + Identifier test_db + Identifier tablefunc01 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_13.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_13.txt new file mode 100644 index 0000000000..4055b042a2 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_13.txt @@ -0,0 +1,3 @@ +DetachQuery test_db tablefunc02 (children 2) + Identifier test_db + Identifier tablefunc02 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_14.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_14.txt new file mode 100644 index 0000000000..19f93eeeed --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_14.txt @@ -0,0 +1,3 @@ +DetachQuery test_db tablefunc03 (children 2) + Identifier test_db + Identifier tablefunc03 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_15.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_15.txt new file mode 100644 index 0000000000..54e24b345d --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_15.txt @@ -0,0 +1,3 @@ +DetachQuery test_db tablefunc04 (children 2) + Identifier test_db + Identifier tablefunc04 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_16.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_16.txt new file mode 100644 index 0000000000..ce3dee1f89 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_16.txt @@ -0,0 +1,3 @@ +DetachQuery test_db tablefunc05 (children 2) + Identifier test_db + Identifier tablefunc05 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_17.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_17.txt new file mode 100644 index 0000000000..7fa0f66950 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_17.txt @@ -0,0 +1,3 @@ +DetachQuery test_db tablefunc06 (children 2) + Identifier test_db + Identifier tablefunc06 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_18.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_18.txt new file mode 100644 index 0000000000..98d551d62c --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_18.txt @@ -0,0 +1,3 @@ +AttachQuery test_db tablefunc01 (children 2) + Identifier test_db + Identifier tablefunc01 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_19.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_19.txt new file mode 100644 index 0000000000..66353daa08 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_19.txt @@ -0,0 +1,3 @@ +AttachQuery test_db tablefunc02 (children 2) + Identifier test_db + Identifier tablefunc02 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_2.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_2.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_20.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_20.txt new file mode 100644 index 0000000000..ed3634c9b8 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_20.txt @@ -0,0 +1,3 @@ +AttachQuery test_db tablefunc03 (children 2) + Identifier test_db + Identifier tablefunc03 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_21.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_21.txt new file mode 100644 index 0000000000..fab1546208 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_21.txt @@ -0,0 +1,3 @@ +AttachQuery test_db tablefunc04 (children 2) + Identifier test_db + Identifier tablefunc04 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_22.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_22.txt new file mode 100644 index 0000000000..5d7e26f27e --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_22.txt @@ -0,0 +1,3 @@ +AttachQuery test_db tablefunc05 (children 2) + Identifier test_db + Identifier tablefunc05 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_23.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_23.txt new file mode 100644 index 0000000000..d83023c7e5 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_23.txt @@ -0,0 +1,3 @@ +AttachQuery test_db tablefunc06 (children 2) + Identifier test_db + Identifier tablefunc06 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_25.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_25.txt new file mode 100644 index 0000000000..d97eba5513 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_25.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.tablefunc01 diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_27.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_27.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_27.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_3.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_3.txt new file mode 100644 index 0000000000..1b2f448fbc --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_3.txt @@ -0,0 +1,14 @@ +CreateQuery test_db tablefunc01 (children 4) + Identifier test_db + Identifier tablefunc01 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType int + Function postgresql (children 1) + ExpressionList (children 5) + Literal \'127.121.0.1:5432\' + Literal \'postgres_db\' + Literal \'postgres_table\' + Literal \'postgres_user\' + Literal \'[HIDDEN]\' diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_4.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_4.txt new file mode 100644 index 0000000000..a6f17b0c25 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_4.txt @@ -0,0 +1,14 @@ +CreateQuery test_db tablefunc02 (children 4) + Identifier test_db + Identifier tablefunc02 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType int + Function mysql (children 1) + ExpressionList (children 5) + Literal \'127.123.0.1:3306\' + Literal \'mysql_db\' + Literal \'mysql_table\' + Literal \'mysql_user\' + Literal \'[HIDDEN]\' diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_5.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_5.txt new file mode 100644 index 0000000000..9c1b5ed358 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_5.txt @@ -0,0 +1,11 @@ +CreateQuery test_db tablefunc03 (children 4) + Identifier test_db + Identifier tablefunc03 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration a (children 1) + DataType int + Function sqlite (children 1) + ExpressionList (children 2) + Literal \'db_path\' + Literal \'table_name\' diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_6.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_6.txt new file mode 100644 index 0000000000..d70a845106 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_6.txt @@ -0,0 +1,15 @@ +CreateQuery test_db tablefunc04 (children 4) + Identifier test_db + Identifier tablefunc04 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration a (children 1) + DataType int + Function mongodb (children 1) + ExpressionList (children 6) + Literal \'127.0.0.1:27017\' + Literal \'test\' + Literal \'my_collection\' + Literal \'test_user\' + Literal \'[HIDDEN]\' + Literal \'a Int\' diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_7.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_7.txt new file mode 100644 index 0000000000..be0f11a8ce --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_7.txt @@ -0,0 +1,12 @@ +CreateQuery test_db tablefunc05 (children 4) + Identifier test_db + Identifier tablefunc05 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration a (children 1) + DataType int + Function redis (children 1) + ExpressionList (children 3) + Literal \'127.0.0.1:6379\' + Literal \'key\' + Literal \'key UInt32\' diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_8.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_8.txt new file mode 100644 index 0000000000..9d771c2953 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_8.txt @@ -0,0 +1,13 @@ +CreateQuery test_db tablefunc06 (children 4) + Identifier test_db + Identifier tablefunc06 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration a (children 1) + DataType int + Function s3 (children 1) + ExpressionList (children 4) + Literal \'http://some_addr:9000/cloud-storage-01/data.tsv\' + Literal \'M9O7o0SX5I4udXhWxI12\' + Literal \'[HIDDEN]\' + Literal \'TSV\' diff --git a/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_9.txt b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_9.txt new file mode 100644 index 0000000000..9461374872 --- /dev/null +++ b/parser/testdata/02888_system_tables_with_inaccessible_table_function/explain_9.txt @@ -0,0 +1,10 @@ +CreateQuery test_db tablefunc01_without_schema (children 3) + Identifier test_db + Identifier tablefunc01_without_schema + Function postgresql (children 1) + ExpressionList (children 5) + Literal \'127.121.0.1:5432\' + Literal \'postgres_db\' + Literal \'postgres_table\' + Literal \'postgres_user\' + Literal \'[HIDDEN]\' diff --git a/parser/testdata/02891_rename_table_without_keyword/explain.txt b/parser/testdata/02891_rename_table_without_keyword/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_10.txt b/parser/testdata/02891_rename_table_without_keyword/explain_10.txt new file mode 100644 index 0000000000..1831ea5892 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_10.txt @@ -0,0 +1,9 @@ +Rename (children 8) + Identifier test_db + Identifier r1 + Identifier test_db + Identifier r1_bak + Identifier test_db + Identifier r2 + Identifier test_db + Identifier r2_bak diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_11.txt b/parser/testdata/02891_rename_table_without_keyword/explain_11.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_11.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_12.txt b/parser/testdata/02891_rename_table_without_keyword/explain_12.txt new file mode 100644 index 0000000000..3f322cdf14 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_12.txt @@ -0,0 +1,11 @@ +CreateQuery test_db source_table (children 4) + Identifier test_db + Identifier source_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_13.txt b/parser/testdata/02891_rename_table_without_keyword/explain_13.txt new file mode 100644 index 0000000000..f7a863f2cd --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_13.txt @@ -0,0 +1,18 @@ +CreateQuery test_db test_dictionary (children 4) + Identifier test_db + Identifier test_dictionary + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 1) + pair (children 1) + Literal \'{CLICKHOUSE_DATABASE:String}.dictionary_table\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_14.txt b/parser/testdata/02891_rename_table_without_keyword/explain_14.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_14.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_15.txt b/parser/testdata/02891_rename_table_without_keyword/explain_15.txt new file mode 100644 index 0000000000..a996bf3791 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_15.txt @@ -0,0 +1,5 @@ +Rename (children 4) + Identifier test_db + Identifier test_dictionary + Identifier test_db + Identifier test_dictionary_2 diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_16.txt b/parser/testdata/02891_rename_table_without_keyword/explain_16.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_16.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_18.txt b/parser/testdata/02891_rename_table_without_keyword/explain_18.txt new file mode 100644 index 0000000000..2f64b34895 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_18.txt @@ -0,0 +1,3 @@ +Rename (children 2) + Identifier test_db + Identifier test_db_1 diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_2.txt b/parser/testdata/02891_rename_table_without_keyword/explain_2.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_20.txt b/parser/testdata/02891_rename_table_without_keyword/explain_20.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_20.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_3.txt b/parser/testdata/02891_rename_table_without_keyword/explain_3.txt new file mode 100644 index 0000000000..c5079f1fb2 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_3.txt @@ -0,0 +1,9 @@ +CreateQuery test_db r1 (children 4) + Identifier test_db + Identifier r1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_4.txt b/parser/testdata/02891_rename_table_without_keyword/explain_4.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_4.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_5.txt b/parser/testdata/02891_rename_table_without_keyword/explain_5.txt new file mode 100644 index 0000000000..5453daf64b --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_5.txt @@ -0,0 +1,5 @@ +Rename (children 4) + Identifier test_db + Identifier r1 + Identifier test_db + Identifier r1_bak diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_6.txt b/parser/testdata/02891_rename_table_without_keyword/explain_6.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_6.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_7.txt b/parser/testdata/02891_rename_table_without_keyword/explain_7.txt new file mode 100644 index 0000000000..b73fd372b9 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_7.txt @@ -0,0 +1,5 @@ +Rename (children 4) + Identifier test_db + Identifier r1_bak + Identifier test_db + Identifier r1 diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_8.txt b/parser/testdata/02891_rename_table_without_keyword/explain_8.txt new file mode 100644 index 0000000000..b9851a13ca --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_8.txt @@ -0,0 +1,2 @@ +ShowTables (children 1) + Identifier test_db diff --git a/parser/testdata/02891_rename_table_without_keyword/explain_9.txt b/parser/testdata/02891_rename_table_without_keyword/explain_9.txt new file mode 100644 index 0000000000..c58199c786 --- /dev/null +++ b/parser/testdata/02891_rename_table_without_keyword/explain_9.txt @@ -0,0 +1,9 @@ +CreateQuery test_db r2 (children 4) + Identifier test_db + Identifier r2 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/02891_rename_table_without_keyword/metadata.json b/parser/testdata/02891_rename_table_without_keyword/metadata.json index 0967ef424b..b5a84f70c9 100644 --- a/parser/testdata/02891_rename_table_without_keyword/metadata.json +++ b/parser/testdata/02891_rename_table_without_keyword/metadata.json @@ -1 +1,9 @@ -{} +{ + "explain_todo": { + "stmt10": true, + "stmt13": true, + "stmt15": true, + "stmt18": true, + "stmt7": true + } +} diff --git a/parser/testdata/02921_database_filesystem_path_check/explain.txt b/parser/testdata/02921_database_filesystem_path_check/explain.txt new file mode 100644 index 0000000000..eaeccdf2e7 --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain.txt @@ -0,0 +1,6 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Filesystem (children 1) + ExpressionList (children 1) + Literal \'/etc\' diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_2.txt b/parser/testdata/02921_database_filesystem_path_check/explain_2.txt new file mode 100644 index 0000000000..74891afa1b --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_2.txt @@ -0,0 +1,6 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Filesystem (children 1) + ExpressionList (children 1) + Literal \'../../../../../../../../etc\' diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_3.txt b/parser/testdata/02921_database_filesystem_path_check/explain_3.txt new file mode 100644 index 0000000000..7262a73483 --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_3.txt @@ -0,0 +1,6 @@ +AttachQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Filesystem (children 1) + ExpressionList (children 1) + Literal \'no_such_dir_in_user_files\' diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_4.txt b/parser/testdata/02921_database_filesystem_path_check/explain_4.txt new file mode 100644 index 0000000000..b0bf0be78a --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_4.txt @@ -0,0 +1,9 @@ +ParallelWithQuery 2 AttachQuery_test_db_1_ (children 2) + AttachQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Filesystem (children 1) + ExpressionList (children 1) + Literal \'no_such_dir_in_user_files\' + DropQuery no_such_table_02921 (children 1) + Identifier no_such_table_02921 diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_5.txt b/parser/testdata/02921_database_filesystem_path_check/explain_5.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_5.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_6.txt b/parser/testdata/02921_database_filesystem_path_check/explain_6.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_6.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_7.txt b/parser/testdata/02921_database_filesystem_path_check/explain_7.txt new file mode 100644 index 0000000000..b0bf0be78a --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_7.txt @@ -0,0 +1,9 @@ +ParallelWithQuery 2 AttachQuery_test_db_1_ (children 2) + AttachQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Filesystem (children 1) + ExpressionList (children 1) + Literal \'no_such_dir_in_user_files\' + DropQuery no_such_table_02921 (children 1) + Identifier no_such_table_02921 diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_8.txt b/parser/testdata/02921_database_filesystem_path_check/explain_8.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_8.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02921_database_filesystem_path_check/explain_9.txt b/parser/testdata/02921_database_filesystem_path_check/explain_9.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/explain_9.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02988_ordinary_database_warning/explain.txt b/parser/testdata/02988_ordinary_database_warning/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02988_ordinary_database_warning/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/02988_ordinary_database_warning/explain_4.txt b/parser/testdata/02988_ordinary_database_warning/explain_4.txt new file mode 100644 index 0000000000..95e4194d1f --- /dev/null +++ b/parser/testdata/02988_ordinary_database_warning/explain_4.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Ordinary diff --git a/parser/testdata/02988_ordinary_database_warning/explain_6.txt b/parser/testdata/02988_ordinary_database_warning/explain_6.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/02988_ordinary_database_warning/explain_6.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain.txt b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_12.txt b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_12.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_12.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_2.txt b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_3.txt b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_7.txt b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_7.txt new file mode 100644 index 0000000000..ecea154a68 --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_7.txt @@ -0,0 +1,12 @@ +CreateQuery dist (children 3) + Identifier dist + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration s (children 1) + DataType String + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 3) + Identifier test_shard_localhost + Identifier test_db_1 + Identifier src diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_9.txt b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_9.txt new file mode 100644 index 0000000000..925d39328f --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/explain_9.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier _table + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'\' + ExpressionList (children 2) + OrderByElement (children 1) + Identifier _table + OrderByElement (children 1) + Identifier s diff --git a/parser/testdata/03049_unknown_identifier_materialized_column/explain_10.txt b/parser/testdata/03049_unknown_identifier_materialized_column/explain_10.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03049_unknown_identifier_materialized_column/explain_10.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03049_unknown_identifier_materialized_column/explain_2.txt b/parser/testdata/03049_unknown_identifier_materialized_column/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03049_unknown_identifier_materialized_column/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03049_unknown_identifier_materialized_column/explain_3.txt b/parser/testdata/03049_unknown_identifier_materialized_column/explain_3.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03049_unknown_identifier_materialized_column/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03049_unknown_identifier_materialized_column/explain_4.txt b/parser/testdata/03049_unknown_identifier_materialized_column/explain_4.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03049_unknown_identifier_materialized_column/explain_4.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03049_unknown_identifier_materialized_column/explain_9.txt b/parser/testdata/03049_unknown_identifier_materialized_column/explain_9.txt new file mode 100644 index 0000000000..cecec15064 --- /dev/null +++ b/parser/testdata/03049_unknown_identifier_materialized_column/explain_9.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.l + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.r + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier l.y + Identifier r.y + Function greaterOrEquals (children 1) + ExpressionList (children 2) + Identifier r.ty + Literal UInt64_2019 diff --git a/parser/testdata/03053_analyzer_join_alias/explain_2.txt b/parser/testdata/03053_analyzer_join_alias/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03053_analyzer_join_alias/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03053_analyzer_join_alias/explain_3.txt b/parser/testdata/03053_analyzer_join_alias/explain_3.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03053_analyzer_join_alias/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03053_analyzer_join_alias/explain_4.txt b/parser/testdata/03053_analyzer_join_alias/explain_4.txt new file mode 100644 index 0000000000..6d72647bfa --- /dev/null +++ b/parser/testdata/03053_analyzer_join_alias/explain_4.txt @@ -0,0 +1,21 @@ +CreateQuery test_db base (children 4) + Identifier test_db + Identifier base + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration id2 (children 1) + DataType UInt64 + ColumnDeclaration d (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier d + Function tuple (children 1) + ExpressionList (children 3) + Identifier id + Identifier id2 + Identifier d diff --git a/parser/testdata/03053_analyzer_join_alias/explain_5.txt b/parser/testdata/03053_analyzer_join_alias/explain_5.txt new file mode 100644 index 0000000000..882da05aa9 --- /dev/null +++ b/parser/testdata/03053_analyzer_join_alias/explain_5.txt @@ -0,0 +1,18 @@ +CreateQuery test_db derived1 (children 4) + Identifier test_db + Identifier derived1 + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id1 (children 1) + DataType UInt64 + ColumnDeclaration d1 (children 1) + DataType UInt64 + ColumnDeclaration value1 (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier d1 + Function tuple (children 1) + ExpressionList (children 2) + Identifier id1 + Identifier d1 diff --git a/parser/testdata/03053_analyzer_join_alias/explain_6.txt b/parser/testdata/03053_analyzer_join_alias/explain_6.txt new file mode 100644 index 0000000000..86702fb9fd --- /dev/null +++ b/parser/testdata/03053_analyzer_join_alias/explain_6.txt @@ -0,0 +1,18 @@ +CreateQuery test_db derived2 (children 4) + Identifier test_db + Identifier derived2 + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration id2 (children 1) + DataType UInt64 + ColumnDeclaration d2 (children 1) + DataType UInt64 + ColumnDeclaration value2 (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier d2 + Function tuple (children 1) + ExpressionList (children 2) + Identifier id2 + Identifier d2 diff --git a/parser/testdata/03053_analyzer_join_alias/explain_7.txt b/parser/testdata/03053_analyzer_join_alias/explain_7.txt new file mode 100644 index 0000000000..efbbce7ac4 --- /dev/null +++ b/parser/testdata/03053_analyzer_join_alias/explain_7.txt @@ -0,0 +1,28 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier base.id (alias base.id) + Identifier derived2.id2 (alias derived2.id2) + Identifier derived2.value2 (alias derived2.value2) + Identifier derived1.value1 (alias derived1.value1) + TablesInSelectQuery (children 3) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.base (alias base) + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.derived2 (alias derived2) + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier base.id2 + Identifier derived2.id2 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.derived1 (alias derived1) + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier base.id + Identifier derived1.id1 diff --git a/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_2.txt b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_3.txt b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_3.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_4.txt b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_4.txt new file mode 100644 index 0000000000..28e3bb2dfc --- /dev/null +++ b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_4.txt @@ -0,0 +1,9 @@ +CreateQuery test_db a (children 4) + Identifier test_db + Identifier a + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration i (children 1) + DataType int + Storage definition (children 1) + Function Log diff --git a/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_5.txt b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_5.txt new file mode 100644 index 0000000000..edb9a710e3 --- /dev/null +++ b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/explain_5.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.a.i + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.a + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.a (alias x) + TableJoin diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_10.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_10.txt new file mode 100644 index 0000000000..673623f726 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_10.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 test_db.1-1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.1-1 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier test_db.1-1.field + Identifier test_db_1.1-1.field diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_12.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_12.txt new file mode 100644 index 0000000000..4d4fcb7784 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_12.txt @@ -0,0 +1,46 @@ +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 2) + SelectQuery (children 2) + ExpressionList (children 3) + Literal \'using asterisk\' + QualifiedAsterisk (children 1) + Identifier test_db.1-1 + QualifiedAsterisk (children 1) + Identifier test_db_1.1-1 + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.1-1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.1-1 + TableJoin (children 1) + ExpressionList (children 1) + Identifier field + SelectQuery (children 2) + ExpressionList (children 3) + Literal \'using field name\' + Identifier test_db.1-1.field + Identifier test_db_1.1-1.field + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.1-1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.1-1 + TableJoin (children 1) + ExpressionList (children 1) + Identifier field + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_2.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_3.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_3.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_3.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_4.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_4.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_4.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_5.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_5.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_5.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_6.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_6.txt new file mode 100644 index 0000000000..a6d1825db8 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_6.txt @@ -0,0 +1,9 @@ +CreateQuery test_db 1-1 (children 4) + Identifier test_db + Identifier 1-1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration field (children 1) + DataType Int8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_7.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_7.txt new file mode 100644 index 0000000000..1b2e19f2ed --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_7.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 1-1 (children 4) + Identifier test_db_1 + Identifier 1-1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration field (children 1) + DataType Int8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_8.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_8.txt new file mode 100644 index 0000000000..cb45184752 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_8.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 2-1 (children 4) + Identifier test_db_1 + Identifier 2-1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration field (children 1) + DataType Int8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_9.txt b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_9.txt new file mode 100644 index 0000000000..779dd6cd89 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier 1-1 diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_10.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_10.txt new file mode 100644 index 0000000000..620ab06280 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_10.txt @@ -0,0 +1,26 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + QualifiedAsterisk (children 1) + Identifier test_db.1-1 + TablesInSelectQuery (children 3) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.1-1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.2-1 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier test_db.1-1.field + Identifier test_db_1.2-1.field + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.3-1 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier test_db_1.2-1.field + Identifier test_db_1.3-1.field diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_2.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_3.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_3.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_3.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_4.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_4.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_4.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_5.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_5.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_5.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_6.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_6.txt new file mode 100644 index 0000000000..a6d1825db8 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_6.txt @@ -0,0 +1,9 @@ +CreateQuery test_db 1-1 (children 4) + Identifier test_db + Identifier 1-1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration field (children 1) + DataType Int8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_7.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_7.txt new file mode 100644 index 0000000000..cb45184752 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_7.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 2-1 (children 4) + Identifier test_db_1 + Identifier 2-1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration field (children 1) + DataType Int8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_8.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_8.txt new file mode 100644 index 0000000000..b93a050841 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_8.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 3-1 (children 4) + Identifier test_db_1 + Identifier 3-1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration field (children 1) + DataType Int8 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_9.txt b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_9.txt new file mode 100644 index 0000000000..779dd6cd89 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier 1-1 diff --git a/parser/testdata/03101_analyzer_identifiers_1/explain_10.txt b/parser/testdata/03101_analyzer_identifiers_1/explain_10.txt new file mode 100644 index 0000000000..0bd8a15eb1 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_1/explain_10.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.table.column + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier table diff --git a/parser/testdata/03101_analyzer_identifiers_1/explain_2.txt b/parser/testdata/03101_analyzer_identifiers_1/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_1/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03101_analyzer_identifiers_1/explain_3.txt b/parser/testdata/03101_analyzer_identifiers_1/explain_3.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_1/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03101_analyzer_identifiers_1/explain_4.txt b/parser/testdata/03101_analyzer_identifiers_1/explain_4.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_1/explain_4.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03101_analyzer_identifiers_1/explain_8.txt b/parser/testdata/03101_analyzer_identifiers_1/explain_8.txt new file mode 100644 index 0000000000..87f5e573d6 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_1/explain_8.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier column + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.table diff --git a/parser/testdata/03101_analyzer_identifiers_1/explain_9.txt b/parser/testdata/03101_analyzer_identifiers_1/explain_9.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_1/explain_9.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03101_analyzer_identifiers_4/explain_12.txt b/parser/testdata/03101_analyzer_identifiers_4/explain_12.txt new file mode 100644 index 0000000000..1b0fb09508 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_4/explain_12.txt @@ -0,0 +1,13 @@ +CreateQuery test_db t (children 4) + Identifier test_db + Identifier t + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration col (children 1) + DataType String + ColumnDeclaration hello (children 1) + DataType String + ColumnDeclaration world (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03101_analyzer_identifiers_4/explain_13.txt b/parser/testdata/03101_analyzer_identifiers_4/explain_13.txt new file mode 100644 index 0000000000..35ecc336fc --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_4/explain_13.txt @@ -0,0 +1,9 @@ +CreateQuery test_db u (children 4) + Identifier test_db + Identifier u + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration cc (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03101_analyzer_identifiers_4/explain_2.txt b/parser/testdata/03101_analyzer_identifiers_4/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_4/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03101_analyzer_identifiers_4/explain_3.txt b/parser/testdata/03101_analyzer_identifiers_4/explain_3.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_4/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03101_analyzer_identifiers_4/explain_4.txt b/parser/testdata/03101_analyzer_identifiers_4/explain_4.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_4/explain_4.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03127_system_unload_primary_key_table/explain_11.txt b/parser/testdata/03127_system_unload_primary_key_table/explain_11.txt new file mode 100644 index 0000000000..6dcb7ba992 --- /dev/null +++ b/parser/testdata/03127_system_unload_primary_key_table/explain_11.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db + Identifier test2 + Identifier test_db + Identifier test2 diff --git a/parser/testdata/03127_system_unload_primary_key_table/explain_9.txt b/parser/testdata/03127_system_unload_primary_key_table/explain_9.txt new file mode 100644 index 0000000000..d5665a977c --- /dev/null +++ b/parser/testdata/03127_system_unload_primary_key_table/explain_9.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db + Identifier test + Identifier test_db + Identifier test diff --git a/parser/testdata/03147_table_function_loop/explain_6.txt b/parser/testdata/03147_table_function_loop/explain_6.txt new file mode 100644 index 0000000000..7e5f06e964 --- /dev/null +++ b/parser/testdata/03147_table_function_loop/explain_6.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) + Function loop (children 1) + ExpressionList (children 1) + Identifier test_db.t + Literal UInt64_15 diff --git a/parser/testdata/03147_table_function_loop/explain_8.txt b/parser/testdata/03147_table_function_loop/explain_8.txt new file mode 100644 index 0000000000..60cfd4a7fc --- /dev/null +++ b/parser/testdata/03147_table_function_loop/explain_8.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) + Function loop (children 1) + ExpressionList (children 2) + Identifier test_db + Identifier t + Literal UInt64_15 diff --git a/parser/testdata/03168_loop_engine_with_parallel_replicas/explain.txt b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_2.txt b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_3.txt b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_3.txt new file mode 100644 index 0000000000..5f8eac70dc --- /dev/null +++ b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_3.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t (children 4) + Identifier test_db_1 + Identifier t + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration n (children 1) + DataType Int8 + Storage definition (children 2) + Function MergeTree + Identifier n diff --git a/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_4.txt b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_4.txt new file mode 100644 index 0000000000..0d1ee6a7c5 --- /dev/null +++ b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_4.txt @@ -0,0 +1,14 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier t + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function numbers (children 1) + ExpressionList (children 1) + Literal UInt64_10 diff --git a/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_5.txt b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_5.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_5.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_8.txt b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_8.txt new file mode 100644 index 0000000000..0afa7b554e --- /dev/null +++ b/parser/testdata/03168_loop_engine_with_parallel_replicas/explain_8.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function loop (children 1) + ExpressionList (children 1) + Identifier test_db_1.t + Literal UInt64_15 + Identifier Null diff --git a/parser/testdata/03221_create_if_not_exists_setting/explain_12.txt b/parser/testdata/03221_create_if_not_exists_setting/explain_12.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/explain_12.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03221_create_if_not_exists_setting/explain_13.txt b/parser/testdata/03221_create_if_not_exists_setting/explain_13.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/explain_13.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03221_create_if_not_exists_setting/explain_14.txt b/parser/testdata/03221_create_if_not_exists_setting/explain_14.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/explain_14.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03221_create_if_not_exists_setting/explain_15.txt b/parser/testdata/03221_create_if_not_exists_setting/explain_15.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/explain_15.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03221_create_if_not_exists_setting/explain_5.txt b/parser/testdata/03221_create_if_not_exists_setting/explain_5.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/explain_5.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03221_create_if_not_exists_setting/explain_6.txt b/parser/testdata/03221_create_if_not_exists_setting/explain_6.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/explain_6.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03221_create_if_not_exists_setting/explain_7.txt b/parser/testdata/03221_create_if_not_exists_setting/explain_7.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/explain_7.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_10.txt b/parser/testdata/03222_datetime64_small_value_const/explain_10.txt new file mode 100644 index 0000000000..0a44168491 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_10.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 distr_03222_dt64 (children 2) + Identifier test_db_1 + Identifier distr_03222_dt64 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_11.txt b/parser/testdata/03222_datetime64_small_value_const/explain_11.txt new file mode 100644 index 0000000000..b38bc183a9 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_11.txt @@ -0,0 +1,14 @@ +CreateQuery test_db dt64_03222 (children 4) + Identifier test_db + Identifier dt64_03222 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration dt (children 1) + DataType DateTime64 (children 1) + ExpressionList (children 1) + Literal UInt64_3 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_12.txt b/parser/testdata/03222_datetime64_small_value_const/explain_12.txt new file mode 100644 index 0000000000..1712abba98 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_12.txt @@ -0,0 +1,17 @@ +CreateQuery test_db_1 distr_03222_dt64 (children 4) + Identifier test_db_1 + Identifier distr_03222_dt64 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration dt (children 1) + DataType DateTime64 (children 1) + ExpressionList (children 1) + Literal UInt64_3 + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 3) + Identifier test_shard_localhost + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_13.txt b/parser/testdata/03222_datetime64_small_value_const/explain_13.txt new file mode 100644 index 0000000000..5d27389c41 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_13.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_14.txt b/parser/testdata/03222_datetime64_small_value_const/explain_14.txt new file mode 100644 index 0000000000..5d27389c41 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_14.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_15.txt b/parser/testdata/03222_datetime64_small_value_const/explain_15.txt new file mode 100644 index 0000000000..5d27389c41 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_15.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_16.txt b/parser/testdata/03222_datetime64_small_value_const/explain_16.txt new file mode 100644 index 0000000000..5d27389c41 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_16.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_17.txt b/parser/testdata/03222_datetime64_small_value_const/explain_17.txt new file mode 100644 index 0000000000..5d27389c41 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_17.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_18.txt b/parser/testdata/03222_datetime64_small_value_const/explain_18.txt new file mode 100644 index 0000000000..b149ef82b0 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_18.txt @@ -0,0 +1,25 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 2) + Identifier id + Identifier dt + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.distr_03222_dt64 + Function equals (children 1) + ExpressionList (children 2) + Identifier dt + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime64 (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Literal UInt64_3 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_19.txt b/parser/testdata/03222_datetime64_small_value_const/explain_19.txt new file mode 100644 index 0000000000..f21e24945a --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_19.txt @@ -0,0 +1,25 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 2) + Identifier id + Identifier dt + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.distr_03222_dt64 + Function greater (children 1) + ExpressionList (children 2) + Identifier dt + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime64 (children 1) + ExpressionList (children 2) + Literal UInt64_0 + Literal UInt64_3 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_20.txt b/parser/testdata/03222_datetime64_small_value_const/explain_20.txt new file mode 100644 index 0000000000..7fef864011 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_20.txt @@ -0,0 +1,25 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 2) + Identifier id + Identifier dt + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.distr_03222_dt64 + Function greater (children 1) + ExpressionList (children 2) + Identifier dt + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime64 (children 1) + ExpressionList (children 2) + Literal \'1970-01-01 00:10:00.000\' + Literal UInt64_3 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_21.txt b/parser/testdata/03222_datetime64_small_value_const/explain_21.txt new file mode 100644 index 0000000000..c5a1e6a3c1 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_21.txt @@ -0,0 +1,25 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 2) + Identifier id + Identifier dt + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.distr_03222_dt64 + Function less (children 1) + ExpressionList (children 2) + Identifier dt + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime64 (children 1) + ExpressionList (children 2) + Literal UInt64_5 + Literal UInt64_3 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_22.txt b/parser/testdata/03222_datetime64_small_value_const/explain_22.txt new file mode 100644 index 0000000000..819d441925 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_22.txt @@ -0,0 +1,23 @@ +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 test_db_1.distr_03222_dt64 + Function greater (children 1) + ExpressionList (children 2) + Identifier dt + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime64 (children 1) + ExpressionList (children 2) + Literal \'2024-07-20 00:00:00\' + Literal UInt64_3 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_23.txt b/parser/testdata/03222_datetime64_small_value_const/explain_23.txt new file mode 100644 index 0000000000..a9378ddd1e --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_23.txt @@ -0,0 +1,21 @@ +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 test_db_1.distr_03222_dt64 + Function greater (children 1) + ExpressionList (children 2) + Identifier dt + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function now (children 1) + ExpressionList diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_24.txt b/parser/testdata/03222_datetime64_small_value_const/explain_24.txt new file mode 100644 index 0000000000..743499c616 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_24.txt @@ -0,0 +1,23 @@ +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 test_db_1.distr_03222_dt64 + Function less (children 1) + ExpressionList (children 2) + Identifier dt + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Function toDateTime64 (children 1) + ExpressionList (children 2) + Literal \'2004-07-20 00:00:00\' + Literal UInt64_3 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_25.txt b/parser/testdata/03222_datetime64_small_value_const/explain_25.txt new file mode 100644 index 0000000000..0a44168491 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_25.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 distr_03222_dt64 (children 2) + Identifier test_db_1 + Identifier distr_03222_dt64 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_26.txt b/parser/testdata/03222_datetime64_small_value_const/explain_26.txt new file mode 100644 index 0000000000..a77df71dc0 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_26.txt @@ -0,0 +1,3 @@ +DropQuery test_db dt64_03222 (children 2) + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_27.txt b/parser/testdata/03222_datetime64_small_value_const/explain_27.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_27.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_8.txt b/parser/testdata/03222_datetime64_small_value_const/explain_8.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_8.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03222_datetime64_small_value_const/explain_9.txt b/parser/testdata/03222_datetime64_small_value_const/explain_9.txt new file mode 100644 index 0000000000..a77df71dc0 --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/explain_9.txt @@ -0,0 +1,3 @@ +DropQuery test_db dt64_03222 (children 2) + Identifier test_db + Identifier dt64_03222 diff --git a/parser/testdata/03224_invalid_alter/explain_18.txt b/parser/testdata/03224_invalid_alter/explain_18.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_18.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03224_invalid_alter/explain_19.txt b/parser/testdata/03224_invalid_alter/explain_19.txt new file mode 100644 index 0000000000..4941f12f79 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_19.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/03224_invalid_alter/explain_29.txt b/parser/testdata/03224_invalid_alter/explain_29.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_29.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/03224_invalid_alter/explain_30.txt b/parser/testdata/03224_invalid_alter/explain_30.txt new file mode 100644 index 0000000000..1d2b495f19 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_30.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_2 (children 3) + Identifier test_db_2 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/03224_invalid_alter/{database}_replicated\' + Literal \'shard1\' + Literal \'replica1\' + Identifier Null diff --git a/parser/testdata/03224_invalid_alter/explain_31.txt b/parser/testdata/03224_invalid_alter/explain_31.txt new file mode 100644 index 0000000000..7532d5a5d0 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_31.txt @@ -0,0 +1,23 @@ +CreateQuery test_db_2 test4 (children 5) + Identifier test_db_2 + Identifier test4 + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration str (children 1) + DataType String + ColumnDeclaration column_with_codec (children 2) + DataType String + Function CODEC (children 1) + ExpressionList (children 1) + Function ZSTD + ColumnDeclaration column_with_alias (children 2) + DataType String + Function concat (children 1) + ExpressionList (children 2) + Identifier str + Literal \'a\' (alias a) + Storage definition (children 2) + Function ReplicatedMergeTree + Function tuple (children 1) + ExpressionList + Identifier Null diff --git a/parser/testdata/03224_invalid_alter/explain_32.txt b/parser/testdata/03224_invalid_alter/explain_32.txt new file mode 100644 index 0000000000..df8dfa7360 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_32.txt @@ -0,0 +1,13 @@ +AlterQuery test_db_2 test4 (children 5) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration invalid_column (children 2) + DataType String + Function concat (children 1) + ExpressionList (children 2) + Identifier str + Literal \'b\' (alias a) + Identifier test_db_2 + Identifier test4 + Identifier Null + Set diff --git a/parser/testdata/03224_invalid_alter/explain_33.txt b/parser/testdata/03224_invalid_alter/explain_33.txt new file mode 100644 index 0000000000..df8dfa7360 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_33.txt @@ -0,0 +1,13 @@ +AlterQuery test_db_2 test4 (children 5) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration invalid_column (children 2) + DataType String + Function concat (children 1) + ExpressionList (children 2) + Identifier str + Literal \'b\' (alias a) + Identifier test_db_2 + Identifier test4 + Identifier Null + Set diff --git a/parser/testdata/03224_invalid_alter/explain_34.txt b/parser/testdata/03224_invalid_alter/explain_34.txt new file mode 100644 index 0000000000..094ec16ddb --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_34.txt @@ -0,0 +1,10 @@ +AlterQuery test_db_2 test4 (children 5) + ExpressionList (children 1) + AlterCommand MODIFY_COLUMN (children 1) + ColumnDeclaration column_with_codec (children 2) + DataType String + Identifier str + Identifier test_db_2 + Identifier test4 + Identifier Null + Set diff --git a/parser/testdata/03224_invalid_alter/explain_35.txt b/parser/testdata/03224_invalid_alter/explain_35.txt new file mode 100644 index 0000000000..bb0e68d927 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_35.txt @@ -0,0 +1,13 @@ +AlterQuery test_db_2 test4 (children 5) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration valid_column_1 (children 2) + DataType String + Function concat (children 1) + ExpressionList (children 2) + Identifier str + Literal \'a\' (alias a) + Identifier test_db_2 + Identifier test4 + Identifier Null + Set diff --git a/parser/testdata/03224_invalid_alter/explain_36.txt b/parser/testdata/03224_invalid_alter/explain_36.txt new file mode 100644 index 0000000000..fb99ceea54 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_36.txt @@ -0,0 +1,13 @@ +AlterQuery test_db_2 test4 (children 5) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration valid_column_2 (children 2) + DataType String + Function concat (children 1) + ExpressionList (children 2) + Identifier str + Literal \'c\' (alias c) + Identifier test_db_2 + Identifier test4 + Identifier Null + Set diff --git a/parser/testdata/03224_invalid_alter/explain_37.txt b/parser/testdata/03224_invalid_alter/explain_37.txt new file mode 100644 index 0000000000..13f1ccd99f --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_37.txt @@ -0,0 +1,6 @@ +InsertQuery (children 3) + Identifier test_db_2 + Identifier test4 + ExpressionList (children 2) + Identifier str + Identifier column_with_codec diff --git a/parser/testdata/03224_invalid_alter/explain_38.txt b/parser/testdata/03224_invalid_alter/explain_38.txt new file mode 100644 index 0000000000..6f317cf388 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_38.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 4) + Identifier str + Identifier column_with_alias + Identifier valid_column_1 + Identifier valid_column_2 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_2.test4 diff --git a/parser/testdata/03224_invalid_alter/explain_39.txt b/parser/testdata/03224_invalid_alter/explain_39.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/03224_invalid_alter/explain_39.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain.txt b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_13.txt b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_13.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_2.txt b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_2.txt new file mode 100644 index 0000000000..9f23c67970 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_3.txt b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_3.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_tables_without_uuid/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03231_create_with_clone_as/explain_80.txt b/parser/testdata/03231_create_with_clone_as/explain_80.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03231_create_with_clone_as/explain_80.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03231_create_with_clone_as/explain_81.txt b/parser/testdata/03231_create_with_clone_as/explain_81.txt new file mode 100644 index 0000000000..70a5c5a08c --- /dev/null +++ b/parser/testdata/03231_create_with_clone_as/explain_81.txt @@ -0,0 +1,8 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/test/databases/{database}/test_03231\' + Literal \'s1\' + Literal \'r1\' diff --git a/parser/testdata/03231_create_with_clone_as/explain_82.txt b/parser/testdata/03231_create_with_clone_as/explain_82.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03231_create_with_clone_as/explain_82.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03231_create_with_clone_as/explain_91.txt b/parser/testdata/03231_create_with_clone_as/explain_91.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03231_create_with_clone_as/explain_91.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03267_materialized_view_keeps_security_context/explain.txt b/parser/testdata/03267_materialized_view_keeps_security_context/explain.txt new file mode 100644 index 0000000000..9a66a89469 --- /dev/null +++ b/parser/testdata/03267_materialized_view_keeps_security_context/explain.txt @@ -0,0 +1,3 @@ +DropQuery test_db rview (children 2) + Identifier test_db + Identifier rview diff --git a/parser/testdata/03267_materialized_view_keeps_security_context/explain_2.txt b/parser/testdata/03267_materialized_view_keeps_security_context/explain_2.txt new file mode 100644 index 0000000000..82ba478f9d --- /dev/null +++ b/parser/testdata/03267_materialized_view_keeps_security_context/explain_2.txt @@ -0,0 +1,3 @@ +DropQuery test_db wview (children 2) + Identifier test_db + Identifier wview diff --git a/parser/testdata/03310_create_database_with_settings/explain.txt b/parser/testdata/03310_create_database_with_settings/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03310_create_database_with_settings/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03310_create_database_with_settings/explain_2.txt b/parser/testdata/03310_create_database_with_settings/explain_2.txt new file mode 100644 index 0000000000..ad2a5823ba --- /dev/null +++ b/parser/testdata/03310_create_database_with_settings/explain_2.txt @@ -0,0 +1,3 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Set diff --git a/parser/testdata/03310_create_database_with_settings/explain_5.txt b/parser/testdata/03310_create_database_with_settings/explain_5.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03310_create_database_with_settings/explain_5.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03310_create_database_with_settings/metadata.json b/parser/testdata/03310_create_database_with_settings/metadata.json index 0967ef424b..ef58f80315 100644 --- a/parser/testdata/03310_create_database_with_settings/metadata.json +++ b/parser/testdata/03310_create_database_with_settings/metadata.json @@ -1 +1,5 @@ -{} +{ + "explain_todo": { + "stmt2": true + } +} diff --git a/parser/testdata/03315_join_temporary_table_names/explain_11.txt b/parser/testdata/03315_join_temporary_table_names/explain_11.txt new file mode 100644 index 0000000000..cdbf1550d7 --- /dev/null +++ b/parser/testdata/03315_join_temporary_table_names/explain_11.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier T1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.T2 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier T1.A + Identifier T2.A + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all + Identifier PrettyCompactMonoBlock diff --git a/parser/testdata/03315_join_temporary_table_names/explain_12.txt b/parser/testdata/03315_join_temporary_table_names/explain_12.txt new file mode 100644 index 0000000000..b14f916999 --- /dev/null +++ b/parser/testdata/03315_join_temporary_table_names/explain_12.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 2) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.T1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier T2 + TableJoin (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier T1.A + Identifier T2.A + ExpressionList (children 1) + OrderByElement (children 1) + Identifier all + Identifier PrettyCompactMonoBlock diff --git a/parser/testdata/03321_create_table_as_replicated_engine_args/explain.txt b/parser/testdata/03321_create_table_as_replicated_engine_args/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03321_create_table_as_replicated_engine_args/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03321_create_table_as_replicated_engine_args/explain_2.txt b/parser/testdata/03321_create_table_as_replicated_engine_args/explain_2.txt new file mode 100644 index 0000000000..f7c875cbbb --- /dev/null +++ b/parser/testdata/03321_create_table_as_replicated_engine_args/explain_2.txt @@ -0,0 +1,8 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/databases/{database}\' + Literal \'shard1\' + Literal \'replica1\' diff --git a/parser/testdata/03321_create_table_as_replicated_engine_args/explain_3.txt b/parser/testdata/03321_create_table_as_replicated_engine_args/explain_3.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03321_create_table_as_replicated_engine_args/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03321_create_table_as_replicated_engine_args/explain_8.txt b/parser/testdata/03321_create_table_as_replicated_engine_args/explain_8.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03321_create_table_as_replicated_engine_args/explain_8.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03362_create_table_after_truncate_replicated_database/explain.txt b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_2.txt b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_2.txt new file mode 100644 index 0000000000..02bb27e950 --- /dev/null +++ b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_2.txt @@ -0,0 +1,9 @@ +CreateQuery test_db (children 3) + Identifier test_db + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/databases/{database}\' + Literal \'shard1\' + Literal \'replica1\' + Identifier NULL diff --git a/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_3.txt b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_3.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_5.txt b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_5.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_5.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_6.txt b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_6.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03362_create_table_after_truncate_replicated_database/explain_6.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03393_ASTTableIdentifier_fuzzer/explain_2.txt b/parser/testdata/03393_ASTTableIdentifier_fuzzer/explain_2.txt new file mode 100644 index 0000000000..a07e4591ba --- /dev/null +++ b/parser/testdata/03393_ASTTableIdentifier_fuzzer/explain_2.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_db.null diff --git a/parser/testdata/03403_truncate_all_tables_like/explain_21.txt b/parser/testdata/03403_truncate_all_tables_like/explain_21.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/03403_truncate_all_tables_like/explain_21.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03403_truncate_all_tables_like/explain_36.txt b/parser/testdata/03403_truncate_all_tables_like/explain_36.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/03403_truncate_all_tables_like/explain_36.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03403_truncate_all_tables_like/explain_42.txt b/parser/testdata/03403_truncate_all_tables_like/explain_42.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/03403_truncate_all_tables_like/explain_42.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03403_truncate_all_tables_like/explain_45.txt b/parser/testdata/03403_truncate_all_tables_like/explain_45.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/03403_truncate_all_tables_like/explain_45.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03403_truncate_all_tables_like/metadata.json b/parser/testdata/03403_truncate_all_tables_like/metadata.json index 0967ef424b..78ad4e23a3 100644 --- a/parser/testdata/03403_truncate_all_tables_like/metadata.json +++ b/parser/testdata/03403_truncate_all_tables_like/metadata.json @@ -1 +1,8 @@ -{} +{ + "explain_todo": { + "stmt21": true, + "stmt36": true, + "stmt42": true, + "stmt45": true + } +} diff --git a/parser/testdata/03408_current_database_on_cluster_constraint/explain.txt b/parser/testdata/03408_current_database_on_cluster_constraint/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03408_current_database_on_cluster_constraint/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03408_current_database_on_cluster_constraint/explain_2.txt b/parser/testdata/03408_current_database_on_cluster_constraint/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03408_current_database_on_cluster_constraint/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03408_current_database_on_cluster_constraint/explain_5.txt b/parser/testdata/03408_current_database_on_cluster_constraint/explain_5.txt new file mode 100644 index 0000000000..2cd6532f15 --- /dev/null +++ b/parser/testdata/03408_current_database_on_cluster_constraint/explain_5.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 t0 (children 4) + Identifier test_db_1 + Identifier t0 + Columns definition (children 2) + ExpressionList (children 1) + ColumnDeclaration c0 (children 1) + DataType Int + ExpressionList (children 1) + Constraint (children 1) + Function currentDatabase (children 1) + ExpressionList + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/03408_current_database_on_cluster_constraint/explain_6.txt b/parser/testdata/03408_current_database_on_cluster_constraint/explain_6.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03408_current_database_on_cluster_constraint/explain_6.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03442_detach_view/explain.txt b/parser/testdata/03442_detach_view/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03442_detach_view/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03442_detach_view/explain_2.txt b/parser/testdata/03442_detach_view/explain_2.txt new file mode 100644 index 0000000000..ad7d61b2a7 --- /dev/null +++ b/parser/testdata/03442_detach_view/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03442_detach_view/explain_3.txt b/parser/testdata/03442_detach_view/explain_3.txt new file mode 100644 index 0000000000..3d383b8d0d --- /dev/null +++ b/parser/testdata/03442_detach_view/explain_3.txt @@ -0,0 +1,3 @@ +DropQuery test_db v0 (children 2) + Identifier test_db + Identifier v0 diff --git a/parser/testdata/03442_detach_view/explain_4.txt b/parser/testdata/03442_detach_view/explain_4.txt new file mode 100644 index 0000000000..5440bf76fa --- /dev/null +++ b/parser/testdata/03442_detach_view/explain_4.txt @@ -0,0 +1,15 @@ +CreateQuery test_db v0 (children 5) + Identifier test_db + Identifier v0 + Refresh strategy definition (children 1) + TimeInterval + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 (alias c0) + ViewTargets (children 1) + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/03442_detach_view/explain_5.txt b/parser/testdata/03442_detach_view/explain_5.txt new file mode 100644 index 0000000000..03e65c9ba9 --- /dev/null +++ b/parser/testdata/03442_detach_view/explain_5.txt @@ -0,0 +1,3 @@ +DetachQuery test_db v0 (children 2) + Identifier test_db + Identifier v0 diff --git a/parser/testdata/03442_detach_view/explain_6.txt b/parser/testdata/03442_detach_view/explain_6.txt new file mode 100644 index 0000000000..cb16fe41d4 --- /dev/null +++ b/parser/testdata/03442_detach_view/explain_6.txt @@ -0,0 +1,7 @@ +AlterQuery test_db v0 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_REFRESH (children 1) + Refresh strategy definition (children 1) + TimeInterval + Identifier test_db + Identifier v0 diff --git a/parser/testdata/03442_detach_view/explain_7.txt b/parser/testdata/03442_detach_view/explain_7.txt new file mode 100644 index 0000000000..3d383b8d0d --- /dev/null +++ b/parser/testdata/03442_detach_view/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db v0 (children 2) + Identifier test_db + Identifier v0 diff --git a/parser/testdata/03442_detach_view/explain_8.txt b/parser/testdata/03442_detach_view/explain_8.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03442_detach_view/explain_8.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03442_detach_view/metadata.json b/parser/testdata/03442_detach_view/metadata.json index 0967ef424b..dbdbb76d4f 100644 --- a/parser/testdata/03442_detach_view/metadata.json +++ b/parser/testdata/03442_detach_view/metadata.json @@ -1 +1,5 @@ -{} +{ + "explain_todo": { + "stmt6": true + } +} diff --git a/parser/testdata/03524_sign_argument/explain.txt b/parser/testdata/03524_sign_argument/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03524_sign_argument/explain_16.txt b/parser/testdata/03524_sign_argument/explain_16.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain_16.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03524_sign_argument/explain_2.txt b/parser/testdata/03524_sign_argument/explain_2.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03524_sign_argument/explain_3.txt b/parser/testdata/03524_sign_argument/explain_3.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03524_sign_argument/explain_4.txt b/parser/testdata/03524_sign_argument/explain_4.txt new file mode 100644 index 0000000000..1d5a0bce4b --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain_4.txt @@ -0,0 +1,9 @@ +CreateQuery test_db t0 (children 4) + Identifier test_db + Identifier t0 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration c0 (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03524_sign_argument/explain_5.txt b/parser/testdata/03524_sign_argument/explain_5.txt new file mode 100644 index 0000000000..ff80fa81fa --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain_5.txt @@ -0,0 +1,16 @@ +CreateQuery test_db t1 (children 4) + Identifier test_db + Identifier t1 + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration c0 (children 1) + DataType String + ColumnDeclaration c1 (children 1) + DataType Int32 + ColumnDeclaration c2 (children 2) + DataType Int32 + Function CODEC (children 1) + ExpressionList (children 1) + Function ZSTD + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03524_sign_argument/explain_6.txt b/parser/testdata/03524_sign_argument/explain_6.txt new file mode 100644 index 0000000000..ee278ab3fa --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain_6.txt @@ -0,0 +1,21 @@ +CreateQuery test_db t2 (children 4) + Identifier test_db + Identifier t2 + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration c0 (children 1) + DataType Int32 + ColumnDeclaration c1 (children 1) + DataType Int32 + ColumnDeclaration c2 (children 1) + DataType String + Storage definition (children 4) + Function MergeTree + Function negate (children 1) + ExpressionList (children 1) + Identifier c1 + Function divide (children 1) + ExpressionList (children 2) + Identifier c1 + Identifier c0 + Set diff --git a/parser/testdata/03524_sign_argument/explain_7.txt b/parser/testdata/03524_sign_argument/explain_7.txt new file mode 100644 index 0000000000..60c35817f3 --- /dev/null +++ b/parser/testdata/03524_sign_argument/explain_7.txt @@ -0,0 +1,13 @@ +CreateQuery test_db t3 (children 4) + Identifier test_db + Identifier t3 + Columns definition (children 1) + ExpressionList (children 3) + ColumnDeclaration c0 (children 1) + DataType Int32 + ColumnDeclaration c1 (children 1) + DataType Int32 + ColumnDeclaration c2 (children 1) + DataType Int32 + Storage definition (children 1) + Function Log diff --git a/parser/testdata/03542_TTL_dict/explain_7.txt b/parser/testdata/03542_TTL_dict/explain_7.txt new file mode 100644 index 0000000000..3eb2728bcc --- /dev/null +++ b/parser/testdata/03542_TTL_dict/explain_7.txt @@ -0,0 +1,28 @@ +CreateQuery ttl_dict (children 3) + Identifier ttl_dict + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration event_date (children 1) + DataType Date + Storage definition (children 3) + Function MergeTree + Identifier id + ExpressionList (children 1) + TTLElement (children 2) + Function plus (children 1) + ExpressionList (children 2) + Identifier event_date + Function toIntervalMonth (children 1) + ExpressionList (children 1) + Literal UInt64_1 + Function not (children 1) + ExpressionList (children 1) + Function dictHas (children 1) + ExpressionList (children 2) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.always_alive_ids_dict\' + Identifier id diff --git a/parser/testdata/03546_leftover_dependencies/explain.txt b/parser/testdata/03546_leftover_dependencies/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03546_leftover_dependencies/explain_10.txt b/parser/testdata/03546_leftover_dependencies/explain_10.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_10.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03546_leftover_dependencies/explain_11.txt b/parser/testdata/03546_leftover_dependencies/explain_11.txt new file mode 100644 index 0000000000..4941f12f79 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_11.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/03546_leftover_dependencies/explain_12.txt b/parser/testdata/03546_leftover_dependencies/explain_12.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_12.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03546_leftover_dependencies/explain_18.txt b/parser/testdata/03546_leftover_dependencies/explain_18.txt new file mode 100644 index 0000000000..2f64b34895 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_18.txt @@ -0,0 +1,3 @@ +Rename (children 2) + Identifier test_db + Identifier test_db_1 diff --git a/parser/testdata/03546_leftover_dependencies/explain_19.txt b/parser/testdata/03546_leftover_dependencies/explain_19.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_19.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03546_leftover_dependencies/explain_2.txt b/parser/testdata/03546_leftover_dependencies/explain_2.txt new file mode 100644 index 0000000000..4941f12f79 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/03546_leftover_dependencies/explain_20.txt b/parser/testdata/03546_leftover_dependencies/explain_20.txt new file mode 100644 index 0000000000..4941f12f79 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_20.txt @@ -0,0 +1,4 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/03546_leftover_dependencies/explain_21.txt b/parser/testdata/03546_leftover_dependencies/explain_21.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_21.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03546_leftover_dependencies/explain_26.txt b/parser/testdata/03546_leftover_dependencies/explain_26.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_26.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03546_leftover_dependencies/explain_3.txt b/parser/testdata/03546_leftover_dependencies/explain_3.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03546_leftover_dependencies/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03655_keeper_map_alter_comment/explain_13.txt b/parser/testdata/03655_keeper_map_alter_comment/explain_13.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03655_keeper_map_alter_comment/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03655_keeper_map_alter_comment/explain_2.txt b/parser/testdata/03655_keeper_map_alter_comment/explain_2.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03655_keeper_map_alter_comment/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03655_keeper_map_alter_comment/explain_3.txt b/parser/testdata/03655_keeper_map_alter_comment/explain_3.txt new file mode 100644 index 0000000000..f7c875cbbb --- /dev/null +++ b/parser/testdata/03655_keeper_map_alter_comment/explain_3.txt @@ -0,0 +1,8 @@ +CreateQuery test_db (children 2) + Identifier test_db + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/databases/{database}\' + Literal \'shard1\' + Literal \'replica1\' diff --git a/parser/testdata/03655_keeper_map_alter_comment/explain_4.txt b/parser/testdata/03655_keeper_map_alter_comment/explain_4.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03655_keeper_map_alter_comment/explain_4.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03655_system_databases_is_external/explain_10.txt b/parser/testdata/03655_system_databases_is_external/explain_10.txt new file mode 100644 index 0000000000..34960c8a1b --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_10.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier engine + Identifier is_external + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'test_db_1\' diff --git a/parser/testdata/03655_system_databases_is_external/explain_11.txt b/parser/testdata/03655_system_databases_is_external/explain_11.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03655_system_databases_is_external/explain_12.txt b/parser/testdata/03655_system_databases_is_external/explain_12.txt new file mode 100644 index 0000000000..174a9c2f43 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_12.txt @@ -0,0 +1,8 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/test/{database}/rdb\' + Literal \'s1\' + Literal \'r1\' diff --git a/parser/testdata/03655_system_databases_is_external/explain_13.txt b/parser/testdata/03655_system_databases_is_external/explain_13.txt new file mode 100644 index 0000000000..34960c8a1b --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_13.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier engine + Identifier is_external + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'test_db_1\' diff --git a/parser/testdata/03655_system_databases_is_external/explain_14.txt b/parser/testdata/03655_system_databases_is_external/explain_14.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_14.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03655_system_databases_is_external/explain_15.txt b/parser/testdata/03655_system_databases_is_external/explain_15.txt new file mode 100644 index 0000000000..300fc0337f --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_15.txt @@ -0,0 +1,6 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function SQLite (children 1) + ExpressionList (children 1) + Literal \'test_db_1\' diff --git a/parser/testdata/03655_system_databases_is_external/explain_16.txt b/parser/testdata/03655_system_databases_is_external/explain_16.txt new file mode 100644 index 0000000000..34960c8a1b --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_16.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier engine + Identifier is_external + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'test_db_1\' diff --git a/parser/testdata/03655_system_databases_is_external/explain_17.txt b/parser/testdata/03655_system_databases_is_external/explain_17.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_17.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03655_system_databases_is_external/explain_3.txt b/parser/testdata/03655_system_databases_is_external/explain_3.txt new file mode 100644 index 0000000000..95e4194d1f --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_3.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Ordinary diff --git a/parser/testdata/03655_system_databases_is_external/explain_4.txt b/parser/testdata/03655_system_databases_is_external/explain_4.txt new file mode 100644 index 0000000000..34960c8a1b --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_4.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier engine + Identifier is_external + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'test_db_1\' diff --git a/parser/testdata/03655_system_databases_is_external/explain_5.txt b/parser/testdata/03655_system_databases_is_external/explain_5.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_5.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03655_system_databases_is_external/explain_6.txt b/parser/testdata/03655_system_databases_is_external/explain_6.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_6.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/03655_system_databases_is_external/explain_7.txt b/parser/testdata/03655_system_databases_is_external/explain_7.txt new file mode 100644 index 0000000000..34960c8a1b --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_7.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier engine + Identifier is_external + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'test_db_1\' diff --git a/parser/testdata/03655_system_databases_is_external/explain_8.txt b/parser/testdata/03655_system_databases_is_external/explain_8.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_8.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03655_system_databases_is_external/explain_9.txt b/parser/testdata/03655_system_databases_is_external/explain_9.txt new file mode 100644 index 0000000000..9f23c67970 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/explain_9.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03762_create_as_url_cluster/explain.txt b/parser/testdata/03762_create_as_url_cluster/explain.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/03762_create_as_url_cluster/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/03762_create_as_url_cluster/explain_2.txt b/parser/testdata/03762_create_as_url_cluster/explain_2.txt new file mode 100644 index 0000000000..ab561d56fd --- /dev/null +++ b/parser/testdata/03762_create_as_url_cluster/explain_2.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_2 (children 3) + Identifier test_db_2 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/03762_create_as_url_cluster/{database}_replicated\' + Literal \'shard1\' + Literal \'replica1\' + Identifier Null diff --git a/parser/testdata/03762_create_as_url_cluster/explain_3.txt b/parser/testdata/03762_create_as_url_cluster/explain_3.txt new file mode 100644 index 0000000000..07c09a4c5c --- /dev/null +++ b/parser/testdata/03762_create_as_url_cluster/explain_3.txt @@ -0,0 +1,22 @@ +CreateQuery test_db_2 test (children 5) + Identifier test_db_2 + Identifier test + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration c0 (children 1) + DataType Int + Storage definition (children 1) + Function Memory + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Literal UInt64_1 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function url (alias tx) (children 1) + ExpressionList (children 3) + Literal \'http://localhost:8123/?query=SELECT+1+FORMAT+Values\' + Literal \'Values\' + Literal \'c0 Int\' diff --git a/parser/testdata/03762_create_as_url_cluster/explain_4.txt b/parser/testdata/03762_create_as_url_cluster/explain_4.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/03762_create_as_url_cluster/explain_4.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/03790_materialized_postgresql_nullptr_dereference/explain_2.txt b/parser/testdata/03790_materialized_postgresql_nullptr_dereference/explain_2.txt new file mode 100644 index 0000000000..a79ed25130 --- /dev/null +++ b/parser/testdata/03790_materialized_postgresql_nullptr_dereference/explain_2.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function MaterializedPostgreSQL diff --git a/parser/testdata/03790_materialized_postgresql_nullptr_dereference/explain_3.txt b/parser/testdata/03790_materialized_postgresql_nullptr_dereference/explain_3.txt new file mode 100644 index 0000000000..47562e3b6a --- /dev/null +++ b/parser/testdata/03790_materialized_postgresql_nullptr_dereference/explain_3.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function PostgreSQL diff --git a/parser/testdata/03791_backup_engine_with_one_arg_must_not_crash/explain.txt b/parser/testdata/03791_backup_engine_with_one_arg_must_not_crash/explain.txt new file mode 100644 index 0000000000..c06300071d --- /dev/null +++ b/parser/testdata/03791_backup_engine_with_one_arg_must_not_crash/explain.txt @@ -0,0 +1,6 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Backup (children 1) + ExpressionList (children 1) + Literal \'[HIDDEN]\' diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_13.txt b/parser/testdata/03802_storage_alias_referential_check/explain_13.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_13.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_14.txt b/parser/testdata/03802_storage_alias_referential_check/explain_14.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_14.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_15.txt b/parser/testdata/03802_storage_alias_referential_check/explain_15.txt new file mode 100644 index 0000000000..11be3d65ff --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_15.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 cross_db_target (children 4) + Identifier test_db_1 + Identifier cross_db_target + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt32 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_16.txt b/parser/testdata/03802_storage_alias_referential_check/explain_16.txt new file mode 100644 index 0000000000..88aed75ffe --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_16.txt @@ -0,0 +1,7 @@ +CreateQuery test_db_1 cross_db_alias (children 3) + Identifier test_db_1 + Identifier cross_db_alias + Storage definition (children 1) + Function Alias (children 1) + ExpressionList (children 1) + Literal \'cross_db_target\' diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_18.txt b/parser/testdata/03802_storage_alias_referential_check/explain_18.txt new file mode 100644 index 0000000000..0596575898 --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_18.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cross_db_target (children 2) + Identifier test_db_1 + Identifier cross_db_target diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_19.txt b/parser/testdata/03802_storage_alias_referential_check/explain_19.txt new file mode 100644 index 0000000000..d3be2b0b32 --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_19.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cross_db_alias (children 2) + Identifier test_db_1 + Identifier cross_db_alias diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_20.txt b/parser/testdata/03802_storage_alias_referential_check/explain_20.txt new file mode 100644 index 0000000000..0596575898 --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_20.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 cross_db_target (children 2) + Identifier test_db_1 + Identifier cross_db_target diff --git a/parser/testdata/03802_storage_alias_referential_check/explain_21.txt b/parser/testdata/03802_storage_alias_referential_check/explain_21.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03802_storage_alias_referential_check/explain_21.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain.txt b/parser/testdata/03823_lazy_load_tables/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_11.txt b/parser/testdata/03823_lazy_load_tables/explain_11.txt new file mode 100644 index 0000000000..aa16ebea55 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_11.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 test_db_1.t1 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/03823_lazy_load_tables/explain_13.txt b/parser/testdata/03823_lazy_load_tables/explain_13.txt new file mode 100644 index 0000000000..a4ca62311e --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_13.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t2 (children 4) + Identifier test_db_1 + Identifier t2 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt32 + Storage definition (children 2) + Function MergeTree + Identifier x diff --git a/parser/testdata/03823_lazy_load_tables/explain_14.txt b/parser/testdata/03823_lazy_load_tables/explain_14.txt new file mode 100644 index 0000000000..93872b0e58 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_14.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t2 diff --git a/parser/testdata/03823_lazy_load_tables/explain_15.txt b/parser/testdata/03823_lazy_load_tables/explain_15.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_15.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_16.txt b/parser/testdata/03823_lazy_load_tables/explain_16.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_16.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_17.txt b/parser/testdata/03823_lazy_load_tables/explain_17.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_17.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_19.txt b/parser/testdata/03823_lazy_load_tables/explain_19.txt new file mode 100644 index 0000000000..8059549f99 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_19.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 t2 (children 2) + Identifier test_db_1 + Identifier t2 diff --git a/parser/testdata/03823_lazy_load_tables/explain_2.txt b/parser/testdata/03823_lazy_load_tables/explain_2.txt new file mode 100644 index 0000000000..7f83293d25 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_2.txt @@ -0,0 +1,5 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 2) + Function Atomic + Set diff --git a/parser/testdata/03823_lazy_load_tables/explain_21.txt b/parser/testdata/03823_lazy_load_tables/explain_21.txt new file mode 100644 index 0000000000..fc5c7051ef --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_21.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 src (children 4) + Identifier test_db_1 + Identifier src + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/03823_lazy_load_tables/explain_22.txt b/parser/testdata/03823_lazy_load_tables/explain_22.txt new file mode 100644 index 0000000000..5948e5cadd --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_22.txt @@ -0,0 +1,16 @@ +CreateQuery test_db_1 mv (children 4) + Identifier test_db_1 + Identifier mv + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.src + ViewTargets (children 1) + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/03823_lazy_load_tables/explain_23.txt b/parser/testdata/03823_lazy_load_tables/explain_23.txt new file mode 100644 index 0000000000..2863d285bb --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_23.txt @@ -0,0 +1,19 @@ +CreateQuery test_db_1 dict (children 4) + Identifier test_db_1 + Identifier dict + ExpressionList (children 1) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Literal \'src\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/03823_lazy_load_tables/explain_24.txt b/parser/testdata/03823_lazy_load_tables/explain_24.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_24.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_25.txt b/parser/testdata/03823_lazy_load_tables/explain_25.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_25.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_26.txt b/parser/testdata/03823_lazy_load_tables/explain_26.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_26.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_29.txt b/parser/testdata/03823_lazy_load_tables/explain_29.txt new file mode 100644 index 0000000000..2ddf99d4de --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_29.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t3 (children 4) + Identifier test_db_1 + Identifier t3 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/03823_lazy_load_tables/explain_3.txt b/parser/testdata/03823_lazy_load_tables/explain_3.txt new file mode 100644 index 0000000000..0e48259862 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_3.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 t1 (children 4) + Identifier test_db_1 + Identifier t1 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/03823_lazy_load_tables/explain_30.txt b/parser/testdata/03823_lazy_load_tables/explain_30.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_30.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_31.txt b/parser/testdata/03823_lazy_load_tables/explain_31.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_31.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_32.txt b/parser/testdata/03823_lazy_load_tables/explain_32.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_32.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_33.txt b/parser/testdata/03823_lazy_load_tables/explain_33.txt new file mode 100644 index 0000000000..3f0a5d6207 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_33.txt @@ -0,0 +1,5 @@ +Rename (children 4) + Identifier test_db_1 + Identifier t3 + Identifier test_db_1 + Identifier t3_renamed diff --git a/parser/testdata/03823_lazy_load_tables/explain_35.txt b/parser/testdata/03823_lazy_load_tables/explain_35.txt new file mode 100644 index 0000000000..36da6d15ec --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_35.txt @@ -0,0 +1,8 @@ +AlterQuery test_db_1 t3_renamed (children 3) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration value (children 2) + DataType String + Literal \'test\' + Identifier test_db_1 + Identifier t3_renamed diff --git a/parser/testdata/03823_lazy_load_tables/explain_37.txt b/parser/testdata/03823_lazy_load_tables/explain_37.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_37.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_4.txt b/parser/testdata/03823_lazy_load_tables/explain_4.txt new file mode 100644 index 0000000000..cdf43c010b --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_4.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_5.txt b/parser/testdata/03823_lazy_load_tables/explain_5.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_5.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_7.txt b/parser/testdata/03823_lazy_load_tables/explain_7.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_7.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_8.txt b/parser/testdata/03823_lazy_load_tables/explain_8.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_8.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03823_lazy_load_tables/explain_9.txt b/parser/testdata/03823_lazy_load_tables/explain_9.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/03823_lazy_load_tables/explain_9.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain.txt b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_2.txt b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_2.txt new file mode 100644 index 0000000000..3acb5d54ce --- /dev/null +++ b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_2.txt @@ -0,0 +1,9 @@ +CreateQuery test_db (children 3) + Identifier test_db + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/databases/{database}\' + Literal \'shard1\' + Literal \'replica1\' + Identifier Null diff --git a/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_3.txt b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_3.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_7.txt b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_7.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03927_replicated_database_preserve_column_modifiers/explain_7.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_11.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_11.txt new file mode 100644 index 0000000000..8280bde715 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_11.txt @@ -0,0 +1,2 @@ +CreateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_12.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_12.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_12.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_17.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_17.txt new file mode 100644 index 0000000000..37268f4421 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_17.txt @@ -0,0 +1,11 @@ +CreateQuery test_db region_to_shard (children 4) + Identifier test_db + Identifier region_to_shard + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration Region (children 1) + DataType String + ColumnDeclaration shardID (children 1) + DataType UInt64 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_18.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_18.txt new file mode 100644 index 0000000000..ca1c464c8f --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_18.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier region_to_shard diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_19.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_19.txt new file mode 100644 index 0000000000..3205375ca2 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_19.txt @@ -0,0 +1,30 @@ +CreateQuery test_db regionToShard (children 4) + Identifier test_db + Identifier regionToShard + ExpressionList (children 2) + DictionaryAttributeDeclaration Region (children 1) + DataType String + DictionaryAttributeDeclaration shardID (children 1) + DataType UInt64 + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier Region + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 6) + pair (children 1) + Literal \'127.0.0.1\' + pair (children 1) + Function tcpPort (children 1) + ExpressionList + pair (children 1) + Literal \'region_to_shard\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + pair (children 1) + Literal \'default\' + pair (children 1) + Literal \'\' + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_20.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_20.txt new file mode 100644 index 0000000000..396f0062d2 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_20.txt @@ -0,0 +1,5 @@ +SYSTEM query (children 4) + Identifier test_db + Identifier regionToShard + Identifier test_db + Identifier regionToShard diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_21.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_21.txt new file mode 100644 index 0000000000..3748b72600 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_21.txt @@ -0,0 +1,17 @@ +CreateQuery dist_logs_03989 (children 2) + Identifier dist_logs_03989 + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 4) + Literal \'test_cluster_two_shards\' + Function currentDatabase (children 1) + ExpressionList + Identifier logs_03989 + Function dictGetUInt64 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.regionToShard\' + Literal \'shardID\' + Identifier Region diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_22.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_22.txt new file mode 100644 index 0000000000..bfd7db92b8 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_22.txt @@ -0,0 +1,17 @@ +CreateQuery dist_server_logs_03989 (children 2) + Identifier dist_server_logs_03989 + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 4) + Literal \'test_cluster_two_shards\' + Function currentDatabase (children 1) + ExpressionList + Identifier server_logs_03989 + Function dictGetUInt64 (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'.regionToShard\' + Literal \'shardID\' + Identifier Region diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_31.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_31.txt new file mode 100644 index 0000000000..fc75971495 --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_31.txt @@ -0,0 +1,3 @@ +DropQuery test_db region_to_shard (children 2) + Identifier test_db + Identifier region_to_shard diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_32.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_32.txt new file mode 100644 index 0000000000..a212de091d --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_32.txt @@ -0,0 +1,3 @@ +DropQuery test_db regionToShard (children 2) + Identifier test_db + Identifier regionToShard diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_33.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_33.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_33.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_6.txt b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_6.txt new file mode 100644 index 0000000000..40c2b35afa --- /dev/null +++ b/parser/testdata/03989_skip_unused_shards_dictget_analyzer/explain_6.txt @@ -0,0 +1,2 @@ +DropQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain.txt new file mode 100644 index 0000000000..54f4ed44fd --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_dict_04005 (children 2) + Identifier test_db + Identifier test_dict_04005 diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_2.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_2.txt new file mode 100644 index 0000000000..f0edf1017c --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_2.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_source_04005 (children 2) + Identifier test_db + Identifier test_source_04005 diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_3.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_3.txt new file mode 100644 index 0000000000..1bd1572068 --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_3.txt @@ -0,0 +1,11 @@ +CreateQuery test_db test_source_04005 (children 4) + Identifier test_db + Identifier test_source_04005 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType String + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_4.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_4.txt new file mode 100644 index 0000000000..8116dcfbb6 --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_4.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier test_source_04005 diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_5.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_5.txt new file mode 100644 index 0000000000..aa847e3cfa --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_5.txt @@ -0,0 +1,21 @@ +CreateQuery test_db test_dict_04005 (children 4) + Identifier test_db + Identifier test_dict_04005 + ExpressionList (children 2) + DictionaryAttributeDeclaration id (children 1) + DataType UInt64 + DictionaryAttributeDeclaration value (children 1) + DataType String + Dictionary definition (children 4) + ExpressionList (children 1) + Identifier id + FunctionWithKeyValueArguments clickhouse (children 1) + ExpressionList (children 2) + pair (children 1) + Literal \'test_source_04005\' + pair (children 1) + Function currentDatabase (children 1) + ExpressionList + Dictionary lifetime + Dictionary layout (children 1) + ExpressionList diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_6.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_6.txt new file mode 100644 index 0000000000..b136bac261 --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_6.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_dict_04005 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id + Set diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_7.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_7.txt new file mode 100644 index 0000000000..54f4ed44fd --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_dict_04005 (children 2) + Identifier test_db + Identifier test_dict_04005 diff --git a/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_8.txt b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_8.txt new file mode 100644 index 0000000000..f0edf1017c --- /dev/null +++ b/parser/testdata/04005_dictionary_read_excessive_num_streams/explain_8.txt @@ -0,0 +1,3 @@ +DropQuery test_db test_source_04005 (children 2) + Identifier test_db + Identifier test_source_04005 diff --git a/parser/testdata/04070_truncate_all_tables_skip_views/explain_10.txt b/parser/testdata/04070_truncate_all_tables_skip_views/explain_10.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/04070_truncate_all_tables_skip_views/explain_10.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/04070_truncate_all_tables_skip_views/explain_15.txt b/parser/testdata/04070_truncate_all_tables_skip_views/explain_15.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/04070_truncate_all_tables_skip_views/explain_15.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/04070_truncate_all_tables_skip_views/metadata.json b/parser/testdata/04070_truncate_all_tables_skip_views/metadata.json index 0967ef424b..0b2aecfac5 100644 --- a/parser/testdata/04070_truncate_all_tables_skip_views/metadata.json +++ b/parser/testdata/04070_truncate_all_tables_skip_views/metadata.json @@ -1 +1,6 @@ -{} +{ + "explain_todo": { + "stmt10": true, + "stmt15": true + } +} diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_10.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_10.txt new file mode 100644 index 0000000000..27c1b5040f --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_10.txt @@ -0,0 +1,4 @@ +DropQuery test_db alias_table_cross_db (children 3) + Identifier test_db + Identifier alias_table_cross_db + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_11.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_11.txt new file mode 100644 index 0000000000..025a8d5bb5 --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_11.txt @@ -0,0 +1,4 @@ +DropQuery test_db_1 alias_table_same_db (children 3) + Identifier test_db_1 + Identifier alias_table_same_db + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_12.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_12.txt new file mode 100644 index 0000000000..3841e84023 --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_12.txt @@ -0,0 +1,4 @@ +DropQuery test_db_1 target_table (children 3) + Identifier test_db_1 + Identifier target_table + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_13.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_13.txt new file mode 100644 index 0000000000..a800da291d --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_13.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 (children 2) + Identifier test_db_1 + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_2.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_2.txt new file mode 100644 index 0000000000..a800da291d --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_2.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 (children 2) + Identifier test_db_1 + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_3.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_3.txt new file mode 100644 index 0000000000..9f7b2cae46 --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_3.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 (children 3) + Identifier test_db_1 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/test/{database}_repl_alias_alter\' + Literal \'shard1\' + Literal \'replica1\' + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_4.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_4.txt new file mode 100644 index 0000000000..0e1b497369 --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_4.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 target_table (children 5) + Identifier test_db_1 + Identifier target_table + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration c0 (children 1) + DataType Int32 + ColumnDeclaration c1 (children 1) + DataType String + Storage definition (children 1) + Function Null + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_5.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_5.txt new file mode 100644 index 0000000000..73740b0abf --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_5.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 alias_table_same_db (children 4) + Identifier test_db_1 + Identifier alias_table_same_db + Storage definition (children 1) + Function Alias (children 1) + ExpressionList (children 2) + Identifier test_db_1 + Identifier target_table + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_6.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_6.txt new file mode 100644 index 0000000000..8ce365046e --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_6.txt @@ -0,0 +1,9 @@ +CreateQuery test_db alias_table_cross_db (children 4) + Identifier test_db + Identifier alias_table_cross_db + Storage definition (children 1) + Function Alias (children 1) + ExpressionList (children 2) + Identifier test_db_1 + Identifier target_table + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_7.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_7.txt new file mode 100644 index 0000000000..fb6bb714b2 --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_7.txt @@ -0,0 +1,7 @@ +AlterQuery test_db alias_table_cross_db (children 3) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration cross_db_col (children 1) + DataType Int32 + Identifier test_db + Identifier alias_table_cross_db diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_8.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_8.txt new file mode 100644 index 0000000000..d28de8d939 --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_8.txt @@ -0,0 +1,8 @@ +AlterQuery test_db_1 alias_table_same_db (children 4) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration same_db_col (children 1) + DataType Int32 + Identifier test_db_1 + Identifier alias_table_same_db + Identifier NULL diff --git a/parser/testdata/04077_database_replicated_alias_alter/explain_9.txt b/parser/testdata/04077_database_replicated_alias_alter/explain_9.txt new file mode 100644 index 0000000000..64e03c0e8f --- /dev/null +++ b/parser/testdata/04077_database_replicated_alias_alter/explain_9.txt @@ -0,0 +1,3 @@ +DescribeQuery (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.target_table diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_12.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_12.txt new file mode 100644 index 0000000000..b56a2df46b --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_12.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.local_merged_data diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_13.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_13.txt new file mode 100644 index 0000000000..a8a68bdb99 --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_13.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier _table + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.local_merged_data diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_2.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_2.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_3.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_3.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_4.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_4.txt new file mode 100644 index 0000000000..4322b86490 --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_4.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_5.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_5.txt new file mode 100644 index 0000000000..4acc0a4bae --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_5.txt @@ -0,0 +1,23 @@ +CreateQuery test_db_2 local_data (children 5) + Identifier test_db_2 + Identifier local_data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier name + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function toString (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/04104_56208_merge_distributed_merge_chain/explain_6.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_6.txt new file mode 100644 index 0000000000..0dd4c183f7 --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_6.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_2 local_merged_data (children 4) + Identifier test_db_2 + Identifier local_merged_data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 1) + Function Merge (children 1) + ExpressionList (children 2) + Identifier test_db_2 + Literal \'^local_data$\' diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_7.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_7.txt new file mode 100644 index 0000000000..5e30e09277 --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_7.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 distributed_data (children 4) + Identifier test_db_1 + Identifier distributed_data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 3) + Identifier test_shard_localhost + Identifier test_db_2 + Identifier local_merged_data diff --git a/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_8.txt b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_8.txt new file mode 100644 index 0000000000..761199df92 --- /dev/null +++ b/parser/testdata/04104_56208_merge_distributed_merge_chain/explain_8.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 local_merged_data (children 4) + Identifier test_db_1 + Identifier local_merged_data + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration name (children 1) + DataType String + Storage definition (children 1) + Function Merge (children 1) + ExpressionList (children 2) + Identifier test_db_1 + Literal \'^distributed_data$\' diff --git a/parser/testdata/04201_attach_table_missing_database/explain.txt b/parser/testdata/04201_attach_table_missing_database/explain.txt new file mode 100644 index 0000000000..23a98d1302 --- /dev/null +++ b/parser/testdata/04201_attach_table_missing_database/explain.txt @@ -0,0 +1,3 @@ +AttachQuery test_db_1 t (children 2) + Identifier test_db_1 + Identifier t diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_10.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_10.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_10.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_13.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_13.txt new file mode 100644 index 0000000000..ab7a90ecbc --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_13.txt @@ -0,0 +1,2 @@ +UseQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_16.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_16.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_16.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_19.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_19.txt new file mode 100644 index 0000000000..ab7a90ecbc --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_19.txt @@ -0,0 +1,2 @@ +UseQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_2.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_2.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_22.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_22.txt new file mode 100644 index 0000000000..46238d8f78 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_22.txt @@ -0,0 +1,24 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.completions + Function and (children 1) + ExpressionList (children 2) + Function in (children 1) + ExpressionList (children 2) + Identifier word + Function tuple (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'test_db_2\' + Function equals (children 1) + ExpressionList (children 2) + Identifier context + Literal \'database\' + Set diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_25.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_25.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_25.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_26.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_26.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_26.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_27.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_27.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_27.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_3.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_3.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_3.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_4.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_4.txt new file mode 100644 index 0000000000..a7ea61c079 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_4.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function PostgreSQL (children 1) + ExpressionList (children 4) + Literal \'192.0.2.1:5432\' + Literal \'fake_db\' + Literal \'user\' + Literal \'[HIDDEN]\' diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_5.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_5.txt new file mode 100644 index 0000000000..93bda68245 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_5.txt @@ -0,0 +1,10 @@ +AttachQuery test_db_2 (children 2) + Identifier test_db_2 + Storage definition (children 2) + Function MySQL (children 1) + ExpressionList (children 4) + Literal \'192.0.2.1:3306\' + Literal \'fake_db\' + Literal \'user\' + Literal \'[HIDDEN]\' + Set diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_7.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_7.txt new file mode 100644 index 0000000000..b7973a3a10 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_7.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 5) + ExpressionList (children 1) + Identifier engine + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function in (children 1) + ExpressionList (children 2) + Identifier name + Function tuple (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'test_db_2\' + ExpressionList (children 1) + OrderByElement (children 1) + Identifier engine + Set diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/explain_8.txt b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_8.txt new file mode 100644 index 0000000000..b7973a3a10 --- /dev/null +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/explain_8.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 5) + ExpressionList (children 1) + Identifier engine + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function in (children 1) + ExpressionList (children 2) + Identifier name + Function tuple (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'test_db_2\' + ExpressionList (children 1) + OrderByElement (children 1) + Identifier engine + Set diff --git a/parser/testdata/04210_show_remote_databases_in_system_tables/metadata.json b/parser/testdata/04210_show_remote_databases_in_system_tables/metadata.json index 0967ef424b..2373e56b3d 100644 --- a/parser/testdata/04210_show_remote_databases_in_system_tables/metadata.json +++ b/parser/testdata/04210_show_remote_databases_in_system_tables/metadata.json @@ -1 +1,8 @@ -{} +{ + "explain_todo": { + "stmt22": true, + "stmt5": true, + "stmt7": true, + "stmt8": true + } +} diff --git a/parser/testdata/04238_storage_alias_missing_target_merge/explain_38.txt b/parser/testdata/04238_storage_alias_missing_target_merge/explain_38.txt new file mode 100644 index 0000000000..9f23c67970 --- /dev/null +++ b/parser/testdata/04238_storage_alias_missing_target_merge/explain_38.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/04238_storage_alias_missing_target_merge/explain_39.txt b/parser/testdata/04238_storage_alias_missing_target_merge/explain_39.txt new file mode 100644 index 0000000000..3cc0563016 --- /dev/null +++ b/parser/testdata/04238_storage_alias_missing_target_merge/explain_39.txt @@ -0,0 +1,8 @@ +CreateQuery test_db_1 outer_alias_to_inner_alias (children 3) + Identifier test_db_1 + Identifier outer_alias_to_inner_alias + Storage definition (children 1) + Function Alias (children 1) + ExpressionList (children 2) + Identifier test_db_1 + Identifier inner_alias_to_param_view diff --git a/parser/testdata/04238_storage_alias_missing_target_merge/explain_40.txt b/parser/testdata/04238_storage_alias_missing_target_merge/explain_40.txt new file mode 100644 index 0000000000..c9b07baaa5 --- /dev/null +++ b/parser/testdata/04238_storage_alias_missing_target_merge/explain_40.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 inner_alias_to_param_view (children 3) + Identifier test_db_1 + Identifier inner_alias_to_param_view + Storage definition (children 1) + Function Alias (children 1) + ExpressionList (children 2) + Function currentDatabase (children 1) + ExpressionList + Identifier param_view_for_alias diff --git a/parser/testdata/04238_storage_alias_missing_target_merge/explain_41.txt b/parser/testdata/04238_storage_alias_missing_target_merge/explain_41.txt new file mode 100644 index 0000000000..b2367f1293 --- /dev/null +++ b/parser/testdata/04238_storage_alias_missing_target_merge/explain_41.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 merge_over_alias_chain (children 4) + Identifier test_db_1 + Identifier merge_over_alias_chain + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration a (children 1) + DataType Int32 + Storage definition (children 1) + Function Merge (children 1) + ExpressionList (children 2) + Identifier test_db_1 + Literal \'^outer_alias_to_inner_alias$\' diff --git a/parser/testdata/04238_storage_alias_missing_target_merge/explain_42.txt b/parser/testdata/04238_storage_alias_missing_target_merge/explain_42.txt new file mode 100644 index 0000000000..4cd828db72 --- /dev/null +++ b/parser/testdata/04238_storage_alias_missing_target_merge/explain_42.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_db_1.merge_over_alias_chain diff --git a/parser/testdata/04238_storage_alias_missing_target_merge/explain_43.txt b/parser/testdata/04238_storage_alias_missing_target_merge/explain_43.txt new file mode 100644 index 0000000000..5ba4b246a1 --- /dev/null +++ b/parser/testdata/04238_storage_alias_missing_target_merge/explain_43.txt @@ -0,0 +1,3 @@ +DropQuery test_db_1 outer_alias_to_inner_alias (children 2) + Identifier test_db_1 + Identifier outer_alias_to_inner_alias diff --git a/parser/testdata/04238_storage_alias_missing_target_merge/explain_44.txt b/parser/testdata/04238_storage_alias_missing_target_merge/explain_44.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04238_storage_alias_missing_target_merge/explain_44.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_11.txt b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_11.txt new file mode 100644 index 0000000000..a6fa6b90cf --- /dev/null +++ b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_11.txt @@ -0,0 +1,3 @@ +DropQuery test_db (children 2) + Identifier test_db + Identifier Null diff --git a/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_2.txt b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_2.txt new file mode 100644 index 0000000000..a6fa6b90cf --- /dev/null +++ b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_2.txt @@ -0,0 +1,3 @@ +DropQuery test_db (children 2) + Identifier test_db + Identifier Null diff --git a/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_3.txt b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_3.txt new file mode 100644 index 0000000000..d4210402fd --- /dev/null +++ b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_3.txt @@ -0,0 +1,9 @@ +CreateQuery test_db (children 3) + Identifier test_db + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/04239_storage_alias_missing_target_replicated_database_drop/{database}\' + Literal \'shard1\' + Literal \'replica1\' + Identifier Null diff --git a/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_4.txt b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_4.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/04239_storage_alias_missing_target_replicated_database_drop/explain_4.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/04276_create_view_param_db_with_param_select/explain.txt b/parser/testdata/04276_create_view_param_db_with_param_select/explain.txt new file mode 100644 index 0000000000..28154f3ed5 --- /dev/null +++ b/parser/testdata/04276_create_view_param_db_with_param_select/explain.txt @@ -0,0 +1,12 @@ +CreateQuery test_db src_04276 (children 4) + Identifier test_db + Identifier src_04276 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration k (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier k diff --git a/parser/testdata/04276_create_view_param_db_with_param_select/explain_2.txt b/parser/testdata/04276_create_view_param_db_with_param_select/explain_2.txt new file mode 100644 index 0000000000..0e8d61f571 --- /dev/null +++ b/parser/testdata/04276_create_view_param_db_with_param_select/explain_2.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier src_04276 diff --git a/parser/testdata/04276_create_view_param_db_with_param_select/explain_3.txt b/parser/testdata/04276_create_view_param_db_with_param_select/explain_3.txt new file mode 100644 index 0000000000..75951a7553 --- /dev/null +++ b/parser/testdata/04276_create_view_param_db_with_param_select/explain_3.txt @@ -0,0 +1,16 @@ +CreateQuery test_db pv_04276 (children 3) + Identifier test_db + Identifier pv_04276 + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function plus (alias x) (children 1) + ExpressionList (children 2) + Identifier k + QueryParameter n:UInt64 + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src_04276 diff --git a/parser/testdata/04276_create_view_param_db_with_param_select/explain_4.txt b/parser/testdata/04276_create_view_param_db_with_param_select/explain_4.txt new file mode 100644 index 0000000000..750f163e50 --- /dev/null +++ b/parser/testdata/04276_create_view_param_db_with_param_select/explain_4.txt @@ -0,0 +1,45 @@ +CreateQuery test_db pv_04276_fuzz (children 4) + Identifier test_db + Identifier pv_04276_fuzz + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration key (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType UInt64 + ColumnDeclaration value (children 1) + DataType LowCardinality (children 1) + ExpressionList (children 1) + DataType String + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function plus (alias key) (children 1) + ExpressionList (children 2) + Identifier k2 + QueryParameter fuzz_param_0:UInt64 + Function concat (alias value) (children 1) + ExpressionList (children 2) + Identifier v2 + Literal \'_x\' + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function plus (alias k2) (children 1) + ExpressionList (children 2) + Identifier k + Literal UInt64_2 + Function concat (alias v2) (children 1) + ExpressionList (children 2) + Literal \'_y\' + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src_04276 diff --git a/parser/testdata/04276_create_view_param_db_with_param_select/explain_6.txt b/parser/testdata/04276_create_view_param_db_with_param_select/explain_6.txt new file mode 100644 index 0000000000..0fc5084699 --- /dev/null +++ b/parser/testdata/04276_create_view_param_db_with_param_select/explain_6.txt @@ -0,0 +1,3 @@ +DropQuery test_db pv_04276 (children 2) + Identifier test_db + Identifier pv_04276 diff --git a/parser/testdata/04276_create_view_param_db_with_param_select/explain_7.txt b/parser/testdata/04276_create_view_param_db_with_param_select/explain_7.txt new file mode 100644 index 0000000000..8bc0a8c3c5 --- /dev/null +++ b/parser/testdata/04276_create_view_param_db_with_param_select/explain_7.txt @@ -0,0 +1,3 @@ +DropQuery test_db pv_04276_fuzz (children 2) + Identifier test_db + Identifier pv_04276_fuzz diff --git a/parser/testdata/04276_create_view_param_db_with_param_select/explain_8.txt b/parser/testdata/04276_create_view_param_db_with_param_select/explain_8.txt new file mode 100644 index 0000000000..9cff50b570 --- /dev/null +++ b/parser/testdata/04276_create_view_param_db_with_param_select/explain_8.txt @@ -0,0 +1,3 @@ +DropQuery test_db src_04276 (children 2) + Identifier test_db + Identifier src_04276 diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_2.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_2.txt new file mode 100644 index 0000000000..bd297aec7b --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_2.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_2 (children 3) + Identifier test_db_2 + Storage definition (children 1) + Function Replicated (children 1) + ExpressionList (children 3) + Literal \'/clickhouse/{database}/04365_repl\' + Literal \'shard1\' + Literal \'replica1\' + Identifier Null diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_3.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_3.txt new file mode 100644 index 0000000000..3dcd8c04a6 --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_3.txt @@ -0,0 +1,25 @@ +InsertQuery (children 3) + Function file (children 1) + ExpressionList (children 3) + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db_2\' + Literal \'_04365_data.tsv\' + Literal \'TSV\' + Literal \'id UInt64, value String\' + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier number + Function toString (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_5 + Set + Set diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_4.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_4.txt new file mode 100644 index 0000000000..bef005db2e --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_4.txt @@ -0,0 +1,25 @@ +CreateQuery test_db_2 t (children 5) + Identifier test_db_2 + Identifier t + Storage definition (children 2) + Function MergeTree + Identifier id + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier id + Identifier value + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function fileCluster (children 1) + ExpressionList (children 4) + Literal \'test_shard_localhost\' + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db_2\' + Literal \'_04365_data.tsv\' + Literal \'TSV\' + Literal \'id UInt64, value String\' + Identifier Null diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_5.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_5.txt new file mode 100644 index 0000000000..0ba1ab8d02 --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_5.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function count (children 1) + ExpressionList + Function sum (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_2.t diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_6.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_6.txt new file mode 100644 index 0000000000..4b17f9b0b3 --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_6.txt @@ -0,0 +1,28 @@ +CreateQuery test_db_2 t_pos (children 5) + Identifier test_db_2 + Identifier t_pos + Storage definition (children 2) + Function MergeTree + Identifier id + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier id + Function count (alias c) (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function fileCluster (children 1) + ExpressionList (children 4) + Literal \'test_shard_localhost\' + Function concat (children 1) + ExpressionList (children 2) + Literal \'test_db_2\' + Literal \'_04365_data.tsv\' + Literal \'TSV\' + Literal \'id UInt64, value String\' + ExpressionList (children 1) + Literal UInt64_1 + Identifier Null diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_7.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_7.txt new file mode 100644 index 0000000000..4a1e7fbe09 --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_7.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function count (children 1) + ExpressionList + Function sum (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_2.t_pos diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_8.txt b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_8.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/explain_8.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/metadata.json b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/metadata.json index 0967ef424b..943b275814 100644 --- a/parser/testdata/04365_create_as_select_cluster_function_replicated_db/metadata.json +++ b/parser/testdata/04365_create_as_select_cluster_function_replicated_db/metadata.json @@ -1 +1,6 @@ -{} +{ + "explain_todo": { + "stmt4": true, + "stmt6": true + } +} diff --git a/parser/testdata/04505_qualified_column_names_in_delete/explain_5.txt b/parser/testdata/04505_qualified_column_names_in_delete/explain_5.txt new file mode 100644 index 0000000000..6e2d08fdc1 --- /dev/null +++ b/parser/testdata/04505_qualified_column_names_in_delete/explain_5.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_db.test_table + Function equals (children 1) + ExpressionList (children 2) + Identifier test_db.test_table.test_column + Literal UInt64_1 diff --git a/parser/testdata/04505_qualified_column_names_in_delete/explain_6.txt b/parser/testdata/04505_qualified_column_names_in_delete/explain_6.txt new file mode 100644 index 0000000000..a2bc41e4be --- /dev/null +++ b/parser/testdata/04505_qualified_column_names_in_delete/explain_6.txt @@ -0,0 +1,7 @@ +DeleteQuery test_db test_table (children 3) + Function equals (children 1) + ExpressionList (children 2) + Identifier test_db.test_table.test_column + Literal UInt64_1 + Identifier test_db + Identifier test_table diff --git a/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_126.txt b/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_126.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_126.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_127.txt b/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_127.txt new file mode 100644 index 0000000000..a37dfb83b4 --- /dev/null +++ b/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_127.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function S3 (children 1) + ExpressionList (children 4) + Literal \'url_dbenv\' + Literal \'ak\' + Literal \'[HIDDEN]\' + Function equals (children 1) + ExpressionList (children 2) + Identifier use_environment_credentials + Literal UInt64_1 diff --git a/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_128.txt b/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_128.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04510_s3_explicit_url_named_secret_mask/explain_128.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_12.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_12.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_12.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_13.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_13.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_13.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_16.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_16.txt new file mode 100644 index 0000000000..cd6da1554c --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_16.txt @@ -0,0 +1,16 @@ +CreateQuery test_db_1 remote_short_attach_t (children 4) + Identifier test_db_1 + Identifier remote_short_attach_t + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt64 + Storage definition (children 1) + Function Remote (children 1) + ExpressionList (children 2) + Literal \'127.0.0.1\' + Function merge (children 1) + ExpressionList (children 2) + Function currentDatabase (children 1) + ExpressionList + Literal \'^remote_short_attach_src$\' diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_17.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_17.txt new file mode 100644 index 0000000000..649f564186 --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_17.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier x + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.remote_short_attach_t + ExpressionList (children 1) + OrderByElement (children 1) + Identifier x diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_18.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_18.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_18.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_20.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_20.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_20.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_21.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_21.txt new file mode 100644 index 0000000000..229834a926 --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_21.txt @@ -0,0 +1,24 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 3) + Identifier name + Identifier engine + Function startsWith (children 1) + ExpressionList (children 2) + Identifier engine_full + Literal \'Remote(\' + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.tables + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'remote_short_attach_t\' diff --git a/parser/testdata/04601_remote_storage_engine_short_attach/explain_22.txt b/parser/testdata/04601_remote_storage_engine_short_attach/explain_22.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04601_remote_storage_engine_short_attach/explain_22.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04612_table_same_name_as_database/explain_10.txt b/parser/testdata/04612_table_same_name_as_database/explain_10.txt new file mode 100644 index 0000000000..1c13b5b46c --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_10.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.test_db.id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db (alias test_db) diff --git a/parser/testdata/04612_table_same_name_as_database/explain_11.txt b/parser/testdata/04612_table_same_name_as_database/explain_11.txt new file mode 100644 index 0000000000..bf9deb1237 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_11.txt @@ -0,0 +1,13 @@ +CreateQuery test_db other (children 4) + Identifier test_db + Identifier other + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType Int32 + ColumnDeclaration value (children 1) + DataType Int32 + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/04612_table_same_name_as_database/explain_12.txt b/parser/testdata/04612_table_same_name_as_database/explain_12.txt new file mode 100644 index 0000000000..f7cf509a02 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_12.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier other diff --git a/parser/testdata/04612_table_same_name_as_database/explain_13.txt b/parser/testdata/04612_table_same_name_as_database/explain_13.txt new file mode 100644 index 0000000000..9acb976bdf --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_13.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier test_db.test_db.id + Identifier test_db.other.value + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.other + TableJoin (children 1) + ExpressionList (children 1) + Identifier id diff --git a/parser/testdata/04612_table_same_name_as_database/explain_14.txt b/parser/testdata/04612_table_same_name_as_database/explain_14.txt new file mode 100644 index 0000000000..c42eb66d57 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_14.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier test_db.other.value + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.other + TableJoin (children 1) + ExpressionList (children 1) + Identifier id + Set diff --git a/parser/testdata/04612_table_same_name_as_database/explain_15.txt b/parser/testdata/04612_table_same_name_as_database/explain_15.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_15.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04612_table_same_name_as_database/explain_16.txt b/parser/testdata/04612_table_same_name_as_database/explain_16.txt new file mode 100644 index 0000000000..172389177f --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_16.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 tbl (children 4) + Identifier test_db_1 + Identifier tbl + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType Int32 + ColumnDeclaration value (children 1) + DataType Int32 + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/04612_table_same_name_as_database/explain_17.txt b/parser/testdata/04612_table_same_name_as_database/explain_17.txt new file mode 100644 index 0000000000..af4eef2a90 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_17.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier tbl diff --git a/parser/testdata/04612_table_same_name_as_database/explain_18.txt b/parser/testdata/04612_table_same_name_as_database/explain_18.txt new file mode 100644 index 0000000000..f4519eaf2d --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_18.txt @@ -0,0 +1,11 @@ +CreateQuery test_db test_db_1 (children 4) + Identifier test_db + Identifier test_db_1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType Int32 + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/04612_table_same_name_as_database/explain_19.txt b/parser/testdata/04612_table_same_name_as_database/explain_19.txt new file mode 100644 index 0000000000..ead27d4b23 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_19.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier test_db_1 diff --git a/parser/testdata/04612_table_same_name_as_database/explain_2.txt b/parser/testdata/04612_table_same_name_as_database/explain_2.txt new file mode 100644 index 0000000000..9f59fb1bbe --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_2.txt @@ -0,0 +1,15 @@ +CreateQuery test_db test_db (children 4) + Identifier test_db + Identifier test_db + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType Int32 + ColumnDeclaration t (children 1) + TupleDataType Tuple (children 1) + ExpressionList (children 1) + DataType Int32 + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/04612_table_same_name_as_database/explain_20.txt b/parser/testdata/04612_table_same_name_as_database/explain_20.txt new file mode 100644 index 0000000000..f4035243bf --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_20.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db_1.tbl.value + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db_1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.tbl + TableJoin (children 1) + ExpressionList (children 1) + Identifier id diff --git a/parser/testdata/04612_table_same_name_as_database/explain_21.txt b/parser/testdata/04612_table_same_name_as_database/explain_21.txt new file mode 100644 index 0000000000..3ecfcaf094 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_21.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier test_db_1.tbl.value + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db_1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.tbl + TableJoin (children 1) + ExpressionList (children 1) + Identifier id + Set diff --git a/parser/testdata/04612_table_same_name_as_database/explain_22.txt b/parser/testdata/04612_table_same_name_as_database/explain_22.txt new file mode 100644 index 0000000000..cc228bed71 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_22.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 test_db_1 (children 4) + Identifier test_db_1 + Identifier test_db_1 + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType Int32 + ColumnDeclaration tbl (children 1) + TupleDataType Tuple (children 1) + ExpressionList (children 1) + DataType Int32 + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/04612_table_same_name_as_database/explain_23.txt b/parser/testdata/04612_table_same_name_as_database/explain_23.txt new file mode 100644 index 0000000000..a9b1d4d1de --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_23.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier test_db_1 diff --git a/parser/testdata/04612_table_same_name_as_database/explain_24.txt b/parser/testdata/04612_table_same_name_as_database/explain_24.txt new file mode 100644 index 0000000000..fc65f943ca --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_24.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier test_db_1.tbl.value + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.test_db_1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.tbl + TableJoin (children 1) + ExpressionList (children 1) + Identifier id + Set diff --git a/parser/testdata/04612_table_same_name_as_database/explain_25.txt b/parser/testdata/04612_table_same_name_as_database/explain_25.txt new file mode 100644 index 0000000000..d1a61867ed --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_25.txt @@ -0,0 +1,15 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db_1.id + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db_1 + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db_1.tbl + TableJoin (children 1) + ExpressionList (children 1) + Identifier id diff --git a/parser/testdata/04612_table_same_name_as_database/explain_26.txt b/parser/testdata/04612_table_same_name_as_database/explain_26.txt new file mode 100644 index 0000000000..30ea4ffaa7 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_26.txt @@ -0,0 +1,27 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db_1 + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Function plus (children 1) + ExpressionList (children 2) + Identifier test_db_1.tbl.value + Literal UInt64_37 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.tbl + Set diff --git a/parser/testdata/04612_table_same_name_as_database/explain_27.txt b/parser/testdata/04612_table_same_name_as_database/explain_27.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_27.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04612_table_same_name_as_database/explain_28.txt b/parser/testdata/04612_table_same_name_as_database/explain_28.txt new file mode 100644 index 0000000000..5f5c9dac20 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_28.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.test_db.nonexistent + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db diff --git a/parser/testdata/04612_table_same_name_as_database/explain_3.txt b/parser/testdata/04612_table_same_name_as_database/explain_3.txt new file mode 100644 index 0000000000..6e1de40e3c --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_3.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier test_db diff --git a/parser/testdata/04612_table_same_name_as_database/explain_4.txt b/parser/testdata/04612_table_same_name_as_database/explain_4.txt new file mode 100644 index 0000000000..ecfe63d06a --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_4.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.test_db.id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db diff --git a/parser/testdata/04612_table_same_name_as_database/explain_5.txt b/parser/testdata/04612_table_same_name_as_database/explain_5.txt new file mode 100644 index 0000000000..10f395062a --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_5.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.test_db.id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db (alias alias_name) diff --git a/parser/testdata/04612_table_same_name_as_database/explain_6.txt b/parser/testdata/04612_table_same_name_as_database/explain_6.txt new file mode 100644 index 0000000000..b2145b033f --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_6.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db diff --git a/parser/testdata/04612_table_same_name_as_database/explain_7.txt b/parser/testdata/04612_table_same_name_as_database/explain_7.txt new file mode 100644 index 0000000000..e1812ab178 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_7.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db diff --git a/parser/testdata/04612_table_same_name_as_database/explain_8.txt b/parser/testdata/04612_table_same_name_as_database/explain_8.txt new file mode 100644 index 0000000000..4065aa7a90 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_8.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + QualifiedAsterisk (children 1) + Identifier test_db.test_db + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db diff --git a/parser/testdata/04612_table_same_name_as_database/explain_9.txt b/parser/testdata/04612_table_same_name_as_database/explain_9.txt new file mode 100644 index 0000000000..ce36af4d53 --- /dev/null +++ b/parser/testdata/04612_table_same_name_as_database/explain_9.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.test_db.t.x + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.test_db diff --git a/parser/testdata/04613_pipe_operators/explain_25.txt b/parser/testdata/04613_pipe_operators/explain_25.txt new file mode 100644 index 0000000000..32b3a5cdde --- /dev/null +++ b/parser/testdata/04613_pipe_operators/explain_25.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Asterisk + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.select (alias s) + Function equals (children 1) + ExpressionList (children 2) + Identifier s.id + Literal UInt64_1 + ExpressionList (children 1) + OrderByElement (children 1) + Identifier s.id diff --git a/parser/testdata/04630_default_over_virtual_column/explain_67.txt b/parser/testdata/04630_default_over_virtual_column/explain_67.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04630_default_over_virtual_column/explain_67.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04630_default_over_virtual_column/explain_68.txt b/parser/testdata/04630_default_over_virtual_column/explain_68.txt new file mode 100644 index 0000000000..95e4194d1f --- /dev/null +++ b/parser/testdata/04630_default_over_virtual_column/explain_68.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Ordinary diff --git a/parser/testdata/04630_default_over_virtual_column/explain_69.txt b/parser/testdata/04630_default_over_virtual_column/explain_69.txt new file mode 100644 index 0000000000..d76d95add2 --- /dev/null +++ b/parser/testdata/04630_default_over_virtual_column/explain_69.txt @@ -0,0 +1,14 @@ +AttachQuery test_db_1 legacy (children 4) + Identifier test_db_1 + Identifier legacy + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration c0 (children 2) + DataType String + Identifier _table + ColumnDeclaration c1 (children 1) + DataType UInt16 + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/04630_default_over_virtual_column/explain_70.txt b/parser/testdata/04630_default_over_virtual_column/explain_70.txt new file mode 100644 index 0000000000..75b1d0770a --- /dev/null +++ b/parser/testdata/04630_default_over_virtual_column/explain_70.txt @@ -0,0 +1,8 @@ +AlterQuery test_db_1 legacy (children 3) + ExpressionList (children 1) + AlterCommand ADD_COLUMN (children 1) + ColumnDeclaration c2 (children 2) + DataType UInt8 + Literal UInt64_0 + Identifier test_db_1 + Identifier legacy diff --git a/parser/testdata/04630_default_over_virtual_column/explain_72.txt b/parser/testdata/04630_default_over_virtual_column/explain_72.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04630_default_over_virtual_column/explain_72.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_71.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_71.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_71.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_72.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_72.txt new file mode 100644 index 0000000000..7f83293d25 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_72.txt @@ -0,0 +1,5 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 2) + Function Atomic + Set diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_73.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_73.txt new file mode 100644 index 0000000000..412baec528 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_73.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 lazy_leaf (children 4) + Identifier test_db_1 + Identifier lazy_leaf + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration x (children 1) + DataType UInt64 + ColumnDeclaration y (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier x diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_74.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_74.txt new file mode 100644 index 0000000000..15468abb6f --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_74.txt @@ -0,0 +1,18 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier lazy_leaf + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Identifier number + Function plus (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/04652_nested_merge_prewhere_type_mismatch_2/explain_75.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_75.txt new file mode 100644 index 0000000000..efc5b72177 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_75.txt @@ -0,0 +1,16 @@ +CreateQuery test_db_1 lazy_inner (children 4) + Identifier test_db_1 + Identifier lazy_inner + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration x (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType UInt64 + ColumnDeclaration y (children 1) + DataType UInt64 + Storage definition (children 1) + Function Merge (children 1) + ExpressionList (children 2) + Identifier test_db_1 + Literal \'^lazy_leaf$\' diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_76.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_76.txt new file mode 100644 index 0000000000..d7404a743c --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_76.txt @@ -0,0 +1,16 @@ +CreateQuery test_db_1 lazy_outer (children 4) + Identifier test_db_1 + Identifier lazy_outer + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration x (children 1) + DataType Nullable (children 1) + ExpressionList (children 1) + DataType UInt64 + ColumnDeclaration y (children 1) + DataType UInt64 + Storage definition (children 1) + Function Merge (children 1) + ExpressionList (children 2) + Identifier test_db_1 + Literal \'^lazy_inner$\' diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_77.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_77.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_77.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_78.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_78.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_78.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_79.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_79.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_79.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_91.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_91.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_91.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_92.txt b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_92.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/04652_nested_merge_prewhere_type_mismatch_2/explain_92.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/04653_parameterized_view_own_name/explain_19.txt b/parser/testdata/04653_parameterized_view_own_name/explain_19.txt new file mode 100644 index 0000000000..07e02949c9 --- /dev/null +++ b/parser/testdata/04653_parameterized_view_own_name/explain_19.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.pv.host_id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function pv (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier tenants + Literal Array_[\'t1\'] diff --git a/parser/testdata/04653_parameterized_view_own_name/explain_40.txt b/parser/testdata/04653_parameterized_view_own_name/explain_40.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04653_parameterized_view_own_name/explain_40.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04653_parameterized_view_own_name/explain_41.txt b/parser/testdata/04653_parameterized_view_own_name/explain_41.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/04653_parameterized_view_own_name/explain_41.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04653_parameterized_view_own_name/explain_42.txt b/parser/testdata/04653_parameterized_view_own_name/explain_42.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/04653_parameterized_view_own_name/explain_42.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04653_parameterized_view_own_name/explain_48.txt b/parser/testdata/04653_parameterized_view_own_name/explain_48.txt new file mode 100644 index 0000000000..c38cc3710f --- /dev/null +++ b/parser/testdata/04653_parameterized_view_own_name/explain_48.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db_1.pv.host_id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function pv (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier tenants + Literal Array_[\'t1\'] diff --git a/parser/testdata/04653_parameterized_view_own_name/explain_50.txt b/parser/testdata/04653_parameterized_view_own_name/explain_50.txt new file mode 100644 index 0000000000..07e02949c9 --- /dev/null +++ b/parser/testdata/04653_parameterized_view_own_name/explain_50.txt @@ -0,0 +1,14 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier test_db.pv.host_id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function pv (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier tenants + Literal Array_[\'t1\'] diff --git a/parser/testdata/04653_parameterized_view_own_name/explain_51.txt b/parser/testdata/04653_parameterized_view_own_name/explain_51.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04653_parameterized_view_own_name/explain_51.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain.txt b/parser/testdata/04654_create_view_param_db_in_body/explain.txt new file mode 100644 index 0000000000..26067a3547 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain.txt @@ -0,0 +1,12 @@ +CreateQuery test_db src (children 4) + Identifier test_db + Identifier src + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration k (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier k diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_10.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_10.txt new file mode 100644 index 0000000000..118534551c --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_10.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal \'subquery\' + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function v_subquery (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier pdb + Literal \'test_db_1\' diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_12.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_12.txt new file mode 100644 index 0000000000..530f2740a5 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_12.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal \'join\' + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function v_join (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier pdb + Literal \'test_db_1\' diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_14.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_14.txt new file mode 100644 index 0000000000..da49552af4 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_14.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal \'union\' + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function v_union (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier pdb + Literal \'test_db_1\' diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_16.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_16.txt new file mode 100644 index 0000000000..fa6b26d9c2 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_16.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal \'columns\' + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function v_columns (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier pdb + Literal \'test_db_1\' diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_18.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_18.txt new file mode 100644 index 0000000000..045cd1fd06 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_18.txt @@ -0,0 +1,20 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 2) + Literal \'renamed\' + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function v_renamed (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier pdb + Literal \'test_db_1\' diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_2.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_2.txt new file mode 100644 index 0000000000..f54a3e10f7 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_2.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db + Identifier src diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_3.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_3.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_3.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_38.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_38.txt new file mode 100644 index 0000000000..5209ab304d --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_38.txt @@ -0,0 +1,15 @@ +CreateQuery mv (children 3) + Identifier mv + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.src + ViewTargets (children 1) + Storage definition (children 2) + Function MergeTree + Identifier v diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_4.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_4.txt new file mode 100644 index 0000000000..60866adc1f --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_4.txt @@ -0,0 +1,12 @@ +CreateQuery test_db_1 src (children 4) + Identifier test_db_1 + Identifier src + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration k (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType String + Storage definition (children 2) + Function MergeTree + Identifier k diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_42.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_42.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_42.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_5.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_5.txt new file mode 100644 index 0000000000..9179c086ad --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier src diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_6.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_6.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_6.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/04654_create_view_param_db_in_body/explain_8.txt b/parser/testdata/04654_create_view_param_db_in_body/explain_8.txt new file mode 100644 index 0000000000..b8a3f9e7d2 --- /dev/null +++ b/parser/testdata/04654_create_view_param_db_in_body/explain_8.txt @@ -0,0 +1,35 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 3) + Literal \'from\' + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function v_from (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier pdb + Literal \'test_db\' + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function v_from (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier pdb + Literal \'test_db_1\' diff --git a/parser/testdata/04654_create_view_param_db_in_body/metadata.json b/parser/testdata/04654_create_view_param_db_in_body/metadata.json index 0967ef424b..27692d502a 100644 --- a/parser/testdata/04654_create_view_param_db_in_body/metadata.json +++ b/parser/testdata/04654_create_view_param_db_in_body/metadata.json @@ -1 +1,5 @@ -{} +{ + "explain_todo": { + "stmt41": true + } +} diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_29.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_29.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_29.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_30.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_30.txt new file mode 100644 index 0000000000..3cfdac12e6 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_30.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t_merge_mutation (children 4) + Identifier test_db_1 + Identifier t_merge_mutation + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_31.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_31.txt new file mode 100644 index 0000000000..3f509e7669 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_31.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_merge_mutation diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_32.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_32.txt new file mode 100644 index 0000000000..e5a20639de --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_32.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t_merge_mutation_src (children 4) + Identifier test_db_1 + Identifier t_merge_mutation_src + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_33.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_33.txt new file mode 100644 index 0000000000..14e1439888 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_33.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_merge_mutation_src diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_34.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_34.txt new file mode 100644 index 0000000000..27ede01df4 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_34.txt @@ -0,0 +1,21 @@ +AlterQuery test_db_1 t_merge_mutation (children 4) + ExpressionList (children 1) + AlterCommand DELETE (children 1) + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 1) + Literal \'^t_merge_mutation_src$\' + Identifier test_db_1 + Identifier t_merge_mutation + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_35.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_35.txt new file mode 100644 index 0000000000..8a6252ded1 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_35.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_merge_mutation + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_36.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_36.txt new file mode 100644 index 0000000000..af7120b3af --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_36.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier id + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_37.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_37.txt new file mode 100644 index 0000000000..5d9bde5194 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_37.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_lwu diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_38.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_38.txt new file mode 100644 index 0000000000..8dd8078778 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_38.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t_lwu_src (children 4) + Identifier test_db_1 + Identifier t_lwu_src + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_39.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_39.txt new file mode 100644 index 0000000000..7de18e4601 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_39.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_lwu_src diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_42.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_42.txt new file mode 100644 index 0000000000..ac119e0d67 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_42.txt @@ -0,0 +1,22 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t_lwu_src$\' + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_1 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_43.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_43.txt new file mode 100644 index 0000000000..aba453bd5a --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_43.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_1 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_44.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_44.txt new file mode 100644 index 0000000000..80f65b1eae --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_44.txt @@ -0,0 +1,19 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu_src + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_2 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_45.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_45.txt new file mode 100644 index 0000000000..cfeca955d8 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_45.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_2 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_46.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_46.txt new file mode 100644 index 0000000000..79955ef469 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_46.txt @@ -0,0 +1,21 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 1) + Literal \'^t_lwu_src$\' + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_3 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_47.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_47.txt new file mode 100644 index 0000000000..9b1c8beee0 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_47.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_3 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_48.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_48.txt new file mode 100644 index 0000000000..b7db9c9d1b --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_48.txt @@ -0,0 +1,19 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_4 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_49.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_49.txt new file mode 100644 index 0000000000..3cd27e8c40 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_49.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_4 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_50.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_50.txt new file mode 100644 index 0000000000..d99860d0a1 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_50.txt @@ -0,0 +1,23 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Function currentDatabase (children 1) + ExpressionList + Literal \'^t_lwu_src$\' + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_5 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_51.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_51.txt new file mode 100644 index 0000000000..e97f1f72ec --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_51.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_5 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_52.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_52.txt new file mode 100644 index 0000000000..cf6f9c8d4e --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_52.txt @@ -0,0 +1,23 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 + ExpressionList (children 1) + Assignment v (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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 1) + Literal \'^t_lwu_src$\' diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_53.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_53.txt new file mode 100644 index 0000000000..64816eb552 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_53.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_54.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_54.txt new file mode 100644 index 0000000000..073fffae27 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_54.txt @@ -0,0 +1,21 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_3 + ExpressionList (children 1) + Assignment v (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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_55.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_55.txt new file mode 100644 index 0000000000..0ccbd1fc55 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_55.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_3 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_56.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_56.txt new file mode 100644 index 0000000000..d67e98e4b3 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_56.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 t_lwd (children 4) + Identifier test_db_1 + Identifier t_lwd + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier id + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_57.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_57.txt new file mode 100644 index 0000000000..8d34ce0844 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_57.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_lwd diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_58.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_58.txt new file mode 100644 index 0000000000..62e57353fe --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_58.txt @@ -0,0 +1,19 @@ +DeleteQuery test_db_1 t_lwd (children 4) + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 1) + Literal \'^t_lwu_src$\' + Identifier test_db_1 + Identifier t_lwd + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_59.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_59.txt new file mode 100644 index 0000000000..88cdaf6ce7 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_59.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwd + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_60.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_60.txt new file mode 100644 index 0000000000..7a2f68be80 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_60.txt @@ -0,0 +1,11 @@ +CreateQuery test_db_1 t_lwd_plain (children 4) + Identifier test_db_1 + Identifier t_lwd_plain + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier id + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_61.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_61.txt new file mode 100644 index 0000000000..9374fdb6f4 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_61.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_lwd_plain diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_62.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_62.txt new file mode 100644 index 0000000000..3dcbe74f92 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_62.txt @@ -0,0 +1,17 @@ +DeleteQuery test_db_1 t_lwd_plain (children 4) + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + Identifier test_db_1 + Identifier t_lwd_plain + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_63.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_63.txt new file mode 100644 index 0000000000..e0ee014cbd --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_63.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwd_plain + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_64.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_64.txt new file mode 100644 index 0000000000..1d467fb034 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_64.txt @@ -0,0 +1,32 @@ +UpdateQuery test_db_1 t_lwu (children 5) + Identifier test_db_1 + Identifier t_lwu + Function in (children 1) + ExpressionList (children 2) + Identifier id + Subquery (children 1) + 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 2) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier c + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_6 + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_65.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_65.txt new file mode 100644 index 0000000000..e1ee92bde6 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_65.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_6 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_66.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_66.txt new file mode 100644 index 0000000000..c6745eb095 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_66.txt @@ -0,0 +1,34 @@ +UpdateQuery test_db_1 t_lwu (children 5) + Identifier test_db_1 + Identifier t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_2 + ExpressionList (children 1) + Assignment v (children 1) + Subquery (children 1) + 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 2) + ExpressionList (children 1) + Function max (alias m) (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + ExpressionList (children 1) + Identifier m + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier c + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_67.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_67.txt new file mode 100644 index 0000000000..6a0c969bb5 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_67.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_2 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_68.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_68.txt new file mode 100644 index 0000000000..e9d56f083b --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_68.txt @@ -0,0 +1,56 @@ +UpdateQuery test_db_1 t_lwu (children 5) + Identifier test_db_1 + Identifier t_lwu + Function in (children 1) + ExpressionList (children 2) + Identifier id + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 2) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_3 (alias id) + SelectQuery (children 3) + ExpressionList (children 1) + Function plus (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + Function less (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_3 + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + ExpressionList (children 1) + Assignment v (children 1) + Function plus (children 1) + ExpressionList (children 2) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + Literal UInt64_20 + Set diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_69.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_69.txt new file mode 100644 index 0000000000..0ccbd1fc55 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_69.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_3 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/explain_71.txt b/parser/testdata/04693_merge_table_function_in_mutation/explain_71.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04693_merge_table_function_in_mutation/explain_71.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04693_merge_table_function_in_mutation/metadata.json b/parser/testdata/04693_merge_table_function_in_mutation/metadata.json index 0967ef424b..c3a777e404 100644 --- a/parser/testdata/04693_merge_table_function_in_mutation/metadata.json +++ b/parser/testdata/04693_merge_table_function_in_mutation/metadata.json @@ -1 +1,14 @@ -{} +{ + "explain_todo": { + "stmt42": true, + "stmt44": true, + "stmt46": true, + "stmt48": true, + "stmt50": true, + "stmt52": true, + "stmt54": true, + "stmt64": true, + "stmt66": true, + "stmt68": true + } +} diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_2.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_2.txt new file mode 100644 index 0000000000..4322b86490 --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_29.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_29.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_29.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_3.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_3.txt new file mode 100644 index 0000000000..ab7a90ecbc --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_3.txt @@ -0,0 +1,2 @@ +UseQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_30.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_30.txt new file mode 100644 index 0000000000..95e4194d1f --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_30.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Ordinary diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_31.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_31.txt new file mode 100644 index 0000000000..687bce876a --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_31.txt @@ -0,0 +1,8 @@ +CreateQuery test_db_1 v_04796 (children 3) + Identifier test_db_1 + Identifier v_04796 + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 (alias x) diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_32.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_32.txt new file mode 100644 index 0000000000..2a3d6b6b4a --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_32.txt @@ -0,0 +1,8 @@ +CreateQuery test_db_1 v_04796 (children 3) + Identifier test_db_1 + Identifier v_04796 + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_2 (alias x) diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_33.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_33.txt new file mode 100644 index 0000000000..22353d2d3a --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_33.txt @@ -0,0 +1,9 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier x + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.v_04796 diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_34.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_34.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_34.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_40.txt b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_40.txt new file mode 100644 index 0000000000..43621e0c2d --- /dev/null +++ b/parser/testdata/04796_create_or_replace_internal_drop_not_ignored/explain_40.txt @@ -0,0 +1,2 @@ +DropQuery test_db_2 (children 1) + Identifier test_db_2 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_10.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_10.txt new file mode 100644 index 0000000000..14e1439888 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_10.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_merge_mutation_src diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_11.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_11.txt new file mode 100644 index 0000000000..ac21538358 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_11.txt @@ -0,0 +1,23 @@ +AlterQuery test_db_1 t_merge_mutation (children 4) + ExpressionList (children 1) + AlterCommand DELETE (children 1) + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Function currentDatabase (children 1) + ExpressionList + Literal \'^t_merge_mutation_src$\' + Identifier test_db_1 + Identifier t_merge_mutation + Set diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_12.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_12.txt new file mode 100644 index 0000000000..8a6252ded1 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_12.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_merge_mutation + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_13.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_13.txt new file mode 100644 index 0000000000..d0108664fd --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_13.txt @@ -0,0 +1,34 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Function countIf (children 1) + ExpressionList (children 1) + Function like (children 1) + ExpressionList (children 2) + Identifier command + Function concat (children 1) + ExpressionList (children 3) + Literal \'%merge(\\\'\' + Literal \'test_db_1\' + Literal \'\\\', \\\'^t_merge_mutation_src$\\\')%\' + Function countIf (children 1) + ExpressionList (children 1) + Function ilike (children 1) + ExpressionList (children 2) + Identifier command + Literal \'%currentDatabase%\' + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.mutations + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier database + Literal \'test_db_1\' + Function equals (children 1) + ExpressionList (children 2) + Identifier table + Literal \'t_merge_mutation\' diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_15.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_15.txt new file mode 100644 index 0000000000..af7120b3af --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_15.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier id + Set diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_16.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_16.txt new file mode 100644 index 0000000000..5d9bde5194 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_16.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_lwu diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_17.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_17.txt new file mode 100644 index 0000000000..8dd8078778 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_17.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t_lwu_src (children 4) + Identifier test_db_1 + Identifier t_lwu_src + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_18.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_18.txt new file mode 100644 index 0000000000..7de18e4601 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_18.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_lwu_src diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_2.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_21.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_21.txt new file mode 100644 index 0000000000..ac119e0d67 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_21.txt @@ -0,0 +1,22 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t_lwu_src$\' + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_1 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_22.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_22.txt new file mode 100644 index 0000000000..aba453bd5a --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_22.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_1 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_23.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_23.txt new file mode 100644 index 0000000000..d1d88b9e86 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_23.txt @@ -0,0 +1,21 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 1) + Literal \'^t_lwu_src$\' + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_2 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_24.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_24.txt new file mode 100644 index 0000000000..cfeca955d8 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_24.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_2 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_25.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_25.txt new file mode 100644 index 0000000000..1eb62bf428 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_25.txt @@ -0,0 +1,19 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier t_lwu_src + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_3 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_26.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_26.txt new file mode 100644 index 0000000000..9b1c8beee0 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_26.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_3 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_27.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_27.txt new file mode 100644 index 0000000000..7b84a12a00 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_27.txt @@ -0,0 +1,23 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Function currentDatabase (children 1) + ExpressionList + Literal \'^t_lwu_src$\' + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_4 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_28.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_28.txt new file mode 100644 index 0000000000..3cd27e8c40 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_28.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_4 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_29.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_29.txt new file mode 100644 index 0000000000..e25d2101c4 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_29.txt @@ -0,0 +1,28 @@ +UpdateQuery test_db_1 t_lwu (children 4) + Identifier test_db_1 + Identifier t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_2 + ExpressionList (children 1) + Assignment v (children 1) + Function plus (children 1) + ExpressionList (children 2) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Function currentDatabase (children 1) + ExpressionList + Literal \'^t_lwu_src$\' + Literal UInt64_30 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_3.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_3.txt new file mode 100644 index 0000000000..3cfdac12e6 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_3.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t_merge_mutation (children 4) + Identifier test_db_1 + Identifier t_merge_mutation + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_30.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_30.txt new file mode 100644 index 0000000000..6a0c969bb5 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_30.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_lwu + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_2 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_32.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_32.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_32.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_4.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_4.txt new file mode 100644 index 0000000000..3f509e7669 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_4.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_merge_mutation diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_5.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_5.txt new file mode 100644 index 0000000000..e5a20639de --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_5.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t_merge_mutation_src (children 4) + Identifier test_db_1 + Identifier t_merge_mutation_src + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_6.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_6.txt new file mode 100644 index 0000000000..14e1439888 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_6.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_merge_mutation_src diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_7.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_7.txt new file mode 100644 index 0000000000..27ede01df4 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_7.txt @@ -0,0 +1,21 @@ +AlterQuery test_db_1 t_merge_mutation (children 4) + ExpressionList (children 1) + AlterCommand DELETE (children 1) + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 1) + Literal \'^t_merge_mutation_src$\' + Identifier test_db_1 + Identifier t_merge_mutation + Set diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_8.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_8.txt new file mode 100644 index 0000000000..8a6252ded1 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_8.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t_merge_mutation + ExpressionList (children 1) + OrderByElement (children 1) + Identifier id diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_9.txt b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_9.txt new file mode 100644 index 0000000000..3f509e7669 --- /dev/null +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t_merge_mutation diff --git a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/metadata.json b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/metadata.json index 0967ef424b..96c27b83ca 100644 --- a/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/metadata.json +++ b/parser/testdata/04811_merge_table_function_in_mutation_on_cluster/metadata.json @@ -1 +1,9 @@ -{} +{ + "explain_todo": { + "stmt21": true, + "stmt23": true, + "stmt25": true, + "stmt27": true, + "stmt29": true + } +} diff --git a/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_11.txt b/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_11.txt new file mode 100644 index 0000000000..588cd80b5b --- /dev/null +++ b/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_11.txt @@ -0,0 +1,28 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 2) + Function countIf (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Function tuple (children 1) + ExpressionList (children 2) + Function sipHash64 (children 1) + ExpressionList (children 1) + Identifier metric_name + Function reinterpretAsUUID (children 1) + ExpressionList (children 1) + Function sipHash128 (children 1) + ExpressionList (children 1) + Identifier tags + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function timeSeriesTags (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'ts\' diff --git a/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_17.txt b/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_17.txt new file mode 100644 index 0000000000..b15a617df9 --- /dev/null +++ b/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_17.txt @@ -0,0 +1,36 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Function countIf (children 1) + ExpressionList (children 1) + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Function tuple (children 1) + ExpressionList (children 2) + Function sipHash64 (children 1) + ExpressionList (children 1) + Identifier metric_name + Function reinterpretAsUUID (children 1) + ExpressionList (children 1) + Function sipHash128 (children 1) + ExpressionList (children 2) + Identifier metric_name + Identifier tags + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function timeSeriesTags (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'ts\' + Function equals (children 1) + ExpressionList (children 2) + Function arrayElement (children 1) + ExpressionList (children 2) + Identifier tags + Literal \'job\' + Literal \'miner\' diff --git a/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_9.txt b/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_9.txt new file mode 100644 index 0000000000..56e7ff24b4 --- /dev/null +++ b/parser/testdata/04838_timeseries_tags_column_contains_all_tags/explain_9.txt @@ -0,0 +1,18 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 4) + Identifier metric_name + Identifier job_column + Identifier instance_column + Identifier tags + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function timeSeriesTags (children 1) + ExpressionList (children 2) + Literal \'test_db\' + Literal \'ts\' + ExpressionList (children 1) + OrderByElement (children 1) + Identifier tags diff --git a/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_11.txt b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_11.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_11.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_2.txt b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_2.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_4.txt b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_4.txt new file mode 100644 index 0000000000..8828c4e062 --- /dev/null +++ b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_4.txt @@ -0,0 +1,17 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function PostgreSQL (children 1) + ExpressionList (children 6) + Literal \'127.0.0.1:1\' + Literal \'d\' + Literal \'u\' + Literal \'[HIDDEN]\' + Function equals (children 1) + ExpressionList (children 2) + Identifier sslmode + Literal \'require\' + Function equals (children 1) + ExpressionList (children 2) + Identifier sslmode + Literal \'disable\' diff --git a/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_6.txt b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_6.txt new file mode 100644 index 0000000000..e18303a87e --- /dev/null +++ b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_6.txt @@ -0,0 +1,15 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function PostgreSQL (children 1) + ExpressionList (children 7) + Literal \'127.0.0.1:1\' + Literal \'d\' + Literal \'u\' + Literal \'[HIDDEN]\' + Literal \'sch\' + Literal UInt64_1 + Function equals (children 1) + ExpressionList (children 2) + Identifier sslmode + Literal \'require\' diff --git a/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_7.txt b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_7.txt new file mode 100644 index 0000000000..b0e7630d82 --- /dev/null +++ b/parser/testdata/04869_postgresql_tls_trailing_arguments/explain_7.txt @@ -0,0 +1,16 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + Identifier engine + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier system.databases + Function equals (children 1) + ExpressionList (children 2) + Identifier name + Literal \'test_db_1\' + ExpressionList (children 1) + OrderByElement (children 1) + Literal UInt64_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_12.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_12.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_12.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_13.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_13.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_13.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_14.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_14.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_14.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_2.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_2.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_2.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_20.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_20.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_20.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_3.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_3.txt new file mode 100644 index 0000000000..7f83293d25 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_3.txt @@ -0,0 +1,5 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 2) + Function Atomic + Set diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_4.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_4.txt new file mode 100644 index 0000000000..c10a402ab9 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_4.txt @@ -0,0 +1,16 @@ +CreateQuery test_db_1 t_lazy (children 4) + Identifier test_db_1 + Identifier t_lazy + Columns definition (children 1) + ExpressionList (children 4) + ColumnDeclaration key (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType Float64 + ColumnDeclaration s (children 1) + DataType String + ColumnDeclaration d (children 1) + DataType DateTime + Storage definition (children 2) + Function MergeTree + Identifier key diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_5.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_5.txt new file mode 100644 index 0000000000..7b92d86e0a --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_5.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 t_lazy_log (children 4) + Identifier test_db_1 + Identifier t_lazy_log + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt64 + Storage definition (children 1) + Function Log diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_6.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_6.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_6.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_7.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_7.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_7.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_8.txt b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_8.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/04870_column_declaration_statistics_lazy_load/explain_8.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_10.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_10.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_10.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_11.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_11.txt new file mode 100644 index 0000000000..81eb256eb0 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_11.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t05045_dist$\' + Function equals (children 1) + ExpressionList (children 2) + Identifier _table + Literal \'t05045_leaf\' diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_12.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_12.txt new file mode 100644 index 0000000000..289d6016a6 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_12.txt @@ -0,0 +1,12 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier _table + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t05045_dist$\' diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_13.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_13.txt new file mode 100644 index 0000000000..86738330b8 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_13.txt @@ -0,0 +1,21 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t05045_dist$\' + TablesInSelectQueryElement (children 1) + ArrayJoin (children 1) + ExpressionList (children 1) + Literal Array_[UInt64_1] (alias one) + Function equals (children 1) + ExpressionList (children 2) + Identifier _table + Literal \'t05045_leaf\' diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_14.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_14.txt new file mode 100644 index 0000000000..0211dfa184 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_14.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t05045_dist$\' + Function equals (children 1) + ExpressionList (children 2) + Identifier _table + Literal \'t05045_dist\' diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_15.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_15.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_15.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_16.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_16.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_16.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_17.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_17.txt new file mode 100644 index 0000000000..189f96db9c --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_17.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t05045_leaf$\' + Function equals (children 1) + ExpressionList (children 2) + Identifier _table + Literal \'t05045_leaf\' diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_18.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_18.txt new file mode 100644 index 0000000000..bb40a67769 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_18.txt @@ -0,0 +1,17 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Function merge (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'^t05045_leaf$\' + Function equals (children 1) + ExpressionList (children 2) + Identifier _table + Literal \'no_such_table\' diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_19.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_19.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_19.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_2.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_2.txt new file mode 100644 index 0000000000..7f83293d25 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_2.txt @@ -0,0 +1,5 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 2) + Function Atomic + Set diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_3.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_3.txt new file mode 100644 index 0000000000..957b600d29 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_3.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t05045_leaf (children 4) + Identifier test_db_1 + Identifier t05045_leaf + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier x diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_4.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_4.txt new file mode 100644 index 0000000000..a910edfb69 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_4.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t05045_leaf diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_5.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_5.txt new file mode 100644 index 0000000000..24db86e123 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_5.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 t05045_dist (children 4) + Identifier test_db_1 + Identifier t05045_dist + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType UInt64 + Storage definition (children 1) + Function Distributed (children 1) + ExpressionList (children 3) + Identifier test_shard_localhost + Literal \'test_db_1\' + Identifier t05045_leaf diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_6.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_6.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_6.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_7.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_7.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_7.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_8.txt b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_8.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/05045_merge_prefilter_lazy_load_tables/explain_8.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_10.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_10.txt new file mode 100644 index 0000000000..9c20893a75 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_10.txt @@ -0,0 +1,36 @@ +UpdateQuery test_db_1 u (children 5) + Identifier test_db_1 + Identifier u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 + ExpressionList (children 1) + Assignment v (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_7 (alias id) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_11.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_11.txt new file mode 100644 index 0000000000..28aeffac65 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_11.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_12.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_12.txt new file mode 100644 index 0000000000..76c6a649e8 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_12.txt @@ -0,0 +1,38 @@ +AlterQuery test_db_1 t (children 4) + ExpressionList (children 1) + AlterCommand UPDATE (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 + ExpressionList (children 1) + Assignment v (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_7 (alias id) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set + Identifier test_db_1 + Identifier t + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_13.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_13.txt new file mode 100644 index 0000000000..cbdf6ae52a --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_13.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_1 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_14.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_14.txt new file mode 100644 index 0000000000..64b9e34da9 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_14.txt @@ -0,0 +1,36 @@ +UpdateQuery test_db_1 u (children 5) + Identifier test_db_1 + Identifier u + Function in (children 1) + ExpressionList (children 2) + Identifier id + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_7 (alias id) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_11 + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_15.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_15.txt new file mode 100644 index 0000000000..b1ae01e4cb --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_15.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.u + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_11 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_16.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_16.txt new file mode 100644 index 0000000000..2cda454779 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_16.txt @@ -0,0 +1,38 @@ +AlterQuery test_db_1 t (children 4) + ExpressionList (children 1) + AlterCommand UPDATE (children 2) + Function in (children 1) + ExpressionList (children 2) + Identifier id + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_7 (alias id) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set + ExpressionList (children 1) + Assignment v (children 1) + Literal UInt64_11 + Identifier test_db_1 + Identifier t + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_17.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_17.txt new file mode 100644 index 0000000000..c7b734541f --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_17.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t + Function equals (children 1) + ExpressionList (children 2) + Identifier v + Literal UInt64_11 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_18.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_18.txt new file mode 100644 index 0000000000..fdf9e2ecfb --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_18.txt @@ -0,0 +1,36 @@ +UpdateQuery test_db_1 u (children 5) + Identifier test_db_1 + Identifier u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_3 + ExpressionList (children 1) + Assignment v (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_7 (alias id) + ExpressionList (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Function max (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_19.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_19.txt new file mode 100644 index 0000000000..e86cd89dcf --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_19.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_3 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_20.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_20.txt new file mode 100644 index 0000000000..26aae956c4 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_20.txt @@ -0,0 +1,54 @@ +UpdateQuery test_db_1 u (children 5) + Identifier test_db_1 + Identifier u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_8 + ExpressionList (children 1) + Assignment v (children 1) + Subquery (children 1) + 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_7 (alias id) + ExpressionList (children 1) + Function sum (children 1) + ExpressionList (children 1) + Identifier m + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 2) + SelectQuery (children 2) + ExpressionList (children 1) + Function multiply (alias m) (children 1) + ExpressionList (children 2) + Function max (children 1) + ExpressionList (children 1) + Identifier id + Literal UInt64_1000 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + SelectQuery (children 3) + ExpressionList (children 1) + Function max (alias m) (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_21.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_21.txt new file mode 100644 index 0000000000..9d457c76bb --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_21.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_8 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_22.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_22.txt new file mode 100644 index 0000000000..fac1fddf24 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_22.txt @@ -0,0 +1,35 @@ +UpdateQuery test_db_1 u (children 5) + Identifier test_db_1 + Identifier u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_4 + ExpressionList (children 1) + Assignment v (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_7 (alias id) + 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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_23.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_23.txt new file mode 100644 index 0000000000..961d644d9f --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_23.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_4 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_24.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_24.txt new file mode 100644 index 0000000000..fa88d14298 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_24.txt @@ -0,0 +1,34 @@ +UpdateQuery test_db_1 u (children 5) + Identifier test_db_1 + Identifier u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_5 + ExpressionList (children 1) + Assignment v (children 1) + Subquery (children 1) + 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 2) + ExpressionList (children 1) + Function max (alias m) (children 1) + ExpressionList (children 1) + Identifier id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + ExpressionList (children 1) + Identifier m + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier c + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_25.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_25.txt new file mode 100644 index 0000000000..09ee42a7cb --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_25.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_5 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_26.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_26.txt new file mode 100644 index 0000000000..479d2b51d4 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_26.txt @@ -0,0 +1,22 @@ +UpdateQuery test_db_1 u (children 5) + Identifier test_db_1 + Identifier u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_6 + ExpressionList (children 1) + Assignment v (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 id + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_27.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_27.txt new file mode 100644 index 0000000000..8ee62ffde2 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_27.txt @@ -0,0 +1,13 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier v + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.u + Function equals (children 1) + ExpressionList (children 2) + Identifier id + Literal UInt64_6 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_29.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_29.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_29.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_4.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_4.txt new file mode 100644 index 0000000000..fc5c7051ef --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_4.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 src (children 4) + Identifier test_db_1 + Identifier src + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration id (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier id diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_5.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_5.txt new file mode 100644 index 0000000000..9179c086ad --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_5.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier src diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_6.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_6.txt new file mode 100644 index 0000000000..3a402e589f --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_6.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 u (children 4) + Identifier test_db_1 + Identifier u + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier id + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_7.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_7.txt new file mode 100644 index 0000000000..2212519a80 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_7.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier u diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_8.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_8.txt new file mode 100644 index 0000000000..eebbc5b742 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_8.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 t (children 4) + Identifier test_db_1 + Identifier t + Columns definition (children 1) + ExpressionList (children 2) + ColumnDeclaration id (children 1) + DataType UInt64 + ColumnDeclaration v (children 1) + DataType UInt64 + Storage definition (children 3) + Function MergeTree + Identifier id + Set diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/explain_9.txt b/parser/testdata/05189_update_cte_out_of_scope_database/explain_9.txt new file mode 100644 index 0000000000..1e0df86566 --- /dev/null +++ b/parser/testdata/05189_update_cte_out_of_scope_database/explain_9.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier t diff --git a/parser/testdata/05189_update_cte_out_of_scope_database/metadata.json b/parser/testdata/05189_update_cte_out_of_scope_database/metadata.json index 0967ef424b..a79ff26d43 100644 --- a/parser/testdata/05189_update_cte_out_of_scope_database/metadata.json +++ b/parser/testdata/05189_update_cte_out_of_scope_database/metadata.json @@ -1 +1,11 @@ -{} +{ + "explain_todo": { + "stmt10": true, + "stmt14": true, + "stmt18": true, + "stmt20": true, + "stmt22": true, + "stmt24": true, + "stmt26": true + } +} diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_14.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_14.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_14.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_18.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_18.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_18.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_22.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_22.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_22.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_25.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_25.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_25.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_26.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_26.txt new file mode 100644 index 0000000000..c7edbd5a08 --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_26.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t (children 4) + Identifier test_db_1 + Identifier t + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration k (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier k diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_27.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_27.txt new file mode 100644 index 0000000000..4a3796787a --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_27.txt @@ -0,0 +1,14 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier t + 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_300 diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_28.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_28.txt new file mode 100644 index 0000000000..453b81c8db --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_28.txt @@ -0,0 +1,7 @@ +CreateQuery al_cross (children 2) + Identifier al_cross + Storage definition (children 1) + Function Alias (children 1) + ExpressionList (children 2) + Literal \'test_db_1\' + Literal \'t\' diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_29.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_29.txt new file mode 100644 index 0000000000..9418b8e25b --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_29.txt @@ -0,0 +1,2 @@ +TruncateQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_30.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_30.txt new file mode 100644 index 0000000000..1fbff2b3cd --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_30.txt @@ -0,0 +1,10 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Function count (children 1) + ExpressionList + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db_1.t diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_31.txt b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_31.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/explain_31.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/metadata.json b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/metadata.json index 0967ef424b..a94a03c65d 100644 --- a/parser/testdata/05233_alias_skipped_by_truncate_all_tables/metadata.json +++ b/parser/testdata/05233_alias_skipped_by_truncate_all_tables/metadata.json @@ -1 +1,8 @@ -{} +{ + "explain_todo": { + "stmt14": true, + "stmt18": true, + "stmt22": true, + "stmt29": true + } +} diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_10.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_10.txt new file mode 100644 index 0000000000..fe732d218c --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_10.txt @@ -0,0 +1,2 @@ +UseQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_2.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_2.txt new file mode 100644 index 0000000000..7f83293d25 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_2.txt @@ -0,0 +1,5 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 2) + Function Atomic + Set diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_23.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_23.txt new file mode 100644 index 0000000000..a924fb7599 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_23.txt @@ -0,0 +1,2 @@ +UseQuery test_db (children 1) + Identifier test_db diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_24.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_24.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_24.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_3.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_3.txt new file mode 100644 index 0000000000..87a78b2b1f --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_3.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 t_replicated (children 4) + Identifier test_db_1 + Identifier t_replicated + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration n (children 1) + DataType UInt64 + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/{table}\' + Literal \'r1\' + Identifier n diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_4.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_4.txt new file mode 100644 index 0000000000..bd13b7c246 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_4.txt @@ -0,0 +1,10 @@ +CreateQuery test_db_1 t_local (children 4) + Identifier test_db_1 + Identifier t_local + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration n (children 1) + DataType UInt64 + Storage definition (children 2) + Function MergeTree + Identifier n diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_5.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_5.txt new file mode 100644 index 0000000000..44cc1fd010 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_5.txt @@ -0,0 +1,13 @@ +CreateQuery test_db_1 t_sync (children 4) + Identifier test_db_1 + Identifier t_sync + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration n (children 1) + DataType UInt64 + Storage definition (children 2) + Function ReplicatedMergeTree (children 1) + ExpressionList (children 2) + Literal \'/clickhouse/tables/{database}/{table}\' + Literal \'r1\' + Identifier n diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_6.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_6.txt new file mode 100644 index 0000000000..9cac782d1f --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_6.txt @@ -0,0 +1,14 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier t_replicated + 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/05233_lazy_load_tables_cast_storage/explain_7.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_7.txt new file mode 100644 index 0000000000..8560b274b9 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_7.txt @@ -0,0 +1,14 @@ +InsertQuery (children 3) + Identifier test_db_1 + Identifier t_local + 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/05233_lazy_load_tables_cast_storage/explain_8.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_8.txt new file mode 100644 index 0000000000..479591ec64 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_8.txt @@ -0,0 +1,2 @@ +DetachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05233_lazy_load_tables_cast_storage/explain_9.txt b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_9.txt new file mode 100644 index 0000000000..9ae1be4b86 --- /dev/null +++ b/parser/testdata/05233_lazy_load_tables_cast_storage/explain_9.txt @@ -0,0 +1,2 @@ +AttachQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain.txt b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_2.txt b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_2.txt new file mode 100644 index 0000000000..5bcee4d37d --- /dev/null +++ b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_2.txt @@ -0,0 +1,2 @@ +CreateQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_38.txt b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_38.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_38.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_7.txt b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_7.txt new file mode 100644 index 0000000000..4eba08bc35 --- /dev/null +++ b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_7.txt @@ -0,0 +1,9 @@ +CreateQuery test_db_1 keys (children 4) + Identifier test_db_1 + Identifier keys + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration k (children 1) + DataType UInt64 + Storage definition (children 1) + Function Memory diff --git a/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_8.txt b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_8.txt new file mode 100644 index 0000000000..ddd21395c0 --- /dev/null +++ b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_8.txt @@ -0,0 +1,3 @@ +InsertQuery (children 2) + Identifier test_db_1 + Identifier keys diff --git a/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_9.txt b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_9.txt new file mode 100644 index 0000000000..9859c37118 --- /dev/null +++ b/parser/testdata/05291_query_parameters_in_row_policy_and_filter_settings/explain_9.txt @@ -0,0 +1 @@ +CREATE ROW POLICY or ALTER ROW POLICY query diff --git a/parser/testdata/05331_analyzer_table_alias_equals_database_name/explain_13.txt b/parser/testdata/05331_analyzer_table_alias_equals_database_name/explain_13.txt new file mode 100644 index 0000000000..0779d3ca39 --- /dev/null +++ b/parser/testdata/05331_analyzer_table_alias_equals_database_name/explain_13.txt @@ -0,0 +1,28 @@ +SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 2) + Identifier positions.portfolio + Function sum (children 1) + ExpressionList (children 1) + Identifier test_db.calculation_value + TablesInSelectQuery (children 2) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier test_db.intraday_sensitivities (alias test_db) + TablesInSelectQueryElement (children 2) + TableExpression (children 1) + TableIdentifier test_db.intraday_positions (alias positions) + TableJoin (children 1) + Function and (children 1) + ExpressionList (children 2) + Function equals (children 1) + ExpressionList (children 2) + Identifier positions.account_id + Identifier test_db.account_id + Function equals (children 1) + ExpressionList (children 2) + Identifier positions.run_at + Identifier test_db.run_at + ExpressionList (children 1) + Identifier positions.portfolio diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_70.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_70.txt new file mode 100644 index 0000000000..f2fd0fab2f --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_70.txt @@ -0,0 +1,4 @@ +CreateQuery test_db_1 (children 2) + Identifier test_db_1 + Storage definition (children 1) + Function Atomic diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_71.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_71.txt new file mode 100644 index 0000000000..c0b513eb9e --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_71.txt @@ -0,0 +1,14 @@ +CreateQuery test_db_1 tq_s1 (children 4) + Identifier test_db_1 + Identifier tq_s1 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType String + Storage definition (children 2) + Function S3Queue (children 1) + ExpressionList (children 3) + Literal \'http://localhost:11111/test/05366_stale/*\' + Identifier NOSIGN + Literal \'CSV\' + Set diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_72.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_72.txt new file mode 100644 index 0000000000..66365e85b0 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_72.txt @@ -0,0 +1,14 @@ +CreateQuery test_db_1 tq_s2 (children 4) + Identifier test_db_1 + Identifier tq_s2 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType String + Storage definition (children 2) + Function S3Queue (children 1) + ExpressionList (children 3) + Literal \'http://localhost:11111/test/05366_stale/*\' + Identifier NOSIGN + Literal \'CSV\' + Set diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_73.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_73.txt new file mode 100644 index 0000000000..627aef017b --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_73.txt @@ -0,0 +1,6 @@ +AlterQuery test_db_1 tq_s1 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_SETTING (children 1) + Set + Identifier test_db_1 + Identifier tq_s1 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_74.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_74.txt new file mode 100644 index 0000000000..c245c56345 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_74.txt @@ -0,0 +1,3 @@ +DetachQuery test_db_1 tq_s2 (children 2) + Identifier test_db_1 + Identifier tq_s2 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_75.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_75.txt new file mode 100644 index 0000000000..e5cef84711 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_75.txt @@ -0,0 +1,3 @@ +AttachQuery test_db_1 tq_s2 (children 2) + Identifier test_db_1 + Identifier tq_s2 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_76.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_76.txt new file mode 100644 index 0000000000..627aef017b --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_76.txt @@ -0,0 +1,6 @@ +AlterQuery test_db_1 tq_s1 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_SETTING (children 1) + Set + Identifier test_db_1 + Identifier tq_s1 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_77.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_77.txt new file mode 100644 index 0000000000..e5cef84711 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_77.txt @@ -0,0 +1,3 @@ +AttachQuery test_db_1 tq_s2 (children 2) + Identifier test_db_1 + Identifier tq_s2 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_79.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_79.txt new file mode 100644 index 0000000000..627aef017b --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_79.txt @@ -0,0 +1,6 @@ +AlterQuery test_db_1 tq_s1 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_SETTING (children 1) + Set + Identifier test_db_1 + Identifier tq_s1 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_80.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_80.txt new file mode 100644 index 0000000000..aa0bae4494 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_80.txt @@ -0,0 +1,6 @@ +AlterQuery test_db_1 tq_s2 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_SETTING (children 1) + Set + Identifier test_db_1 + Identifier tq_s2 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_82.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_82.txt new file mode 100644 index 0000000000..c245c56345 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_82.txt @@ -0,0 +1,3 @@ +DetachQuery test_db_1 tq_s2 (children 2) + Identifier test_db_1 + Identifier tq_s2 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_83.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_83.txt new file mode 100644 index 0000000000..e5cef84711 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_83.txt @@ -0,0 +1,3 @@ +AttachQuery test_db_1 tq_s2 (children 2) + Identifier test_db_1 + Identifier tq_s2 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_84.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_84.txt new file mode 100644 index 0000000000..3631ce6109 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_84.txt @@ -0,0 +1,14 @@ +CreateQuery test_db_1 tq_s3 (children 4) + Identifier test_db_1 + Identifier tq_s3 + Columns definition (children 1) + ExpressionList (children 1) + ColumnDeclaration x (children 1) + DataType String + Storage definition (children 2) + Function S3Queue (children 1) + ExpressionList (children 3) + Literal \'http://localhost:11111/test/05366_stale/*\' + Identifier NOSIGN + Literal \'CSV\' + Set diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_85.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_85.txt new file mode 100644 index 0000000000..627aef017b --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_85.txt @@ -0,0 +1,6 @@ +AlterQuery test_db_1 tq_s1 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_SETTING (children 1) + Set + Identifier test_db_1 + Identifier tq_s1 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_87.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_87.txt new file mode 100644 index 0000000000..627aef017b --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_87.txt @@ -0,0 +1,6 @@ +AlterQuery test_db_1 tq_s1 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_SETTING (children 1) + Set + Identifier test_db_1 + Identifier tq_s1 diff --git a/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_89.txt b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_89.txt new file mode 100644 index 0000000000..3cbd6afe50 --- /dev/null +++ b/parser/testdata/05366_s3queue_metadata_mismatch_immutable_fields/explain_89.txt @@ -0,0 +1,2 @@ +DropQuery test_db_1 (children 1) + Identifier test_db_1 diff --git a/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_18.txt b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_18.txt new file mode 100644 index 0000000000..9a563a5761 --- /dev/null +++ b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_18.txt @@ -0,0 +1,14 @@ +AlterQuery test_db mv (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_QUERY (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier c0 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier mv + Identifier test_db + Identifier mv diff --git a/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_19.txt b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_19.txt new file mode 100644 index 0000000000..f91639a638 --- /dev/null +++ b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_19.txt @@ -0,0 +1,49 @@ +AlterQuery test_db mv (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_QUERY (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 4) + ExpressionList (children 1) + WithElement (children 1) + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 2) + SelectQuery (children 1) + ExpressionList (children 1) + Literal UInt64_1 (alias c0) + SelectQuery (children 3) + ExpressionList (children 1) + Function plus (children 1) + ExpressionList (children 2) + Identifier c0 + Literal UInt64_1 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier mv + Function less (children 1) + ExpressionList (children 2) + Identifier c0 + Literal UInt64_3 + ExpressionList (children 1) + Identifier c0 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Function in (children 1) + ExpressionList (children 2) + Identifier c0 + Subquery (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier c0 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier mv + Identifier test_db + Identifier mv diff --git a/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_22.txt b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_22.txt new file mode 100644 index 0000000000..da2c6e4f8b --- /dev/null +++ b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_22.txt @@ -0,0 +1,17 @@ +CreateQuery test_db mv3 (children 4) + Identifier test_db + Identifier mv3 + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier c0 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier mv3 + ViewTargets (children 1) + Storage definition (children 2) + Function MergeTree + Function tuple (children 1) + ExpressionList diff --git a/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_28.txt b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_28.txt new file mode 100644 index 0000000000..71b425bb67 --- /dev/null +++ b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_28.txt @@ -0,0 +1,14 @@ +AlterQuery test_db mv2 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_QUERY (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 2) + ExpressionList (children 1) + Identifier c0 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier mv2 + Identifier test_db + Identifier mv2 diff --git a/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_29.txt b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_29.txt new file mode 100644 index 0000000000..d01b70dc93 --- /dev/null +++ b/parser/testdata/05404_materialized_view_cannot_select_from_itself/explain_29.txt @@ -0,0 +1,18 @@ +AlterQuery test_db mv2 (children 3) + ExpressionList (children 1) + AlterCommand MODIFY_QUERY (children 1) + SelectWithUnionQuery (children 1) + ExpressionList (children 1) + SelectQuery (children 3) + ExpressionList (children 1) + Identifier c0 + TablesInSelectQuery (children 1) + TablesInSelectQueryElement (children 1) + TableExpression (children 1) + TableIdentifier src + Function in (children 1) + ExpressionList (children 2) + Identifier c0 + Identifier mv2 + Identifier test_db + Identifier mv2