From 424b92f581997fb3ce709f0867beb4c75708b8c5 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Dec 2025 22:12:35 +0000 Subject: [PATCH] Add AST JSON golden files for regression testing Create ast.json files for all 6033 passing tests to ensure AST structure doesn't change unintentionally. Changes include: - Add cmd/generateast tool to generate ast.json files for passing tests - Update parser_test.go to verify AST JSON matches golden files - Generate ast.json for each test that passes the explain.txt comparison --- cmd/generateast/main.go | 163 + parser/parser_test.go | 15 + parser/testdata/00001_count_hits/ast.json | 23 + parser/testdata/00001_select_1/ast.json | 12 + parser/testdata/00002_count_visits/ast.json | 30 + parser/testdata/00002_system_numbers/ast.json | 11 + .../00003_reinterpret_as_string/ast.json | 46 + .../ast.json | 48 + parser/testdata/00004_top_counters/ast.json | 50 + parser/testdata/00005_filtering/ast.json | 35 + .../ast.json | 77 + parser/testdata/00006_agregates/ast.json | 43 + .../00006_extremes_and_subquery_from/ast.json | 11 + parser/testdata/00007_array/ast.json | 21 + parser/testdata/00007_uniq/ast.json | 76 + parser/testdata/00008_array_join/ast.json | 26 + parser/testdata/00008_uniq/ast.json | 74 + .../00009_array_join_subquery/ast.json | 50 + .../testdata/00009_uniq_distributed/ast.json | 89 + parser/testdata/00010_big_array_join/ast.json | 79 + .../00010_quantiles_segfault/ast.json | 284 + .../testdata/00011_array_join_alias/ast.json | 78 + parser/testdata/00011_sorting/ast.json | 52 + .../00012_array_join_alias_2/ast.json | 90 + .../00012_sorting_distributed/ast.json | 67 + .../00013_create_table_with_arrays/ast.json | 9 + .../testdata/00013_sorting_of_nested/ast.json | 66 + .../testdata/00014_filtering_arrays/ast.json | 51 + .../ast.json | 9 + .../ast.json | 42 + .../00015_totals_having_constants/ast.json | 89 + .../ast.json | 60 + .../00016_totals_having_constants/ast.json | 41 + .../ast.json | 11 + .../00018_distinct_in_subquery/ast.json | 58 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/00021_1_select_with_in/ast.json | 43 + .../ast.json | 48 + parser/testdata/00022_merge_prewhere/ast.json | 9 + .../00023_agg_select_agg_subquery/ast.json | 57 + parser/testdata/00023_totals_limit/ast.json | 11 + .../testdata/00024_random_counters/ast.json | 52 + .../ast.json | 55 + .../ast.json | 47 + .../ast.json | 51 + parser/testdata/00027_argMinMax/ast.json | 122 + .../00027_distinct_and_order_by/ast.json | 11 + .../ast.json | 9 + parser/testdata/00030_alter_table/ast.json | 9 + .../00030_array_enumerate_uniq/ast.json | 64 + .../00031_array_enumerate_uniq/ast.json | 221 + .../testdata/00032_aggregate_key64/ast.json | 58 + .../00032_fixed_string_to_string/ast.json | 48 + .../00033_aggregate_key_string/ast.json | 58 + .../00033_fixed_string_to_string/ast.json | 26 + .../00034_aggregate_key_fixed_string/ast.json | 80 + .../00034_fixed_string_to_number/ast.json | 48 + .../testdata/00035_aggregate_keys128/ast.json | 76 + .../00035_function_array_return_type/ast.json | 17 + .../testdata/00036_aggregate_hashed/ast.json | 76 + parser/testdata/00036_array_element/ast.json | 9 + parser/testdata/00037_totals_limit/ast.json | 11 + .../testdata/00037_uniq_state_merge1/ast.json | 11 + parser/testdata/00038_totals_limit/ast.json | 11 + .../testdata/00038_uniq_state_merge2/ast.json | 11 + parser/testdata/00039_primary_key/ast.json | 35 + .../ast.json | 9 + .../00040_array_enumerate_uniq/ast.json | 149 + .../ast.json | 9 + .../testdata/00041_aggregation_remap/ast.json | 80 + parser/testdata/00041_big_array_join/ast.json | 9 + parser/testdata/00042_set/ast.json | 44 + .../00043_summing_empty_part/ast.json | 9 + .../ast.json | 67 + .../ast.json | 76 + parser/testdata/00045_uniq_upto/ast.json | 88 + .../00046_stored_aggregates_simple/ast.json | 9 + .../00046_uniq_upto_distributed/ast.json | 103 + parser/testdata/00047_bar/ast.json | 75 + .../00047_stored_aggregates_complex/ast.json | 9 + .../00048_a_stored_aggregates_merge/ast.json | 9 + .../00048_b_stored_aggregates_merge/ast.json | 9 + parser/testdata/00048_min_max/ast.json | 40 + parser/testdata/00049_max_string_if/ast.json | 67 + parser/testdata/00050_min_max/ast.json | 64 + parser/testdata/00051_any_inner_join/ast.json | 11 + parser/testdata/00051_min_max_array/ast.json | 87 + .../00053_replicate_segfault/ast.json | 98 + .../00054_merge_tree_partitions/ast.json | 9 + parser/testdata/00055_index_and_not/ast.json | 63 + parser/testdata/00056_view/ast.json | 9 + parser/testdata/00057_join_aliases/ast.json | 11 + .../ast.json | 56 + .../testdata/00059_shard_global_in/ast.json | 115 + .../00059_shard_global_in_mergetree/ast.json | 9 + parser/testdata/00060_date_lut/ast.json | 22 + .../00060_move_to_prewhere_and_sets/ast.json | 11 + .../testdata/00061_merge_tree_alter/ast.json | 9 + parser/testdata/00061_storage_buffer/ast.json | 9 + parser/testdata/00062_loyalty/ast.json | 307 + .../ast.json | 9 + parser/testdata/00063_check_query/ast.json | 11 + parser/testdata/00063_loyalty_joins/ast.json | 11 + parser/testdata/00064_negate_bug/ast.json | 34 + .../00065_loyalty_with_storage_join/ast.json | 9 + .../ast.json | 44 + .../ast.json | 11 + .../00067_replicate_segfault/ast.json | 86 + parser/testdata/00068_empty_tiny_log/ast.json | 15 + .../00068_subquery_in_prewhere/ast.json | 67 + .../testdata/00069_date_arithmetic/ast.json | 29 + .../00069_duplicate_aggregation_keys/ast.json | 100 + .../00071_insert_fewer_columns/ast.json | 9 + .../00071_merge_tree_optimize_aio/ast.json | 9 + .../ast.json | 35 + .../ast.json | 11 + parser/testdata/00073_uniq_array/ast.json | 93 + parser/testdata/00074_full_join/ast.json | 11 + .../testdata/00075_left_array_join/ast.json | 119 + .../ast.json | 45 + .../00076_ip_coding_functions/ast.json | 11 + .../00077_log_tinylog_stripelog/ast.json | 11 + .../ast.json | 11 + .../testdata/00078_group_by_arrays/ast.json | 51 + parser/testdata/00078_string_concat/ast.json | 49 + .../ast.json | 115 + .../testdata/00079_defaulted_columns/ast.json | 9 + .../00080_array_join_and_union/ast.json | 123 + .../ast.json | 11 + .../testdata/00081_int_div_or_zero/ast.json | 28 + .../ast.json | 28 + parser/testdata/00082_quantiles/ast.json | 11 + parser/testdata/00083_array_filter/ast.json | 47 + .../ast.json | 11 + .../00084_external_aggregation/ast.json | 11 + .../00084_summing_merge_tree/ast.json | 9 + .../ast.json | 51 + .../ast.json | 11 + parser/testdata/00086_array_reduce/ast.json | 103 + .../ast.json | 86 + .../00087_distinct_of_empty_arrays/ast.json | 48 + parser/testdata/00087_math_functions/ast.json | 24 + parser/testdata/00087_where_0/ast.json | 11 + .../ast.json | 18 + .../00089_group_by_arrays_of_fixed/ast.json | 172 + .../ast.json | 11 + .../00091_prewhere_two_conditions/ast.json | 11 + .../00093_prewhere_array_join/ast.json | 73 + .../00094_order_by_array_join_limit/ast.json | 49 + .../00095_hyperscan_profiler/ast.json | 11 + .../00096_aggregation_min_if/ast.json | 9 + .../00097_constexpr_in_index/ast.json | 11 + parser/testdata/00098_1_union_all/ast.json | 9 + parser/testdata/00098_2_union_all/ast.json | 9 + parser/testdata/00098_3_union_all/ast.json | 9 + parser/testdata/00098_4_union_all/ast.json | 9 + parser/testdata/00098_5_union_all/ast.json | 9 + parser/testdata/00098_6_union_all/ast.json | 74 + parser/testdata/00098_7_union_all/ast.json | 76 + parser/testdata/00098_8_union_all/ast.json | 77 + parser/testdata/00098_9_union_all/ast.json | 51 + parser/testdata/00098_a_union_all/ast.json | 55 + parser/testdata/00098_b_union_all/ast.json | 67 + parser/testdata/00098_c_union_all/ast.json | 83 + parser/testdata/00098_d_union_all/ast.json | 9 + parser/testdata/00098_e_union_all/ast.json | 9 + parser/testdata/00098_f_union_all/ast.json | 9 + parser/testdata/00098_g_union_all/ast.json | 89 + parser/testdata/00098_h_union_all/ast.json | 89 + parser/testdata/00098_k_union_all/ast.json | 11 + parser/testdata/00098_l_union_all/ast.json | 11 + .../ast.json | 46 + .../testdata/00098_shard_i_union_all/ast.json | 9 + .../ast.json | 9 + .../ast.json | 12 + .../00103_ipv4_num_to_string_class_c/ast.json | 29 + .../00104_totals_having_mode/ast.json | 11 + .../testdata/00105_shard_collations/ast.json | 12 + .../00106_totals_after_having/ast.json | 11 + .../00107_totals_after_having/ast.json | 12 + .../00108_shard_totals_after_having/ast.json | 11 + .../00109_shard_totals_after_having/ast.json | 11 + parser/testdata/00110_external_sort/ast.json | 11 + .../ast.json | 11 + .../00112_shard_totals_after_having/ast.json | 11 + .../testdata/00113_shard_group_array/ast.json | 94 + .../ast.json | 19 + parser/testdata/00116_storage_set/ast.json | 9 + parser/testdata/00117_parsing_arrays/ast.json | 9 + parser/testdata/00118_storage_join/ast.json | 9 + parser/testdata/00119_storage_join/ast.json | 9 + .../testdata/00120_join_and_group_by/ast.json | 69 + .../00121_drop_column_zookeeper/ast.json | 10 + .../ast.json | 114 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 64 + parser/testdata/00126_buffer/ast.json | 9 + .../testdata/00127_group_by_concat/ast.json | 100 + .../ast.json | 110 + .../ast.json | 46 + .../ast.json | 11 + .../00136_duplicate_order_by_elems/ast.json | 133 + parser/testdata/00137_in_constants/ast.json | 26 + parser/testdata/00138_table_aliases/ast.json | 22 + .../ast.json | 97 + .../00140_prewhere_column_order/ast.json | 9 + .../ast.json | 9 + parser/testdata/00141_transform/ast.json | 110 + .../ast.json | 97 + parser/testdata/00142_system_columns/ast.json | 72 + .../ast.json | 24 + .../ast.json | 111 + parser/testdata/00144_empty_regexp/ast.json | 26 + .../ast.json | 11 + .../ast.json | 57 + parser/testdata/00145_empty_likes/ast.json | 23 + .../00146_aggregate_function_uniq/ast.json | 79 + .../ast.json | 9 + .../00147_alter_nested_default/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/00149_function_url_hash/ast.json | 42 + .../ast.json | 11 + .../00150_quantiles_timing_precision/ast.json | 165 + .../00150_with_totals_and_join/ast.json | 11 + .../00151_order_by_read_in_order/ast.json | 11 + .../testdata/00151_tuple_with_array/ast.json | 26 + .../ast.json | 9 + .../00152_totals_in_subquery/ast.json | 52 + .../00153_aggregate_arena_race/ast.json | 9 + parser/testdata/00153_transform/ast.json | 68 + parser/testdata/00154_avro/ast.json | 9 + .../ast.json | 41 + .../00156_array_map_to_constant/ast.json | 38 + .../ast.json | 11 + .../ast.json | 50 + .../00158_cache_dictionary_has/ast.json | 9 + .../00159_whitespace_in_columns_list/ast.json | 9 + .../00160_merge_and_index_in_in/ast.json | 9 + .../00162_mmap_compression_none/ast.json | 9 + .../ast.json | 11 + parser/testdata/00164_not_chain/ast.json | 15 + .../testdata/00164_quantileBfloat16/ast.json | 68 + .../00165_jit_aggregate_functions/ast.json | 11 + .../ast.json | 77 + .../testdata/00166_explain_estimate/ast.json | 11 + .../ast.json | 11 + .../00167_read_bytes_from_fs/ast.json | 11 + .../00167_settings_inside_query/ast.json | 112 + .../testdata/00168_buffer_defaults/ast.json | 9 + .../testdata/00170_lower_upper_utf8/ast.json | 28 + parser/testdata/00170_s3_cache/ast.json | 11 + .../ast.json | 11 + .../ast.json | 98 + .../00172_early_constant_folding/ast.json | 11 + .../ast.json | 24 + .../testdata/00174_distinct_in_order/ast.json | 12 + .../ast.json | 11 + .../00175_partition_by_ignore/ast.json | 12 + .../ast.json | 108 + .../testdata/00176_if_string_arrays/ast.json | 60 + .../testdata/00178_quantile_ddsketch/ast.json | 81 + .../00178_query_datetime64_index/ast.json | 9 + .../ast.json | 151 + .../00180_attach_materialized_view/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../00181_cross_join_compression/ast.json | 15 + .../ast.json | 12 + .../ast.json | 32 + .../00183_prewhere_conditions_order/ast.json | 11 + .../00183_skip_unavailable_shards/ast.json | 11 + .../ast.json | 12 + parser/testdata/00185_array_literals/ast.json | 21 + .../00187_like_regexp_prefix/ast.json | 23 + .../ast.json | 64 + .../ast.json | 121 + .../ast.json | 9 + parser/testdata/00192_least_greatest/ast.json | 137 + .../testdata/00193_parallel_replicas/ast.json | 9 + parser/testdata/00194_identity/ast.json | 31 + .../ast.json | 48 + .../00196_float32_formatting/ast.json | 12 + .../testdata/00197_if_fixed_string/ast.json | 61 + .../ast.json | 33 + .../ast.json | 9 + parser/testdata/00201_array_uniq/ast.json | 208 + parser/testdata/00202_cross_join/ast.json | 115 + parser/testdata/00203_full_join/ast.json | 11 + .../00204_extract_url_parameter/ast.json | 21 + .../testdata/00205_scalar_subqueries/ast.json | 11 + .../testdata/00207_left_array_join/ast.json | 52 + .../testdata/00208_agg_state_merge/ast.json | 169 + .../00209_insert_select_extremes/ast.json | 9 + .../ast.json | 12 + .../00213_multiple_global_in/ast.json | 69 + .../testdata/00214_primary_key_order/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../00218_like_regexp_newline/ast.json | 18 + .../ast.json | 11 + .../ast.json | 63 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../00225_join_duplicate_columns/ast.json | 11 + .../ast.json | 9 + .../ast.json | 67 + .../ast.json | 72 + .../00229_prewhere_column_missing/ast.json | 9 + .../ast.json | 30 + .../00231_format_vertical_raw/ast.json | 20 + .../00233_position_function_family/ast.json | 11 + .../ast.json | 11 + .../ast.json | 20 + .../00235_create_temporary_table_as/ast.json | 10 + .../ast.json | 11 + .../testdata/00237_group_by_arrays/ast.json | 112 + .../ast.json | 11 + .../00240_replace_substring_loop/ast.json | 101 + parser/testdata/00251_has_types/ast.json | 34 + .../ast.json | 9 + .../00253_insert_recursive_defaults/ast.json | 9 + parser/testdata/00254_tuple_extremes/ast.json | 9 + .../00255_array_concat_string/ast.json | 26 + parser/testdata/00256_reverse/ast.json | 17 + .../ast.json | 11 + .../00258_materializing_tuples/ast.json | 64 + parser/testdata/00259_hashing_tuples/ast.json | 95 + .../00260_like_and_curly_braces/ast.json | 58 + .../ast.json | 9 + parser/testdata/00262_alter_alias/ast.json | 9 + .../ast.json | 9 + .../00266_read_overflow_mode/ast.json | 98 + .../00268_aliases_without_as_keyword/ast.json | 27 + .../00269_database_table_whitespace/ast.json | 21 + .../ast.json | 9 + .../00271_agg_state_and_totals/ast.json | 119 + .../00272_union_all_and_in_subquery/ast.json | 55 + parser/testdata/00273_quantiles/ast.json | 64 + .../testdata/00274_shard_group_array/ast.json | 65 + .../00275_shard_quantiles_weighted/ast.json | 67 + parser/testdata/00276_sample/ast.json | 9 + parser/testdata/00277_array_filter/ast.json | 138 + .../00278_insert_already_sorted/ast.json | 9 + .../00279_quantiles_permuted_args/ast.json | 140 + .../00280_hex_escape_sequence/ast.json | 12 + parser/testdata/00282_merging/ast.json | 9 + .../00284_external_aggregation/ast.json | 11 + .../00284_external_aggregation_2/ast.json | 11 + .../00285_not_all_data_in_totals/ast.json | 11 + .../00286_format_long_negative_float/ast.json | 22 + .../testdata/00288_empty_stripelog/ast.json | 9 + .../ast.json | 9 + .../00292_parser_tuple_element/ast.json | 27 + .../00293_shard_max_subquery_depth/ast.json | 11 + parser/testdata/00294_shard_enums/ast.json | 11 + .../ast.json | 11 + .../00298_enum_width_and_cast/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/00307_format_xml/ast.json | 11 + .../00308_write_buffer_valid_utf8/ast.json | 11 + parser/testdata/00309_formats/ast.json | 11 + .../testdata/00311_array_primary_key/ast.json | 11 + .../ast.json | 55 + .../ast.json | 9 + .../00315_quantile_off_by_one/ast.json | 159 + .../ast.json | 11 + parser/testdata/00318_pk_tuple_order/ast.json | 9 + parser/testdata/00319_index_for_like/ast.json | 11 + parser/testdata/00321_pk_set/ast.json | 9 + .../00323_quantiles_timing_bug/ast.json | 33 + .../00326_long_function_multi_if/ast.json | 12 + .../00327_summing_composite_nested/ast.json | 11 + .../testdata/00330_view_subqueries/ast.json | 9 + .../00331_final_and_prewhere/ast.json | 9 + .../ast.json | 11 + .../ast.json | 53 + .../testdata/00333_parser_number_bug/ast.json | 38 + .../ast.json | 9 + .../00338_replicate_array_of_strings/ast.json | 9 + .../00340_squashing_insert_select/ast.json | 9 + .../00341_squashing_insert_select2/ast.json | 9 + .../00343_array_element_generic/ast.json | 69 + .../00344_row_number_in_all_blocks/ast.json | 11 + .../00345_index_accurate_comparison/ast.json | 9 + parser/testdata/00346_if_tuple/ast.json | 101 + parser/testdata/00347_has_tuple/ast.json | 109 + parser/testdata/00348_tuples/ast.json | 46 + parser/testdata/00349_visible_width/ast.json | 71 + parser/testdata/00350_count_distinct/ast.json | 11 + .../ast.json | 126 + .../ast.json | 92 + parser/testdata/00353_join_by_tuple/ast.json | 11 + .../ast.json | 44 + .../ast.json | 86 + .../00357_to_string_complex_types/ast.json | 57 + .../00358_from_string_complex_types/ast.json | 23 + .../00359_convert_or_zero_functions/ast.json | 26 + .../ast.json | 17 + .../ast.json | 9 + .../00362_great_circle_distance/ast.json | 35 + parser/testdata/00363_defaults/ast.json | 9 + .../testdata/00369_int_div_of_float/ast.json | 21 + .../ast.json | 11 + parser/testdata/00371_union_all/ast.json | 67 + parser/testdata/00373_group_by_tuple/ast.json | 110 + .../testdata/00374_any_last_if_merge/ast.json | 116 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../00378_json_quote_64bit_integers/ast.json | 11 + .../testdata/00383_utf8_validation/ast.json | 11 + .../ast.json | 9 + parser/testdata/00386_enum_in_pk/ast.json | 9 + .../00386_has_column_in_table/ast.json | 9 + .../testdata/00388_enum_with_totals/ast.json | 9 + .../testdata/00389_concat_operator/ast.json | 26 + parser/testdata/00390_array_sort/ast.json | 71 + .../testdata/00392_enum_nested_alter/ast.json | 9 + .../00393_if_with_constant_condition/ast.json | 22 + .../ast.json | 9 + .../00394_replaceall_vector_fixed/ast.json | 9 + parser/testdata/00395_nullable/ast.json | 12 + parser/testdata/00396_uuid/ast.json | 84 + parser/testdata/00396_uuid_v7/ast.json | 12 + .../00397_tsv_format_synonym/ast.json | 50 + .../ast.json | 9 + .../00401_merge_and_stripelog/ast.json | 9 + .../testdata/00402_nan_and_extremes/ast.json | 39 + .../testdata/00403_to_start_of_day/ast.json | 32 + parser/testdata/00404_null_literal/ast.json | 14 + .../00405_output_format_pretty_color/ast.json | 11 + parser/testdata/00405_pretty_formats/ast.json | 11 + .../testdata/00406_tuples_with_nulls/ast.json | 89 + parser/testdata/00409_shard_limit_by/ast.json | 9 + .../ast.json | 11 + .../ast.json | 1684 +++++ .../ast.json | 9 + .../ast.json | 9 + parser/testdata/00413_distinct/ast.json | 9 + .../ast.json | 50 + .../ast.json | 66 + .../00420_null_in_scalar_subqueries/ast.json | 26 + .../00422_hash_function_constexpr/ast.json | 30 + .../00423_storage_log_single_thread/ast.json | 9 + .../ast.json | 27 + parser/testdata/00425_count_nullable/ast.json | 51 + parser/testdata/00426_nulls_sorting/ast.json | 100 + .../testdata/00429_point_in_ellipses/ast.json | 38 + .../ast.json | 9 + parser/testdata/00433_ifnull/ast.json | 32 + parser/testdata/00435_coalesce/ast.json | 85 + parser/testdata/00438_bit_rotate/ast.json | 26 + .../00439_fixed_string_filter/ast.json | 92 + .../testdata/00440_nulls_merge_tree/ast.json | 9 + .../00442_filter_by_nullable/ast.json | 46 + parser/testdata/00444_join_use_nulls/ast.json | 11 + .../00445_join_nullable_keys/ast.json | 11 + .../ast.json | 12 + .../testdata/00447_foreach_modifier/ast.json | 26 + .../ast.json | 64 + .../00448_to_string_cut_to_zero/ast.json | 72 + .../ast.json | 78 + .../00450_higher_order_and_nullable/ast.json | 74 + .../ast.json | 59 + .../ast.json | 73 + parser/testdata/00453_cast_enum/ast.json | 9 + parser/testdata/00453_top_k/ast.json | 105 + parser/testdata/00456_alter_nullable/ast.json | 9 + .../ast.json | 9 + .../testdata/00458_merge_type_cast/ast.json | 12 + .../00459_group_array_insert_at/ast.json | 70 + .../ast.json | 87 + .../00462_json_true_false_literals/ast.json | 9 + .../00464_array_element_out_of_range/ast.json | 90 + .../00464_sort_all_constant_columns/ast.json | 50 + .../testdata/00465_nullable_default/ast.json | 9 + .../00466_comments_in_keyword/ast.json | 24 + .../testdata/00467_qualified_names/ast.json | 25 + .../ast.json | 9 + .../ast.json | 12 + .../ast.json | 30 + .../ast.json | 24 + .../00472_create_view_if_not_exists/ast.json | 9 + .../testdata/00475_in_join_db_table/ast.json | 9 + .../00476_pretty_formats_and_widths/ast.json | 25 + .../00477_parsing_data_types/ast.json | 10 + .../ast.json | 22 + parser/testdata/00480_mac_addresses/ast.json | 118 + .../00481_create_view_for_null/ast.json | 9 + .../00481_reading_from_last_granula/ast.json | 9 + .../00482_subqueries_and_aliases/ast.json | 59 + parser/testdata/00483_cast_syntax/ast.json | 17 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/00486_if_fixed_string/ast.json | 46 + .../00487_if_array_fixed_string/ast.json | 116 + .../00488_column_name_primary/ast.json | 9 + .../00488_non_ascii_column_names/ast.json | 9 + .../testdata/00489_pk_subexpression/ast.json | 9 + .../ast.json | 41 + parser/testdata/00490_with_select/ast.json | 11 + .../ast.json | 82 + .../00492_drop_temporary_table/ast.json | 10 + .../ast.json | 9 + .../00495_reading_const_zero_column/ast.json | 9 + .../ast.json | 12 + .../ast.json | 114 + .../testdata/00499_json_enum_insert/ast.json | 9 + .../testdata/00500_point_in_polygon/ast.json | 12 + .../00500_point_in_polygon_2d_const/ast.json | 88 + .../00500_point_in_polygon_3d_const/ast.json | 9 + .../00500_point_in_polygon_bug/ast.json | 9 + .../00500_point_in_polygon_bug_2/ast.json | 174 + .../ast.json | 4607 +++++++++++++ .../ast.json | 11 + .../ast.json | 9 + .../00502_custom_partitioning_local/ast.json | 12 + .../ast.json | 11 + parser/testdata/00502_sum_map/ast.json | 11 + .../00504_mergetree_arrays_rw/ast.json | 11 + .../00506_shard_global_in_union/ast.json | 89 + .../testdata/00506_union_distributed/ast.json | 11 + .../testdata/00507_sumwithoverflow/ast.json | 68 + .../00508_materialized_view_to/ast.json | 14 + .../ast.json | 11 + .../ast.json | 9 + .../00513_fractional_time_zones/ast.json | 92 + .../00514_interval_operators/ast.json | 11 + .../00515_enhanced_time_zones/ast.json | 11 + parser/testdata/00515_gcd_lcm/ast.json | 21 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/00516_modulo/ast.json | 19 + parser/testdata/00517_date_parsing/ast.json | 83 + .../ast.json | 10 + .../00520_tuple_values_interpreter/ast.json | 9 + .../testdata/00521_multidimensional/ast.json | 9 + .../testdata/00522_multidimensional/ast.json | 9 + .../ast.json | 173 + .../ast.json | 30 + .../00527_totals_having_nullable/ast.json | 30 + .../testdata/00528_const_of_nullable/ast.json | 47 + parser/testdata/00529_orantius/ast.json | 17 + .../testdata/00530_arrays_of_nothing/ast.json | 31 + .../00531_aggregate_over_nullable/ast.json | 9 + parser/testdata/00532_topk_generic/ast.json | 171 + parser/testdata/00533_uniq_array/ast.json | 64 + parser/testdata/00534_exp10/ast.json | 46 + .../00535_parse_float_scientific/ast.json | 9 + parser/testdata/00536_int_exp/ast.json | 115 + .../testdata/00536_int_exp_overflow/ast.json | 12 + parser/testdata/00537_quarters/ast.json | 159 + parser/testdata/00538_datediff/ast.json | 12 + .../00538_datediff_plural_units/ast.json | 35 + .../ast.json | 21 + parser/testdata/00541_kahan_sum/ast.json | 52 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/00543_null_and_prewhere/ast.json | 11 + .../00544_insert_with_select/ast.json | 9 + .../ast.json | 65 + parser/testdata/00549_join_use_nulls/ast.json | 11 + .../ast.json | 9 + .../00553_invalid_nested_name/ast.json | 40 + .../00554_nested_and_table_engines/ast.json | 9 + parser/testdata/00555_hasAll_hasAny/ast.json | 21 + parser/testdata/00555_hasSubstr/ast.json | 21 + .../00555_right_join_excessive_rows/ast.json | 11 + .../testdata/00556_array_intersect/ast.json | 21 + .../ast.json | 45 + .../00557_alter_null_storage_tables/ast.json | 9 + parser/testdata/00557_array_resize/ast.json | 34 + .../ast.json | 18 + parser/testdata/00558_parse_floats/ast.json | 48 + .../ast.json | 12 + parser/testdata/00561_storage_join/ast.json | 9 + .../00562_in_subquery_merge_tree/ast.json | 9 + .../ast.json | 9 + .../00563_complex_in_expression/ast.json | 9 + .../ast.json | 9 + .../00563_shard_insert_into_remote/ast.json | 9 + .../ast.json | 9 + .../00564_temporary_table_management/ast.json | 10 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 33 + .../ast.json | 11 + .../00570_empty_array_is_const/ast.json | 17 + parser/testdata/00571_alter_nullable/ast.json | 9 + .../00572_aggregation_by_empty_set/ast.json | 12 + .../ast.json | 12 + .../ast.json | 9 + .../00576_nested_and_prewhere/ast.json | 9 + .../00577_full_join_segfault/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../00578_merge_table_sampling/ast.json | 9 + .../ast.json | 9 + .../ast.json | 12 + .../ast.json | 9 + .../00579_virtual_column_and_lazy/ast.json | 9 + .../ast.json | 52 + .../ast.json | 86 + .../ast.json | 11 + .../00582_not_aliasing_functions/ast.json | 49 + parser/testdata/00584_view_union_all/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../00587_union_all_type_conversions/ast.json | 11 + .../00588_shard_distributed_prewhere/ast.json | 9 + .../ast.json | 90 + .../ast.json | 9 + .../00594_alias_in_distributed/ast.json | 9 + .../00597_push_down_predicate_long/ast.json | 11 + .../00597_with_totals_on_empty_set/ast.json | 49 + .../00599_create_view_with_subquery/ast.json | 9 + .../ast.json | 16 + .../ast.json | 35 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/00607_index_in_in/ast.json | 9 + parser/testdata/00608_uniq_array/ast.json | 94 + .../ast.json | 9 + parser/testdata/00609_mv_index_in_in/ast.json | 9 + .../00609_prewhere_and_default/ast.json | 9 + .../ast.json | 9 + parser/testdata/00612_count/ast.json | 9 + .../ast.json | 9 + parser/testdata/00612_pk_in_tuple/ast.json | 9 + parser/testdata/00612_shard_count/ast.json | 9 + .../00612_union_query_with_subquery/ast.json | 100 + .../ast.json | 18 + parser/testdata/00614_array_nullable/ast.json | 9 + .../ast.json | 9 + .../00615_nullable_alter_optimize/ast.json | 9 + .../testdata/00616_final_single_part/ast.json | 11 + parser/testdata/00617_array_in/ast.json | 9 + parser/testdata/00618_nullable_in/ast.json | 30 + parser/testdata/00619_union_highlite/ast.json | 9 + .../ast.json | 9 + .../00621_regression_for_in_operator/ast.json | 9 + .../testdata/00622_select_in_parens/ast.json | 12 + .../testdata/00623_in_partition_key/ast.json | 9 + .../ast.json | 9 + .../00623_truncate_all_tables/ast.json | 15 + parser/testdata/00623_truncate_table/ast.json | 11 + parser/testdata/00624_length_utf8/ast.json | 26 + .../testdata/00625_arrays_in_nested/ast.json | 9 + .../00625_summing_merge_tree_merge/ast.json | 9 + parser/testdata/00626_in_syntax/ast.json | 43 + .../ast.json | 9 + .../testdata/00627_recursive_alias/ast.json | 71 + .../ast.json | 9 + .../00632_aggregation_window_funnel/ast.json | 9 + .../00632_get_sample_block_cache/ast.json | 11 + parser/testdata/00633_func_or_in/ast.json | 9 + parser/testdata/00634_rename_view/ast.json | 9 + .../00635_shard_distinct_order_by/ast.json | 9 + parser/testdata/00639_startsWith/ast.json | 75 + parser/testdata/00640_endsWith/ast.json | 75 + .../00643_cast_zookeeper_long/ast.json | 11 + .../00645_date_time_input_format/ast.json | 15 + parser/testdata/00646_weird_mmx/ast.json | 9 + parser/testdata/00647_histogram/ast.json | 66 + .../00647_histogram_negative/ast.json | 9 + .../00647_multiply_aggregation_state/ast.json | 11 + .../00647_select_numbers_with_offset/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../00653_monotonic_integer_cast/ast.json | 9 + .../00653_running_difference/ast.json | 11 + .../ast.json | 11 + .../00661_array_has_silviucpp/ast.json | 9 + .../ast.json | 11 + .../00662_array_has_nullable/ast.json | 30 + parser/testdata/00662_has_nullable/ast.json | 9 + .../00663_tiny_log_empty_insert/ast.json | 9 + .../ast.json | 49 + .../ast.json | 9 + .../00666_uniq_complex_types/ast.json | 77 + .../00668_compare_arrays_silviucpp/ast.json | 9 + .../00670_truncate_temporary_table/ast.json | 10 + .../testdata/00671_max_intersections/ast.json | 9 + parser/testdata/00672_arrayDistinct/ast.json | 30 + .../ast.json | 9 + parser/testdata/00674_join_on_syntax/ast.json | 11 + .../ast.json | 9 + .../00677_shard_any_heavy_merge/ast.json | 82 + parser/testdata/00678_murmurhash/ast.json | 17 + .../00678_shard_funnel_window/ast.json | 9 + .../testdata/00679_replace_asterisk/ast.json | 11 + parser/testdata/00679_uuid_in_key/ast.json | 48 + .../ast.json | 144 + .../ast.json | 9 + .../ast.json | 11 + parser/testdata/00687_insert_into_mv/ast.json | 9 + .../00688_aggregation_retention/ast.json | 9 + .../testdata/00688_case_without_else/ast.json | 9 + .../ast.json | 9 + .../00688_low_cardinality_defaults/ast.json | 56 + .../ast.json | 9 + .../00688_low_cardinality_in/ast.json | 11 + .../ast.json | 11 + .../00688_low_cardinality_prewhere/ast.json | 9 + .../ast.json | 12 + .../00688_low_cardinality_syntax/ast.json | 11 + .../00689_join_table_function/ast.json | 70 + parser/testdata/00691_array_distinct/ast.json | 53 + .../testdata/00692_if_exception_code/ast.json | 11 + .../ast.json | 44 + .../ast.json | 11 + .../00696_system_columns_limit/ast.json | 53 + .../testdata/00697_in_subquery_shard/ast.json | 20 + .../ast.json | 11 + .../ast.json | 11 + .../00700_decimal_aggregates/ast.json | 9 + parser/testdata/00700_decimal_arithm/ast.json | 9 + .../00700_decimal_array_functions/ast.json | 55 + parser/testdata/00700_decimal_bounds/ast.json | 9 + parser/testdata/00700_decimal_casts/ast.json | 47 + .../testdata/00700_decimal_casts_2/ast.json | 58 + .../testdata/00700_decimal_compare/ast.json | 9 + .../00700_decimal_complex_types/ast.json | 9 + .../testdata/00700_decimal_defaults/ast.json | 9 + .../00700_decimal_empty_aggregates/ast.json | 9 + .../testdata/00700_decimal_formats/ast.json | 9 + .../testdata/00700_decimal_gathers/ast.json | 55 + .../testdata/00700_decimal_in_keys/ast.json | 9 + parser/testdata/00700_decimal_math/ast.json | 61 + parser/testdata/00700_decimal_null/ast.json | 9 + parser/testdata/00700_decimal_round/ast.json | 102 + .../ast.json | 9 + .../00700_to_decimal_or_something/ast.json | 47 + .../00701_context_use_after_free/ast.json | 78 + .../00701_join_default_strictness/ast.json | 9 + parser/testdata/00701_rollup/ast.json | 9 + parser/testdata/00702_join_on_dups/ast.json | 9 + .../testdata/00702_join_with_using/ast.json | 9 + .../00702_join_with_using_dups/ast.json | 9 + .../ast.json | 9 + parser/testdata/00703_join_crash/ast.json | 9 + .../ast.json | 9 + .../00705_aggregate_states_addition/ast.json | 11 + .../00706_iso_week_and_day_of_year/ast.json | 22 + .../00707_float_csv_delimiter/ast.json | 10 + .../ast.json | 9 + .../00710_array_enumerate_dense/ast.json | 155 + .../00711_array_enumerate_variants/ast.json | 68 + .../00712_prewhere_with_alias/ast.json | 9 + .../ast.json | 9 + .../00712_prewhere_with_alias_bug/ast.json | 9 + .../00712_prewhere_with_alias_bug_2/ast.json | 9 + .../00712_prewhere_with_final/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../00712_prewhere_with_sampling/ast.json | 9 + .../ast.json | 9 + .../00713_collapsing_merge_tree/ast.json | 9 + parser/testdata/00714_alter_uuid/ast.json | 25 + .../ast.json | 10 + parser/testdata/00715_bounding_ratio/ast.json | 9 + .../00715_bounding_ratio_merge_empty/ast.json | 9 + parser/testdata/00716_allow_ddl/ast.json | 11 + .../testdata/00717_default_join_type/ast.json | 9 + .../ast.json | 11 + .../00717_low_cardinaliry_group_by/ast.json | 9 + .../00717_merge_and_distributed/ast.json | 11 + .../testdata/00718_format_datetime/ast.json | 11 + .../testdata/00718_format_datetime_1/ast.json | 34 + .../00718_low_cardinaliry_alter/ast.json | 11 + .../ast.json | 26 + .../00719_format_datetime_rand/ast.json | 82 + parser/testdata/00720_with_cube/ast.json | 9 + .../ast.json | 11 + parser/testdata/00722_inner_join/ast.json | 11 + parser/testdata/00723_remerge_sort/ast.json | 94 + .../ast.json | 10 + .../00725_comment_columns_long/ast.json | 11 + .../testdata/00725_ipv4_ipv6_domains/ast.json | 9 + parser/testdata/00725_join_on_bug_1/ast.json | 9 + parser/testdata/00725_join_on_bug_2/ast.json | 11 + parser/testdata/00725_join_on_bug_3/ast.json | 9 + parser/testdata/00725_join_on_bug_4/ast.json | 9 + .../testdata/00725_memory_tracking/ast.json | 46 + .../testdata/00725_quantiles_shard/ast.json | 54 + .../ast.json | 9 + .../testdata/00726_modulo_for_date/ast.json | 48 + parser/testdata/00727_concat/ast.json | 11 + .../00729_prewhere_array_join/ast.json | 11 + .../00730_unicode_terminal_format/ast.json | 11 + .../testdata/00732_base64_functions/ast.json | 11 + .../00732_decimal_summing_merge_tree/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/00733_if_datetime/ast.json | 57 + parser/testdata/00734_timeslot/ast.json | 26 + .../testdata/00735_long_conditional/ast.json | 11 + .../00735_or_expr_optimize_bug/ast.json | 9 + .../00736_disjunction_optimisation/ast.json | 9 + .../testdata/00737_decimal_group_by/ast.json | 29 + .../ast.json | 9 + .../ast.json | 10 + .../ast.json | 9 + .../00741_client_comment_multiline/ast.json | 5 + .../00742_require_join_strictness/ast.json | 11 + .../00743_limit_by_not_found_column/ast.json | 9 + .../00744_join_not_found_column/ast.json | 11 + .../00745_compile_scalar_subquery/ast.json | 11 + .../ast.json | 11 + parser/testdata/00746_hashing_tuples/ast.json | 25 + parser/testdata/00747_contributors/ast.json | 56 + .../00748_insert_array_with_null/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/00751_hashing_ints/ast.json | 17 + .../ast.json | 11 + .../ast.json | 31 + .../ast.json | 11 + .../ast.json | 11 + .../00752_low_cardinality_mv_1/ast.json | 9 + .../00752_low_cardinality_mv_2/ast.json | 9 + .../00752_low_cardinality_permute/ast.json | 9 + parser/testdata/00753_alter_attach/ast.json | 9 + .../ast.json | 9 + .../00753_comment_columns_zookeeper/ast.json | 9 + .../ast.json | 12 + .../testdata/00753_quantile_format/ast.json | 9 + .../ast.json | 11 + .../00753_with_with_single_alias/ast.json | 35 + .../ast.json | 11 + .../00754_alter_modify_order_by/ast.json | 11 + .../ast.json | 11 + .../ast.json | 35 + .../ast.json | 9 + parser/testdata/00757_enum_defaults/ast.json | 9 + .../ast.json | 11 + parser/testdata/00758_array_reverse/ast.json | 26 + .../00760_insert_json_with_defaults/ast.json | 11 + .../00760_url_functions_overflow/ast.json | 21 + .../testdata/00762_date_comparsion/ast.json | 11 + .../ast.json | 9 + parser/testdata/00765_locate/ast.json | 11 + .../00765_sql_compatibility_aliases/ast.json | 11 + .../ast.json | 11 + .../00780_unaligned_array_join/ast.json | 133 + .../ast.json | 9 + .../testdata/00799_function_dry_run/ast.json | 9 + .../00800_function_java_hash/ast.json | 22 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../00800_low_cardinality_join/ast.json | 11 + .../00800_versatile_storage_join/ast.json | 9 + .../ast.json | 97 + .../ast.json | 9 + .../00803_odbc_driver_2_format/ast.json | 50 + parser/testdata/00803_xxhash/ast.json | 34 + .../00804_rollup_with_having/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/00805_round_down/ast.json | 69 + parser/testdata/00806_alter_update/ast.json | 9 + .../testdata/00807_regexp_quote_meta/ast.json | 17 + .../00808_array_enumerate_segfault/ast.json | 11 + .../00808_not_optimize_predicate/ast.json | 11 + .../testdata/00809_add_days_segfault/ast.json | 34 + .../00810_in_operators_segfault/ast.json | 11 + parser/testdata/00811_garbage/ast.json | 11 + .../00812_prewhere_alias_array/ast.json | 9 + .../ast.json | 11 + parser/testdata/00814_parsing_ub/ast.json | 17 + .../00815_left_join_on_stepanel/ast.json | 9 + .../00816_join_column_names_sarg/ast.json | 9 + parser/testdata/00817_with_simple/ast.json | 39 + parser/testdata/00818_alias_bug_4110/ast.json | 11 + .../00818_inner_join_bug_3567/ast.json | 11 + parser/testdata/00818_join_bug_4271/ast.json | 9 + .../00819_ast_refactoring_bugs/ast.json | 9 + .../ast.json | 11 + parser/testdata/00820_multiple_joins/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../00822_array_insert_default/ast.json | 89 + .../00823_sequence_match_dfa/ast.json | 9 + .../00826_cross_to_inner_join/ast.json | 11 + .../testdata/00829_bitmap64_function/ast.json | 9 + .../testdata/00829_bitmap_function/ast.json | 43 + parser/testdata/00830_join_overwrite/ast.json | 9 + .../ast.json | 46 + .../testdata/00832_storage_file_lock/ast.json | 9 + parser/testdata/00833_sleep_overflow/ast.json | 17 + .../testdata/00834_date_datetime_cmp/ast.json | 29 + .../ast.json | 41 + .../testdata/00835_if_generic_case/ast.json | 11 + parser/testdata/00836_indices_alter/ast.json | 9 + .../ast.json | 9 + .../ast.json | 28 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/00839_bitmask_negative/ast.json | 17 + .../00841_temporary_table_database/ast.json | 12 + .../ast.json | 27 + .../ast.json | 11 + parser/testdata/00844_join_lightee2/ast.json | 9 + .../testdata/00845_join_on_aliases/ast.json | 9 + .../00846_join_using_tuple_crash/ast.json | 11 + .../00847_multiple_join_same_column/ast.json | 9 + .../00848_join_use_nulls_segfault/ast.json | 11 + .../00849_multiple_comma_join_2/ast.json | 11 + .../testdata/00850_global_join_dups/ast.json | 9 + parser/testdata/00852_any_join_nulls/ast.json | 9 + .../00853_join_with_nulls_crash/ast.json | 9 + .../00854_multiple_join_asterisks/ast.json | 93 + .../00855_join_with_array_join/ast.json | 11 + .../00856_no_column_issue_4242/ast.json | 9 + .../ast.json | 9 + parser/testdata/00858_issue_4756/ast.json | 11 + .../00859_distinct_with_join/ast.json | 9 + .../00860_unknown_identifier_bug/ast.json | 9 + .../00861_decimal_quoted_csv/ast.json | 9 + parser/testdata/00862_decimal_in/ast.json | 9 + parser/testdata/00863_comma_join_in/ast.json | 9 + .../00864_union_all_supertype/ast.json | 11 + parser/testdata/00870_t64_codec/ast.json | 9 + .../testdata/00871_t64_codec_signed/ast.json | 9 + parser/testdata/00872_t64_bit_codec/ast.json | 9 + parser/testdata/00873_t64_codec_date/ast.json | 9 + parser/testdata/00874_issue_3495/ast.json | 9 + .../testdata/00875_join_right_nulls/ast.json | 9 + .../00875_join_right_nulls_ors/ast.json | 9 + .../00876_wrong_arraj_join_column/ast.json | 9 + .../ast.json | 11 + .../00878_join_unexpected_results/ast.json | 9 + .../00879_cast_to_decimal_crash/ast.json | 39 + parser/testdata/00880_decimal_in_key/ast.json | 9 + .../00881_unknown_identifier_in_in/ast.json | 115 + .../00882_multiple_join_no_alias/ast.json | 9 + .../ast.json | 41 + .../00899_long_attach_memory_limit/ast.json | 9 + parser/testdata/00900_entropy_shard/ast.json | 53 + parser/testdata/00901_joint_entropy/ast.json | 384 ++ parser/testdata/00902_entropy/ast.json | 9 + .../ast.json | 50 + .../00904_array_with_constant_2/ast.json | 39 + .../ast.json | 11 + .../ast.json | 42 + .../00906_low_cardinality_cache/ast.json | 18 + .../ast.json | 22 + .../00906_low_cardinality_rollup/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/00908_analyze_query/ast.json | 9 + .../00909_arrayEnumerateUniq/ast.json | 71 + parser/testdata/00909_ngram_distance/ast.json | 54 + .../testdata/00910_buffer_prewhere/ast.json | 53 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 79 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/00912_string_comparison/ast.json | 143 + parser/testdata/00913_many_threads/ast.json | 25 + parser/testdata/00914_join_bgranvea/ast.json | 9 + parser/testdata/00914_replicate/ast.json | 36 + .../00915_simple_aggregate_function/ast.json | 11 + .../ast.json | 11 + parser/testdata/00915_tuple_orantius/ast.json | 49 + .../ast.json | 9 + .../00916_create_or_replace_view/ast.json | 9 + .../ast.json | 11 + parser/testdata/00917_least_sqr/ast.json | 59 + .../00917_multiple_joins_denny_crane/ast.json | 11 + parser/testdata/00918_json_functions/ast.json | 12 + .../testdata/00919_histogram_merge/ast.json | 171 + .../ast.json | 90 + .../ast.json | 57 + .../testdata/00921_datetime64_basic/ast.json | 9 + .../ast.json | 9 + .../ast.json | 12 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/00926_geo_to_h3/ast.json | 9 + parser/testdata/00926_multimatch/ast.json | 12 + .../ast.json | 12 + .../00927_asof_join_correct_bt/ast.json | 9 + parser/testdata/00927_asof_join_long/ast.json | 9 + .../00927_asof_join_noninclusive/ast.json | 9 + parser/testdata/00927_asof_joins/ast.json | 9 + .../testdata/00927_disable_hyperscan/ast.json | 11 + .../ast.json | 34 + .../00929_multi_match_edit_distance/ast.json | 11 + parser/testdata/00930_arrayIntersect/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../00932_array_intersect_bug/ast.json | 48 + .../testdata/00932_geohash_support/ast.json | 9 + parser/testdata/00933_alter_ttl/ast.json | 11 + parser/testdata/00933_reserved_word/ast.json | 9 + parser/testdata/00933_ttl_simple/ast.json | 11 + .../testdata/00933_ttl_with_default/ast.json | 9 + parser/testdata/00934_is_valid_utf8/ast.json | 40 + .../00935_to_iso_week_first_year/ast.json | 65 + parser/testdata/00936_crc_functions/ast.json | 9 + .../ast.json | 11 + .../00936_substring_utf8_non_const/ast.json | 43 + .../testdata/00937_ipv4_cidr_range/ast.json | 12 + parser/testdata/00938_basename/ast.json | 17 + parser/testdata/00938_dataset_test/ast.json | 9 + .../testdata/00938_ipv6_cidr_range/ast.json | 12 + .../00938_test_retention_function/ast.json | 9 + .../testdata/00939_limit_by_offset/ast.json | 9 + parser/testdata/00939_test_null_in/ast.json | 9 + .../00940_max_parts_in_total/ast.json | 9 + .../00940_order_by_read_in_order/ast.json | 9 + parser/testdata/00941_to_custom_week/ast.json | 72 + .../testdata/00942_mv_rename_table/ast.json | 9 + .../ast.json | 9 + parser/testdata/00944_minmax_nan/ast.json | 11 + parser/testdata/00944_minmax_null/ast.json | 9 + parser/testdata/00944_ml_test/ast.json | 9 + .../00945_bloom_filter_index/ast.json | 11 + parser/testdata/00945_ml_test/ast.json | 9 + parser/testdata/00946_ml_test/ast.json | 9 + parser/testdata/00947_ml_test/ast.json | 9 + parser/testdata/00948_to_valid_utf8/ast.json | 33 + .../ast.json | 9 + parser/testdata/00949_format/ast.json | 11 + .../ast.json | 9 + .../testdata/00950_default_prewhere/ast.json | 9 + .../00950_test_double_delta_codec/ast.json | 9 + .../ast.json | 9 + .../00950_test_gorilla_codec/ast.json | 9 + parser/testdata/00951_ngram_search/ast.json | 54 + .../ast.json | 9 + .../testdata/00952_part_frozen_info/ast.json | 9 + .../testdata/00953_moving_functions/ast.json | 9 + .../00954_resample_combinator/ast.json | 107 + .../testdata/00955_test_final_mark/ast.json | 11 + .../ast.json | 11 + .../ast.json | 42 + parser/testdata/00957_delta_diff_bug/ast.json | 11 + parser/testdata/00957_neighbor/ast.json | 11 + .../00960_eval_ml_method_const/ast.json | 68 + parser/testdata/00961_check_table/ast.json | 11 + .../ast.json | 9 + .../ast.json | 21 + parser/testdata/00962_enumNotExect/ast.json | 9 + .../00962_visit_param_various/ast.json | 21 + parser/testdata/00963_achimbab/ast.json | 11 + .../ast.json | 9 + .../00964_os_thread_priority/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../00968_file_engine_in_subquery/ast.json | 9 + parser/testdata/00968_roundAge/ast.json | 17 + parser/testdata/00969_columns_clause/ast.json | 9 + parser/testdata/00969_roundDuration/ast.json | 17 + .../ast.json | 9 + .../00972_desc_table_virtual_columns/ast.json | 9 + parser/testdata/00972_geohashesInBox/ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../00974_distributed_join_on/ast.json | 9 + .../00974_final_predicate_push_down/ast.json | 9 + parser/testdata/00974_fix_join_on/ast.json | 9 + .../00974_low_cardinality_cast/ast.json | 11 + parser/testdata/00974_query_profiler/ast.json | 11 + parser/testdata/00975_json_hang/ast.json | 78 + .../ast.json | 9 + parser/testdata/00975_values_list/ast.json | 9 + .../00976_max_execution_speed/ast.json | 25 + .../ast.json | 9 + .../00976_system_stop_ttl_merges/ast.json | 9 + .../00976_ttl_with_old_parts/ast.json | 9 + .../00977_join_use_nulls_denny_crane/ast.json | 9 + parser/testdata/00978_sum_map_bugfix/ast.json | 122 + .../ast.json | 9 + parser/testdata/00979_set_index_not/ast.json | 9 + .../00979_toFloat_monotonicity/ast.json | 11 + .../00979_yandex_consistent_hash_fpe/ast.json | 24 + .../00980_crash_nullable_decimal/ast.json | 35 + .../00980_full_join_crash_fancyqlx/ast.json | 9 + .../00980_merge_alter_settings/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../00981_no_virtual_columns/ast.json | 9 + .../00981_topK_topKWeighted_long/ast.json | 9 + .../ast.json | 9 + .../ast.json | 87 + .../ast.json | 9 + .../00985_merge_stack_overflow/ast.json | 9 + .../ast.json | 9 + .../00987_distributed_stack_overflow/ast.json | 9 + .../ast.json | 9 + .../00988_expansion_aliases_limit/ast.json | 11 + .../00988_parallel_parts_removal/ast.json | 9 + .../00989_parallel_parts_loading/ast.json | 9 + .../00990_function_current_user/ast.json | 14 + .../00990_hasToken_and_tokenbf/ast.json | 9 + .../00990_metric_log_table_not_empty/ast.json | 22 + .../testdata/00990_request_splitting/ast.json | 35 + .../00994_table_function_numbers_mt/ast.json | 55 + .../ast.json | 11 + .../00995_order_by_with_fill/ast.json | 9 + .../testdata/00996_limit_with_ties/ast.json | 9 + parser/testdata/00996_neighbor/ast.json | 11 + .../00997_extract_all_crash_6627/ast.json | 21 + .../testdata/00997_set_index_array/ast.json | 11 + .../00998_constraints_all_tables/ast.json | 9 + .../00999_full_join_dup_keys_crash/ast.json | 11 + .../00999_join_not_nullable_types/ast.json | 11 + .../00999_join_on_expression/ast.json | 9 + .../00999_nullable_nested_types_4877/ast.json | 9 + .../00999_settings_no_extra_quotes/ast.json | 32 + .../ast.json | 9 + .../01000_bad_size_of_marks_skip_idx/ast.json | 9 + .../01000_subquery_requires_alias/ast.json | 11 + .../01001_enums_in_in_section/ast.json | 9 + .../01006_ttl_with_default_2/ast.json | 9 + .../ast.json | 9 + .../01009_global_array_join_names/ast.json | 9 + .../01009_insert_select_data_loss/ast.json | 9 + .../01009_insert_select_nicelulu/ast.json | 9 + .../01010_partial_merge_join/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../01010_pm_join_all_join_bug/ast.json | 9 + parser/testdata/01010_pmj_on_disk/ast.json | 11 + .../01010_pmj_one_row_blocks/ast.json | 9 + .../ast.json | 11 + .../testdata/01010_pmj_skip_blocks/ast.json | 9 + .../01011_group_uniq_array_memsan/ast.json | 73 + .../ast.json | 39 + .../01012_reset_running_accumulate/ast.json | 11 + .../testdata/01012_select_limit_x_0/ast.json | 31 + .../ast.json | 11 + parser/testdata/01013_hex_decimal/ast.json | 26 + parser/testdata/01013_hex_float/ast.json | 17 + .../testdata/01013_repeat_function/ast.json | 21 + .../01013_totals_without_aggregation/ast.json | 11 + .../01014_count_of_merges_metrics/ast.json | 9 + .../ast.json | 26 + parser/testdata/01015_array_split/ast.json | 74 + parser/testdata/01015_attach_part/ast.json | 9 + .../testdata/01015_random_constant/ast.json | 18 + .../01016_index_tuple_field_type/ast.json | 9 + parser/testdata/01016_macros/ast.json | 33 + .../testdata/01016_null_part_minmax/ast.json | 9 + .../testdata/01016_simhash_minhash/ast.json | 17 + .../01016_simhash_minhash_ppc/ast.json | 17 + parser/testdata/01016_uniqCombined64/ast.json | 35 + .../01017_bithamming_distance/ast.json | 21 + .../ast.json | 28 + .../01017_tuplehamming_distance/ast.json | 39 + .../01017_uniqCombined_memory_usage/ast.json | 11 + .../01018_Distributed__shard_num/ast.json | 11 + .../testdata/01018_ambiguous_column/ast.json | 11 + .../01018_ddl_dictionaries_create/ast.json | 11 + .../01018_ddl_dictionaries_select/ast.json | 11 + .../01018_ddl_dictionaries_special/ast.json | 11 + .../ast.json | 11 + .../01018_empty_aggregation_filling/ast.json | 12 + .../01018_ip_dictionary_long/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/01019_array_fill/ast.json | 75 + .../ast.json | 11 + .../01020_function_array_compact/ast.json | 22 + .../01020_having_without_group_by/ast.json | 16 + .../testdata/01021_create_as_select/ast.json | 9 + .../01021_only_tuple_columns/ast.json | 30 + .../ast.json | 11 + parser/testdata/01024__getScalar/ast.json | 32 + .../01025_array_compact_generic/ast.json | 17 + parser/testdata/01026_char_utf8/ast.json | 62 + .../ast.json | 37 + .../ast.json | 9 + .../ast.json | 11 + .../01030_storage_set_supports_read/ast.json | 9 + .../01030_storage_url_syntax/ast.json | 9 + .../01031_pmj_new_any_semi_join/ast.json | 9 + parser/testdata/01031_semi_anti_join/ast.json | 9 + .../01032_cityHash64_for_UUID/ast.json | 23 + .../01032_cityHash64_for_decimal/ast.json | 26 + .../ast.json | 9 + .../01033_dictionaries_lifetime/ast.json | 11 + .../01033_function_substring/ast.json | 12 + .../ast.json | 9 + .../01034_JSONCompactEachRow/ast.json | 9 + .../01034_order_by_pk_prefix/ast.json | 9 + .../ast.json | 9 + .../01034_sample_final_distributed/ast.json | 11 + .../ast.json | 86 + .../01035_prewhere_with_alias/ast.json | 9 + .../ast.json | 21 + .../ast.json | 5 + .../01036_union_different_columns/ast.json | 76 + .../ast.json | 11 + .../01038_array_of_unnamed_tuples/ast.json | 11 + .../01039_mergetree_exec_time/ast.json | 9 + .../01039_test_setting_parse/ast.json | 11 + .../ast.json | 9 + .../testdata/01040_h3_get_resolution/ast.json | 17 + parser/testdata/01041_h3_is_valid/ast.json | 17 + .../ast.json | 11 + parser/testdata/01042_h3_k_ring/ast.json | 31 + parser/testdata/01043_geo_distance/ast.json | 11 + .../testdata/01043_h3_edge_length_m/ast.json | 17 + .../01044_great_circle_angle/ast.json | 78 + parser/testdata/01044_h3_edge_angle/ast.json | 17 + parser/testdata/01045_array_zip/ast.json | 47 + .../01045_bloom_filter_null_array/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/01047_nullable_rand/ast.json | 33 + .../ast.json | 9 + .../01049_join_low_card_crash/ast.json | 9 + .../ast.json | 37 + .../ast.json | 9 + .../testdata/01050_engine_join_crash/ast.json | 9 + .../01050_engine_join_view_crash/ast.json | 9 + .../01050_group_array_sample/ast.json | 105 + .../01051_aggregate_function_crash/ast.json | 11 + .../testdata/01051_all_join_engine/ast.json | 9 + .../01051_new_any_join_engine/ast.json | 9 + .../01051_random_printable_ascii/ast.json | 22 + .../01051_same_name_alias_with_joins/ast.json | 9 + .../01052_array_reduce_exception/ast.json | 51 + .../01053_drop_database_mat_view/ast.json | 11 + parser/testdata/01053_if_chain_check/ast.json | 11 + .../ast.json | 5 + parser/testdata/01055_compact_parts/ast.json | 11 + parser/testdata/01055_prewhere_bugs/ast.json | 9 + .../testdata/01056_create_table_as/ast.json | 9 + .../ast.json | 9 + .../01056_negative_with_bloom_filter/ast.json | 9 + .../01056_predicate_optimizer_bugs/ast.json | 11 + .../01060_defaults_all_columns/ast.json | 9 + .../ast.json | 9 + .../01061_alter_codec_with_type/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/01063_create_column_set/ast.json | 9 + parser/testdata/01064_arrayROCAUC/ast.json | 55 + .../ast.json | 11 + .../ast.json | 11 + .../01065_array_zip_mixed_const/ast.json | 39 + parser/testdata/01065_if_not_finite/ast.json | 55 + parser/testdata/01066_bit_count/ast.json | 35 + parser/testdata/01067_join_null/ast.json | 123 + parser/testdata/01068_parens/ast.json | 11 + .../testdata/01069_database_memory/ast.json | 5 + .../ast.json | 18 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/01069_set_in_group_by/ast.json | 9 + parser/testdata/01070_alter_with_ttl/ast.json | 9 + .../ast.json | 9 + .../testdata/01070_h3_get_base_cell/ast.json | 17 + parser/testdata/01070_h3_hex_area_m2/ast.json | 17 + .../01070_h3_indexes_are_neighbors/ast.json | 21 + parser/testdata/01070_h3_to_children/ast.json | 21 + parser/testdata/01070_h3_to_parent/ast.json | 21 + parser/testdata/01070_h3_to_string/ast.json | 17 + .../testdata/01070_materialize_ttl/ast.json | 11 + parser/testdata/01070_modify_ttl/ast.json | 11 + .../01070_modify_ttl_recalc_only/ast.json | 11 + .../ast.json | 9 + parser/testdata/01070_string_to_h3/ast.json | 17 + .../ast.json | 21 + .../ast.json | 11 + parser/testdata/01071_in_array/ast.json | 38 + .../ast.json | 11 + .../ast.json | 10 + .../ast.json | 9 + parser/testdata/01072_nullable_jit/ast.json | 11 + .../ast.json | 9 + .../01072_select_constant_limit/ast.json | 28 + .../01073_attach_if_not_exists/ast.json | 14 + .../01073_bad_alter_partition/ast.json | 9 + .../01073_blockSerializedSize/ast.json | 21 + .../testdata/01073_crlf_end_of_line/ast.json | 9 + .../01073_show_tables_not_like/ast.json | 4 + parser/testdata/01074_h3_range_check/ast.json | 17 + .../testdata/01074_partial_revokes/ast.json | 4 + .../01075_allowed_client_hosts/ast.json | 15 + parser/testdata/01075_in_arrays_enmk/ast.json | 29 + .../ast.json | 11 + .../ast.json | 9 + .../01076_range_reader_segfault/ast.json | 9 + .../01077_yet_another_prewhere_test/ast.json | 9 + .../ast.json | 9 + .../01078_merge_tree_read_one_thread/ast.json | 9 + .../ast.json | 9 + .../ast.json | 52 + .../01079_new_range_reader_segfault/ast.json | 9 + parser/testdata/01079_order_by_pk/ast.json | 9 + .../ast.json | 22 + .../ast.json | 9 + parser/testdata/01080_join_get_null/ast.json | 9 + .../ast.json | 9 + parser/testdata/01081_demangle/ast.json | 11 + .../01081_keywords_formatting/ast.json | 23 + .../01082_bit_test_out_of_bound/ast.json | 12 + .../ast.json | 9 + .../01083_cross_to_inner_with_in_bug/ast.json | 9 + .../01083_cross_to_inner_with_like/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../01083_log_first_column_alias/ast.json | 9 + .../testdata/01083_match_zero_byte/ast.json | 21 + .../01084_defaults_on_aliases/ast.json | 9 + .../ast.json | 136 + .../testdata/01085_extract_all_empty/ast.json | 21 + parser/testdata/01086_modulo_or_zero/ast.json | 28 + .../testdata/01087_index_set_ubsan/ast.json | 9 + .../testdata/01087_storage_generate/ast.json | 9 + .../ast.json | 94 + .../01089_alter_settings_old_format/ast.json | 9 + .../01090_fixed_string_bit_ops/ast.json | 62 + .../ast.json | 10 + .../01091_insert_with_default_json/ast.json | 9 + parser/testdata/01091_num_threads/ast.json | 11 + .../ast.json | 18 + .../testdata/01092_memory_profiler/ast.json | 11 + .../01093_cyclic_defaults_filimonov/ast.json | 104 + .../testdata/01095_tpch_like_smoke/ast.json | 9 + .../01096_block_serialized_state/ast.json | 31 + parser/testdata/01096_zeros/ast.json | 38 + .../testdata/01097_cyclic_defaults/ast.json | 9 + .../01097_one_more_range_reader_test/ast.json | 9 + .../ast.json | 9 + parser/testdata/01097_pre_limit/ast.json | 37 + parser/testdata/01098_sum/ast.json | 41 + .../ast.json | 29 + .../ast.json | 11 + .../testdata/01100_split_by_string/ast.json | 21 + .../01101_literal_column_clash/ast.json | 88 + .../01101_prewhere_after_alter/ast.json | 9 + .../01102_distributed_local_in_bug/ast.json | 9 + .../ast.json | 5 + .../01104_distributed_numbers_test/ast.json | 103 + .../01104_distributed_one_test/ast.json | 9 + .../testdata/01104_fixed_string_like/ast.json | 50 + parser/testdata/01105_string_like/ast.json | 32 + .../01106_const_fixed_string_like/ast.json | 30 + .../01107_join_right_table_totals/ast.json | 9 + .../testdata/01109_exchange_tables/ast.json | 11 + .../01109_inflating_cross_join/ast.json | 11 + .../ast.json | 233 + .../ast.json | 5 + .../01112_check_table_with_index/ast.json | 11 + .../01114_alter_modify_compact_parts/ast.json | 9 + .../01114_clear_column_compact_parts/ast.json | 9 + .../ast.json | 11 + .../ast.json | 5 + .../01115_join_with_dictionary/ast.json | 9 + .../01115_prewhere_array_join/ast.json | 9 + .../01116_asof_join_dolbyzerr/ast.json | 24 + .../01116_cross_count_asterisks/ast.json | 93 + .../01117_comma_and_others_join_mix/ast.json | 11 + parser/testdata/01118_is_constant/ast.json | 17 + .../ast.json | 9 + .../01121_remote_scalar_subquery/ast.json | 45 + .../ast.json | 9 + .../ast.json | 26 + parser/testdata/01124_view_bad_types/ast.json | 9 + .../01125_dict_ddl_cannot_add_column/ast.json | 33 + .../01125_generate_random_qoega/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../01128_generate_random_nested/ast.json | 9 + .../testdata/01131_max_rows_to_sort/ast.json | 11 + .../testdata/01132_max_rows_to_read/ast.json | 9 + .../01134_max_rows_to_group_by/ast.json | 11 + .../testdata/01134_set_overflow_mode/ast.json | 11 + .../ast.json | 10 + parser/testdata/01136_multiple_sets/ast.json | 9 + parser/testdata/01137_order_by_func/ast.json | 9 + .../01137_order_by_func_final/ast.json | 9 + parser/testdata/01137_sample_final/ast.json | 9 + .../ast.json | 9 + .../testdata/01139_asof_join_types/ast.json | 93 + .../ast.json | 9 + .../testdata/01141_join_get_negative/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../01142_with_ties_and_aliases/ast.json | 93 + .../01143_trivial_count_with_join/ast.json | 9 + .../ast.json | 9 + .../01144_multiword_data_types/ast.json | 9 + .../01147_partial_merge_full_join/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/01152_cross_replication/ast.json | 5 + parser/testdata/01153_attach_mv_uuid/ast.json | 9 + .../ast.json | 11 + parser/testdata/01157_replace_table/ast.json | 9 + .../01158_zookeeper_log_long/ast.json | 11 + .../ast.json | 56 + .../ast.json | 26 + .../01164_alter_memory_database/ast.json | 5 + .../01165_lost_part_empty_partition/ast.json | 11 + .../ast.json | 9 + .../01172_transaction_counters/ast.json | 9 + .../ast.json | 9 + .../01177_group_array_moving/ast.json | 90 + .../01181_db_atomic_drop_on_cluster/ast.json | 10 + .../ast.json | 11 + .../01185_create_or_replace_table/ast.json | 9 + .../01186_conversion_to_nullable/ast.json | 55 + .../ast.json | 9 + .../testdata/01191_rename_dictionary/ast.json | 5 + parser/testdata/01197_summing_enum/ast.json | 9 + parser/testdata/01198_plus_inf/ast.json | 44 + .../ast.json | 18 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../01202_arrayROCAUC_special/ast.json | 21 + parser/testdata/01210_drop_view/ast.json | 9 + .../ast.json | 11 + .../01213_alter_rename_column/ast.json | 9 + .../01213_alter_rename_compact_part/ast.json | 9 + .../01213_alter_rename_nested/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01213_alter_table_rename_nested/ast.json | 9 + .../ast.json | 20 + .../testdata/01213_point_in_Myanmar/ast.json | 1461 ++++ parser/testdata/01214_point_in_Mecca/ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/01221_system_settings/ast.json | 33 + parser/testdata/01222_system_codecs/ast.json | 30 + parser/testdata/01223_dist_on_dist/ast.json | 9 + .../01224_no_superfluous_dict_reload/ast.json | 11 + .../01225_drop_dictionary_as_table/ast.json | 21 + .../ast.json | 11 + .../01226_dist_on_dist_global_in/ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/01230_join_get_truncate/ast.json | 9 + .../ast.json | 11 + .../01231_log_queries_min_type/ast.json | 11 + .../testdata/01231_markdown_format/ast.json | 9 + .../testdata/01231_operator_null_in/ast.json | 9 + parser/testdata/01232_extremes/ast.json | 11 + parser/testdata/01232_untuple/ast.json | 11 + .../01234_to_string_monotonic/ast.json | 11 + parser/testdata/01236_graphite_mt/ast.json | 9 + .../testdata/01240_join_get_or_null/ast.json | 9 + .../ast.json | 11 + .../ast.json | 73 + .../01245_limit_infinite_sources/ast.json | 122 + .../01246_extractAllGroupsHorizontal/ast.json | 11 + .../01246_extractAllGroupsVertical/ast.json | 11 + .../01246_finalize_aggregation_race/ast.json | 9 + .../01246_least_greatest_generic/ast.json | 21 + .../ast.json | 11 + .../ast.json | 57 + .../01248_least_greatest_mixed_const/ast.json | 61 + .../ast.json | 11 + .../01251_dict_is_in_infinite_loop/ast.json | 5 + .../testdata/01251_string_comparison/ast.json | 24 + .../testdata/01252_weird_time_zone/ast.json | 46 + .../ast.json | 9 + .../01254_array_of_unnamed_tuples/ast.json | 9 + .../01254_dict_create_without_db/ast.json | 21 + .../ast.json | 21 + .../testdata/01255_geo_types_livace/ast.json | 9 + .../01256_negative_generate_random/ast.json | 38 + .../01257_dictionary_mismatch_types/ast.json | 5 + .../ast.json | 11 + .../testdata/01259_datetime64_ubsan/ast.json | 17 + .../ast.json | 34 + .../01260_ubsan_decimal_parse/ast.json | 29 + .../ast.json | 21 + .../01262_low_cardinality_remove/ast.json | 9 + .../ast.json | 9 + .../testdata/01264_nested_baloo_bear/ast.json | 9 + .../ast.json | 9 + .../01266_default_prewhere_reqq/ast.json | 9 + .../ast.json | 9 + .../01268_DateTime64_in_WHERE/ast.json | 52 + .../01268_data_numeric_parameters/ast.json | 9 + .../01268_dictionary_direct_layout/ast.json | 5 + .../01268_mergine_sorted_limit/ast.json | 9 + parser/testdata/01268_mv_scalars/ast.json | 9 + .../testdata/01268_shard_avgweighted/ast.json | 15 + .../01269_alias_type_differs/ast.json | 9 + .../testdata/01269_create_with_null/ast.json | 9 + .../testdata/01269_toStartOfSecond/ast.json | 17 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../01272_offset_without_limit/ast.json | 9 + .../testdata/01272_suspicious_codecs/ast.json | 9 + .../01272_totals_and_filter_bug/ast.json | 81 + parser/testdata/01273_extractGroups/ast.json | 11 + .../01273_h3EdgeAngle_range_check/ast.json | 17 + .../01273_lc_fixed_string_field/ast.json | 62 + .../ast.json | 11 + .../ast.json | 9 + .../01275_extract_groups_check/ast.json | 21 + .../ast.json | 9 + parser/testdata/01276_random_string/ast.json | 136 + .../testdata/01276_system_licenses/ast.json | 30 + .../ast.json | 9 + .../ast.json | 9 + .../01277_buffer_column_order/ast.json | 9 + .../01277_fromUnixTimestamp64/ast.json | 11 + .../01277_random_fixed_string/ast.json | 17 + .../testdata/01277_toUnixTimestamp64/ast.json | 11 + .../01278_alter_rename_combination/ast.json | 9 + .../01278_random_string_utf8/ast.json | 17 + .../01278_variance_nonnegative/ast.json | 34 + parser/testdata/01279_dist_group_by/ast.json | 9 + .../testdata/01280_min_map_max_map/ast.json | 100 + parser/testdata/01280_null_in/ast.json | 26 + .../01280_opencl_bitonic_order_by/ast.json | 53 + .../01280_unicode_whitespaces_lexer/ast.json | 12 + .../ast.json | 9 + .../01281_join_with_prewhere_fix/ast.json | 9 + .../01281_parseDateTime64BestEffort/ast.json | 11 + parser/testdata/01281_sum_nullable/ast.json | 40 + .../ast.json | 9 + .../01282_system_parts_ttl_info/ast.json | 9 + .../ast.json | 9 + .../testdata/01283_strict_resize_bug/ast.json | 9 + parser/testdata/01284_fuzz_bits/ast.json | 26 + .../01284_view_and_extremes_bug/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../01286_constraints_on_default/ast.json | 9 + .../01287_max_execution_speed/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../01290_empty_array_index_analysis/ast.json | 9 + .../ast.json | 11 + .../01291_aggregation_in_order/ast.json | 9 + .../ast.json | 9 + parser/testdata/01291_geo_types/ast.json | 9 + .../ast.json | 16 + parser/testdata/01292_create_user/ast.json | 30 + .../ast.json | 9 + .../01292_quantile_array_bug/ast.json | 37 + parser/testdata/01293_create_role/ast.json | 33 + .../01293_pretty_max_value_width/ast.json | 25 + .../01293_system_distribution_queue/ast.json | 11 + .../01294_create_settings_profile/ast.json | 36 + .../ast.json | 5 + .../01295_aggregation_bug_11413/ast.json | 80 + .../testdata/01295_create_row_policy/ast.json | 36 + .../01296_codecs_bad_arguments/ast.json | 9 + .../ast.json | 21 + parser/testdata/01296_pipeline_stuck/ast.json | 9 + .../testdata/01297_alter_distributed/ast.json | 9 + parser/testdata/01298_alter_merge/ast.json | 9 + .../testdata/01299_alter_merge_tree/ast.json | 9 + .../01300_group_by_other_keys/ast.json | 11 + .../01300_group_by_other_keys_having/ast.json | 11 + parser/testdata/01300_read_wkt/ast.json | 17 + .../ast.json | 9 + .../testdata/01305_buffer_final_bug/ast.json | 9 + .../01305_nullable-prewhere_bug/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../testdata/01310_enum_comparison/ast.json | 37 + .../ast.json | 37 + .../01312_case_insensitive_regexp/ast.json | 21 + .../ast.json | 11 + .../ast.json | 17 + .../01314_position_in_system_columns/ast.json | 9 + .../ast.json | 53 + .../01318_alter_add_column_exists/ast.json | 9 + parser/testdata/01318_decrypt/ast.json | 11 + parser/testdata/01318_encrypt/ast.json | 11 + .../01318_map_add_map_subtract/ast.json | 9 + .../ast.json | 9 + .../01318_map_populate_series/ast.json | 9 + .../01318_parallel_final_stuck/ast.json | 9 + .../ast.json | 9 + .../testdata/01319_mv_constants_bug/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../01322_cast_keep_nullable/ast.json | 11 + .../01323_add_scalars_in_time/ast.json | 11 + .../ast.json | 11 + parser/testdata/01323_if_with_nulls/ast.json | 53 + .../ast.json | 11 + .../01323_too_many_threads_bug/ast.json | 9 + .../ast.json | 11 + parser/testdata/01324_insert_tsv_raw/ast.json | 9 + .../01324_settings_documentation/ast.json | 12 + .../01325_freeze_mutation_stuck/ast.json | 9 + parser/testdata/01326_build_id/ast.json | 23 + .../ast.json | 41 + parser/testdata/01326_hostname_alias/ast.json | 17 + .../ast.json | 28 + .../01328_bad_peephole_optimization/ast.json | 58 + .../ast.json | 24 + .../ast.json | 50 + .../01332_join_type_syntax_position/ast.json | 51 + .../01333_select_abc_asterisk/ast.json | 9 + .../01338_sha256_fixedstring/ast.json | 22 + .../01338_uuid_without_separator/ast.json | 17 + parser/testdata/01340_datetime64_fpe/ast.json | 31 + .../01341_datetime64_wrong_supertype/ast.json | 39 + .../01343_min_bytes_to_use_mmap_io/ast.json | 9 + .../01344_alter_enum_partition_key/ast.json | 9 + .../ast.json | 9 + .../01345_array_join_LittleMaverick/ast.json | 9 + .../01345_index_date_vs_datetime/ast.json | 9 + .../ast.json | 11 + .../01346_array_join_mrxotey/ast.json | 9 + .../01347_partition_date_vs_datetime/ast.json | 9 + .../01349_mutation_datetime_key/ast.json | 9 + .../01350_intdiv_nontrivial_fpe/ast.json | 24 + .../ast.json | 11 + .../testdata/01353_neighbor_overflow/ast.json | 11 + parser/testdata/01353_nullable_tuple/ast.json | 12 + .../ast.json | 80 + .../01355_alter_column_with_order/ast.json | 9 + .../testdata/01355_if_fixed_string/ast.json | 11 + parser/testdata/01355_ilike/ast.json | 19 + .../01356_initialize_aggregation/ast.json | 74 + parser/testdata/01356_state_resample/ast.json | 61 + parser/testdata/01356_view_threads/ast.json | 9 + .../01356_wrong_filter-type_bug/ast.json | 9 + parser/testdata/01357_result_rows/ast.json | 11 + .../ast.json | 9 + .../01358_constexpr_constraint/ast.json | 53 + .../01358_mutation_delete_null_rows/ast.json | 12 + .../testdata/01358_union_threads_bug/ast.json | 11 + parser/testdata/01359_codeql/ast.json | 82 + .../testdata/01360_division_overflow/ast.json | 31 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 26 + .../ast.json | 30 + .../01372_wrong_order_by_removal/ast.json | 24 + .../testdata/01373_is_zero_or_null/ast.json | 80 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 65 + .../01375_compact_parts_codecs/ast.json | 9 + .../testdata/01375_null_issue_3767/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 56 + .../testdata/01376_array_fill_empty/ast.json | 34 + parser/testdata/01376_null_logical/ast.json | 19 + .../01377_supertype_low_cardinality/ast.json | 29 + .../ast.json | 9 + parser/testdata/01380_nullable_state/ast.json | 33 + .../01381_for_each_with_states/ast.json | 36 + .../ast.json | 5 + .../01384_bloom_filter_bad_arguments/ast.json | 9 + parser/testdata/01385_not_function/ast.json | 22 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/01388_clear_all_columns/ast.json | 9 + .../01388_multi_if_optimization/ast.json | 11 + .../01389_filter_by_virtual_columns/ast.json | 49 + .../testdata/01390_check_table_codec/ast.json | 11 + .../01390_remove_injective_in_uniq/ast.json | 11 + .../01391_join_on_dict_crash/ast.json | 20 + parser/testdata/01391_limit_overflow/ast.json | 47 + .../ast.json | 9 + .../ast.json | 27 + .../testdata/01397_in_bad_arguments/ast.json | 34 + parser/testdata/01398_in_tuple_func/ast.json | 50 + .../01400_join_get_with_multi_keys/ast.json | 9 + .../ast.json | 11 + .../01403_datetime64_constant_arg/ast.json | 69 + .../ast.json | 62 + parser/testdata/01408_range_overflow/ast.json | 32 + parser/testdata/01409_topK_merge/ast.json | 9 + .../ast.json | 9 + .../01410_nullable_key_and_index/ast.json | 9 + .../ast.json | 9 + parser/testdata/01411_from_unixtime/ast.json | 30 + .../testdata/01411_xor_itai_shirav/ast.json | 21 + .../01412_group_array_moving_shard/ast.json | 49 + parser/testdata/01412_mod_float/ast.json | 88 + .../01412_optimize_deduplicate_bug/ast.json | 9 + .../testdata/01412_row_from_totals/ast.json | 9 + .../01413_allow_non_metadata_alters/ast.json | 9 + .../01413_alter_update_supertype/ast.json | 9 + parser/testdata/01413_if_array_uuid/ast.json | 77 + parser/testdata/01413_rows_events/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01414_low_cardinality_nullable/ast.json | 11 + .../01414_mutations_and_errors/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../01415_table_function_view/ast.json | 36 + .../testdata/01416_clear_column_pk/ast.json | 9 + .../01416_join_totals_header_bug/ast.json | 9 + .../01417_update_permutation_crash/ast.json | 64 + .../testdata/01418_custom_settings/ast.json | 12 + .../01418_index_analysis_bug/ast.json | 9 + .../ast.json | 68 + .../testdata/01419_materialize_null/ast.json | 17 + .../ast.json | 9 + .../01419_skip_index_compact_parts/ast.json | 9 + .../ast.json | 19 + .../ast.json | 32 + parser/testdata/01422_map_skip_null/ast.json | 69 + .../01424_parse_date_time_bad_date/ast.json | 17 + .../ast.json | 29 + .../ast.json | 9 + parser/testdata/01428_h3_range_check/ast.json | 21 + .../01428_nullable_asof_join/ast.json | 11 + .../01429_join_on_error_messages/ast.json | 73 + .../01430_fix_any_rewrite_aliases/ast.json | 71 + .../ast.json | 9 + .../01430_moving_sum_empty_state/ast.json | 49 + .../01431_finish_sorting_with_consts/ast.json | 9 + .../ast.json | 21 + parser/testdata/01433_hex_float/ast.json | 12 + parser/testdata/01435_lcm_overflow/ast.json | 21 + .../ast.json | 9 + parser/testdata/01440_big_int_arithm/ast.json | 82 + .../01440_big_int_exotic_casts/ast.json | 119 + parser/testdata/01440_big_int_shift/ast.json | 90 + .../01440_to_date_monotonicity/ast.json | 9 + .../testdata/01441_array_combinator/ast.json | 65 + .../ast.json | 11 + .../01442_date_time_with_params/ast.json | 9 + .../01442_h3kring_range_check/ast.json | 21 + parser/testdata/01447_json_strings/ast.json | 11 + .../ast.json | 9 + .../01449_json_compact_strings/ast.json | 11 + parser/testdata/01450_set_null_const/ast.json | 9 + .../testdata/01451_detach_drop_part/ast.json | 9 + .../testdata/01451_normalize_query/ast.json | 17 + .../ast.json | 11 + .../ast.json | 11 + .../01452_normalized_query_hash/ast.json | 29 + .../01453_fixsed_string_sort/ast.json | 9 + .../01455_default_compression/ast.json | 9 + .../ast.json | 11 + .../ast.json | 32 + .../01455_rank_correlation_spearman/ast.json | 5 + .../ast.json | 11 + parser/testdata/01455_time_zones/ast.json | 56 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 24 + .../ast.json | 9 + .../01457_compile_expressions_fuzzer/ast.json | 11 + .../ast.json | 11 + parser/testdata/01457_int256_hashing/ast.json | 11 + .../ast.json | 9 + parser/testdata/01457_order_by_limit/ast.json | 9 + .../01457_order_by_nulls_first/ast.json | 9 + parser/testdata/01458_count_digits/ast.json | 170 + .../01458_is_decimal_overflow/ast.json | 74 + .../01458_named_tuple_millin/ast.json | 9 + parser/testdata/01459_decimal_casts/ast.json | 92 + .../ast.json | 16 + .../ast.json | 20 + .../ast.json | 9 + .../01461_alter_table_function/ast.json | 9 + .../ast.json | 11 + .../01462_test_codec_on_alias/ast.json | 9 + .../testdata/01463_resample_overflow/ast.json | 62 + .../testdata/01465_ttl_recompression/ast.json | 9 + .../01470_columns_transformers/ast.json | 9 + .../01470_columns_transformers2/ast.json | 9 + .../01470_show_databases_like/ast.json | 5 + .../ast.json | 9 + .../01471_calculate_ttl_during_merge/ast.json | 9 + .../testdata/01471_top_k_range_check/ast.json | 52 + .../01472_many_rows_in_totals/ast.json | 11 + .../ast.json | 30 + .../01473_event_time_microseconds/ast.json | 11 + .../01473_system_events_zeroes/ast.json | 11 + .../testdata/01474_bad_global_join/ast.json | 9 + .../testdata/01474_decimal_scale_bug/ast.json | 50 + .../01474_executable_dictionary/ast.json | 100 + .../testdata/01475_fix_bigint_shift/ast.json | 29 + .../testdata/01475_mutation_with_if/ast.json | 9 + .../testdata/01475_read_subcolumns/ast.json | 11 + .../testdata/01475_read_subcolumns_2/ast.json | 9 + .../testdata/01475_read_subcolumns_3/ast.json | 9 + .../01476_right_full_join_switch/ast.json | 11 + .../testdata/01479_cross_join_9855/ast.json | 11 + .../ast.json | 9 + .../01481_join_with_materialized/ast.json | 9 + .../01482_move_to_prewhere_and_cast/ast.json | 9 + .../ast.json | 9 + .../testdata/01485_256_bit_multiply/ast.json | 11 + .../testdata/01486_json_array_output/ast.json | 11 + .../01490_nullable_string_to_enum/ast.json | 9 + .../01492_array_join_crash_13829/ast.json | 126 + .../ast.json | 9 + .../01493_alter_remove_properties/ast.json | 9 + .../ast.json | 9 + .../01493_alter_remove_wrong_default/ast.json | 9 + .../01493_storage_set_persistency/ast.json | 9 + .../01493_table_function_null/ast.json | 37 + .../01494_storage_join_persistency/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01497_alias_on_default_array/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/01499_json_named_tuples/ast.json | 78 + parser/testdata/01499_log_deadlock/ast.json | 9 + .../ast.json | 5 + parser/testdata/01502_bar_overflow/ast.json | 91 + .../01503_fixed_string_primary_key/ast.json | 9 + .../01503_if_const_optimization/ast.json | 37 + .../ast.json | 9 + parser/testdata/01504_rocksdb/ast.json | 9 + .../01504_view_type_conversion/ast.json | 9 + .../ast.json | 9 + .../01505_log_distributed_deadlock/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01506_ttl_same_with_order_by/ast.json | 9 + .../ast.json | 9 + .../testdata/01507_transform_null_in/ast.json | 11 + parser/testdata/01508_explain_header/ast.json | 11 + .../ast.json | 11 + .../ast.json | 10 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01511_prewhere_with_virtuals/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/01513_ilike_like_cache/ast.json | 18 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01514_parallel_formatting/ast.json | 9 + parser/testdata/01514_tid_function/ast.json | 16 + .../ast.json | 9 + .../ast.json | 44 + .../ast.json | 11 + .../01516_create_table_primary_key/ast.json | 11 + .../01516_date_time_output_format/ast.json | 9 + .../01517_drop_mv_with_inner_table/ast.json | 11 + .../01517_select_final_distributed/ast.json | 11 + .../ast.json | 41 + .../ast.json | 9 + .../01518_nullable_aggregate_states2/ast.json | 9 + parser/testdata/01518_select_in_null/ast.json | 9 + .../ast.json | 15 + .../ast.json | 9 + .../01521_distributed_query_hang/ast.json | 11 + .../ast.json | 69 + .../01521_global_in_prewhere_15792/ast.json | 9 + .../testdata/01521_max_length_alias/ast.json | 9 + .../01522_validate_alter_default/ast.json | 9 + .../ast.json | 9 + .../ast.json | 15 + .../ast.json | 9 + .../ast.json | 48 + .../ast.json | 9 + .../ast.json | 5 + .../01527_bad_aggregation_in_lambda/ast.json | 45 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../01528_to_uuid_or_null_or_zero/ast.json | 9 + .../ast.json | 12 + .../01530_drop_database_atomic_sync/ast.json | 6 + .../01531_query_log_query_comment/ast.json | 11 + .../01532_collate_in_low_cardinality/ast.json | 9 + .../ast.json | 10 + .../01532_having_with_totals/ast.json | 9 + .../01532_min_max_with_modifiers/ast.json | 12 + .../ast.json | 10 + .../01532_tuple_with_name_type/ast.json | 9 + .../01533_collate_in_nullable/ast.json | 9 + .../ast.json | 9 + .../01533_distinct_nullable_uuid/ast.json | 9 + .../testdata/01533_multiple_nested/ast.json | 9 + .../ast.json | 9 + .../ast.json | 54 + .../01533_sum_if_nullable_bug/ast.json | 9 + .../testdata/01534_lambda_array_join/ast.json | 69 + .../ast.json | 33 + parser/testdata/01536_fuzz_cast/ast.json | 11 + .../testdata/01537_fuzz_count_equal/ast.json | 122 + .../01540_verbatim_partition_pruning/ast.json | 9 + .../testdata/01542_collate_in_array/ast.json | 9 + .../testdata/01543_collate_in_tuple/ast.json | 9 + .../ast.json | 17 + .../01543_toModifiedJulianDay/ast.json | 12 + .../testdata/01544_errorCodeToName/ast.json | 25 + .../01544_fromModifiedJulianDay/ast.json | 12 + .../01545_url_file_format_settings/ast.json | 11 + .../ast.json | 11 + .../01547_query_log_current_database/ast.json | 11 + parser/testdata/01548_lzy305/ast.json | 9 + .../ast.json | 9 + .../01548_with_totals_having/ast.json | 56 + .../ast.json | 9 + .../01549_low_cardinality_mv_fuzz/ast.json | 11 + .../testdata/01550_create_map_type/ast.json | 9 + .../testdata/01550_mutation_subquery/ast.json | 9 + .../testdata/01550_type_map_formats/ast.json | 11 + parser/testdata/01551_context_uaf/ast.json | 9 + .../ast.json | 9 + .../01552_alter_name_collision/ast.json | 9 + .../testdata/01552_dict_fixedstring/ast.json | 9 + .../01552_impl_aggfunc_cloneresize/ast.json | 9 + .../01553_datetime64_comparison/ast.json | 42 + .../01553_settings_early_apply/ast.json | 11 + .../ast.json | 54 + .../01554_interpreter_integer_float/ast.json | 22 + .../ast.json | 11 + .../01556_accurate_cast_or_null/ast.json | 24 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/01558_transform_null_in/ast.json | 11 + parser/testdata/01558_ttest/ast.json | 9 + .../ast.json | 105 + .../ast.json | 17 + .../01560_crash_in_agg_empty_arglist/ast.json | 12 + parser/testdata/01560_mann_whitney/ast.json | 9 + .../01560_merge_distributed_join/ast.json | 9 + .../01560_optimize_on_insert_long/ast.json | 12 + .../ast.json | 9 + .../ast.json | 11 + .../01562_agg_null_for_empty_ahead/ast.json | 64 + .../testdata/01566_negate_formatting/ast.json | 11 + .../ast.json | 37 + .../ast.json | 55 + .../testdata/01571_window_functions/ast.json | 58 + .../ast.json | 5 + .../01576_alias_column_rewrite/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../01580_column_const_comparision/ast.json | 45 + .../ast.json | 10 + .../01582_any_join_supertype/ast.json | 9 + .../01582_distinct_subquery_groupby/ast.json | 9 + .../ast.json | 11 + .../01583_const_column_in_set_index/ast.json | 9 + .../ast.json | 9 + .../01585_fuzz_bits_with_bugfix/ast.json | 43 + .../01585_use_index_for_global_in/ast.json | 11 + .../ast.json | 9 + .../testdata/01586_columns_pruning/ast.json | 11 + .../ast.json | 10 + .../ast.json | 38 + .../testdata/01590_countSubstrings/ast.json | 12 + .../testdata/01591_window_functions/ast.json | 11 + parser/testdata/01592_length_map/ast.json | 34 + .../01592_long_window_functions1/ast.json | 11 + .../01592_toUnixTimestamp_Date/ast.json | 30 + .../testdata/01592_window_functions/ast.json | 9 + .../testdata/01593_insert_settings/ast.json | 9 + .../testdata/01594_storage_join_uuid/ast.json | 9 + parser/testdata/01595_countMatches/ast.json | 11 + .../testdata/01596_full_join_chertus/ast.json | 234 + .../01596_null_as_default_nullable/ast.json | 11 + .../01596_setting_limit_offset/ast.json | 9 + .../01598_memory_limit_zeros/ast.json | 25 + parser/testdata/01600_encode_XML/ast.json | 17 + .../ast.json | 9 + .../ast.json | 60 + .../ast.json | 11 + .../01600_select_in_different_types/ast.json | 26 + parser/testdata/01601_accurate_cast/ast.json | 24 + .../01601_detach_permanently/ast.json | 11 + .../testdata/01602_array_aggregation/ast.json | 46 + .../ast.json | 9 + .../01602_runningConcurrency/ast.json | 12 + .../ast.json | 10 + .../01603_decimal_mult_float/ast.json | 11 + .../ast.json | 9 + .../01603_read_with_backoff_bug/ast.json | 11 + .../testdata/01603_remove_column_ttl/ast.json | 9 + .../01603_rename_overwrite_bug/ast.json | 11 + .../ast.json | 11 + .../01605_dictinct_two_level/ast.json | 11 + .../01605_key_condition_enum_int/ast.json | 9 + .../01605_skip_idx_compact_parts/ast.json | 9 + .../01606_merge_from_wide_to_compact/ast.json | 9 + .../ast.json | 9 + .../01615_random_one_shard_insertion/ast.json | 5 + .../ast.json | 9 + .../01616_untuple_access_field/ast.json | 45 + .../01620_fix_simple_state_arg_type/ast.json | 9 + parser/testdata/01621_decode_XML/ast.json | 17 + .../ast.json | 11 + .../01621_summap_check_types/ast.json | 56 + parser/testdata/01622_byte_size/ast.json | 12 + .../testdata/01622_codec_zstd_long/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../01622_defaults_for_file_engine/ast.json | 22 + parser/testdata/01622_multiple_ttls/ast.json | 12 + .../testdata/01623_byte_size_const/ast.json | 32 + .../01623_constraints_column_swap/ast.json | 11 + .../01625_constraints_index_append/ast.json | 5 + parser/testdata/01626_cnf_test/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/01632_group_array_msan/ast.json | 96 + .../01632_max_partitions_to_read/ast.json | 9 + .../ast.json | 48 + .../testdata/01632_select_all_syntax/ast.json | 12 + parser/testdata/01633_limit_fuzz/ast.json | 66 + .../testdata/01634_summap_nullable/ast.json | 39 + parser/testdata/01634_uuid_fuzz/ast.json | 20 + parser/testdata/01635_sum_map_fuzz/ast.json | 80 + parser/testdata/01636_nullable_fuzz2/ast.json | 9 + parser/testdata/01637_nullable_fuzz3/ast.json | 9 + .../01638_div_mod_ambiguities/ast.json | 44 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01643_merge_tree_fsync_smoke/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/01646_rewrite_sum_if/ast.json | 11 + .../01646_rewrite_sum_if_bug/ast.json | 9 + .../ast.json | 9 + .../01648_mutations_and_escaping/ast.json | 9 + .../01649_with_alias_key_condition/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/01651_bugs_from_15889/ast.json | 9 + .../01651_lc_insert_tiny_log_1/ast.json | 18 + .../01651_lc_insert_tiny_log_2/ast.json | 18 + .../01651_lc_insert_tiny_log_3/ast.json | 18 + parser/testdata/01651_map_functions/ast.json | 9 + .../01652_ignore_and_low_cardinality/ast.json | 11 + parser/testdata/01652_ttl_old_syntax/ast.json | 9 + .../01653_tuple_hamming_distance_2/ast.json | 31 + .../testdata/01655_agg_if_nullable/ast.json | 49 + .../ast.json | 11 + .../ast.json | 26 + .../01655_test_isnull_mysql_dialect/ast.json | 17 + .../01655_window_functions_cume_dist/ast.json | 11 + .../01656_ipv4_bad_formatting/ast.json | 54 + .../ast.json | 11 + .../01656_sequence_next_node_long/ast.json | 11 + .../01656_test_hex_mysql_dialect/ast.json | 17 + .../ast.json | 11 + .../01657_array_element_ubsan/ast.json | 41 + .../ast.json | 22 + .../ast.json | 17 + parser/testdata/01658_values_ubsan/ast.json | 41 + .../01659_h3_buffer_overflow/ast.json | 31 + .../ast.json | 17 + parser/testdata/01660_join_or_all/ast.json | 11 + parser/testdata/01660_join_or_any/ast.json | 11 + parser/testdata/01660_join_or_inner/ast.json | 11 + .../01660_join_or_subqueries/ast.json | 11 + .../01660_second_extremes_bug/ast.json | 9 + parser/testdata/01660_sum_ubsan/ast.json | 37 + .../01660_system_parts_smoke/ast.json | 26 + .../ast.json | 22 + .../testdata/01661_arraySlice_ubsan/ast.json | 24 + .../ast.json | 62 + .../ast.json | 22 + .../01661_week_functions_string_args/ast.json | 12 + parser/testdata/01662_date_ubsan/ast.json | 30 + parser/testdata/01662_join_mixed/ast.json | 121 + .../ast.json | 22 + parser/testdata/01663_aes_msan/ast.json | 34 + .../01663_quantile_weighted_overflow/ast.json | 45 + .../ast.json | 22 + .../testdata/01664_array_slice_ubsan/ast.json | 91 + .../ast.json | 31 + .../ast.json | 9 + .../01665_running_difference_ubsan/ast.json | 11 + .../testdata/01665_substring_ubsan/ast.json | 46 + .../01666_date_lut_buffer_overflow/ast.json | 49 + parser/testdata/01666_gcd_ubsan/ast.json | 24 + .../ast.json | 56 + parser/testdata/01666_lcm_ubsan/ast.json | 24 + .../01668_test_toMonth_mysql_dialect/ast.json | 22 + .../01669_join_or_duplicates/ast.json | 124 + .../01669_test_toYear_mysql_dialect/ast.json | 22 + .../ast.json | 4 + .../ast.json | 9 + parser/testdata/01670_log_comment/ast.json | 18 + .../testdata/01670_neighbor_lc_bug/ast.json | 11 + parser/testdata/01670_sign_function/ast.json | 17 + .../01670_test_repeat_mysql_dialect/ast.json | 21 + .../ast.json | 11 + .../01671_merge_join_and_constants/ast.json | 11 + .../ast.json | 22 + .../ast.json | 22 + .../ast.json | 22 + .../ast.json | 30 + .../testdata/01674_filter_by_uint8/ast.json | 76 + .../01674_htm_xml_coarse_parse/ast.json | 17 + .../01674_where_prewhere_array_crash/ast.json | 9 + .../ast.json | 6 + .../01676_range_hashed_dictionary/ast.json | 40 + parser/testdata/01676_reinterpret_as/ast.json | 12 + .../testdata/01676_round_int_ubsan/ast.json | 27 + .../01677_array_enumerate_bug/ast.json | 82 + .../01678_great_circle_angle/ast.json | 11 + .../01680_date_time_add_ubsan/ast.json | 119 + .../ast.json | 62 + .../ast.json | 9 + .../ast.json | 5 + .../ast.json | 5 + .../01682_gather_utils_ubsan/ast.json | 37 + .../testdata/01683_codec_encrypted/ast.json | 9 + .../ast.json | 9 + .../testdata/01683_flat_dictionary/ast.json | 5 + parser/testdata/01684_geohash_ubsan/ast.json | 33 + .../01684_insert_specify_shard_id/ast.json | 9 + parser/testdata/01686_rocksdb/ast.json | 9 + .../01690_quantilesTiming_ubsan/ast.json | 45 + .../testdata/01691_DateTime64_clamp/ast.json | 33 + .../01692_DateTime64_from_DateTime/ast.json | 30 + .../01698_map_populate_overflow/ast.json | 35 + parser/testdata/01700_deltasum/ast.json | 35 + .../ast.json | 40 + .../01700_system_zookeeper_path_in/ast.json | 9 + .../ast.json | 9 + .../testdata/01701_if_tuple_segfault/ast.json | 9 + .../01702_bitmap_native_integers/ast.json | 9 + .../ast.json | 12 + .../ast.json | 31 + .../testdata/01702_system_query_log/ast.json | 11 + .../ast.json | 30 + .../ast.json | 42 + .../01704_transform_with_float_key/ast.json | 72 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + parser/testdata/01707_join_use_nulls/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 18 + .../ast.json | 9 + .../ast.json | 9 + .../01710_force_use_projection/ast.json | 9 + .../01710_minmax_count_projection/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01710_normal_projection_fix1/ast.json | 9 + .../01710_normal_projection_format/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01710_projection_array_join/ast.json | 11 + .../01710_projection_detach_part/ast.json | 11 + .../01710_projection_drop_if_exists/ast.json | 9 + .../ast.json | 9 + .../01710_projection_fetch_long/ast.json | 9 + .../ast.json | 9 + .../01710_projection_in_index/ast.json | 11 + .../testdata/01710_projection_in_set/ast.json | 9 + .../ast.json | 9 + .../01710_projection_mutation/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01710_projection_part_check/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01710_projection_row_policy/ast.json | 9 + .../01710_projection_vertical_merges/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01710_projection_with_joins/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/01710_projections/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../testdata/01711_cte_subquery_fix/ast.json | 9 + .../01711_decimal_multiplication/ast.json | 47 + .../ast.json | 9 + .../ast.json | 9 + .../01714_alter_drop_version/ast.json | 9 + .../ast.json | 10 + .../ast.json | 12 + .../01716_decimal_comparison_ubsan/ast.json | 11 + .../01716_drop_rename_sign_column/ast.json | 9 + .../ast.json | 21 + .../01718_subtract_seconds_date/ast.json | 26 + parser/testdata/01719_join_timezone/ast.json | 9 + .../01720_constraints_complex_types/ast.json | 11 + .../ast.json | 5 + .../ast.json | 9 + .../01720_type_map_and_casts/ast.json | 9 + .../01720_union_distinct_with_limit/ast.json | 53 + .../ast.json | 9 + .../01721_dictionary_decimal_p_s/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01732_alters_bad_conversions/ast.json | 9 + parser/testdata/01732_bigint_ubsan/ast.json | 23 + .../ast.json | 29 + .../01732_union_and_union_all/ast.json | 33 + .../01734_datetime64_from_float/ast.json | 28 + .../01735_join_get_low_card_fix/ast.json | 9 + parser/testdata/01735_to_datetime64/ast.json | 49 + .../testdata/01736_null_as_default/ast.json | 9 + .../ast.json | 11 + parser/testdata/01739_index_hint/ast.json | 9 + .../testdata/01745_alter_delete_view/ast.json | 9 + .../01746_convert_type_with_default/ast.json | 26 + .../01746_executable_pool_dictionary/ast.json | 12 + .../01746_extract_text_from_html/ast.json | 17 + .../ast.json | 9 + .../01746_lc_values_format_bug/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 12 + .../ast.json | 9 + .../01747_transform_empty_arrays/ast.json | 176 + .../01748_dictionary_table_dot/ast.json | 5 + .../01748_partition_id_pruning/ast.json | 11 + .../01752_distributed_query_sigsegv/ast.json | 48 + .../ast.json | 5 + .../ast.json | 9 + .../ast.json | 36 + .../ast.json | 5 + .../01755_shard_pruning_with_literal/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 5 + .../ast.json | 61 + .../ast.json | 9 + .../testdata/01760_modulo_negative/ast.json | 38 + .../01760_polygon_dictionaries/ast.json | 5 + .../01760_system_dictionaries/ast.json | 5 + .../ast.json | 9 + .../testdata/01761_round_year_bounds/ast.json | 43 + .../ast.json | 21 + .../01763_filter_push_down_bugs/ast.json | 11 + .../testdata/01763_long_ttl_group_by/ast.json | 9 + .../01763_max_distributed_depth/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 46 + .../01764_table_function_dictionary/ast.json | 9 + .../ast.json | 5 + .../ast.json | 9 + parser/testdata/01765_tehran_dst/ast.json | 30 + .../ast.json | 5 + .../ast.json | 21 + parser/testdata/01768_array_product/ast.json | 12 + parser/testdata/01768_extended_range/ast.json | 30 + .../testdata/01769_extended_range_2/ast.json | 25 + .../testdata/01770_add_months_ubsan/ast.json | 26 + .../testdata/01770_extended_range_3/ast.json | 34 + .../01771_bloom_filter_not_has/ast.json | 9 + .../01771_datetime64_no_time_part/ast.json | 25 + .../01772_intdiv_minus_one_ubsan/ast.json | 51 + .../01772_to_start_of_hour_align/ast.json | 29 + .../01773_case_sensitive_revision/ast.json | 35 + .../01773_case_sensitive_version/ast.json | 35 + .../ast.json | 9 + .../ast.json | 26 + .../01774_ip_address_in_range/ast.json | 12 + .../01774_ip_address_in_range_2/ast.json | 12 + .../01776_decrypt_aead_size_check/ast.json | 29 + .../01777_map_populate_series_ubsan/ast.json | 55 + .../01778_hierarchical_dictionaries/ast.json | 5 + .../testdata/01778_mmap_cache_infra/ast.json | 3 + .../ast.json | 9 + .../01778_where_with_column_name/ast.json | 9 + .../ast.json | 55 + .../ast.json | 5 + parser/testdata/01780_column_sparse/ast.json | 9 + .../01780_column_sparse_alter/ast.json | 11 + .../01780_column_sparse_distinct/ast.json | 11 + .../01780_column_sparse_filter/ast.json | 11 + .../01780_column_sparse_full/ast.json | 9 + .../01780_column_sparse_materialize/ast.json | 9 + .../testdata/01780_column_sparse_pk/ast.json | 9 + .../01780_column_sparse_tuple/ast.json | 9 + .../testdata/01780_dict_get_or_null/ast.json | 9 + parser/testdata/01780_range_msan/ast.json | 26 + .../01781_merge_tree_deduplication/ast.json | 9 + .../ast.json | 32 + parser/testdata/01782_field_oom/ast.json | 11 + .../ast.json | 9 + .../01784_parallel_formatting_memory/ast.json | 11 + .../01785_dictionary_element_count/ast.json | 5 + parser/testdata/01785_pmj_lc_bug/ast.json | 11 + .../01786_group_by_pk_many_streams/ast.json | 9 + .../ast.json | 37 + parser/testdata/01787_map_remote/ast.json | 56 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/01795_TinyLog_rwlock_ub/ast.json | 9 + parser/testdata/01796_Log_rwlock_ub/ast.json | 9 + .../01797_StripeLog_rwlock_ub/ast.json | 9 + .../testdata/01798_having_push_down/ast.json | 9 + .../testdata/01798_uniq_theta_sketch/ast.json | 11 + .../ast.json | 12 + .../01799_long_uniq_theta_sketch/ast.json | 18 + parser/testdata/01800_log_nested/ast.json | 9 + .../ast.json | 9 + .../01801_dateDiff_DateTime64/ast.json | 51 + .../01801_distinct_group_by_shard/ast.json | 78 + parser/testdata/01801_s3_cluster/ast.json | 49 + .../testdata/01801_s3_cluster_count/ast.json | 32 + .../ast.json | 34 + .../ast.json | 9 + .../01802_toDateTime64_large_values/ast.json | 25 + .../01803_const_nullable_map/ast.json | 9 + .../01804_dictionary_decimal256_type/ast.json | 9 + .../ast.json | 9 + parser/testdata/01811_filter_by_null/ast.json | 9 + parser/testdata/01812_has_generic/ast.json | 62 + .../ast.json | 9 + .../01817_storage_buffer_parameters/ast.json | 9 + .../01818_move_partition_simple/ast.json | 9 + .../01820_unhex_case_insensitive/ast.json | 26 + .../ast.json | 9 + .../01821_join_table_mutation/ast.json | 9 + parser/testdata/01821_table_comment/ast.json | 9 + .../01821_to_date_time_ubsan/ast.json | 25 + parser/testdata/01822_short_circuit/ast.json | 11 + .../01822_union_and_constans_error/ast.json | 9 + .../ast.json | 11 + .../01824_prefer_global_in_and_join/ast.json | 5 + .../testdata/01825_new_type_json_10/ast.json | 11 + .../testdata/01825_new_type_json_18/ast.json | 11 + .../testdata/01825_new_type_json_2/ast.json | 11 + .../testdata/01825_new_type_json_9/ast.json | 9 + .../01825_new_type_json_bools/ast.json | 9 + .../01825_new_type_json_distributed/ast.json | 11 + .../01825_new_type_json_ephemeral/ast.json | 11 + .../01825_new_type_json_in_array/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../01825_new_type_json_mutations/ast.json | 9 + .../01825_new_type_json_order_by/ast.json | 11 + .../ast.json | 9 + .../01825_new_type_json_partitions/ast.json | 9 + .../01825_replacing_vertical_merge/ast.json | 11 + parser/testdata/01831_max_streams/ast.json | 41 + .../01832_memory_write_suffix/ast.json | 9 + .../01833_test_collation_alvarotuso/ast.json | 9 + .../ast.json | 9 + .../ast.json | 16 + .../ast.json | 29 + .../ast.json | 5 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01848_partition_value_column/ast.json | 9 + parser/testdata/01849_geoToS2/ast.json | 9 + .../01850_dist_INSERT_preserve_error/ast.json | 5 + .../ast.json | 39 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 107 + parser/testdata/01851_s2_to_geo/ast.json | 17 + .../testdata/01852_cast_operator_4/ast.json | 11 + .../ast.json | 9 + parser/testdata/01852_jit_if/ast.json | 11 + parser/testdata/01852_map_combinator/ast.json | 11 + .../ast.json | 11 + .../testdata/01852_s2_get_neighbours/ast.json | 17 + .../01853_s2_cells_intersect/ast.json | 21 + .../ast.json | 9 + .../testdata/01854_s2_cap_contains/ast.json | 25 + parser/testdata/01854_s2_cap_union/ast.json | 29 + .../ast.json | 11 + .../ast.json | 55 + .../testdata/01861_explain_pipeline/ast.json | 9 + .../01865_aggregator_overflow_row/ast.json | 122 + .../ast.json | 9 + .../01866_bit_positions_to_array/ast.json | 12 + .../ast.json | 55 + .../testdata/01866_split_by_regexp/ast.json | 59 + .../01866_view_persist_settings/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../01869_function_modulo_legacy/ast.json | 21 + .../ast.json | 27 + parser/testdata/01870_buffer_flush/ast.json | 5 + .../01870_modulo_partition_key/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/01880_remote_ipv6/ast.json | 11 + .../ast.json | 9 + .../testdata/01881_create_as_tuple/ast.json | 9 + .../01881_to_week_monotonic_fix/ast.json | 9 + .../01881_total_bytes_storage_buffer/ast.json | 9 + .../01881_union_header_mismatch_bug/ast.json | 109 + .../ast.json | 9 + .../01882_scalar_subquery_exception/ast.json | 9 + .../01883_grouping_sets_crash/ast.json | 9 + .../01883_subcolumns_distributed/ast.json | 9 + .../01883_with_grouping_sets/ast.json | 11 + parser/testdata/01888_read_int_safe/ast.json | 17 + .../ast.json | 11 + .../01889_sql_json_functions/ast.json | 12 + parser/testdata/01889_tokenize/ast.json | 11 + .../01890_cross_join_explain_crash/ast.json | 11 + .../ast.json | 11 + parser/testdata/01890_state_of_state/ast.json | 64 + parser/testdata/01890_stem/ast.json | 11 + parser/testdata/01891_echo/ast.json | 12 + .../ast.json | 11 + .../01891_not_in_partition_prune/ast.json | 9 + .../01891_not_like_partition_prune/ast.json | 9 + .../testdata/01891_partition_by_uuid/ast.json | 9 + parser/testdata/01891_partition_hash/ast.json | 9 + .../01891_partition_hash_no_long_int/ast.json | 9 + .../ast.json | 11 + .../ast.json | 72 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../01901_in_literal_shard_prune/ast.json | 11 + .../01901_test_attach_partition_from/ast.json | 9 + .../01902_dictionary_array_type/ast.json | 9 + .../01902_self_aliases_in_columns/ast.json | 31 + .../ast.json | 5 + .../ast.json | 11 + .../ast.json | 9 + parser/testdata/01906_h3_to_geo/ast.json | 9 + parser/testdata/01906_lc_in_bug/ast.json | 9 + .../ast.json | 9 + .../testdata/01907_multiple_aliases/ast.json | 9 + .../01908_with_unknown_column/ast.json | 123 + parser/testdata/01909_mbtolou/ast.json | 9 + .../01910_memory_tracking_topk/ast.json | 11 + .../testdata/01910_view_dictionary/ast.json | 9 + .../ast.json | 9 + .../01911_logical_error_minus/ast.json | 11 + .../01913_exact_rows_before_limit/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/01913_if_int_decimal/ast.json | 69 + .../01913_join_push_down_bug/ast.json | 9 + .../01913_replace_dictionary/ast.json | 5 + .../ast.json | 9 + .../01914_exchange_dictionaries/ast.json | 5 + parser/testdata/01914_index_bgranvea/ast.json | 9 + .../ast.json | 5 + .../01915_json_extract_raw_string/ast.json | 21 + .../ast.json | 9 + .../01916_low_cardinality_interval/ast.json | 22 + .../testdata/01916_lowcard_dict_type/ast.json | 9 + .../ast.json | 9 + .../01917_prewhere_column_type/ast.json | 11 + .../ast.json | 9 + .../testdata/01920_not_chain_format/ast.json | 11 + .../testdata/01921_datatype_date32/ast.json | 9 + parser/testdata/01921_not_chain/ast.json | 22 + .../01922_array_join_with_index/ast.json | 9 + .../01922_sum_null_for_remote/ast.json | 42 + .../ast.json | 9 + .../01923_ttl_with_modify_column/ast.json | 9 + .../01924_argmax_bitmap_state/ast.json | 106 + .../ast.json | 9 + .../01925_date_date_time_comparison/ast.json | 33 + .../ast.json | 11 + .../01925_join_materialized_columns/ast.json | 9 + .../ast.json | 9 + .../01925_map_populate_series_on_map/ast.json | 9 + .../01925_merge_prewhere_table/ast.json | 9 + .../ast.json | 46 + .../01925_test_storage_merge_aliases/ast.json | 9 + .../ast.json | 9 + parser/testdata/01926_bin_unbin/ast.json | 17 + .../01926_date_date_time_supertype/ast.json | 12 + .../01926_order_by_desc_limit/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../01931_storage_merge_no_columns/ast.json | 9 + .../01932_alter_index_with_order/ast.json | 9 + .../01932_global_in_function/ast.json | 71 + .../01932_null_valid_identifier/ast.json | 52 + .../01932_remote_sharding_key_column/ast.json | 42 + parser/testdata/01933_invalid_date/ast.json | 17 + .../ast.json | 48 + .../ast.json | 22 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/01937_nested_chinese/ast.json | 45 + .../testdata/01938_joins_identifiers/ast.json | 9 + parser/testdata/01939_type_map_json/ast.json | 35 + .../01940_custom_tld_sharding_key/ast.json | 95 + parser/testdata/01940_pad_string/ast.json | 12 + .../01940_point_in_polygon_ubsan/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../01942_create_table_with_sample/ast.json | 32 + .../01942_dateTimeToSnowflake/ast.json | 11 + .../01942_dateTimeToSnowflakeID/ast.json | 11 + .../01942_snowflakeIDToDateTime/ast.json | 11 + .../01942_snowflakeToDateTime/ast.json | 11 + .../testdata/01943_log_column_sizes/ast.json | 9 + .../ast.json | 54 + parser/testdata/01943_query_id_check/ast.json | 11 + .../01944_range_max_elements/ast.json | 11 + parser/testdata/01946_profile_sleep/ast.json | 11 + parser/testdata/01947_mv_subquery/ast.json | 11 + .../ast.json | 5 + .../ast.json | 107 + parser/testdata/01948_heredoc/ast.json | 12 + .../testdata/01950_aliases_bad_cast/ast.json | 38 + .../ast.json | 11 + .../ast.json | 11 + .../01958_partial_hour_timezone/ast.json | 11 + .../01961_roaring_memory_tracking/ast.json | 11 + .../01999_grant_with_replace/ast.json | 4 + .../ast.json | 9 + parser/testdata/02000_join_on_const/ast.json | 9 + .../ast.json | 9 + .../ast.json | 37 + .../ast.json | 9 + parser/testdata/02001_hostname_test/ast.json | 11 + parser/testdata/02001_join_on_const/ast.json | 9 + .../02001_shard_num_shard_count/ast.json | 16 + .../testdata/02002_parse_map_int_key/ast.json | 9 + .../ast.json | 9 + .../ast.json | 17 + parser/testdata/02003_bug_from_23515/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../02004_max_hyperscan_regex_length/ast.json | 11 + .../02005_log_formatted_queries/ast.json | 11 + .../ast.json | 17 + .../02006_h3_to_geo_boundary/ast.json | 9 + .../02006_test_positional_arguments/ast.json | 11 + .../02006_todatetime64_from_string/ast.json | 25 + parser/testdata/02007_join_use_nulls/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../02008_materialize_column/ast.json | 9 + .../ast.json | 9 + .../02008_tuple_to_name_value_pairs/ast.json | 30 + .../02009_array_join_partition/ast.json | 43 + .../02009_decimal_no_trailing_zeros/ast.json | 25 + .../02010_array_index_bad_cast/ast.json | 11 + .../ast.json | 9 + parser/testdata/02011_normalize_utf8/ast.json | 9 + .../02011_tuple_vector_functions/ast.json | 31 + .../ast.json | 47 + .../testdata/02012_get_server_port/ast.json | 17 + .../ast.json | 9 + .../02012_settings_clause_for_s3/ast.json | 9 + .../02012_sha512_fixedstring/ast.json | 22 + .../ast.json | 9 + .../02013_bloom_filter_hasAll/ast.json | 9 + .../testdata/02013_emptystring_cast/ast.json | 9 + .../02013_json_function_null_column/ast.json | 36 + .../02013_lc_nullable_and_infinity/ast.json | 60 + .../02014_dict_get_nullable_key/ast.json | 9 + .../02014_map_different_keys/ast.json | 12 + .../02014_storage_merge_order_by/ast.json | 9 + .../ast.json | 33 + .../02015_division_by_nullable/ast.json | 24 + .../ast.json | 31 + .../02016_agg_empty_result_bug_28880/ast.json | 28 + .../02016_aggregation_spark_bar/ast.json | 9 + .../ast.json | 12 + .../ast.json | 79 + .../ast.json | 9 + .../ast.json | 12 + .../testdata/02017_columns_with_dot/ast.json | 9 + .../02017_columns_with_dot_2/ast.json | 9 + .../ast.json | 9 + .../02020_cast_integer_overflow/ast.json | 17 + .../02020_exponential_smoothing/ast.json | 12 + .../testdata/02021_exponential_sum/ast.json | 79 + .../02021_exponential_sum_shard/ast.json | 88 + parser/testdata/02021_h3_get_faces/ast.json | 9 + parser/testdata/02021_h3_is_pentagon/ast.json | 9 + .../02021_h3_is_res_classIII/ast.json | 9 + .../02021_map_bloom_filter_index/ast.json | 9 + parser/testdata/02021_map_has/ast.json | 9 + .../02021_prewhere_always_true_where/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02023_nullable_int_uint_where/ast.json | 9 + .../ast.json | 25 + .../02023_transform_or_to_in/ast.json | 9 + .../ast.json | 88 + .../ast.json | 21 + .../02024_merge_regexp_assert/ast.json | 9 + .../ast.json | 66 + .../ast.json | 5 + .../02025_having_filter_column/ast.json | 9 + .../ast.json | 87 + .../02025_subcolumns_compact_parts/ast.json | 9 + .../02026_accurate_cast_or_default/ast.json | 37 + .../02026_arrayDifference_const/ast.json | 40 + .../ast.json | 11 + .../ast.json | 40 + parser/testdata/02027_ngrams/ast.json | 21 + .../ast.json | 6 + .../02028_create_select_settings/ast.json | 104 + .../ast.json | 9 + parser/testdata/02028_tokens/ast.json | 17 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02030_tuple_filter/ast.json | 11 + .../ast.json | 61 + .../02035_isNull_isNotNull_format/ast.json | 11 + .../testdata/02036_jit_short_circuit/ast.json | 11 + .../ast.json | 54 + .../ast.json | 52 + .../ast.json | 22 + .../testdata/02041_test_fuzzy_alter/ast.json | 9 + .../02042_map_get_non_const_key/ast.json | 79 + .../ast.json | 21 + .../testdata/02044_exists_operator/ast.json | 22 + .../ast.json | 9 + .../ast.json | 57 + .../ast.json | 11 + .../02053_INSERT_SELECT_MATERIALIZED/ast.json | 57 + parser/testdata/02067_lost_part_s3/ast.json | 9 + parser/testdata/02070_join_on_disk/ast.json | 11 + .../ast.json | 9 + .../ast.json | 36 + .../02096_date_time_1970_saturation/ast.json | 17 + .../02096_date_time_1970_saturation2/ast.json | 21 + .../ast.json | 9 + .../02096_rename_atomic_hang/ast.json | 11 + .../testdata/02096_sample_by_tuple/ast.json | 9 + .../02096_totals_global_in_bug/ast.json | 112 + .../ast.json | 5 + .../ast.json | 31 + .../ast.json | 9 + .../testdata/02097_remove_sample_by/ast.json | 9 + .../testdata/02098_date32_comparison/ast.json | 29 + .../ast.json | 9 + .../02100_limit_push_down_bug/ast.json | 9 + .../testdata/02100_now64_types_bug/ast.json | 393 ++ .../02100_replaceRegexpAll_bug/ast.json | 31 + .../02111_function_mapExtractKeyLike/ast.json | 9 + .../ast.json | 45 + .../02111_json_column_name_encoding/ast.json | 11 + .../02111_modify_table_comment/ast.json | 5 + .../testdata/02111_with_fill_no_rows/ast.json | 73 + .../02112_skip_index_set_and_or/ast.json | 9 + .../02112_with_fill_interval/ast.json | 9 + .../ast.json | 11 + parser/testdata/02113_format_row/ast.json | 11 + parser/testdata/02113_format_row_bug/ast.json | 49 + parser/testdata/02114_bool_type/ast.json | 9 + .../02115_map_contains_analyzer/ast.json | 9 + .../ast.json | 5 + .../02116_tuple_element_analyzer/ast.json | 9 + .../02123_MySQLWire_regression/ast.json | 9 + .../ast.json | 9 + .../ast.json | 29 + .../02124_encrypt_decrypt_nullable/ast.json | 12 + .../02124_insert_deduplication_token/ast.json | 10 + .../ast.json | 12 + .../ast.json | 10 + .../02124_uncompressed_cache/ast.json | 9 + .../ast.json | 9 + .../02125_dict_get_type_nullable_fix/ast.json | 9 + .../02125_fix_storage_filelog/ast.json | 25 + .../02125_low_cardinality_int256/ast.json | 22 + .../testdata/02125_query_views_log/ast.json | 11 + .../02125_transform_decimal_bug/ast.json | 44 + .../02126_lc_window_functions/ast.json | 75 + .../ast.json | 9 + parser/testdata/02128_cast_nullable/ast.json | 36 + .../testdata/02128_hex_bin_on_uuid/ast.json | 21 + .../02129_add_column_add_ttl/ast.json | 9 + .../ast.json | 11 + .../02131_materialize_column_cast/ast.json | 9 + .../02131_mv_many_chunks_bug/ast.json | 9 + .../02131_remove_columns_in_subquery/ast.json | 68 + .../02131_row_policies_combination/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02132_empty_mutation_livelock/ast.json | 9 + parser/testdata/02133_classification/ast.json | 11 + .../ast.json | 56 + .../ast.json | 9 + parser/testdata/02133_issue_32458/ast.json | 9 + parser/testdata/02137_mv_into_join/ast.json | 37 + .../02139_MV_with_scalar_subquery/ast.json | 20 + parser/testdata/02144_avg_ubsan/ast.json | 77 + parser/testdata/02146_mv_non_phys/ast.json | 9 + parser/testdata/02148_issue_32737/ast.json | 52 + parser/testdata/02149_issue_32487/ast.json | 31 + .../02149_read_in_order_fixed_prefix/ast.json | 11 + .../ast.json | 25 + parser/testdata/02151_lc_prefetch/ast.json | 9 + .../ast.json | 25 + parser/testdata/02152_bool_type/ast.json | 11 + .../ast.json | 9 + parser/testdata/02152_csv_tuple/ast.json | 9 + .../02152_dictionary_date32_type/ast.json | 9 + .../02152_short_circuit_throw_if/ast.json | 34 + .../02154_bit_slice_for_fixedstring/ast.json | 12 + .../02154_bit_slice_for_string/ast.json | 12 + .../testdata/02154_bitmap_contains/ast.json | 31 + .../02154_default_keyword_insert/ast.json | 38 + .../ast.json | 32 + .../02155_dictionary_comment/ast.json | 9 + .../02155_h3_to_center_child/ast.json | 9 + .../ast.json | 9 + .../02155_nested_lc_defalut_bug/ast.json | 9 + .../ast.json | 27 + .../ast.json | 11 + .../02156_storage_merge_prewhere/ast.json | 11 + .../02156_storage_merge_prewhere_2/ast.json | 9 + .../ast.json | 27 + .../ast.json | 17 + parser/testdata/02158_contingency/ast.json | 193 + .../testdata/02158_proportions_ztest/ast.json | 37 + parser/testdata/02158_ztest/ast.json | 9 + parser/testdata/02159_left_right/ast.json | 21 + .../testdata/02160_h3_cell_area_m2/ast.json | 9 + .../02160_h3_cell_area_rads2/ast.json | 9 + .../testdata/02160_h3_hex_area_Km2/ast.json | 17 + .../testdata/02160_special_functions/ast.json | 17 + .../02161_addressToLineWithInlines/ast.json | 11 + .../testdata/02161_array_first_last/ast.json | 12 + .../02162_array_first_last_index/ast.json | 12 + .../ast.json | 9 + parser/testdata/02163_shard_num/ast.json | 65 + .../ast.json | 9 + .../testdata/02165_h3_edge_length_km/ast.json | 17 + .../02165_h3_exact_edge_length_Km/ast.json | 9 + .../02165_h3_exact_edge_length_m/ast.json | 9 + .../02165_h3_exact_edge_length_rads/ast.json | 9 + .../testdata/02165_h3_num_hexagons/ast.json | 17 + .../ast.json | 9 + parser/testdata/02168_avro_bug/ast.json | 55 + .../ast.json | 9 + parser/testdata/02169_map_functions/ast.json | 9 + .../testdata/02174_cte_scalar_cache/ast.json | 11 + .../02174_cte_scalar_cache_mv/ast.json | 20 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 26 + parser/testdata/02177_issue_31009/ast.json | 11 + .../ast.json | 9 + .../testdata/02177_sum_if_not_found/ast.json | 21 + .../ast.json | 9 + parser/testdata/02179_bool_type/ast.json | 17 + .../testdata/02179_degrees_radians/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02179_sparse_columns_detach/ast.json | 9 + .../ast.json | 9 + .../02181_dictionary_attach_detach/ast.json | 9 + .../ast.json | 49 + parser/testdata/02183_combinator_if/ast.json | 47 + .../02183_dictionary_date_types/ast.json | 9 + .../02183_dictionary_no_attributes/ast.json | 9 + .../02184_default_table_engine/ast.json | 11 + .../ast.json | 11 + parser/testdata/02184_ipv6_cast_test/ast.json | 9 + .../02184_ipv6_select_parsing/ast.json | 9 + parser/testdata/02184_nested_tuple/ast.json | 11 + .../ast.json | 9 + .../02184_storage_add_support_ttl/ast.json | 9 + .../ast.json | 64 + .../ast.json | 9 + parser/testdata/02185_split_by_char/ast.json | 21 + .../ast.json | 9 + .../02187_insert_values_with_mv/ast.json | 15 + .../ast.json | 9 + .../ast.json | 9 + .../02190_current_metrics_query/ast.json | 44 + .../testdata/02191_nested_with_dots/ast.json | 9 + .../ast.json | 21 + .../02193_async_insert_tcp_client_1/ast.json | 11 + parser/testdata/02205_ephemeral_1/ast.json | 11 + .../ast.json | 9 + .../02205_postgresql_functions/ast.json | 34 + .../02206_array_starts_ends_with/ast.json | 21 + .../02206_minimum_sample_size/ast.json | 102 + .../02207_key_condition_floats/ast.json | 9 + .../02207_subseconds_intervals/ast.json | 12 + .../02207_ttl_move_if_exists/ast.json | 9 + .../ast.json | 90 + .../02210_append_to_dev_dull/ast.json | 45 + .../ast.json | 22 + .../02211_jsonl_format_extension/ast.json | 55 + .../02212_cte_and_table_alias/ast.json | 11 + .../02212_h3_get_pentagon_indexes/ast.json | 9 + .../02212_h3_get_res0_indexes/ast.json | 11 + parser/testdata/02212_h3_point_dist/ast.json | 9 + .../ast.json | 9 + .../02223_h3_test_const_columns/ast.json | 58 + .../ast.json | 9 + .../ast.json | 9 + .../02224_s2_test_const_columns/ast.json | 35 + .../02226_analyzer_or_like_combine/ast.json | 25 + .../ast.json | 9 + .../02226_in_untuple_issue_34810/ast.json | 9 + .../ast.json | 9 + .../02227_union_match_by_name/ast.json | 11 + .../ast.json | 11 + .../02230_create_table_as_ignore_ttl/ast.json | 9 + .../02231_bloom_filter_sizing/ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../02233_with_total_empty_chunk/ast.json | 11 + .../02234_cast_to_ip_address/ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02236_explain_pipeline_join/ast.json | 11 + .../ast.json | 11 + .../02240_asof_join_biginteger/ast.json | 93 + .../ast.json | 3 + .../02240_filesystem_query_cache/ast.json | 3 + .../ast.json | 17 + .../02241_array_first_last_or_null/ast.json | 12 + .../02242_if_then_else_null_bug/ast.json | 52 + parser/testdata/02242_join_rocksdb/ast.json | 9 + parser/testdata/02242_make_date/ast.json | 30 + .../testdata/02242_make_date_mysql/ast.json | 26 + .../02242_negative_datetime64/ast.json | 37 + .../ast.json | 11 + .../testdata/02242_subcolumns_sizes/ast.json | 9 + .../02242_throw_if_constant_argument/ast.json | 40 + parser/testdata/02243_in_ip_address/ast.json | 9 + .../testdata/02243_ipv6_long_parsing/ast.json | 9 + parser/testdata/02243_make_date32/ast.json | 30 + .../testdata/02243_make_date32_mysql/ast.json | 26 + .../ast.json | 113 + .../ast.json | 51 + .../02244_ip_address_invalid_insert/ast.json | 9 + .../02244_lowcardinality_hash_join/ast.json | 9 + parser/testdata/02244_make_datetime/ast.json | 37 + .../02244_url_engine_headers_test/ast.json | 51 + .../ast.json | 45 + .../ast.json | 9 + .../testdata/02245_make_datetime64/ast.json | 37 + .../ast.json | 9 + .../02245_s3_virtual_columns/ast.json | 9 + .../02245_weird_partitions_pruning/ast.json | 9 + parser/testdata/02246_flatten_tuple/ast.json | 9 + .../02247_fix_extract_parser/ast.json | 31 + .../ast.json | 22 + .../ast.json | 11 + .../02249_parse_date_time_basic/ast.json | 11 + .../ast.json | 11 + .../02251_alter_enum_nested_struct/ast.json | 9 + .../ast.json | 67 + .../02252_jit_profile_events/ast.json | 11 + .../02252_reset_non_existing_setting/ast.json | 9 + parser/testdata/02265_column_ttl/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../testdata/02266_auto_add_nullable/ast.json | 11 + .../02267_empty_arrays_read_reverse/ast.json | 9 + .../testdata/02267_insert_empty_data/ast.json | 9 + .../02267_jsonlines_ndjson_format/ast.json | 31 + .../ast.json | 17 + .../ast.json | 17 + .../ast.json | 33 + .../ast.json | 43 + .../ast.json | 35 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 41 + .../02276_full_sort_join_unsupported/ast.json | 9 + .../02277_full_sort_join_misc/ast.json | 11 + .../02280_add_query_level_settings/ast.json | 9 + .../02281_limit_by_distributed/ast.json | 119 + parser/testdata/02282_array_distance/ast.json | 11 + parser/testdata/02283_array_norm/ast.json | 30 + .../ast.json | 57 + .../02285_hex_bin_support_more_types/ast.json | 23 + .../02286_convert_decimal_type/ast.json | 30 + .../testdata/02286_function_wyhash/ast.json | 17 + .../02286_quantile_tdigest_infinity/ast.json | 12 + .../02286_tuple_numeric_identifier/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../02291_join_const_literal_36279/ast.json | 9 + .../02292_h3_unidirectional_funcs/ast.json | 17 + .../testdata/02292_hash_array_tuples/ast.json | 12 + .../ast.json | 9 + .../02293_arrow_dictionary_indexes/ast.json | 74 + .../testdata/02293_grouping_function/ast.json | 11 + .../02293_grouping_function_group_by/ast.json | 11 + parser/testdata/02293_h3_distance/ast.json | 9 + parser/testdata/02293_h3_hex_ring/ast.json | 26 + parser/testdata/02293_h3_line/ast.json | 9 + .../02293_ilike_on_fixed_strings/ast.json | 9 + .../ast.json | 9 + .../02294_decimal_second_errors/ast.json | 21 + .../ast.json | 9 + .../02294_fp_seconds_profile/ast.json | 12 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../02295_GROUP_BY_AggregateFunction/ast.json | 9 + .../ast.json | 41 + .../02296_ttl_non_deterministic/ast.json | 9 + .../02302_clash_const_aggegate_join/ast.json | 9 + .../02302_join_auto_lc_nullable_bug/ast.json | 18 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/02302_s3_file_pruning/ast.json | 11 + .../ast.json | 22 + .../02304_grouping_set_order_by/ast.json | 154 + .../ast.json | 66 + .../02306_part_types_profile_events/ast.json | 9 + .../02307_join_get_array_null/ast.json | 9 + .../ast.json | 29 + parser/testdata/02310_uuid_v7/ast.json | 16 + .../ast.json | 22 + .../ast.json | 9 + .../02311_system_zookeeper_insert/ast.json | 11 + .../02312_is_not_null_prewhere/ast.json | 9 + .../ast.json | 9 + .../02313_cross_join_dup_col_names/ast.json | 68 + parser/testdata/02313_displayname/ast.json | 11 + .../ast.json | 9 + .../testdata/02313_multiple_limits/ast.json | 123 + parser/testdata/02313_test_fpc_codec/ast.json | 9 + .../02314_csv_tsv_skip_first_lines/ast.json | 69 + .../02315_grouping_constant_folding/ast.json | 9 + .../02315_pmj_union_ubsan_35857/ast.json | 11 + .../ast.json | 11 + .../testdata/02316_literal_no_octal/ast.json | 16 + .../02316_values_table_func_bug/ast.json | 35 + .../ast.json | 12 + .../02317_functions_with_nothing/ast.json | 22 + .../02317_like_with_trailing_escape/ast.json | 9 + .../ast.json | 43 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02319_timeslots_dt64/ast.json | 43 + .../02320_alter_columns_with_dots/ast.json | 9 + .../ast.json | 54 + .../ast.json | 75 + .../testdata/02322_sql_insert_format/ast.json | 11 + .../ast.json | 30 + .../02324_map_combinator_bug/ast.json | 9 + .../02325_compatibility_setting_2/ast.json | 37 + .../02325_dates_schema_inference/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/02336_sparse_columns_s3/ast.json | 9 + .../02337_analyzer_columns_basic/ast.json | 11 + parser/testdata/02337_base58/ast.json | 17 + .../ast.json | 44 + .../ast.json | 11 + .../02338_analyzer_constants_basic/ast.json | 11 + .../02339_analyzer_matcher_basic/ast.json | 11 + .../02340_analyzer_functions/ast.json | 11 + parser/testdata/02340_union_header/ast.json | 98 + .../02341_analyzer_aliases_basics/ast.json | 11 + .../02342_analyzer_compound_types/ast.json | 11 + .../02343_aggregation_pipeline/ast.json | 11 + .../ast.json | 11 + .../testdata/02343_analyzer_lambdas/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02343_group_by_use_nulls/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../02345_analyzer_subqueries/ast.json | 11 + .../ast.json | 10 + .../02345_implicit_transaction/ast.json | 9 + .../ast.json | 125 + .../02346_additional_filters/ast.json | 9 + .../02346_additional_filters_distr/ast.json | 5 + .../02346_additional_filters_index/ast.json | 58 + .../ast.json | 11 + .../ast.json | 11 + .../02346_non_negative_derivative/ast.json | 9 + .../ast.json | 9 + .../02346_text_index_array_support/ast.json | 11 + .../02346_text_index_bug47393/ast.json | 11 + .../02346_text_index_bug54541/ast.json | 11 + .../02346_text_index_bug59039/ast.json | 11 + .../02346_text_index_bug62681/ast.json | 11 + .../02346_text_index_bug84805/ast.json | 11 + .../02346_text_index_bug87887/ast.json | 11 + .../02346_text_index_bug88080/ast.json | 11 + .../02346_text_index_bug89605/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02346_text_index_creation/ast.json | 11 + .../ast.json | 11 + .../02346_text_index_detach_attach/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02346_text_index_direct_read/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02346_text_index_header_cache/ast.json | 11 + .../testdata/02346_text_index_hits/ast.json | 9 + .../02346_text_index_map_support/ast.json | 11 + .../02346_text_index_match_predicate/ast.json | 11 + .../02346_text_index_on_lower_column/ast.json | 11 + .../ast.json | 11 + .../02346_text_index_part_format/ast.json | 11 + .../02346_text_index_postings_cache/ast.json | 11 + .../02346_text_index_prefetch/ast.json | 11 + .../02346_text_index_preprocessor/ast.json | 11 + .../02346_text_index_queries/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02346_to_hour_monotonicity_fix/ast.json | 9 + .../02346_to_hour_monotonicity_fix_2/ast.json | 9 + .../02347_rank_corr_size_overflow/ast.json | 48 + .../02350_views_max_insert_threads/ast.json | 9 + .../02351_Map_combinator_dist/ast.json | 218 + .../02352_grouby_shadows_arg/ast.json | 47 + .../02352_lightweight_delete/ast.json | 9 + .../ast.json | 10 + .../ast.json | 10 + parser/testdata/02353_ascii/ast.json | 17 + parser/testdata/02353_isnullable/ast.json | 17 + .../ast.json | 9 + .../02353_simdjson_buffer_overflow/ast.json | 11 + parser/testdata/02353_translate/ast.json | 25 + .../02354_array_lowcardinality/ast.json | 36 + .../ast.json | 11 + .../ast.json | 12 + .../testdata/02354_parse_timedelta/ast.json | 17 + .../02354_read_in_order_prewhere/ast.json | 9 + .../02354_tuple_element_with_default/ast.json | 34 + .../02354_tuple_lowcardinality/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02354_vector_search_part_format/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02354_vector_search_queries/ast.json | 11 + .../ast.json | 11 + .../02354_vector_search_rescoring/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02354_vector_search_subquery/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 10 + .../02355_column_type_name_lc/ast.json | 27 + .../ast.json | 11 + .../ast.json | 11 + .../02356_insert_query_log_metrics/ast.json | 20 + .../ast.json | 9 + .../02357_file_default_value/ast.json | 17 + .../ast.json | 35 + .../testdata/02363_mapupdate_improve/ast.json | 9 + .../ast.json | 46 + .../ast.json | 11 + .../ast.json | 9 + parser/testdata/02364_window_case/ast.json | 65 + .../02365_multisearch_random_tests/ast.json | 11 + .../ast.json | 9 + .../02366_direct_dictionary_dict_has/ast.json | 9 + .../02366_explain_query_tree/ast.json | 11 + .../testdata/02366_kql_create_table/ast.json | 9 + parser/testdata/02366_kql_datatype/ast.json | 11 + parser/testdata/02366_kql_distinct/ast.json | 9 + .../testdata/02366_kql_func_binary/ast.json | 11 + .../testdata/02366_kql_func_datetime/ast.json | 11 + .../testdata/02366_kql_func_dynamic/ast.json | 9 + parser/testdata/02366_kql_func_ip/ast.json | 11 + parser/testdata/02366_kql_func_math/ast.json | 11 + .../testdata/02366_kql_func_scalar/ast.json | 9 + .../testdata/02366_kql_func_string/ast.json | 9 + parser/testdata/02366_kql_mvexpand/ast.json | 9 + .../02366_kql_operator_in_sql/ast.json | 9 + .../ast.json | 121 + .../02366_window_function_order_by/ast.json | 74 + parser/testdata/02366_with_fill_date/ast.json | 73 + .../ast.json | 11 + .../ast.json | 9 + .../02368_analyzer_table_functions/ast.json | 11 + .../ast.json | 11 + .../02370_analyzer_in_function/ast.json | 11 + .../02371_analyzer_join_cross/ast.json | 11 + .../ast.json | 42 + .../ast.json | 9 + parser/testdata/02372_nowInBlock/ast.json | 18 + .../02373_analyzer_join_use_nulls/ast.json | 11 + .../02374_analyzer_array_join/ast.json | 11 + .../ast.json | 9 + parser/testdata/02374_in_tuple_index/ast.json | 9 + .../02375_double_escaping_json/ast.json | 29 + parser/testdata/02375_scalar_lc_cte/ast.json | 37 + .../ast.json | 11 + .../02376_arrow_dict_with_string/ast.json | 78 + .../02377_analyzer_in_function_set/ast.json | 11 + .../02377_fix_file_virtual_column/ast.json | 9 + .../ast.json | 11 + .../02377_modify_column_from_lc/ast.json | 9 + .../02377_modify_column_from_nested/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../02378_analyzer_projection_names/ast.json | 11 + .../ast.json | 10 + .../02379_analyzer_subquery_depth/ast.json | 11 + .../02380_analyzer_join_sample/ast.json | 11 + .../02381_analyzer_join_final/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02381_parse_array_of_tuples/ast.json | 9 + .../02381_setting_value_auto/ast.json | 47 + .../ast.json | 11 + .../02382_join_and_filtering_set/ast.json | 9 + .../ast.json | 11 + .../02384_analyzer_dict_get_join_get/ast.json | 11 + .../02384_decrypt_bad_arguments/ast.json | 62 + .../ast.json | 60 + .../ast.json | 11 + .../02385_profile_events_overflow/ast.json | 11 + .../ast.json | 11 + .../testdata/02386_set_columns_order/ast.json | 9 + parser/testdata/02387_analyzer_cte/ast.json | 11 + .../02387_parse_date_as_datetime/ast.json | 18 + .../02388_analyzer_recursive_lambda/ast.json | 11 + .../ast.json | 17 + .../02389_analyzer_nested_lambda/ast.json | 11 + .../02391_hashed_dictionary_shards/ast.json | 9 + .../testdata/02391_recursive_buffer/ast.json | 9 + .../ast.json | 42 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 42 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02400_memory_accounting_on_error/ast.json | 65 + .../ast.json | 9 + .../02402_external_disk_metrics/ast.json | 11 + .../02402_merge_engine_with_view/ast.json | 11 + .../02403_ttl_column_multiple_times/ast.json | 9 + .../ast.json | 9 + .../02404_memory_bound_merging/ast.json | 9 + .../testdata/02405_avro_read_nested/ast.json | 11 + .../testdata/02405_pmj_issue_40335/ast.json | 9 + .../testdata/02406_minmax_behaviour/ast.json | 11 + .../02406_try_read_datetime64_bug/ast.json | 25 + .../ast.json | 38 + .../ast.json | 64 + .../02410_to_decimal_or_default/ast.json | 49 + parser/testdata/02411_legacy_geobase/ast.json | 45 + parser/testdata/02412_nlp/ast.json | 11 + .../ast.json | 112 + .../ast.json | 401 ++ .../ast.json | 512 ++ .../ast.json | 9 + .../ast.json | 38 + .../ast.json | 11 + parser/testdata/02416_keeper_map/ast.json | 10 + .../02416_rocksdb_delete_update/ast.json | 9 + .../ast.json | 9 + .../02417_from_select_syntax/ast.json | 30 + .../ast.json | 11 + .../02417_keeper_map_create_drop/ast.json | 10 + .../02417_null_variadic_behaviour/ast.json | 51 + .../02418_aggregate_combinators/ast.json | 44 + .../02418_keeper_map_keys_limit/ast.json | 10 + .../02418_tautological_if_index/ast.json | 11 + .../02419_contingency_array_nullable/ast.json | 30 + .../02420_final_setting_analyzer/ast.json | 11 + .../ast.json | 27 + .../ast.json | 9 + .../ast.json | 9 + .../02421_json_decimals_as_strings/ast.json | 36 + .../ast.json | 12 + .../02422_msgpack_uuid_wrong_column/ast.json | 41 + .../02422_read_numbers_as_strings/ast.json | 11 + .../ast.json | 130 + .../ast.json | 35 + .../02426_pod_array_overflow_2/ast.json | 31 + .../02427_msan_group_array_resample/ast.json | 141 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02428_delete_with_settings/ast.json | 9 + .../ast.json | 9 + .../ast.json | 28 + .../ast.json | 35 + .../02429_groupBitmap_chain_state/ast.json | 74 + .../02429_offset_pipeline_stuck_bug/ast.json | 31 + .../ast.json | 61 + .../ast.json | 30 + .../02431_single_value_or_null_empty/ast.json | 36 + .../ast.json | 9 + .../02436_system_zookeeper_context/ast.json | 9 + .../02438_sync_replica_lightweight/ast.json | 11 + .../02439_merge_selecting_partitions/ast.json | 9 + .../02440_mutations_finalization/ast.json | 30 + .../ast.json | 44 + .../ast.json | 10 + .../02448_clone_replica_lost_part/ast.json | 11 + .../ast.json | 9 + .../02451_variadic_null_garbage_data/ast.json | 106 + .../02452_check_low_cardinality/ast.json | 9 + .../02452_json_utf8_validation/ast.json | 11 + .../ast.json | 40 + .../ast.json | 10 + .../ast.json | 9 + .../ast.json | 11 + .../02455_count_state_asterisk/ast.json | 9 + .../ast.json | 9 + .../02456_BLAKE3_hash_function_test/ast.json | 22 + .../02456_aggregate_state_conversion/ast.json | 76 + .../ast.json | 10 + .../02456_alter-nullable-column-bag/ast.json | 9 + .../02456_datetime_schema_inference/ast.json | 30 + .../ast.json | 10 + parser/testdata/02456_summing_mt_lc/ast.json | 11 + .../02457_filesystem_function/ast.json | 53 + .../ast.json | 9 + parser/testdata/02457_morton_coding/ast.json | 12 + .../02457_morton_coding_with_mask/ast.json | 12 + .../ast.json | 17 + .../testdata/02458_datediff_date32/ast.json | 47 + .../testdata/02458_default_setting/ast.json | 37 + .../ast.json | 21 + .../02458_relax_too_many_parts/ast.json | 9 + .../ast.json | 45 + parser/testdata/02459_group_by_all/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../02459_read_in_order_bufer/ast.json | 21 + .../02460_prewhere_row_level_policy/ast.json | 9 + .../ast.json | 9 + .../02461_join_lc_issue_42380/ast.json | 9 + .../ast.json | 43 + .../testdata/02461_welch_t_test_fuzz/ast.json | 9 + .../testdata/02462_match_regexp_pk/ast.json | 30 + .../02462_number_to_datetype/ast.json | 61 + .../testdata/02463_julian_day_ubsan/ast.json | 23 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02468_has_any_tuple/ast.json | 67 + parser/testdata/02469_interval_msan/ast.json | 24 + .../ast.json | 9 + .../02471_wrong_date_monotonicity/ast.json | 9 + .../ast.json | 21 + .../02473_map_element_nullable/ast.json | 82 + .../02473_prewhere_with_bigint/ast.json | 9 + .../ast.json | 11 + .../ast.json | 21 + .../02474_timeDiff_UTCTimestamp/ast.json | 68 + .../02474_unhex_in_fix_string/ast.json | 9 + .../02475_analysis_of_variance/ast.json | 52 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 86 + .../ast.json | 31 + parser/testdata/02475_join_bug_42832/ast.json | 9 + .../ast.json | 70 + .../testdata/02475_positive_modulo/ast.json | 21 + .../ast.json | 39 + .../02475_split_with_max_substrings/ast.json | 12 + .../ast.json | 11 + parser/testdata/02476_fuse_sum_count/ast.json | 11 + .../02476_query_parameters_insert/ast.json | 9 + .../ast.json | 11 + parser/testdata/02477_age/ast.json | 12 + parser/testdata/02477_age_date32/ast.json | 47 + parser/testdata/02477_age_datetime64/ast.json | 51 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/02477_exists_fuzz_43478/ast.json | 21 + parser/testdata/02477_fuse_quantiles/ast.json | 11 + parser/testdata/02477_invalid_reads/ast.json | 27 + .../ast.json | 12 + .../ast.json | 9 + .../ast.json | 20 + .../ast.json | 11 + parser/testdata/02478_factorial/ast.json | 27 + .../ast.json | 9 + .../ast.json | 9 + .../02479_analyzer_aggregation_crash/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 55 + .../02479_mysql_connect_to_self/ast.json | 11 + .../ast.json | 9 + .../02480_analyzer_alias_nullptr/ast.json | 11 + .../ast.json | 42 + .../ast.json | 38 + .../02480_max_map_null_totals/ast.json | 97 + .../ast.json | 40 + .../02480_s3_support_wildcard/ast.json | 9 + .../02480_suspicious_lowcard_in_key/ast.json | 11 + parser/testdata/02480_tlp_nan/ast.json | 59 + .../02481_aggregation_in_order_plan/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02481_array_join_with_map/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../02481_merge_array_join_sample_by/ast.json | 9 + .../ast.json | 529 ++ .../ast.json | 9 + .../02481_s3_throw_if_mismatch_files/ast.json | 9 + .../02481_xxh3_hash_function/ast.json | 17 + .../ast.json | 11 + .../02482_insert_into_dist_race/ast.json | 9 + .../02482_value_block_assert/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../02483_substitute_udf_create/ast.json | 9 + .../ast.json | 9 + .../ast.json | 65 + .../ast.json | 49 + .../testdata/02489_analyzer_indexes/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../02491_part_log_has_table_uuid/ast.json | 29 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 18 + .../ast.json | 20 + .../ast.json | 11 + .../ast.json | 11 + .../02494_array_function_range/ast.json | 69 + .../ast.json | 21 + .../ast.json | 36 + .../ast.json | 12 + .../testdata/02494_query_cache_bugs/ast.json | 3 + .../ast.json | 3 + .../02494_query_cache_compression/ast.json | 3 + .../02494_query_cache_drop_cache/ast.json | 3 + .../ast.json | 3 + .../02494_query_cache_empty_tuple/ast.json | 41 + .../02494_query_cache_events/ast.json | 3 + .../ast.json | 3 + .../02494_query_cache_explain/ast.json | 11 + .../ast.json | 11 + .../testdata/02494_query_cache_key/ast.json | 12 + .../02494_query_cache_log_comment/ast.json | 3 + .../02494_query_cache_metrics/ast.json | 3 + .../ast.json | 3 + .../02494_query_cache_min_query_runs/ast.json | 3 + .../ast.json | 3 + .../02494_query_cache_normalize_ast/ast.json | 3 + .../02494_query_cache_passive_usage/ast.json | 3 + .../02494_query_cache_query_log/ast.json | 3 + .../02494_query_cache_secrets/ast.json | 3 + .../02494_query_cache_sparse_columns/ast.json | 9 + .../ast.json | 3 + .../02494_query_cache_system_tables/ast.json | 3 + .../testdata/02494_query_cache_tag/ast.json | 3 + .../ast.json | 3 + .../02494_query_cache_ttl_long/ast.json | 3 + .../02494_query_cache_udf_sql/ast.json | 3 + .../02494_query_cache_user_quotas/ast.json | 3 + .../ast.json | 3 + .../02495_analyzer_storage_join/ast.json | 9 + .../02495_concat_with_separator/ast.json | 11 + .../testdata/02495_s3_filter_by_file/ast.json | 9 + .../02495_sum_if_to_count_if_bug/ast.json | 71 + .../ast.json | 129 + .../ast.json | 25 + .../02496_storage_s3_profile_events/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02497_remote_disk_fat_column/ast.json | 11 + .../02497_schema_inference_nulls/ast.json | 12 + .../ast.json | 11 + .../02497_storage_join_right_assert/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../02498_storage_join_key_positions/ast.json | 11 + .../ast.json | 11 + .../02499_analyzer_set_index/ast.json | 11 + .../02499_quantile_nan_ubsan_msan/ast.json | 39 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../02501_limits_on_result_for_view/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../02503_bad_compatibility_setting/ast.json | 11 + .../02503_mysql_compat_utc_timestamp/ast.json | 26 + .../ast.json | 9 + .../ast.json | 50 + .../ast.json | 9 + .../ast.json | 21 + .../ast.json | 30 + .../02507_to_unix_timestamp_overflow/ast.json | 30 + parser/testdata/02508_bad_graphite/ast.json | 9 + .../ast.json | 9 + parser/testdata/02509_h3_arguments/ast.json | 21 + .../02510_group_by_prewhere_null/ast.json | 9 + .../ast.json | 67 + .../02512_array_join_name_resolution/ast.json | 9 + .../ast.json | 11 + .../02513_analyzer_sort_msan/ast.json | 9 + .../ast.json | 29 + .../ast.json | 9 + .../02513_validate_data_types/ast.json | 11 + .../02514_analyzer_drop_join_on/ast.json | 9 + .../02514_bad_index_granularity/ast.json | 51 + .../ast.json | 45 + .../02514_null_dictionary_source/ast.json | 9 + .../02514_tsv_zero_started_number/ast.json | 37 + .../ast.json | 9 + .../02515_analyzer_null_for_empty/ast.json | 11 + .../ast.json | 60 + .../ast.json | 65 + parser/testdata/02515_generate_ulid/ast.json | 37 + .../02515_projections_with_totals/ast.json | 9 + .../02516_projections_and_context/ast.json | 9 + .../02516_projections_with_rollup/ast.json | 9 + .../ast.json | 30 + parser/testdata/02517_uuid_parsing/ast.json | 169 + .../ast.json | 115 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../testdata/02519_monotonicity_fuzz/ast.json | 9 + .../testdata/02520_group_array_last/ast.json | 9 + .../02521_aggregation_by_partitions/ast.json | 11 + .../ast.json | 11 + .../02521_analyzer_array_join_crash/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../02521_lightweight_delete_and_ttl/ast.json | 9 + .../02521_to_custom_day_of_week/ast.json | 57 + .../ast.json | 11 + parser/testdata/02523_array_shuffle/ast.json | 17 + .../testdata/02524_fuzz_and_fuss_2/ast.json | 9 + .../ast.json | 11 + .../ast.json | 10 + .../02525_jit_logical_functions_nan/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../02526_merge_join_int_decimal/ast.json | 9 + .../ast.json | 9 + parser/testdata/02530_ip_part_id/ast.json | 9 + .../testdata/02531_ipv4_arithmetic/ast.json | 85 + .../02531_semi_join_null_const_bug/ast.json | 11 + .../02531_storage_join_null_44940/ast.json | 11 + .../ast.json | 11 + .../ast.json | 37 + .../ast.json | 9 + .../02534_analyzer_grouping_function/ast.json | 11 + .../02534_default_granularity/ast.json | 9 + .../testdata/02534_join_prewhere_bug/ast.json | 9 + .../ast.json | 9 + .../02534_s3_heap_use_after_free/ast.json | 31 + .../ast.json | 11 + .../02535_analyzer_limit_offset/ast.json | 11 + .../02535_ip_parser_not_whole/ast.json | 31 + .../ast.json | 11 + .../02536_delta_gorilla_corruption/ast.json | 11 + .../02536_distributed_detach_table/ast.json | 20 + .../ast.json | 9 + .../02536_system_sync_file_cache/ast.json | 3 + .../02538_alter_rename_sequence/ast.json | 9 + .../ast.json | 11 + .../02538_ngram_bf_index_with_null/ast.json | 9 + .../ast.json | 9 + .../02539_generate_random_ip/ast.json | 82 + .../ast.json | 65 + .../02539_generate_random_map/ast.json | 84 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../02540_duplicate_primary_key/ast.json | 9 + .../02540_duplicate_primary_key2/ast.json | 9 + .../ast.json | 11 + .../02541_empty_function_support_ip/ast.json | 22 + .../ast.json | 11 + .../ast.json | 176 + .../02541_tuple_element_with_null/ast.json | 9 + parser/testdata/02542_transform_new/ast.json | 52 + parser/testdata/02542_transform_old/ast.json | 90 + .../02551_ipv4_implicit_uint64/ast.json | 14 + .../ast.json | 11 + .../ast.json | 9 + .../02552_inner_join_with_where_true/ast.json | 14 + .../testdata/02552_regression_crash/ast.json | 38 + .../02552_sparse_columns_intersect/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 61 + parser/testdata/02559_add_parts/ast.json | 67 + parser/testdata/02559_ip_types_bloom/ast.json | 9 + .../ast.json | 9 + .../ast.json | 38 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02560_analyzer_materialized_view/ast.json | 11 + parser/testdata/02560_count_digits/ast.json | 17 + .../testdata/02560_null_as_default/ast.json | 9 + .../testdata/02560_quantile_min_max/ast.json | 9 + .../02560_regexp_denial_of_service/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 56 + parser/testdata/02562_regexp_extract/ast.json | 25 + parser/testdata/02563_analyzer_merge/ast.json | 11 + .../02564_analyzer_cross_to_inner/ast.json | 11 + .../ast.json | 11 + parser/testdata/02564_date_format/ast.json | 44 + .../02564_read_in_order_final_desc/ast.json | 11 + .../02565_analyzer_limit_settings/ast.json | 11 + .../02565_update_empty_nested/ast.json | 9 + .../ast.json | 11 + .../testdata/02567_and_consistency/ast.json | 101 + .../testdata/02568_and_consistency/ast.json | 9 + .../ast.json | 55 + .../testdata/02568_json_array_length/ast.json | 17 + .../ast.json | 70 + .../ast.json | 11 + .../testdata/02572_max_intersections/ast.json | 58 + .../ast.json | 11 + .../ast.json | 44 + .../02573_quantile_fuse_msan/ast.json | 11 + .../ast.json | 9 + .../testdata/02575_map_hashing_msan/ast.json | 46 + .../ast.json | 9 + .../ast.json | 9 + .../02575_merge_prewhere_ephemeral/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../02577_keepermap_delete_update/ast.json | 9 + parser/testdata/02578_ipv4_codec_t64/ast.json | 9 + .../ast.json | 5 + .../testdata/02579_fill_empty_chunk/ast.json | 11 + .../02579_fill_empty_chunk_analyzer/ast.json | 11 + .../02579_parameterized_replace/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02581_width_bucket/ast.json | 62 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/02583_map_literal_cast/ast.json | 44 + parser/testdata/02584_range_ipv4/ast.json | 31 + .../02586_generate_random_structure/ast.json | 21 + .../02589_bson_invalid_document_size/ast.json | 11 + .../testdata/02591_bson_long_tuple/ast.json | 63 + .../02596_build_set_and_remote/ast.json | 58 + .../ast.json | 10 + .../testdata/02661_quantile_approx/ast.json | 11 + .../testdata/02662_first_last_value/ast.json | 9 + .../02662_sparse_columns_mutations_1/ast.json | 11 + .../02662_sparse_columns_mutations_2/ast.json | 11 + .../02662_sparse_columns_mutations_3/ast.json | 11 + .../02662_sparse_columns_mutations_4/ast.json | 11 + .../02662_sparse_columns_mutations_5/ast.json | 11 + .../02668_column_block_number/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + parser/testdata/02668_parse_datetime/ast.json | 41 + .../ast.json | 41 + parser/testdata/02668_ulid_decoding/ast.json | 35 + .../02669_alter_modify_to_nullable/ast.json | 9 + .../02670_constant_skip_index/ast.json | 9 + .../testdata/02674_and_consistency/ast.json | 81 + .../02674_null_default_structure/ast.json | 20 + .../02674_trivial_count_analyzer/ast.json | 9 + .../02675_is_ipv6_function_fix/ast.json | 17 + .../ast.json | 11 + .../ast.json | 9 + .../02676_analyzer_limit_offset/ast.json | 11 + .../ast.json | 9 + .../testdata/02676_kafka_murmur_hash/ast.json | 17 + .../testdata/02676_to_decimal_string/ast.json | 21 + .../ast.json | 11 + .../ast.json | 11 + .../02677_grace_hash_limit_race/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../02680_datetime64_monotonic_check/ast.json | 9 + .../ast.json | 62 + .../ast.json | 21 + .../02680_lc_null_as_default/ast.json | 9 + .../02680_mysql_ast_logical_err/ast.json | 32 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/02681_undrop_query/ast.json | 11 + .../02685_decimal256_various/ast.json | 29 + .../ast.json | 17 + .../02690_subquery_identifiers/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02692_multiple_joins_unicode/ast.json | 9 + .../testdata/02693_multiple_joins_in/ast.json | 16 + .../ast.json | 9 + .../ast.json | 33 + .../ast.json | 9 + .../ast.json | 11 + .../02697_alter_dependencies/ast.json | 28 + .../02698_marked_dropped_tables/ast.json | 11 + .../ast.json | 11 + .../testdata/02700_regexp_operator/ast.json | 21 + .../ast.json | 83 + .../02701_non_parametric_function/ast.json | 49 + .../ast.json | 11 + .../ast.json | 9 + .../02705_grouping_keys_equal_keys/ast.json | 125 + .../ast.json | 9 + .../ast.json | 37 + .../02706_keeper_map_insert_strict/ast.json | 10 + .../02706_kolmogorov_smirnov_test/ast.json | 9 + parser/testdata/02706_show_columns/ast.json | 9 + .../ast.json | 9 + .../02707_skip_index_with_in/ast.json | 9 + parser/testdata/02708_dotProduct/ast.json | 12 + .../ast.json | 20 + .../ast.json | 60 + .../02709_storage_memory_compressed/ast.json | 9 + .../ast.json | 9 + .../02710_allow_suspicious_indices/ast.json | 9 + .../testdata/02710_date_diff_aliases/ast.json | 106 + .../ast.json | 5 + parser/testdata/02710_show_table/ast.json | 9 + .../02710_topk_with_empty_array/ast.json | 16 + .../testdata/02711_server_uuid_macro/ast.json | 9 + .../testdata/02711_soundex_function/ast.json | 17 + parser/testdata/02711_trim_aliases/ast.json | 76 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02714_date_date32_in/ast.json | 30 + .../ast.json | 11 + parser/testdata/02715_or_null/ast.json | 60 + .../ast.json | 28 + parser/testdata/02716_drop_if_empty/ast.json | 9 + .../testdata/02716_int256_arrayfunc/ast.json | 59 + parser/testdata/02718_array_fold/ast.json | 12 + .../02718_insert_meet_hardware_error/ast.json | 9 + .../ast.json | 9 + .../ast.json | 35 + parser/testdata/02721_url_cluster/ast.json | 53 + .../02722_log_profile_events/ast.json | 35 + .../02723_jit_aggregation_bug_48120/ast.json | 9 + .../02723_parallelize_output_setting/ast.json | 53 + parser/testdata/02723_zookeeper_name/ast.json | 12 + .../ast.json | 156 + .../02724_jit_logical_functions/ast.json | 11 + .../02724_mutliple_storage_join/ast.json | 38 + .../02724_persist_interval_type/ast.json | 9 + parser/testdata/02724_show_indexes/ast.json | 9 + .../02725_agg_projection_respect_PK/ast.json | 9 + .../ast.json | 9 + .../ast.json | 22 + .../02725_any_join_single_row/ast.json | 9 + .../testdata/02725_cnf_large_check/ast.json | 9 + .../testdata/02725_memory-for-merges/ast.json | 10 + .../02725_null_group_key_with_rollup/ast.json | 11 + parser/testdata/02725_sleep_max_time/ast.json | 34 + .../02725_url_support_virtual_column/ast.json | 39 + .../02726_async_insert_flush_queue/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + parser/testdata/02731_formats_s3/ast.json | 60 + .../ast.json | 32 + .../ast.json | 10 + .../ast.json | 10 + parser/testdata/02732_transform_fuzz/ast.json | 30 + parser/testdata/02733_distinct/ast.json | 9 + .../ast.json | 11 + .../02733_sparse_columns_reload/ast.json | 9 + .../testdata/02734_optimize_group_by/ast.json | 39 + .../02734_sparse_columns_mutation/ast.json | 9 + .../ast.json | 9 + .../02735_array_map_array_of_tuples/ast.json | 37 + .../02735_asof_join_right_null/ast.json | 20 + .../testdata/02735_parquet_encoder/ast.json | 11 + .../02735_system_zookeeper_auxiliary/ast.json | 9 + .../ast.json | 9 + .../testdata/02736_bit_count_big_int/ast.json | 25 + .../testdata/02737_arrayJaccardIndex/ast.json | 12 + .../testdata/02737_session_timezone/ast.json | 11 + .../testdata/02737_sql_auto_is_null/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../02751_match_constant_needle/ast.json | 21 + .../02751_multiif_to_if_crash/ast.json | 54 + .../ast.json | 93 + .../02751_query_log_test_partitions/ast.json | 11 + .../ast.json | 44 + .../testdata/02752_forbidden_headers/ast.json | 47 + parser/testdata/02752_space_function/ast.json | 12 + .../ast.json | 7 + .../02763_jit_compare_functions_nan/ast.json | 11 + .../ast.json | 9 + .../02764_index_analysis_fix/ast.json | 9 + .../ast.json | 9 + .../ast.json | 23 + .../ast.json | 59 + .../02768_cse_nested_distributed/ast.json | 61 + .../02769_compare_functions_nan/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../02771_log_faminy_truncate_count/ast.json | 9 + .../02771_parallel_replicas_analyzer/ast.json | 10 + .../ast.json | 5 + .../ast.json | 44 + .../testdata/02772_jit_date_time_add/ast.json | 11 + parser/testdata/02772_s3_crash/ast.json | 38 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02782_values_null_to_lc_nullable/ast.json | 30 + .../ast.json | 42 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02785_left_anti_join_bug/ast.json | 11 + .../ast.json | 9 + .../02786_max_execution_time_leaf/ast.json | 11 + .../testdata/02786_transform_float/ast.json | 67 + parser/testdata/02787_transform_null/ast.json | 48 + .../02788_current_schemas_function/ast.json | 18 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02790_keyed_hash_bug/ast.json | 42 + .../ast.json | 9 + .../02790_sql_standard_fetch/ast.json | 30 + .../02790_url_multiple_tsv_files/ast.json | 70 + .../ast.json | 11 + .../02792_alter_table_modify_comment/ast.json | 9 + .../02792_drop_projection_lwd/ast.json | 11 + .../02794_pushdown_invalid_get/ast.json | 67 + .../02796_calculate_text_stack_trace/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02797_range_nullable/ast.json | 17 + .../ast.json | 11 + .../testdata/02798_generic_transform/ast.json | 114 + .../testdata/02798_substring_index/ast.json | 28 + .../02799_transform_empty_arrays/ast.json | 48 + .../testdata/02800_transform_alter/ast.json | 9 + .../02801_transform_nullable/ast.json | 86 + .../02803_remote_cannot_clone_block/ast.json | 9 + .../02804_clusterAllReplicas_insert/ast.json | 9 + .../ast.json | 24 + .../testdata/02807_lower_utf8_msan/ast.json | 39 + .../testdata/02807_math_unary_crash/ast.json | 9 + .../testdata/02809_has_subsequence/ast.json | 12 + parser/testdata/02809_has_token/ast.json | 22 + .../testdata/02809_prewhere_and_in/ast.json | 9 + .../02809_storage_set_analysis_bug/ast.json | 9 + .../02810_convert_uuid_to_uint128/ast.json | 22 + .../ast.json | 9 + parser/testdata/02810_initcap/ast.json | 17 + .../02811_insert_schema_inference/ast.json | 9 + .../ast.json | 35 + .../ast.json | 9 + .../02811_primary_key_in_columns/ast.json | 9 + .../ast.json | 9 + .../ast.json | 72 + .../02812_csv_date_time_with_comma/ast.json | 44 + .../02812_from_to_utc_timestamp/ast.json | 9 + parser/testdata/02812_large_varints/ast.json | 34 + .../02812_pointwise_array_operations/ast.json | 47 + .../02812_subquery_operators/ast.json | 22 + parser/testdata/02813_any_value/ast.json | 18 + parser/testdata/02813_array_agg/ast.json | 9 + .../testdata/02813_array_concat_agg/ast.json | 9 + .../testdata/02813_create_index_noop/ast.json | 11 + .../02813_func_now_and_alias/ast.json | 32 + .../02813_func_today_and_alias/ast.json | 17 + .../ast.json | 11 + .../02813_seriesDecomposeSTL/ast.json | 9 + .../02813_seriesOutliersDetectTukey/ast.json | 9 + .../02813_series_period_detect/ast.json | 9 + .../02813_starting_in_text_log/ast.json | 3 + .../ast.json | 9 + parser/testdata/02814_age_datediff/ast.json | 51 + .../02814_create_index_uniq_noop/ast.json | 11 + .../ast.json | 9 + .../ast.json | 25 + .../testdata/02815_alias_to_length/ast.json | 17 + .../ast.json | 11 + parser/testdata/02815_first_line/ast.json | 17 + .../ast.json | 9 + .../02815_join_algorithm_setting/ast.json | 9 + .../ast.json | 29 + .../02815_range_dict_no_direct_join/ast.json | 38 + .../testdata/02816_has_token_empty/ast.json | 21 + .../testdata/02816_s2_invalid_point/ast.json | 47 + .../ast.json | 37 + .../ast.json | 9 + .../ast.json | 9 + .../02831_regexp_analyze_recursion/ast.json | 30 + parser/testdata/02831_trash/ast.json | 16 + .../ast.json | 11 + .../02833_array_join_columns/ast.json | 9 + .../02833_multiprewhere_extra_column/ast.json | 9 + .../ast.json | 9 + .../02833_starts_ends_with_utf8/ast.json | 21 + parser/testdata/02833_std_alias/ast.json | 9 + parser/testdata/02833_tuple_concat/ast.json | 11 + .../02834_add_sub_date_functions/ast.json | 11 + .../testdata/02834_alter_exception/ast.json | 9 + .../ast.json | 11 + .../02834_apache_arrow_abort/ast.json | 11 + .../02834_array_exists_segfault/ast.json | 9 + .../ast.json | 12 + .../testdata/02834_nulls_first_sort/ast.json | 9 + .../ast.json | 9 + .../02834_timestamp_function/ast.json | 11 + .../ast.json | 9 + .../testdata/02835_join_step_explain/ast.json | 11 + .../ast.json | 9 + .../ast.json | 12 + .../ast.json | 11 + .../02841_group_array_sorted/ast.json | 41 + .../02841_join_filter_set_sparse/ast.json | 9 + .../02841_not_ready_set_constraints/ast.json | 9 + .../ast.json | 9 + .../02841_parquet_filter_pushdown/ast.json | 11 + .../ast.json | 31 + parser/testdata/02841_tuple_modulo/ast.json | 28 + .../02841_with_clause_resolve/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../02842_move_pk_to_end_of_prewhere/ast.json | 11 + .../ast.json | 10 + .../testdata/02842_truncate_database/ast.json | 5 + .../ast.json | 9 + .../02843_context_has_expired/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/02845_arrayShiftRotate/ast.json | 12 + .../02845_domain_rfc_support_ipv6/ast.json | 22 + .../02845_group_by_constant_keys/ast.json | 96 + .../02845_join_on_cond_sparse/ast.json | 9 + .../02845_prewhere_preserve_column/ast.json | 9 + .../ast.json | 11 + .../02861_filter_pushdown_const_bug/ast.json | 11 + .../02861_index_set_incorrect_args/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02861_uuid_format_serialization/ast.json | 9 + .../02862_sorted_distinct_sparse_fix/ast.json | 11 + .../ast.json | 9 + .../02863_decode_html_component/ast.json | 17 + .../ast.json | 9 + .../02863_interpolate_subquery/ast.json | 9 + .../ast.json | 9 + .../02863_non_const_timezone_check/ast.json | 9 + .../02864_filtered_url_with_globs/ast.json | 34 + .../02864_profile_event_part_lock/ast.json | 9 + .../ast.json | 79 + .../02864_statistics_bug_67742/ast.json | 11 + .../02864_statistics_bug_69589/ast.json | 11 + .../ast.json | 10 + parser/testdata/02864_statistics_ddl/ast.json | 11 + .../ast.json | 9 + .../02864_statistics_predicates/ast.json | 11 + .../testdata/02864_statistics_usage/ast.json | 11 + .../02864_test_ipv4_type_mismatch/ast.json | 9 + .../ast.json | 18 + .../ast.json | 11 + .../testdata/02867_create_user_ssh/ast.json | 4 + parser/testdata/02867_null_lc_in_bug/ast.json | 10 + .../02867_nullable_primary_key_final/ast.json | 9 + .../ast.json | 9 + .../ast.json | 66 + .../ast.json | 9 + .../ast.json | 10 + .../ast.json | 11 + .../02870_per_column_settings/ast.json | 9 + .../testdata/02872_prewhere_filter/ast.json | 9 + .../ast.json | 26 + .../ast.json | 21 + .../ast.json | 11 + .../ast.json | 17 + .../02874_toDaysSinceYearZero/ast.json | 11 + .../ast.json | 9 + .../ast.json | 123 + .../02875_json_array_as_string/ast.json | 11 + .../ast.json | 9 + .../02875_parallel_replicas_remote/ast.json | 9 + .../ast.json | 11 + .../02876_sort_union_of_sorted/ast.json | 9 + .../02876_yyyymmddhhmmsstodatetime/ast.json | 11 + parser/testdata/02876_yyyymmddtodate/ast.json | 12 + .../02880_indexHint__partition_id/ast.json | 9 + parser/testdata/02882_formatQuery/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 42 + .../ast.json | 9 + .../02884_async_insert_skip_settings/ast.json | 10 + .../02884_duplicate_index_name/ast.json | 9 + .../ast.json | 15 + .../02884_parallel_window_functions/ast.json | 118 + .../ast.json | 123 + .../02884_string_distance_function/ast.json | 12 + .../02884_virtual_column_order_by/ast.json | 36 + .../02885_arg_min_max_combinator/ast.json | 69 + .../ast.json | 9 + parser/testdata/02886_binary_like/ast.json | 18 + parser/testdata/02887_byteswap/ast.json | 23 + .../02887_tuple_element_distributed/ast.json | 66 + .../ast.json | 54 + .../testdata/02888_obsolete_settings/ast.json | 12 + .../02889_datetime64_from_string/ast.json | 25 + .../02889_parts_columns_filenames/ast.json | 9 + .../02889_print_pretty_type_names/ast.json | 131 + .../02890_describe_table_options/ast.json | 9 + .../02890_named_tuple_functions/ast.json | 11 + .../ast.json | 9 + .../02890_untuple_column_names/ast.json | 12 + .../ast.json | 66 + parser/testdata/02891_array_shingles/ast.json | 12 + parser/testdata/02891_empty_tuple/ast.json | 9 + .../ast.json | 9 + .../02892_SummingMergeTree_Nested/ast.json | 9 + .../02892_orc_filter_pushdown/ast.json | 11 + .../02892_rocksdb_trivial_count/ast.json | 27 + .../02893_array_enum_has_hasAny/ast.json | 9 + .../testdata/02893_bad_sample_view/ast.json | 9 + .../02893_trash_optimization/ast.json | 60 + .../02893_vertical_final_bugs/ast.json | 9 + .../testdata/02895_cast_operator_bug/ast.json | 27 + .../02896_cyclic_aliases_crash/ast.json | 11 + .../02896_leading_zeroes_no_octal/ast.json | 9 + .../ast.json | 25 + parser/testdata/02896_multiple_OR/ast.json | 9 + .../ast.json | 45 + .../ast.json | 9 + .../ast.json | 10 + .../ast.json | 11 + .../ast.json | 12 + .../02900_date_time_check_overflow/ast.json | 11 + .../ast.json | 81 + parser/testdata/02900_issue_55858/ast.json | 11 + .../ast.json | 71 + .../ast.json | 11 + .../ast.json | 40 + .../02902_add_scalar_in_all_case/ast.json | 84 + .../02902_diable_apply_deleted_mask/ast.json | 9 + .../02902_json_skip_null_values/ast.json | 103 + .../ast.json | 29 + parser/testdata/02903_bug_43644/ast.json | 9 + .../02905_show_setting_query/ast.json | 11 + .../02905_system_logs_hostname/ast.json | 12 + .../02906_flatten_only_true_nested/ast.json | 11 + .../ast.json | 9 + .../02906_interval_comparison/ast.json | 25 + .../02906_orc_tuple_field_prune/ast.json | 11 + .../02907_filter_pushdown_crash/ast.json | 9 + .../02907_fromDaysSinceYearZero/ast.json | 11 + .../ast.json | 9 + .../ast.json | 49 + .../testdata/02910_rocksdb_optimize/ast.json | 27 + .../ast.json | 9 + .../02911_analyzer_explain_estimate/ast.json | 11 + .../ast.json | 25 + .../ast.json | 11 + .../02911_cte_invalid_query_analysis/ast.json | 9 + .../ast.json | 9 + .../ast.json | 5 + parser/testdata/02911_system_symbols/ast.json | 98 + .../02912_group_array_sample/ast.json | 98 + .../02912_ingestion_mv_deduplication/ast.json | 11 + parser/testdata/02913_sum_map_state/ast.json | 64 + .../testdata/02915_analyzer_fuzz_1/ast.json | 11 + .../testdata/02915_analyzer_fuzz_2/ast.json | 11 + .../testdata/02915_analyzer_fuzz_5/ast.json | 11 + .../testdata/02915_analyzer_fuzz_6/ast.json | 11 + .../ast.json | 5 + .../testdata/02916_addcolumn_nested/ast.json | 11 + .../02916_analyzer_set_in_join/ast.json | 69 + .../ast.json | 5 + .../ast.json | 11 + .../testdata/02916_date_text_parsing/ast.json | 35 + .../ast.json | 9 + .../testdata/02916_glogal_in_cancel/ast.json | 25 + .../ast.json | 46 + .../ast.json | 11 + .../02918_alter_temporary_table/ast.json | 9 + .../testdata/02918_join_pm_lc_crash/ast.json | 18 + .../ast.json | 9 + .../ast.json | 9 + .../02918_wrong_dictionary_source/ast.json | 9 + .../ast.json | 9 + .../testdata/02919_ddsketch_quantile/ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/02919_storage_fuzzjson/ast.json | 9 + .../ast.json | 9 + .../02920_fix_json_merge_patch/ast.json | 83 + .../ast.json | 9 + .../ast.json | 14 + .../02921_fuzzbits_with_array_join/ast.json | 68 + .../ast.json | 12 + .../ast.json | 17 + .../02922_respect_nulls_states/ast.json | 50 + .../02923_cte_equality_disjunction/ast.json | 21 + .../ast.json | 9 + .../testdata/02931_max_num_to_warn/ast.json | 5 + .../ast.json | 11 + .../ast.json | 61 + .../ast.json | 11 + .../02932_apply_deleted_mask/ast.json | 9 + .../02932_group_by_null_fuzzer/ast.json | 11 + parser/testdata/02932_idna/ast.json | 12 + .../testdata/02932_lwd_and_mutations/ast.json | 9 + .../ast.json | 11 + .../02932_non_ready_set_stuck/ast.json | 39 + .../02932_parallel_replicas_fuzzer/ast.json | 11 + parser/testdata/02932_punycode/ast.json | 12 + .../ast.json | 44 + .../ast.json | 10 + parser/testdata/02932_set_ttl_where/ast.json | 9 + .../ast.json | 19 + parser/testdata/02933_ephemeral_mv/ast.json | 27 + parser/testdata/02933_sqid/ast.json | 11 + .../02934_merge_tree_max_projections/ast.json | 9 + .../ast.json | 26 + .../ast.json | 11 + .../02935_ipv6_from_uint128_equality/ast.json | 36 + .../02935_ipv6_from_uint128_one/ast.json | 22 + .../02935_ipv6_from_uint128_two/ast.json | 22 + .../ast.json | 36 + .../02935_ipv6_to_and_from_uint128/ast.json | 27 + .../02935_parallel_replicas_settings/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02942_variant_cast/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/02943_order_by_all/ast.json | 9 + .../02943_positional_arguments_bugs/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/02943_variant_element/ast.json | 11 + .../ast.json | 11 + parser/testdata/02945_blake3_msan/ast.json | 27 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 10 + .../02947_dropped_tables_parts/ast.json | 9 + .../02947_merge_tree_index_table_1/ast.json | 9 + .../02947_merge_tree_index_table_2/ast.json | 9 + .../02947_merge_tree_index_table_4/ast.json | 9 + .../02947_parallel_replicas_remote/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/02949_ttl_group_by_bug/ast.json | 11 + .../02950_dictionary_short_circuit/ast.json | 9 + .../ast.json | 9 + .../02950_part_offset_as_primary_key/ast.json | 11 + .../ast.json | 9 + .../02952_conjunction_optimization/ast.json | 11 + .../testdata/02953_slow_create_view/ast.json | 9 + .../ast.json | 9 + .../02955_sparkBar_alias_sparkbar/ast.json | 11 + .../ast.json | 35 + .../testdata/02956_format_constexpr/ast.json | 26 + .../testdata/02956_rocksdb_with_ttl/ast.json | 34 + .../ast.json | 9 + .../02960_validate_database_engines/ast.json | 5 + .../ast.json | 11 + .../ast.json | 11 + .../02961_read_bool_as_string_json/ast.json | 11 + .../02961_sumMapFiltered_keepKey/ast.json | 215 + .../ast.json | 11 + .../02962_analyzer_constant_set/ast.json | 9 + .../ast.json | 245 + .../02962_indexHint_rpn_construction/ast.json | 48 + .../02962_join_using_bug_57894/ast.json | 9 + .../02962_max_joined_block_rows/ast.json | 9 + .../ast.json | 38 + .../02963_invalid_identifier/ast.json | 34 + .../ast.json | 57 + .../02963_single_value_destructor/ast.json | 65 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/02966_float32_promotion/ast.json | 9 + parser/testdata/02967_fuzz_bad_cast/ast.json | 9 + .../testdata/02967_index_hint_crash/ast.json | 48 + .../ast.json | 9 + .../ast.json | 9 + .../02968_full_sorting_join_fuzz/ast.json | 25 + .../testdata/02968_projection_merge/ast.json | 12 + parser/testdata/02968_url_args/ast.json | 53 + .../ast.json | 11 + .../ast.json | 9 + .../02969_mysql_cast_type_aliases/ast.json | 11 + .../testdata/02970_generate_series/ast.json | 32 + .../02970_visible_width_behavior/ast.json | 17 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02971_limit_by_distributed/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../02972_parallel_replicas_cte/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 21 + .../ast.json | 9 + parser/testdata/02974_if_with_map/ast.json | 91 + .../02975_intdiv_with_decimal/ast.json | 21 + .../02975_system_zookeeper_retries/ast.json | 95 + .../02976_system_zookeeper_filters/ast.json | 11 + .../02977_csv_format_support_tuple/ast.json | 11 + .../testdata/02981_nested_bad_types/ast.json | 11 + .../02981_translate_fixedstring/ast.json | 38 + .../02981_variant_type_function/ast.json | 11 + .../ast.json | 9 + parser/testdata/02982_changeDate/ast.json | 12 + .../02982_create_mv_inner_extra/ast.json | 9 + .../ast.json | 9 + .../02982_unambiguous_alter_commands/ast.json | 12 + .../02983_const_sharding_key/ast.json | 5 + parser/testdata/02983_empty_map/ast.json | 145 + .../02983_empty_map_hasToken/ast.json | 61 + .../testdata/02984_topk_empty_merge/ast.json | 77 + .../ast.json | 11 + .../02985_if_over_big_int_decimal/ast.json | 60 + .../ast.json | 9 + .../02985_shard_query_start_time/ast.json | 9 + .../02986_leftpad_fixedstring/ast.json | 48 + .../02987_group_array_intersect/ast.json | 11 + .../ast.json | 21 + .../ast.json | 9 + .../02988_ordinary_database_warning/ast.json | 5 + parser/testdata/02989_group_by_tuple/ast.json | 63 + .../02989_join_using_parent_scope/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../02989_variant_comparison/ast.json | 11 + .../02990_arrayFold_nullable_lc/ast.json | 11 + .../02990_format_not_precedence/ast.json | 25 + .../ast.json | 9 + .../ast.json | 9 + .../02990_rmt_replica_path_uuid/ast.json | 11 + .../02990_variant_where_cond/ast.json | 11 + .../02991_count_rewrite_analyzer/ast.json | 11 + .../ast.json | 3 + .../02992_analyzer_group_by_const/ast.json | 11 + .../testdata/02992_settings_overflow/ast.json | 14 + .../02993_lazy_index_loading/ast.json | 9 + .../02993_values_escape_quote/ast.json | 17 + .../02994_cosineDistanceNullable/ast.json | 44 + .../02994_inconsistent_formatting/ast.json | 12 + .../02994_sanity_check_settings/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../02996_nullable_arrayReduce/ast.json | 31 + .../ast.json | 9 + .../02998_analyzer_prewhere_report/ast.json | 43 + .../ast.json | 11 + parser/testdata/02998_ipv6_hashing/ast.json | 55 + .../02998_operator_respect_nulls/ast.json | 21 + .../ast.json | 11 + .../02998_primary_key_skip_columns/ast.json | 9 + .../ast.json | 9 + .../testdata/02998_to_milliseconds/ast.json | 11 + .../02999_analyzer_preimage_null/ast.json | 11 + .../02999_scalar_subqueries_bug_1/ast.json | 9 + .../02999_scalar_subqueries_bug_2/ast.json | 9 + .../02999_ulid_short_circuit/ast.json | 11 + .../02999_variant_suspicious_types/ast.json | 11 + .../03000_minmax_index_first/ast.json | 9 + .../ast.json | 21 + .../ast.json | 9 + .../ast.json | 11 + .../03001_block_offset_column_2/ast.json | 9 + .../03001_consider_lwd_when_merge/ast.json | 9 + .../03001_data_version_column/ast.json | 9 + .../ast.json | 10 + .../ast.json | 9 + .../testdata/03002_analyzer_prewhere/ast.json | 137 + .../ast.json | 11 + .../ast.json | 25 + .../ast.json | 53 + .../testdata/03002_modify_query_cte/ast.json | 37 + .../03002_sample_factor_where/ast.json | 9 + .../testdata/03003_analyzer_setting/ast.json | 30 + .../ast.json | 21 + .../03003_count_asterisk_filter/ast.json | 32 + .../ast.json | 9 + .../03004_force_null_for_omitted/ast.json | 11 + .../ast.json | 11 + .../03005_input_function_in_join/ast.json | 9 + .../03006_buffer_overflow_join/ast.json | 29 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 64 + .../ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../03008_deduplication_wrong_mv/ast.json | 9 + .../ast.json | 21 + parser/testdata/03008_index_small/ast.json | 9 + .../03008_optimize_equal_ranges/ast.json | 9 + .../03008_uniq_exact_equal_ranges/ast.json | 9 + .../03009_consecutive_keys_nullable/ast.json | 9 + .../03009_range_dict_get_or_default/ast.json | 9 + .../ast.json | 11 + .../ast.json | 34 + .../ast.json | 9 + .../ast.json | 11 + .../testdata/03010_view_prewhere_in/ast.json | 9 + .../ast.json | 46 + .../ast.json | 46 + .../03011_definitive_guide_to_cast/ast.json | 11 + .../03012_prewhere_merge_distributed/ast.json | 9 + .../03013_addDays_with_timezone/ast.json | 38 + .../ast.json | 121 + .../ast.json | 11 + .../ast.json | 14 + .../03013_position_const_start_pos/ast.json | 14 + .../ast.json | 49 + .../ast.json | 11 + .../ast.json | 39 + .../ast.json | 25 + .../03014_msan_parse_date_time/ast.json | 26 + .../ast.json | 15 + parser/testdata/03015_peder1001/ast.json | 9 + .../ast.json | 45 + parser/testdata/03019_numbers_pretty/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../03022_highlight_digit_groups/ast.json | 11 + .../ast.json | 11 + .../ast.json | 18 + .../ast.json | 130 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 118 + .../ast.json | 213 + .../ast.json | 11 + .../ast.json | 25 + .../ast.json | 5 + .../03031_table_function_fuzzquery/ast.json | 43 + .../03031_tuple_elimination_analyzer/ast.json | 9 + .../ast.json | 36 + parser/testdata/03032_numbers_zeros/ast.json | 12 + .../testdata/03032_redundant_equals/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03032_scalars_create_as_select/ast.json | 89 + .../ast.json | 11 + .../03032_string_to_variant_cast/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 27 + .../ast.json | 20 + .../03033_create_as_copies_comment/ast.json | 9 + .../03033_cte_numbers_memory/ast.json | 11 + .../ast.json | 9 + .../03033_dynamic_text_serialization/ast.json | 11 + .../03033_final_undefined_last_mark/ast.json | 9 + .../ast.json | 25 + .../03033_lightweight_deletes_sync/ast.json | 9 + .../ast.json | 46 + .../03033_recursive_cte_basic/ast.json | 11 + .../03033_scalars_context_data_race/ast.json | 9 + parser/testdata/03033_set_index_in/ast.json | 11 + .../ast.json | 47 + .../03033_virtual_column_override/ast.json | 9 + .../03033_with_fill_interpolate/ast.json | 11 + .../ast.json | 11 + .../03034_dynamic_conversions/ast.json | 11 + .../03034_json_extract_variant/ast.json | 36 + parser/testdata/03034_normalized_ast/ast.json | 11 + .../03034_recursive_cte_tree/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 72 + .../testdata/03035_dynamic_sorting/ast.json | 11 + .../ast.json | 11 + .../03035_materialized_primary_key/ast.json | 9 + .../03035_morton_encode_no_rows/ast.json | 39 + parser/testdata/03036_clamp/ast.json | 25 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03036_prewhere_lambda_function/ast.json | 9 + .../03036_reading_s3_archives/ast.json | 87 + .../ast.json | 12 + .../ast.json | 49 + parser/testdata/03036_with_numbers/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/03037_precent_rank/ast.json | 9 + parser/testdata/03037_union_view/ast.json | 11 + .../ast.json | 34 + .../testdata/03038_ambiguous_column/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/03040_alias_column_join/ast.json | 11 + .../03040_array_sum_and_join/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03041_analyzer_gigachad_join/ast.json | 11 + .../03041_select_with_query_result/ast.json | 11 + .../03042_analyzer_alias_join/ast.json | 11 + .../03042_not_found_column_c1/ast.json | 11 + .../ast.json | 11 + .../03044_analyzer_alias_join/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03046_column_in_block_array_join/ast.json | 11 + .../03047_analyzer_alias_join/ast.json | 11 + .../ast.json | 11 + .../03047_on_fly_mutations_events/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../03047_on_fly_mutations_prewhere/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03047_on_fly_update_delete/ast.json | 9 + .../ast.json | 11 + .../03049_analyzer_group_by_alias/ast.json | 11 + .../ast.json | 11 + .../03050_select_one_one_one/ast.json | 11 + parser/testdata/03051_many_ctes/ast.json | 11 + .../ast.json | 11 + .../03053_analyzer_join_alias/ast.json | 11 + .../03054_analyzer_join_alias/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03058_analyzer_ambiguous_columns/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03064_analyzer_named_subqueries/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03068_analyzer_distributed_join/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03075_analyzer_subquery_alias/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03080_incorrect_join_with_merge/ast.json | 11 + .../03081_analyzer_agg_func_CTE/ast.json | 11 + .../ast.json | 11 + .../03084_analyzer_join_column_alias/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03089_analyzer_alias_replacement/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03093_analyzer_column_alias/ast.json | 11 + .../03093_analyzer_miel_test/ast.json | 9 + .../ast.json | 11 + .../03093_special_column_errors/ast.json | 46 + .../ast.json | 31 + .../03094_analyzer_fiddle_multiif/ast.json | 9 + .../03094_grouparraysorted_memory/ast.json | 109 + .../03094_one_thousand_joins/ast.json | 11 + .../03094_transform_return_first/ast.json | 51 + .../03094_virtual_column_table_name/ast.json | 11 + .../ast.json | 50 + .../ast.json | 9 + .../03095_merge_and_buffer_tables/ast.json | 9 + .../03095_msan_uuid_string_to_num/ast.json | 21 + .../03095_window_functions_qualify/ast.json | 11 + .../03096_order_by_system_tables/ast.json | 3 + .../03096_update_non_indexed_columns/ast.json | 9 + .../03097_query_log_join_processes/ast.json | 3 + .../ast.json | 9 + .../03099_analyzer_multi_join/ast.json | 11 + .../ast.json | 11 + parser/testdata/03100_lwu_01_basics/ast.json | 11 + parser/testdata/03100_lwu_02_basics/ast.json | 11 + parser/testdata/03100_lwu_03_join/ast.json | 11 + .../testdata/03100_lwu_04_prewhere/ast.json | 10 + parser/testdata/03100_lwu_05_basics/ast.json | 9 + .../03100_lwu_06_apply_patches/ast.json | 11 + .../03100_lwu_07_merge_patches/ast.json | 10 + .../03100_lwu_08_multiple_blocks/ast.json | 9 + .../03100_lwu_09_different_structure/ast.json | 11 + .../03100_lwu_10_apply_on_merges/ast.json | 10 + .../ast.json | 10 + .../testdata/03100_lwu_18_sequence/ast.json | 9 + .../testdata/03100_lwu_19_nullable/ast.json | 9 + .../03100_lwu_20_different_structure/ast.json | 9 + .../ast.json | 10 + .../03100_lwu_23_apply_patches/ast.json | 10 + .../testdata/03100_lwu_26_subcolumns/ast.json | 9 + .../ast.json | 10 + .../testdata/03100_lwu_30_join_cache/ast.json | 9 + .../03100_lwu_31_merge_memory_usage/ast.json | 11 + .../03100_lwu_32_on_fly_filter/ast.json | 11 + .../testdata/03100_lwu_33_add_column/ast.json | 9 + .../03100_lwu_34_multistep_prewhere/ast.json | 9 + .../03100_lwu_35_lock_profile_events/ast.json | 10 + .../03100_lwu_36_json_skip_indexes/ast.json | 11 + .../03100_lwu_37_update_all_columns/ast.json | 9 + .../testdata/03100_lwu_38_replacing/ast.json | 9 + .../ast.json | 9 + .../03100_lwu_41_bytes_limits/ast.json | 9 + .../03100_lwu_43_subquery_from_rmt/ast.json | 10 + .../03100_lwu_44_missing_default/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/03100_lwu_deletes_1/ast.json | 9 + parser/testdata/03100_lwu_deletes_2/ast.json | 9 + parser/testdata/03100_lwu_deletes_3/ast.json | 10 + .../03100_lwu_deletes_4_index/ast.json | 10 + .../ast.json | 9 + .../03101_analyzer_identifiers_1/ast.json | 11 + .../03101_analyzer_identifiers_2/ast.json | 11 + .../03101_analyzer_identifiers_3/ast.json | 11 + .../03101_analyzer_identifiers_4/ast.json | 11 + .../03101_analyzer_invalid_join_on/ast.json | 9 + .../ast.json | 9 + .../03103_positional_arguments/ast.json | 11 + .../testdata/03104_create_view_join/ast.json | 9 + .../03105_table_aliases_in_mv/ast.json | 9 + .../ast.json | 9 + .../03108_describe_union_all/ast.json | 11 + parser/testdata/03109_ast_too_big/ast.json | 11 + parser/testdata/03110_unicode_alias/ast.json | 11 + .../03111_inner_join_group_by/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../03114_analyzer_cte_with_join/ast.json | 11 + .../03115_alias_exists_column/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03120_analyzer_dist_join/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03123_analyzer_dist_join_CTE/ast.json | 11 + .../ast.json | 11 + .../03125_analyzer_CTE_two_joins/ast.json | 11 + .../03126_column_not_under_group_by/ast.json | 11 + .../03127_argMin_combinator_state/ast.json | 45 + .../ast.json | 9 + .../03127_window_functions_uint16/ast.json | 37 + .../ast.json | 10 + .../03128_merge_tree_index_lazy_load/ast.json | 9 + .../03128_system_unload_primary_key/ast.json | 9 + parser/testdata/03129_cte_with_final/ast.json | 9 + .../ast.json | 9 + .../03129_serial_test_zookeeper/ast.json | 23 + .../ast.json | 11 + .../03130_abs_in_key_condition_bug/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03130_generateSnowflakeId/ast.json | 12 + .../03131_deprecated_functions/ast.json | 43 + parser/testdata/03131_hilbert_coding/ast.json | 12 + .../03131_rewrite_sum_if_nullable/ast.json | 40 + .../ast.json | 11 + .../ast.json | 11 + .../03132_sqlancer_union_all/ast.json | 11 + .../03141_fetches_errors_stress/ast.json | 36 + .../ast.json | 9 + .../ast.json | 35 + parser/testdata/03142_untuple_crash/ast.json | 11 + .../03142_window_function_limit_by/ast.json | 11 + .../03143_asof_join_ddb_long/ast.json | 9 + parser/testdata/03143_cte_scope/ast.json | 11 + .../ast.json | 68 + .../ast.json | 9 + .../ast.json | 10 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03144_alter_column_and_read/ast.json | 9 + .../03144_asof_join_ddb_doubles/ast.json | 11 + parser/testdata/03144_invalid_filter/ast.json | 11 + .../03145_asof_join_ddb_inequalities/ast.json | 9 + parser/testdata/03145_unicode_quotes/ast.json | 15 + parser/testdata/03146_bug47862/ast.json | 151 + .../ast.json | 9 + .../testdata/03146_tpc_ds_grouping/ast.json | 11 + .../03147_asof_join_ddb_missing/ast.json | 11 + .../ast.json | 9 + .../03147_parquet_memory_tracking/ast.json | 65 + .../03147_rows_before_limit_fix/ast.json | 11 + .../03147_table_function_loop/ast.json | 35 + .../ast.json | 9 + .../03148_asof_join_ddb_subquery/ast.json | 9 + .../03148_mutations_virtual_columns/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 31 + .../03149_asof_join_ddb_timestamps/ast.json | 9 + .../03149_variant_pop_back_typo/ast.json | 84 + .../03150_dynamic_type_mv_insert/ast.json | 11 + .../ast.json | 9 + .../03150_infer_type_variant/ast.json | 11 + .../03150_trace_log_add_build_id/ast.json | 11 + .../ast.json | 41 + .../ast.json | 9 + .../ast.json | 11 + .../03151_external_cross_join/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03152_analyzer_columns_list/ast.json | 38 + .../03152_dynamic_type_simple/ast.json | 11 + .../ast.json | 11 + .../ast.json | 24 + .../03153_dynamic_type_empty/ast.json | 11 + .../ast.json | 24 + .../03154_recursive_cte_distributed/ast.json | 11 + .../03155_analyzer_interpolate/ast.json | 11 + .../03155_datasketches_ubsan/ast.json | 85 + .../03155_in_nested_subselects/ast.json | 11 + .../ast.json | 34 + parser/testdata/03156_group_concat/ast.json | 9 + .../03156_nullable_number_tips/ast.json | 11 + .../03156_tuple_map_low_cardinality/ast.json | 9 + .../testdata/03157_dynamic_type_json/ast.json | 11 + .../ast.json | 21 + .../03158_dynamic_type_from_variant/ast.json | 11 + .../03159_dynamic_type_all_types/ast.json | 11 + .../testdata/03160_dynamic_type_agg/ast.json | 11 + parser/testdata/03161_cnf_reduction/ast.json | 9 + .../03161_create_table_as_mv/ast.json | 9 + .../03161_ipv4_ipv6_equality/ast.json | 29 + .../ast.json | 18 + .../03162_dynamic_type_nested/ast.json | 11 + .../03163_dynamic_as_supertype/ast.json | 11 + .../ast.json | 11 + .../03164_analyzer_global_in_alias/ast.json | 11 + .../ast.json | 76 + .../ast.json | 6008 +++++++++++++++++ .../testdata/03164_create_as_default/ast.json | 9 + .../ast.json | 218 + .../03164_linestring_geometry/ast.json | 17 + .../03164_materialize_skip_index/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + parser/testdata/03164_orc_signedness/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03165_order_by_duplicate/ast.json | 44 + .../testdata/03165_parseReadableSize/ast.json | 22 + .../ast.json | 9 + .../ast.json | 12 + .../ast.json | 14 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../03167_base64_url_functions/ast.json | 11 + .../03167_empty_tuple_concat/ast.json | 19 + .../03167_fancy_quotes_off_by_one/ast.json | 15 + .../03167_parametrized_view_with_cte/ast.json | 11 + .../ast.json | 9 + .../ast.json | 43 + parser/testdata/03168_cld2_tsan/ast.json | 78 + .../ast.json | 5 + .../03168_read_in_order_buffering_1/ast.json | 9 + .../03168_read_in_order_buffering_2/ast.json | 9 + .../ast.json | 9 + .../ast.json | 55 + .../03169_modify_column_data_loss/ast.json | 9 + .../ast.json | 128 + .../ast.json | 30 + .../03171_condition_pushdown/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 32 + .../03171_indexing_by_hilbert_curve/ast.json | 11 + .../testdata/03172_bcrypt_validation/ast.json | 4 + .../03172_format_settings_clauses/ast.json | 18 + .../ast.json | 12 + .../ast.json | 9 + .../ast.json | 172 + parser/testdata/03173_forbid_qualify/ast.json | 9 + .../ast.json | 12 + .../ast.json | 32 + .../ast.json | 12 + parser/testdata/03174_merge_join_bug/ast.json | 18 + .../03174_projection_deduplicate/ast.json | 9 + .../ast.json | 48 + .../03175_sparse_and_skip_index/ast.json | 9 + .../ast.json | 33 + .../ast.json | 9 + .../ast.json | 9 + .../03197_fix_parse_mysql_iso_date/ast.json | 26 + .../ast.json | 9 + .../ast.json | 12 + .../03198_dynamic_read_subcolumns/ast.json | 11 + .../03198_group_array_intersect/ast.json | 9 + .../03198_json_extract_more_types/ast.json | 11 + .../ast.json | 37 + .../03199_fix_auc_tie_handling/ast.json | 40 + .../03199_has_lc_fixed_string/ast.json | 9 + .../ast.json | 11 + .../03199_json_extract_dynamic/ast.json | 11 + .../testdata/03199_merge_filters_bug/ast.json | 11 + .../03199_queries_with_new_analyzer/ast.json | 11 + .../ast.json | 11 + .../03200_subcolumns_join_use_nulls/ast.json | 9 + .../ast.json | 49 + .../ast.json | 11 + parser/testdata/03202_enum_json_cast/ast.json | 9 + .../03202_system_load_primary_key/ast.json | 9 + .../ast.json | 32 + .../ast.json | 9 + .../03203_fill_missed_subcolumns/ast.json | 9 + .../testdata/03203_function_printf/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 12 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/03204_index_hint_fuzzer/ast.json | 31 + .../03204_storage_join_optimize/ast.json | 38 + .../03205_hashing_empty_tuples/ast.json | 17 + .../03205_json_cast_from_string/ast.json | 11 + parser/testdata/03205_json_syntax/ast.json | 11 + parser/testdata/03205_overlay/ast.json | 12 + .../ast.json | 11 + .../ast.json | 27 + .../03205_system_sync_replica_format/ast.json | 17 + .../ast.json | 16 + .../ast.json | 9 + .../ast.json | 9 + .../03206_replication_lag_metric/ast.json | 22 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 38 + .../ast.json | 9 + .../03208_numbers_total_rows_approx/ast.json | 62 + .../03208_uniq_with_empty_tuple/ast.json | 16 + .../ast.json | 195 + .../ast.json | 10 + .../ast.json | 10 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/03210_dynamic_squashing/ast.json | 11 + .../03210_empty_tuple_lhs_of_in/ast.json | 33 + .../ast.json | 78 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03213_array_element_msan/ast.json | 66 + parser/testdata/03213_deep_json/ast.json | 53 + .../ast.json | 12 + .../03213_distributed_analyzer/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../03214_json_typed_dynamic_path/ast.json | 11 + .../ast.json | 11 + .../ast.json | 21 + .../03215_fix_get_index_in_tuple/ast.json | 35 + .../testdata/03215_key_condition_bug/ast.json | 21 + .../03215_multilinestring_geometry/ast.json | 17 + parser/testdata/03215_parquet_index/ast.json | 9 + .../03215_parsing_archive_name_s3/ast.json | 11 + .../03215_partition_in_tuple/ast.json | 109 + .../ast.json | 26 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03215_view_with_recursive/ast.json | 11 + .../03216_arrayWithConstant_limits/ast.json | 26 + .../03217_datetime64_constant_to_ast/ast.json | 11 + .../03217_filtering_in_system_tables/ast.json | 57 + .../03217_fliter_pushdown_no_keys/ast.json | 60 + .../ast.json | 26 + .../03217_primary_index_memory_leak/ast.json | 9 + .../testdata/03218_materialize_msan/ast.json | 11 + .../ast.json | 11 + .../03221_incomplete_utf8_sequence/ast.json | 11 + .../testdata/03221_key_condition_bug/ast.json | 23 + .../03221_merge_profile_events/ast.json | 9 + .../03221_variant_logical_error/ast.json | 11 + .../03222_create_timeseries_table/ast.json | 11 + .../03222_date_time_inference/ast.json | 11 + .../ast.json | 11 + .../03222_json_empty_as_default/ast.json | 18 + parser/testdata/03222_json_squashing/ast.json | 11 + .../ast.json | 9 + .../ast.json | 10 + .../03222_pr_asan_index_granularity/ast.json | 9 + .../03223_analyzer_with_cube_fuzz/ast.json | 11 + .../ast.json | 12 + .../ast.json | 11 + .../ast.json | 9 + parser/testdata/03224_arrayUnion/ast.json | 9 + parser/testdata/03224_invalid_alter/ast.json | 57 + .../ast.json | 11 + .../ast.json | 11 + .../03224_tuple_element_identifier/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/03227_implicit_select/ast.json | 11 + .../03227_json_invalid_regexp/ast.json | 11 + parser/testdata/03227_test_sample_n/ast.json | 38 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../03228_pr_subquery_view_order_by/ast.json | 9 + .../03228_variant_permutation_issue/ast.json | 11 + .../03228_virtual_column_merge_dist/ast.json | 11 + .../03229_async_insert_alter/ast.json | 11 + .../03229_empty_tuple_in_array/ast.json | 23 + .../ast.json | 11 + .../03229_json_structure_comparison/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 10 + parser/testdata/03230_anyHeavy_merge/ast.json | 9 + .../03230_array_zip_unaligned/ast.json | 58 + .../ast.json | 29 + .../ast.json | 9 + parser/testdata/03230_subcolumns_mv/ast.json | 9 + .../03230_system_projections/ast.json | 9 + .../03231_create_with_clone_as/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../03231_dynamic_uniq_group_by/ast.json | 11 + .../ast.json | 11 + .../03231_pr_duplicate_announcement/ast.json | 10 + .../ast.json | 10 + .../03231_pr_reverse_in_order/ast.json | 10 + .../03231_prewhere_conditions_order/ast.json | 9 + .../ast.json | 9 + .../03232_json_uniq_group_by/ast.json | 11 + .../testdata/03232_pr_not_ready_set/ast.json | 3 + .../03233_dynamic_in_functions/ast.json | 11 + .../03234_enable_secure_identifiers/ast.json | 9 + .../03234_get_setting_or_default/ast.json | 11 + .../ast.json | 27 + .../03236_create_query_ttl_where/ast.json | 9 + .../ast.json | 9 + .../03236_squashing_high_memory/ast.json | 11 + .../03236_test_zero_field_decimal/ast.json | 9 + .../ast.json | 9 + .../ast.json | 46 + .../03238_analyzer_unknown_function/ast.json | 107 + .../03239_if_constant_folding/ast.json | 11 + .../03240_array_element_or_null/ast.json | 9 + .../ast.json | 12 + .../testdata/03240_cte_in_subquery/ast.json | 11 + .../03240_insert_select_named_tuple/ast.json | 11 + .../ast.json | 9 + .../03241_orc_dictionary_encode/ast.json | 11 + .../03241_view_block_structure/ast.json | 9 + .../03242_view_block_structure/ast.json | 9 + .../testdata/03243_array_join_lambda/ast.json | 85 + .../ast.json | 9 + .../03243_cluster_not_found_column/ast.json | 11 + .../ast.json | 12 + .../ast.json | 9 + .../testdata/03243_lower_utf8_msan/ast.json | 32 + .../ast.json | 40 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/03245_ripemd160/ast.json | 22 + .../ast.json | 97 + .../03246_alter_update_dynamic_hung/ast.json | 11 + .../testdata/03246_join_on_asterisk/ast.json | 9 + .../ast.json | 11 + .../03246_json_tuple_decompress_race/ast.json | 25 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 35 + .../03247_json_extract_lc_nullable/ast.json | 25 + .../03247_object_column_copy/ast.json | 11 + .../ast.json | 10 + .../testdata/03248_max_parts_to_move/ast.json | 9 + .../03248_with_fill_string_crash/ast.json | 34 + parser/testdata/03248_with_insert/ast.json | 9 + .../03249_dynamic_alter_consistency/ast.json | 11 + .../03250_avoid_prefetch_empty_parts/ast.json | 9 + .../testdata/03250_ephemeral_comment/ast.json | 9 + .../ast.json | 11 + .../ast.json | 131 + .../ast.json | 11 + .../03252_fill_missed_arrays/ast.json | 9 + .../ast.json | 11 + .../03253_getMaxTableNameLength/ast.json | 17 + .../testdata/03254_attach_part_order/ast.json | 59 + .../ast.json | 11 + .../ast.json | 11 + .../03254_merge_source_parts/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/03254_pr_join_on_dups/ast.json | 10 + .../03254_prewarm_mark_cache_columns/ast.json | 9 + .../03254_prewarm_mark_cache_rmt/ast.json | 9 + .../ast.json | 9 + .../03254_system_prewarm_mark_cache/ast.json | 9 + .../03254_timeseries_functions/ast.json | 39 + .../ast.json | 46 + .../03254_timeseries_group_array/ast.json | 39 + .../ast.json | 11 + .../testdata/03254_timeseries_range/ast.json | 51 + .../ast.json | 33 + .../ast.json | 33 + .../ast.json | 9 + .../03256_invalid_mutation_query/ast.json | 9 + .../03257_json_escape_file_names/ast.json | 11 + .../03257_reverse_sorting_key/ast.json | 11 + .../03257_reverse_sorting_key_simple/ast.json | 11 + .../ast.json | 9 + parser/testdata/03257_setting_tiers/ast.json | 42 + .../ast.json | 11 + .../03258_multiple_array_joins/ast.json | 11 + .../ast.json | 70 + .../03259_grouping_sets_aliases/ast.json | 9 + .../ast.json | 9 + .../03259_negate_key_overflow/ast.json | 21 + .../03259_orc_date_out_of_range/ast.json | 11 + .../ast.json | 11 + .../ast.json | 12 + .../03261_delayed_streams_memory/ast.json | 9 + .../ast.json | 18 + .../03261_minmax_indices_by_default/ast.json | 11 + .../ast.json | 9 + .../03261_mongodb_argumetns_crash/ast.json | 46 + .../ast.json | 9 + .../testdata/03261_pr_semi_anti_join/ast.json | 10 + .../testdata/03261_sort_cursor_crash/ast.json | 9 + .../03261_tuple_map_to_json_cast/ast.json | 11 + .../03261_variant_permutation_bug/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../03262_filter_push_down_view/ast.json | 9 + .../ast.json | 38 + .../ast.json | 11 + .../ast.json | 23 + .../03263_parquet_write_bloom_filter/ast.json | 11 + .../ast.json | 9 + .../03266_with_fill_staleness/ast.json | 11 + .../03266_with_fill_staleness_cases/ast.json | 11 + .../03266_with_fill_staleness_errors/ast.json | 11 + parser/testdata/03267_join_swap_bug/ast.json | 9 + .../03268_empty_tuple_update/ast.json | 9 + .../testdata/03268_nested_analyzer/ast.json | 11 + .../ast.json | 9 + .../03268_vertical_pretty_numbers/ast.json | 25 + .../03269_partition_key_not_in_set/ast.json | 9 + .../ast.json | 21 + .../ast.json | 9 + .../ast.json | 78 + .../ast.json | 9 + .../ast.json | 9 + .../03271_dynamic_variant_in_min_max/ast.json | 11 + .../ast.json | 56 + .../ast.json | 11 + .../03271_sqllancer_having_issue/ast.json | 16 + parser/testdata/03272_arrayAUCPR/ast.json | 64 + .../03272_bad_aggregate_function/ast.json | 21 + .../ast.json | 22 + .../03272_json_to_json_cast_1/ast.json | 11 + .../03272_json_to_json_cast_2/ast.json | 11 + .../03272_json_to_json_cast_3/ast.json | 11 + .../03272_json_to_json_cast_4/ast.json | 11 + .../03272_json_to_json_cast_5/ast.json | 11 + .../03272_json_to_json_cast_6/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 37 + .../03273_primary_index_cache/ast.json | 9 + .../ast.json | 9 + parser/testdata/03274_aliases_in_udf/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../03274_join_algorithm_default/ast.json | 11 + .../03274_json_pretty_output/ast.json | 11 + .../ast.json | 11 + parser/testdata/03274_philipzucker/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03275_block_number_mutation/ast.json | 10 + .../03275_block_number_update/ast.json | 9 + .../ast.json | 11 + .../03275_matview_with_union/ast.json | 9 + parser/testdata/03275_pr_any_join/ast.json | 10 + .../ast.json | 9 + .../ast.json | 5 + .../03276_empty_variant_type/ast.json | 11 + .../03276_functions_to_subcolumns_lc/ast.json | 9 + .../testdata/03276_index_empty_part/ast.json | 9 + .../03276_index_of_assume_sorted/ast.json | 9 + .../03276_merge_tree_index_lazy_load/ast.json | 9 + .../ast.json | 70 + .../03277_analyzer_array_join_fix/ast.json | 49 + .../ast.json | 12 + .../03277_join_adaptive_spill/ast.json | 20 + .../03277_join_adaptive_spill_oom/ast.json | 20 + .../03277_logging_elapsed_ns/ast.json | 21 + .../ast.json | 5 + .../ast.json | 61 + .../03278_enum_in_unknown_value/ast.json | 9 + .../03278_enum_string_functions/ast.json | 9 + .../03279_array_normalized_gini/ast.json | 55 + .../ast.json | 5 + .../03279_join_choose_build_table/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/03279_not_empty_json/ast.json | 11 + .../testdata/03280_dynamic_if_null/ast.json | 11 + .../testdata/03281_dynamic_coalesce/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03282_json_equal_comparison/ast.json | 11 + .../ast.json | 11 + .../03282_memory_transaction_crash/ast.json | 9 + .../ast.json | 11 + .../03283_optimize_on_insert_level/ast.json | 11 + .../ast.json | 35 + .../03285_analyzer_array_join_nested/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 33 + .../testdata/03286_backup_to_memory/ast.json | 9 + parser/testdata/03286_backup_to_null/ast.json | 9 + .../ast.json | 12 + .../03286_format_datetime_timezones/ast.json | 34 + .../ast.json | 9 + .../03286_reverse_sorting_key_final/ast.json | 9 + .../03286_reverse_sorting_key_final2/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 12 + .../ast.json | 11 + .../03289_explain_syntax_statistics/ast.json | 7 + .../03289_tuple_element_to_subcolumn/ast.json | 9 + .../testdata/03290_final_collapsing/ast.json | 9 + .../testdata/03290_final_replacing/ast.json | 9 + parser/testdata/03290_final_sample/ast.json | 9 + .../03290_force_normal_projection/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03291_collapsing_invalid_sign/ast.json | 11 + .../ast.json | 11 + .../03291_low_cardinality_uuid/ast.json | 18 + .../ast.json | 11 + parser/testdata/03296_bfloat16_ubsan/ast.json | 11 + .../testdata/03297_cut_column_name/ast.json | 18 + .../03298_analyzer_group_by_all_fix/ast.json | 26 + .../ast.json | 9 + .../testdata/03298_vertical_columns/ast.json | 11 + .../03299_deep_nested_map_creation/ast.json | 919 +++ .../testdata/03299_map_named_tuple/ast.json | 80 + parser/testdata/03299_pretty_squash/ast.json | 58 + .../ast.json | 20 + .../03300_nested_json_empty_keys/ast.json | 32 + .../03300_pretty_vertical_cut/ast.json | 11 + parser/testdata/03301_is_ipv4_string/ast.json | 17 + .../testdata/03301_subcolumns_in_mv/ast.json | 11 + .../ast.json | 11 + .../ast.json | 20 + .../03302_any_enum_aggregation/ast.json | 9 + .../ast.json | 11 + .../03303_alias_inverse_order/ast.json | 9 + .../03303_distributed_explain/ast.json | 11 + .../03303_dynamic_in_not_xor/ast.json | 11 + .../testdata/03303_pretty_multiline/ast.json | 11 + .../03304_compare_substrings/ast.json | 11 + .../03304_fill_virtual_columns/ast.json | 9 + .../ast.json | 27 + .../ast.json | 9 + .../ast.json | 40 + .../03305_log_unsupported_types/ast.json | 11 + .../ast.json | 49 + .../ast.json | 9 + .../ast.json | 21 + .../ast.json | 14 + .../ast.json | 9 + .../ast.json | 9 + .../03310_index_hints_read_columns/ast.json | 11 + .../ast.json | 11 + parser/testdata/03311_constantnode/ast.json | 33 + parser/testdata/03311_issue_72265/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 59 + .../03312_explain_syntax_analyzer/ast.json | 11 + parser/testdata/03312_issue_74299/ast.json | 9 + .../03312_json_literal_remote/ast.json | 11 + .../03312_sparse_column_tuple/ast.json | 9 + .../ast.json | 9 + .../03312_system_errors_last_error/ast.json | 11 + .../03313_h3togeo_result_order/ast.json | 26 + .../ast.json | 54 + .../ast.json | 25 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../03314_grace_hash_join_buckets/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03314_variant_rowbinary_file/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03315_join_temporary_table_names/ast.json | 9 + .../03315_quantile_bfloat16_ubsan/ast.json | 30 + parser/testdata/03315_trim_two_args/ast.json | 12 + .../ast.json | 32 + .../03317_index_hint_prewhere/ast.json | 9 + .../ast.json | 11 + .../ast.json | 124 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 65 + .../ast.json | 9 + .../ast.json | 9 + .../03323_bfloat16_least_supertype/ast.json | 68 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03326_toStartOfNanosecond_ubsan/ast.json | 23 + .../03327_alias_column_constant/ast.json | 9 + .../03327_hypothesis_index_sanity/ast.json | 46 + .../ast.json | 17 + .../ast.json | 5 + .../ast.json | 11 + .../03340_projections_formatting/ast.json | 27 + .../ast.json | 11 + .../ast.json | 9 + .../03352_allow_suspicious_ttl/ast.json | 11 + .../03352_distinct_sorted_bug/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + parser/testdata/03354_translate_crap/ast.json | 45 + .../03355_array_join_subcolumns/ast.json | 11 + parser/testdata/03355_issue_31183/ast.json | 42 + parser/testdata/03355_issue_32743/ast.json | 28 + .../03355_join_to_in_optimization/ast.json | 11 + .../03355_mergetree_table_disk/ast.json | 9 + .../ast.json | 21 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 20 + .../03357_analyzer_insert_view/ast.json | 11 + .../03357_arraySymmetricDifference/ast.json | 12 + .../03357_block_structure_union_step/ast.json | 70 + .../ast.json | 11 + .../testdata/03357_jit_strikes_again/ast.json | 18 + .../testdata/03357_join_pk_sharding/ast.json | 11 + .../ast.json | 11 + .../03357_storage_join_mv_context/ast.json | 56 + .../ast.json | 11 + .../03358_block_structure_match/ast.json | 11 + .../ast.json | 11 + .../ast.json | 21 + .../03359_point_in_polygon_index/ast.json | 9 + .../ast.json | 225 + .../03360_any_join_parallel_hash_bug/ast.json | 11 + parser/testdata/03360_bool_remote/ast.json | 42 + .../ast.json | 44 + .../ast.json | 43 + .../03362_join_on_filterpushdown/ast.json | 11 + .../03362_join_where_false_76670/ast.json | 9 + .../ast.json | 25 + .../ast.json | 9 + .../03363_constant_nullable_key/ast.json | 9 + .../ast.json | 9 + .../03363_function_keccak256/ast.json | 22 + .../03363_hive_style_partition/ast.json | 11 + .../03363_qbit_create_insert_select/ast.json | 11 + .../ast.json | 11 + .../03364_gorilla_codec_parameters/ast.json | 11 + .../testdata/03364_pretty_json_bool/ast.json | 36 + parser/testdata/03364_qbit_negative/ast.json | 11 + .../ast.json | 21 + .../ast.json | 9 + .../ast.json | 18 + parser/testdata/03365_bind_host/ast.json | 9 + .../ast.json | 11 + .../03365_dynamic_column_datetime/ast.json | 11 + parser/testdata/03365_if_time_time64/ast.json | 11 + .../ast.json | 11 + .../03365_parsing_time_time64_short/ast.json | 11 + .../03365_qbit_casts_as_from_array/ast.json | 11 + .../ast.json | 11 + parser/testdata/03365_time64_casts/ast.json | 11 + .../ast.json | 11 + .../03365_time_implicit_conversion/ast.json | 11 + parser/testdata/03365_time_in_json/ast.json | 11 + .../03365_time_parsing_msan_issue/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03365_time_time64_as_primary_key/ast.json | 11 + .../ast.json | 18 + .../03365_time_time64_cap_max_time/ast.json | 11 + .../03365_time_time64_comparison/ast.json | 11 + .../03365_time_time64_conversions/ast.json | 11 + .../03365_time_time64_extreme_values/ast.json | 11 + .../03365_time_time64_insertion_bug/ast.json | 11 + .../03365_time_time64_operations/ast.json | 11 + .../03365_time_time64_parsing/ast.json | 11 + .../03365_time_time64_supertype/ast.json | 11 + .../ast.json | 11 + .../03365_time_timezone_issue/ast.json | 11 + .../03365_time_to_time64_conv_bug/ast.json | 11 + .../03365_use_legacy_to_time/ast.json | 11 + .../03365_variant_bool_parsing/ast.json | 11 + .../03366_qbit_array_map_populate/ast.json | 11 + parser/testdata/03366_with_fill_dag/ast.json | 54 + .../03367_bfloat16_tuple_final/ast.json | 9 + .../03368_bfloat16_merge_join/ast.json | 9 + .../testdata/03368_qbit_subcolumns/ast.json | 11 + parser/testdata/03369_bfloat16_map/ast.json | 9 + .../03369_function_arrayLevenshtein/ast.json | 37 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 14 + .../ast.json | 11 + .../testdata/03370_join_identifiers/ast.json | 9 + .../ast.json | 32 + .../ast.json | 11 + .../03371_bfloat16_special_values/ast.json | 56 + .../03371_constant_alias_columns/ast.json | 11 + .../ast.json | 9 + .../03372_get_subcolumn_null/ast.json | 9 + .../testdata/03372_qbit_mergetree_1/ast.json | 11 + .../testdata/03372_qbit_mergetree_2/ast.json | 11 + parser/testdata/03373_qbit_dynamic/ast.json | 11 + .../03374_date_trunc_with_negatives/ast.json | 11 + .../03374_indexes_with_literals/ast.json | 11 + .../03374_indexes_with_trivial_cast/ast.json | 11 + parser/testdata/03374_qbit_nullable/ast.json | 11 + .../03375_bloom_filter_array_equals/ast.json | 44 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/03375_bool_partition/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/03376_iceberg_truncate/ast.json | 21 + .../testdata/03376_json_comparison/ast.json | 11 + .../ast.json | 11 + .../testdata/03377_json_order_by_bug/ast.json | 39 + .../testdata/03377_qbit_parameters/ast.json | 11 + .../ast.json | 11 + .../testdata/03381_remote_constants/ast.json | 11 + .../ast.json | 11 + .../testdata/03390_non_constant_case/ast.json | 12 + .../03391_logical_error_sort_column/ast.json | 9 + .../ast.json | 26 + .../03393_ASTTableIdentifier_fuzzer/ast.json | 14 + parser/testdata/03393_join_bug_77848/ast.json | 11 + .../ast.json | 5 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 59 + .../ast.json | 55 + .../ast.json | 11 + .../ast.json | 21 + .../testdata/03394_pr_insert_select/ast.json | 11 + .../ast.json | 11 + .../03394_pr_insert_select_threads/ast.json | 11 + .../03395_global_join_supported_kind/ast.json | 71 + .../ast.json | 9 + .../ast.json | 29 + .../ast.json | 9 + .../ast.json | 11 + .../03399_divide_zero_or_null/ast.json | 12 + .../03399_mapContains_functions/ast.json | 9 + parser/testdata/03399_sparse_grams/ast.json | 12 + .../ast.json | 11 + .../testdata/03400_distributed_final/ast.json | 9 + .../03400_explain_distributed_bug/ast.json | 18 + .../ast.json | 9 + .../ast.json | 9 + parser/testdata/03401_remote_bool/ast.json | 11 + .../ast.json | 57 + .../ast.json | 9 + .../ast.json | 47 + .../03402_concurrent_right_full_join/ast.json | 11 + .../03402_cyclic_alter_dependencies/ast.json | 9 + .../testdata/03402_join_using_alias/ast.json | 11 + .../03402_materialized_tuple_element/ast.json | 11 + .../ast.json | 12 + .../ast.json | 9 + .../ast.json | 9 + .../testdata/03403_function_tokens/ast.json | 12 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/03403_toInterval/ast.json | 46 + .../03403_truncate_all_tables_like/ast.json | 15 + .../03404_bfloat16_insert_values/ast.json | 12 + .../03404_geotoh3_input_order/ast.json | 35 + parser/testdata/03404_json_tables/ast.json | 9 + .../ast.json | 9 + .../ast.json | 323 + .../ast.json | 40 + .../03405_join_using_alias_constant/ast.json | 9 + .../03405_merge_filter_into_join/ast.json | 31 + .../ast.json | 21 + .../03405_non_zero_batch_mode/ast.json | 11 + .../ast.json | 9 + .../03407_csv_bad_date_time_parsing/ast.json | 44 + .../ast.json | 11 + .../ast.json | 24 + .../03408_cte_self_reference/ast.json | 11 + .../ast.json | 5 + .../03408_hash_functions_on_null/ast.json | 17 + parser/testdata/03408_implicit_table/ast.json | 25 + .../03408_limit_by_rows_before_limit/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03409_coalescing_merge_tree/ast.json | 12 + .../ast.json | 12 + .../ast.json | 9 + .../ast.json | 11 + parser/testdata/03411_iceberg_bucket/ast.json | 12 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../03412_dynamic_in_arg_min_max/ast.json | 9 + .../ast.json | 9 + .../03412_merge_final_prewhere/ast.json | 9 + .../ast.json | 11 + parser/testdata/03413_dynamic_in_in/ast.json | 26 + .../03413_group_by_all_in_subquery/ast.json | 11 + .../ast.json | 11 + .../ast.json | 26 + .../ast.json | 22 + parser/testdata/03416_glue_chunks/ast.json | 11 + .../ast.json | 11 + parser/testdata/03440_no_glue_totals/ast.json | 11 + .../ast.json | 42 + .../ast.json | 11 + .../03442_alter_delete_empty_part/ast.json | 9 + .../ast.json | 9 + .../03442_json_duplicate_path/ast.json | 18 + .../03442_lightweight_deletes_on_fly/ast.json | 9 + .../03442_string_bytes_functions/ast.json | 17 + .../03443_alias_with_asterisk/ast.json | 29 + .../03443_index_match_alternatives/ast.json | 9 + .../03443_part_starting_offset/ast.json | 9 + .../03443_pr_lazy_materialization/ast.json | 9 + .../testdata/03443_projection_sparse/ast.json | 9 + .../ast.json | 33 + .../testdata/03444_explain_asterisk/ast.json | 15 + .../testdata/03444_flip_coordinates/ast.json | 31 + .../testdata/03444_lm_block_mismatch/ast.json | 9 + .../ast.json | 11 + .../03447_base32_encode_decode/ast.json | 17 + .../testdata/03447_float_nan_order/ast.json | 12 + .../03447_function_reverse_for_tuple/ast.json | 39 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../03447_window_functions_distinct/ast.json | 12 + .../ast.json | 33 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/03448_in_select_tuple/ast.json | 9 + parser/testdata/03448_topk_merging/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../03449_join_using_allow_alias/ast.json | 11 + .../03449_window_cannot_find_column/ast.json | 9 + .../03450_parameterized_view_forward/ast.json | 15 + .../ast.json | 12 + .../03453_group_by_all_grouping/ast.json | 11 + .../ast.json | 15 + .../ast.json | 12 + .../ast.json | 9 + .../03454_parameterized_views_null/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03457_bitmapContains_nullable/ast.json | 101 + .../ast.json | 29 + .../ast.json | 11 + .../03457_merge_engine_subcolumns/ast.json | 9 + .../03457_move_global_in_to_prewhere/ast.json | 9 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + .../ast.json | 12 + parser/testdata/03458_wkb_function/ast.json | 22 + .../ast.json | 9 + .../03459_join_cannot_add_column/ast.json | 18 + .../ast.json | 12 + .../ast.json | 44 + .../ast.json | 18 + .../03460_normal_projection_index/ast.json | 11 + .../ast.json | 11 + .../ast.json | 12 + .../ast.json | 9 + .../ast.json | 11 + .../03461_pk_prefix_trivial_count/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 37 + .../testdata/03512_bech32_functions/ast.json | 26 + .../03512_cast_logical_error/ast.json | 9 + .../03512_settings_max_block_size/ast.json | 14 + .../03513_filter_push_down_rand_bug/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../03513_nullsafe_join_storage/ast.json | 9 + .../03513_read_in_order_nullable/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../03515_array_join_different_sizes/ast.json | 11 + .../testdata/03516_comparison_pk_bug/ast.json | 46 + parser/testdata/03516_int_exp2_join/ast.json | 18 + .../ast.json | 9 + .../ast.json | 10 + .../03518_left_to_cross_incorrect/ast.json | 11 + .../ast.json | 26 + .../03519_analyzer_tuple_cast/ast.json | 11 + .../03519_left_to_cross_incorrect/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03519_multiple_join_using/ast.json | 11 + .../03519_ttl_extended_data_types/ast.json | 10 + .../ast.json | 11 + .../ast.json | 11 + .../03520_left_to_cross_incorrect/ast.json | 11 + .../03520_pr_distinct_in_order/ast.json | 9 + .../testdata/03520_pr_read_in_order/ast.json | 9 + .../ast.json | 94 + .../03521_long_partition_column_name/ast.json | 9 + .../03521_long_statistics_name/ast.json | 9 + parser/testdata/03521_system_unicode/ast.json | 42 + .../ast.json | 9 + .../ast.json | 11 + .../03522_function_first_non_default/ast.json | 30 + .../ast.json | 11 + .../03522_join_using_bug_78907/ast.json | 78 + .../03522_nullable_partition_key/ast.json | 42 + .../testdata/03522_window_table_arg/ast.json | 11 + .../testdata/03524_nullable_extremes/ast.json | 12 + .../ast.json | 5 + .../ast.json | 11 + .../ast.json | 11 + .../03525_timezoneof_illegal_type/ast.json | 17 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 39 + .../ast.json | 9 + .../03531_check_count_for_parquet/ast.json | 28 + .../ast.json | 9 + .../03532_divideOrNull_jit_crash/ast.json | 53 + .../ast.json | 11 + .../03532_json_dynamic_updates/ast.json | 11 + .../ast.json | 9 + .../03532_use_database_syntax/ast.json | 5 + .../ast.json | 22 + .../ast.json | 11 + .../03533_named_tuple_supertype/ast.json | 11 + .../03533_skip_index_on_data_reading/ast.json | 11 + .../testdata/03534_npy_output_to_url/ast.json | 9 + .../03534_skip_index_bug89691/ast.json | 11 + parser/testdata/03535_system_formats/ast.json | 464 ++ parser/testdata/03537_kusto_ubsan/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/03538_array_except/ast.json | 9 + .../ast.json | 11 + .../ast.json | 43 + .../ast.json | 11 + .../ast.json | 9 + .../03539_kusto_output_format_trash/ast.json | 46 + .../03540_date_trunc_old_behaviour/ast.json | 11 + parser/testdata/03542_TTL_dict/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03545_array_join_index_set_bug/ast.json | 9 + .../ast.json | 9 + .../ast.json | 67 + .../ast.json | 11 + .../ast.json | 11 + .../03546_add_distinct_to_in_clause/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../03546_paimon_all_supported_type/ast.json | 18 + .../03546_part_granule_offset/ast.json | 9 + .../ast.json | 26 + .../ast.json | 11 + .../ast.json | 9 + .../03547_reinterpret_to_array/ast.json | 12 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 38 + .../ast.json | 11 + parser/testdata/03549_conv_function/ast.json | 25 + .../03549_keeper_map_column_comments/ast.json | 10 + .../03549_system_dimensional_metrics/ast.json | 30 + .../testdata/03549_window_collation/ast.json | 11 + parser/testdata/03549_wkb_function/ast.json | 9 + .../ast.json | 82 + .../ast.json | 9 + .../03550_s3queue_no_settings/ast.json | 27 + .../03550_variant_extend_union/ast.json | 194 + .../03551_cast_decimal_to_float/ast.json | 35 + .../ast.json | 9 + .../ast.json | 30 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03559_explain_ast_in_subquery/ast.json | 45 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 26 + .../testdata/03561_colorSRGBToOKLCH/ast.json | 12 + .../ast.json | 15 + .../03561_two_mvs_bad_select/ast.json | 18 + .../testdata/03562_colorOKLCHToSRGB/ast.json | 12 + parser/testdata/03562_geometry_type/ast.json | 11 + .../03562_json_date_as_integer/ast.json | 36 + .../ast.json | 9 + .../ast.json | 11 + .../03562_system_database_replicas/ast.json | 6 + .../ast.json | 9 + .../ast.json | 9 + .../03565_iceberg_field_ids_table/ast.json | 57 + .../testdata/03565_union_all_nullptr/ast.json | 12 + .../03566_analyzer_single_with_scope/ast.json | 25 + .../ast.json | 22 + .../03566_low_cardinality_nan_unique/ast.json | 11 + .../03566_one_row_summing_merge_tree/ast.json | 9 + .../03566_system_completions_table/ast.json | 5 + .../ast.json | 25 + .../ast.json | 9 + .../ast.json | 12 + parser/testdata/03567_nowInBlock64/ast.json | 18 + .../ast.json | 12 + .../ast.json | 9 + .../03568_udf_memory_tracking/ast.json | 11 + .../ast.json | 11 + .../testdata/03570_dateTimeToUUIDv7/ast.json | 12 + .../ast.json | 11 + .../03570_insert_into_simple_alias/ast.json | 9 + parser/testdata/03570_limit_by_all/ast.json | 11 + .../03571_join_inequality_constants/ast.json | 11 + .../03571_limit_by_all_old_planner/ast.json | 11 + .../03571_lwd_and_projections/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03572_empty_tuple_in_nested_type/ast.json | 9 + .../ast.json | 11 + .../03572_pr_remote_in_subquery/ast.json | 11 + .../ast.json | 9 + .../ast.json | 17 + .../03573_json_keys_with_dots/ast.json | 11 + .../ast.json | 39 + .../ast.json | 46 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 46 + .../03577_dynamic_json_update_issue/ast.json | 11 + .../03577_hash_output_format/ast.json | 34 + .../03577_server_constant_folding/ast.json | 11 + .../03577_temporary_table_as/ast.json | 9 + .../ast.json | 20 + .../ast.json | 11 + .../03578_distributed_kv_global_in/ast.json | 11 + .../testdata/03578_kv_in_type_casts/ast.json | 9 + .../ast.json | 61 + .../03579_mergeTreeIndex_params/ast.json | 9 + .../ast.json | 56 + .../ast.json | 10 + .../testdata/03580_heredoc_ambiguity/ast.json | 18 + .../testdata/03580_improve_prewhere/ast.json | 11 + .../03580_join_runtime_filter/ast.json | 27 + .../ast.json | 69 + .../ast.json | 27 + .../ast.json | 11 + .../03580_s3queue_settings_store/ast.json | 90 + .../03581_bool_literal_column_name/ast.json | 26 + .../03581_iceberg_struct_fields_ids/ast.json | 57 + .../ast.json | 11 + .../ast.json | 50 + .../ast.json | 27 + .../03582_initcap_fixedstring/ast.json | 44 + .../03582_pr_read_in_order_hits/ast.json | 11 + .../03583_rewrite_in_to_join/ast.json | 11 + .../ast.json | 11 + .../ast.json | 42 + .../03592_s3queue_large_settings/ast.json | 56 + .../ast.json | 9 + .../ast.json | 53 + .../03593_funcs_on_empty_string/ast.json | 11 + parser/testdata/03593_remote_map_in/ast.json | 11 + .../ast.json | 11 + .../ast.json | 20 + .../03594_funcs_on_empty_arguments/ast.json | 11 + parser/testdata/03594_is_valid_ascii/ast.json | 40 + .../03594_is_valid_ascii_errors/ast.json | 30 + .../ast.json | 9 + .../ast.json | 11 + .../03594_system_grants_parameters/ast.json | 4 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../03595_analyzer_lateral_join/ast.json | 11 + .../ast.json | 39 + .../ast.json | 46 + .../ast.json | 11 + .../03595_equality_deletes_simple/ast.json | 48 + .../03595_exists_as_scalar_subquery/ast.json | 11 + .../03595_extract_url_parameters/ast.json | 40 + parser/testdata/03595_funcs_on_zero/ast.json | 11 + .../ast.json | 9 + .../03595_pread_threadpool_direct_io/ast.json | 11 + .../03595_set_query_no_eq_set_to_one/ast.json | 61 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03600_analyzer_setting_bool/ast.json | 21 + .../03600_replace_fixed_string_bug/ast.json | 39 + .../03601_histogram_quantile/ast.json | 161 + .../03601_inconsistent_table_names/ast.json | 11 + .../ast.json | 9 + .../ast.json | 21 + .../03602_alter_update_nullable_json/ast.json | 11 + .../testdata/03602_embeddedrock_path/ast.json | 50 + .../ast.json | 53 + .../03603_ip_binary_operators/ast.json | 42 + .../ast.json | 30 + .../ast.json | 27 + .../03604_dynamic_key_in_join/ast.json | 11 + .../ast.json | 9 + .../03604_join_reorder_pinned_bug/ast.json | 11 + .../ast.json | 65 + .../03604_parallel_with_query_lock/ast.json | 11 + .../ast.json | 11 + .../03604_string_with_size_stream/ast.json | 9 + .../ast.json | 9 + parser/testdata/03604_to_date_casts/ast.json | 11 + .../ast.json | 25 + .../03606_nullable_json_group_by/ast.json | 30 + .../ast.json | 11 + .../ast.json | 41 + .../testdata/03611_cte_deterministic/ast.json | 11 + .../03611_null_safe_comparsion/ast.json | 11 + .../ast.json | 37 + parser/testdata/03611_pr_global_join/ast.json | 9 + parser/testdata/03611_uniqExact_bug/ast.json | 11 + .../ast.json | 43 + .../03611_window_definition_parsing/ast.json | 11 + .../03612_explain_indexes_bugs/ast.json | 11 + .../ast.json | 9 + .../ast.json | 66 + .../ast.json | 11 + .../ast.json | 11 + .../testdata/03622_ttl_infos_where/ast.json | 9 + .../ast.json | 11 + .../ast.json | 25 + .../ast.json | 11 + parser/testdata/03623_parquet_bool/ast.json | 36 + .../ast.json | 10 + .../ast.json | 35 + .../03624_parquet_row_number/ast.json | 11 + .../03624_pr_lefl_right_joins_chain/ast.json | 9 + .../ast.json | 78 + .../testdata/03625_auto_statistics/ast.json | 9 + .../03625_auto_statistics_alter/ast.json | 11 + .../03625_auto_statistics_alter_rmt/ast.json | 11 + .../03625_auto_statistics_rmt/ast.json | 9 + .../03625_auto_statistics_validation/ast.json | 9 + .../ast.json | 88 + .../03625_prewhere-and-default-bug/ast.json | 9 + .../ast.json | 17 + .../ast.json | 9 + .../ast.json | 76 + .../ast.json | 9 + .../ast.json | 70 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 12 + .../ast.json | 9 + .../03630_hash_join_max_block_size/ast.json | 9 + .../testdata/03630_parquet_bool_bug/ast.json | 21 + .../03631_array_of_empty_tuples/ast.json | 38 + .../ast.json | 11 + .../ast.json | 9 + .../03632_insert_select_cte_bug/ast.json | 11 + .../03632_join_logical_assert_85403/ast.json | 92 + parser/testdata/03632_lowcard_join/ast.json | 18 + .../ast.json | 20 + .../03633_mv_squash_parallel_inserts/ast.json | 11 + .../03633_set_index_bulk_filtering/ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03636_empty_projection_block/ast.json | 90 + .../ast.json | 11 + .../03636_storage_alias_basic/ast.json | 9 + .../03636_storage_alias_syntax/ast.json | 9 + .../ast.json | 9 + .../03639_hash_of_dynamic_column/ast.json | 23 + .../03639_hash_of_json_column/ast.json | 11 + .../03640_alter_table_rewrite_parts/ast.json | 9 + .../03640_load_marks_synchronously/ast.json | 31 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03640_skip_indexes_with_or/ast.json | 11 + .../ast.json | 9 + .../03641_analyzer_issue_85834/ast.json | 9 + .../ast.json | 19 + .../ast.json | 11 + .../testdata/03642_column_ttl_sparse/ast.json | 9 + .../03642_system_instrument_symbols/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../03644_min_level_for_wide_part/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../testdata/03646_array_join_empty/ast.json | 11 + .../03647_morton_encode_empty_tuple/ast.json | 17 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03652_explain_input_header/ast.json | 11 + .../ast.json | 108 + .../03652_join_using_legacy_step/ast.json | 11 + .../03653_keeper_histogram_metrics/ast.json | 86 + .../ast.json | 9 + .../03654_case_non_constant_null/ast.json | 9 + .../03654_grouping_sets_any_min_max/ast.json | 11 + .../03655_keeper_map_alter_comment/ast.json | 11 + .../ast.json | 11 + parser/testdata/03656_nan_comparison/ast.json | 9 + .../03657_gby_overflow_any_sparse/ast.json | 9 + .../ast.json | 9 + .../ast.json | 22 + .../testdata/03657_rollup_constant/ast.json | 9 + .../ast.json | 11 + parser/testdata/03660_udf_subquery/ast.json | 11 + .../ast.json | 9 + .../03664_parameterized_view_restart/ast.json | 9 + .../03666_count_matches_complexity/ast.json | 30 + .../ast.json | 11 + .../ast.json | 21 + .../03667_insert_columns_description/ast.json | 12 + .../ast.json | 9 + .../03667_text_index_validation/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../03672_columns_same_as_subcolumns/ast.json | 9 + .../03672_nested_array_nested_tuple/ast.json | 9 + .../03673_columns_description_cache/ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + parser/testdata/03699_reverse_utf8/ast.json | 17 + .../ast.json | 9 + .../ast.json | 11 + .../03701_column_ttl_fully_expired/ast.json | 9 + .../ast.json | 12 + .../ast.json | 9 + .../testdata/03701_limit_by_in_order/ast.json | 11 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 94 + .../ast.json | 15 + .../testdata/03702_alter_codec_index/ast.json | 9 + parser/testdata/03702_alter_codec_pk/ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../03702_encode_decode_memory_usage/ast.json | 73 + .../ast.json | 12 + .../03702_geometry_functions/ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03702_text_index_hint_basics/ast.json | 11 + .../03702_text_index_hint_events/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../03703_statistics_low_cardinality/ast.json | 11 + .../03704_default_empty_order_by/ast.json | 9 + .../03704_fractional_limit_with_ties/ast.json | 9 + .../ast.json | 12 + .../testdata/03705_count_if_asterisk/ast.json | 43 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03707_function_array_remove/ast.json | 21 + .../testdata/03707_statistics_cache/ast.json | 11 + .../ast.json | 11 + .../03708_exact_rows_before_limit_in/ast.json | 86 + .../ast.json | 9 + .../03708_join_or_to_right_any_bug/ast.json | 149 + .../ast.json | 45 + .../ast.json | 64 + .../03709_anti_join_runtime_filters/ast.json | 11 + .../testdata/03709_coalescing_final/ast.json | 9 + .../ast.json | 9 + .../ast.json | 149 + .../ast.json | 11 + parser/testdata/03710_argAndMinMax/ast.json | 122 + .../03710_array_join_in_map_bug/ast.json | 11 + .../ast.json | 23 + parser/testdata/03710_midpoint/ast.json | 9 + .../ast.json | 9 + .../testdata/03710_pr_join_with_mv/ast.json | 9 + .../ast.json | 5 + .../03711_json_skip_invalid_fields/ast.json | 12 + .../ast.json | 11 + .../03711_top_k_by_dynamic_filter/ast.json | 9 + .../03711_top_k_by_skip_index/ast.json | 11 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03714_base32_base58_short_string/ast.json | 48 + .../ast.json | 17 + .../03714_queries_escaping_1/ast.json | 6 + .../03714_queries_escaping_2/ast.json | 4 + .../ast.json | 17 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 147 + .../03716_join_right_side_sorting/ast.json | 152 + .../ast.json | 11 + .../03716_text_index_drop_caches/ast.json | 9 + parser/testdata/03716_topk_bad_data/ast.json | 27 + .../03717_msgpack_empty_tuple_column/ast.json | 9 + .../03717_system_unicode_enums/ast.json | 76 + .../ast.json | 54 + .../ast.json | 12 + .../03720_const_limit_to_scalar/ast.json | 9 + .../03720_datetime64_bad_inference/ast.json | 11 + .../ast.json | 143 + .../ast.json | 27 + .../ast.json | 11 + .../ast.json | 11 + .../ast.json | 11 + .../03721_right_join_logical_step/ast.json | 9 + .../03721_statistics_alter_type_bug/ast.json | 9 + .../ast.json | 26 + .../ast.json | 11 + .../testdata/03722_random_utf8_bug/ast.json | 56 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 606 ++ .../ast.json | 11 + .../ast.json | 24 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 37 + .../ast.json | 4 + .../ast.json | 102 + .../ast.json | 52 + .../testdata/03727_ipv4_parsing_bug/ast.json | 55 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../03732_join_on_exists_bug/ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../03733_anti_join_runtime_filter_3/ast.json | 11 + .../testdata/03733_base58_decode_bug/ast.json | 44 + parser/testdata/03733_join_order_dp/ast.json | 11 + .../ast.json | 60 + .../03735_excessive_buffer_flush/ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 30 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 30 + .../03742_array_join_empty_tuple/ast.json | 33 + .../ast.json | 9 + .../03742_test_flattened_crash/ast.json | 9 + .../03743_fix_estimator_crash/ast.json | 20 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 9 + .../ast.json | 11 + .../ast.json | 18 + .../ast.json | 46 + .../ast.json | 11 + .../ast.json | 11 + parser/testdata/03752_join_part/ast.json | 9 + .../03753_merge_selector_amm/ast.json | 10 + .../03753_replacing_empty_order_by/ast.json | 9 + .../ast.json | 3 + .../03755_circular_dictionary/ast.json | 9 + .../ast.json | 9 + .../ast.json | 22 + .../03755_nested_recursive_cte/ast.json | 9 + .../testdata/03755_pr_join_with_view/ast.json | 9 + .../ast.json | 22 + .../03756_mongodb_secret_arguments/ast.json | 30 + .../ast.json | 9 + .../ast.json | 9 + .../03759_marks_cache_events/ast.json | 9 + 6035 files changed, 147399 insertions(+) create mode 100644 cmd/generateast/main.go create mode 100644 parser/testdata/00001_count_hits/ast.json create mode 100644 parser/testdata/00001_select_1/ast.json create mode 100644 parser/testdata/00002_count_visits/ast.json create mode 100644 parser/testdata/00002_system_numbers/ast.json create mode 100644 parser/testdata/00003_reinterpret_as_string/ast.json create mode 100644 parser/testdata/00004_shard_format_ast_and_remote_table/ast.json create mode 100644 parser/testdata/00004_top_counters/ast.json create mode 100644 parser/testdata/00005_filtering/ast.json create mode 100644 parser/testdata/00005_shard_format_ast_and_remote_table_lambda/ast.json create mode 100644 parser/testdata/00006_agregates/ast.json create mode 100644 parser/testdata/00006_extremes_and_subquery_from/ast.json create mode 100644 parser/testdata/00007_array/ast.json create mode 100644 parser/testdata/00007_uniq/ast.json create mode 100644 parser/testdata/00008_array_join/ast.json create mode 100644 parser/testdata/00008_uniq/ast.json create mode 100644 parser/testdata/00009_array_join_subquery/ast.json create mode 100644 parser/testdata/00009_uniq_distributed/ast.json create mode 100644 parser/testdata/00010_big_array_join/ast.json create mode 100644 parser/testdata/00010_quantiles_segfault/ast.json create mode 100644 parser/testdata/00011_array_join_alias/ast.json create mode 100644 parser/testdata/00011_sorting/ast.json create mode 100644 parser/testdata/00012_array_join_alias_2/ast.json create mode 100644 parser/testdata/00012_sorting_distributed/ast.json create mode 100644 parser/testdata/00013_create_table_with_arrays/ast.json create mode 100644 parser/testdata/00013_sorting_of_nested/ast.json create mode 100644 parser/testdata/00014_filtering_arrays/ast.json create mode 100644 parser/testdata/00014_select_from_table_with_nested/ast.json create mode 100644 parser/testdata/00015_totals_and_no_aggregate_functions/ast.json create mode 100644 parser/testdata/00015_totals_having_constants/ast.json create mode 100644 parser/testdata/00016_any_if_distributed_cond_always_false/ast.json create mode 100644 parser/testdata/00016_totals_having_constants/ast.json create mode 100644 parser/testdata/00017_in_subquery_with_empty_result/ast.json create mode 100644 parser/testdata/00018_distinct_in_subquery/ast.json create mode 100644 parser/testdata/00019_shard_quantiles_totals_distributed/ast.json create mode 100644 parser/testdata/00020_distinct_order_by_distributed/ast.json create mode 100644 parser/testdata/00021_1_select_with_in/ast.json create mode 100644 parser/testdata/00022_func_higher_order_and_constants/ast.json create mode 100644 parser/testdata/00022_merge_prewhere/ast.json create mode 100644 parser/testdata/00023_agg_select_agg_subquery/ast.json create mode 100644 parser/testdata/00023_totals_limit/ast.json create mode 100644 parser/testdata/00024_random_counters/ast.json create mode 100644 parser/testdata/00024_unused_array_join_in_subquery/ast.json create mode 100644 parser/testdata/00025_implicitly_used_subquery_column/ast.json create mode 100644 parser/testdata/00026_shard_something_distributed/ast.json create mode 100644 parser/testdata/00027_argMinMax/ast.json create mode 100644 parser/testdata/00027_distinct_and_order_by/ast.json create mode 100644 parser/testdata/00028_shard_big_agg_aj_distributed/ast.json create mode 100644 parser/testdata/00030_alter_table/ast.json create mode 100644 parser/testdata/00030_array_enumerate_uniq/ast.json create mode 100644 parser/testdata/00031_array_enumerate_uniq/ast.json create mode 100644 parser/testdata/00032_aggregate_key64/ast.json create mode 100644 parser/testdata/00032_fixed_string_to_string/ast.json create mode 100644 parser/testdata/00033_aggregate_key_string/ast.json create mode 100644 parser/testdata/00033_fixed_string_to_string/ast.json create mode 100644 parser/testdata/00034_aggregate_key_fixed_string/ast.json create mode 100644 parser/testdata/00034_fixed_string_to_number/ast.json create mode 100644 parser/testdata/00035_aggregate_keys128/ast.json create mode 100644 parser/testdata/00035_function_array_return_type/ast.json create mode 100644 parser/testdata/00036_aggregate_hashed/ast.json create mode 100644 parser/testdata/00036_array_element/ast.json create mode 100644 parser/testdata/00037_totals_limit/ast.json create mode 100644 parser/testdata/00037_uniq_state_merge1/ast.json create mode 100644 parser/testdata/00038_totals_limit/ast.json create mode 100644 parser/testdata/00038_uniq_state_merge2/ast.json create mode 100644 parser/testdata/00039_primary_key/ast.json create mode 100644 parser/testdata/00040_aggregating_materialized_view/ast.json create mode 100644 parser/testdata/00040_array_enumerate_uniq/ast.json create mode 100644 parser/testdata/00041_aggregating_materialized_view/ast.json create mode 100644 parser/testdata/00041_aggregation_remap/ast.json create mode 100644 parser/testdata/00041_big_array_join/ast.json create mode 100644 parser/testdata/00042_set/ast.json create mode 100644 parser/testdata/00043_summing_empty_part/ast.json create mode 100644 parser/testdata/00044_sorting_by_string_descending/ast.json create mode 100644 parser/testdata/00045_sorting_by_fixed_string_descending/ast.json create mode 100644 parser/testdata/00045_uniq_upto/ast.json create mode 100644 parser/testdata/00046_stored_aggregates_simple/ast.json create mode 100644 parser/testdata/00046_uniq_upto_distributed/ast.json create mode 100644 parser/testdata/00047_bar/ast.json create mode 100644 parser/testdata/00047_stored_aggregates_complex/ast.json create mode 100644 parser/testdata/00048_a_stored_aggregates_merge/ast.json create mode 100644 parser/testdata/00048_b_stored_aggregates_merge/ast.json create mode 100644 parser/testdata/00048_min_max/ast.json create mode 100644 parser/testdata/00049_max_string_if/ast.json create mode 100644 parser/testdata/00050_min_max/ast.json create mode 100644 parser/testdata/00051_any_inner_join/ast.json create mode 100644 parser/testdata/00051_min_max_array/ast.json create mode 100644 parser/testdata/00053_replicate_segfault/ast.json create mode 100644 parser/testdata/00054_merge_tree_partitions/ast.json create mode 100644 parser/testdata/00055_index_and_not/ast.json create mode 100644 parser/testdata/00056_view/ast.json create mode 100644 parser/testdata/00057_join_aliases/ast.json create mode 100644 parser/testdata/00059_merge_sorting_empty_array_joined/ast.json create mode 100644 parser/testdata/00059_shard_global_in/ast.json create mode 100644 parser/testdata/00059_shard_global_in_mergetree/ast.json create mode 100644 parser/testdata/00060_date_lut/ast.json create mode 100644 parser/testdata/00060_move_to_prewhere_and_sets/ast.json create mode 100644 parser/testdata/00061_merge_tree_alter/ast.json create mode 100644 parser/testdata/00061_storage_buffer/ast.json create mode 100644 parser/testdata/00062_loyalty/ast.json create mode 100644 parser/testdata/00062_replicated_merge_tree_alter_zookeeper_long/ast.json create mode 100644 parser/testdata/00063_check_query/ast.json create mode 100644 parser/testdata/00063_loyalty_joins/ast.json create mode 100644 parser/testdata/00064_negate_bug/ast.json create mode 100644 parser/testdata/00065_loyalty_with_storage_join/ast.json create mode 100644 parser/testdata/00065_shard_float_literals_formatting/ast.json create mode 100644 parser/testdata/00066_sorting_distributed_many_replicas/ast.json create mode 100644 parser/testdata/00067_replicate_segfault/ast.json create mode 100644 parser/testdata/00068_empty_tiny_log/ast.json create mode 100644 parser/testdata/00068_subquery_in_prewhere/ast.json create mode 100644 parser/testdata/00069_date_arithmetic/ast.json create mode 100644 parser/testdata/00069_duplicate_aggregation_keys/ast.json create mode 100644 parser/testdata/00071_insert_fewer_columns/ast.json create mode 100644 parser/testdata/00071_merge_tree_optimize_aio/ast.json create mode 100644 parser/testdata/00072_compare_date_and_string_index/ast.json create mode 100644 parser/testdata/00073_merge_sorting_empty_array_joined/ast.json create mode 100644 parser/testdata/00073_uniq_array/ast.json create mode 100644 parser/testdata/00074_full_join/ast.json create mode 100644 parser/testdata/00075_left_array_join/ast.json create mode 100644 parser/testdata/00075_shard_formatting_negate_of_negative_literal/ast.json create mode 100644 parser/testdata/00076_ip_coding_functions/ast.json create mode 100644 parser/testdata/00077_log_tinylog_stripelog/ast.json create mode 100644 parser/testdata/00077_set_keys_fit_128_bits_many_blocks/ast.json create mode 100644 parser/testdata/00078_group_by_arrays/ast.json create mode 100644 parser/testdata/00078_string_concat/ast.json create mode 100644 parser/testdata/00079_array_join_not_used_joined_column/ast.json create mode 100644 parser/testdata/00079_defaulted_columns/ast.json create mode 100644 parser/testdata/00080_array_join_and_union/ast.json create mode 100644 parser/testdata/00081_group_by_without_key_and_totals/ast.json create mode 100644 parser/testdata/00081_int_div_or_zero/ast.json create mode 100644 parser/testdata/00082_append_trailing_char_if_absent/ast.json create mode 100644 parser/testdata/00082_quantiles/ast.json create mode 100644 parser/testdata/00083_array_filter/ast.json create mode 100644 parser/testdata/00083_create_merge_tree_zookeeper_long/ast.json create mode 100644 parser/testdata/00084_external_aggregation/ast.json create mode 100644 parser/testdata/00084_summing_merge_tree/ast.json create mode 100644 parser/testdata/00085_monotonic_evaluation_segfault/ast.json create mode 100644 parser/testdata/00085_visible_width_of_tuple_of_dates/ast.json create mode 100644 parser/testdata/00086_array_reduce/ast.json create mode 100644 parser/testdata/00086_concat_nary_const_with_nonconst_segfault/ast.json create mode 100644 parser/testdata/00087_distinct_of_empty_arrays/ast.json create mode 100644 parser/testdata/00087_math_functions/ast.json create mode 100644 parser/testdata/00087_where_0/ast.json create mode 100644 parser/testdata/00088_global_in_one_shard_and_rows_before_limit/ast.json create mode 100644 parser/testdata/00089_group_by_arrays_of_fixed/ast.json create mode 100644 parser/testdata/00089_position_functions_with_non_constant_arg/ast.json create mode 100644 parser/testdata/00091_prewhere_two_conditions/ast.json create mode 100644 parser/testdata/00093_prewhere_array_join/ast.json create mode 100644 parser/testdata/00094_order_by_array_join_limit/ast.json create mode 100644 parser/testdata/00095_hyperscan_profiler/ast.json create mode 100644 parser/testdata/00096_aggregation_min_if/ast.json create mode 100644 parser/testdata/00097_constexpr_in_index/ast.json create mode 100644 parser/testdata/00098_1_union_all/ast.json create mode 100644 parser/testdata/00098_2_union_all/ast.json create mode 100644 parser/testdata/00098_3_union_all/ast.json create mode 100644 parser/testdata/00098_4_union_all/ast.json create mode 100644 parser/testdata/00098_5_union_all/ast.json create mode 100644 parser/testdata/00098_6_union_all/ast.json create mode 100644 parser/testdata/00098_7_union_all/ast.json create mode 100644 parser/testdata/00098_8_union_all/ast.json create mode 100644 parser/testdata/00098_9_union_all/ast.json create mode 100644 parser/testdata/00098_a_union_all/ast.json create mode 100644 parser/testdata/00098_b_union_all/ast.json create mode 100644 parser/testdata/00098_c_union_all/ast.json create mode 100644 parser/testdata/00098_d_union_all/ast.json create mode 100644 parser/testdata/00098_e_union_all/ast.json create mode 100644 parser/testdata/00098_f_union_all/ast.json create mode 100644 parser/testdata/00098_g_union_all/ast.json create mode 100644 parser/testdata/00098_h_union_all/ast.json create mode 100644 parser/testdata/00098_k_union_all/ast.json create mode 100644 parser/testdata/00098_l_union_all/ast.json create mode 100644 parser/testdata/00098_primary_key_memory_allocated/ast.json create mode 100644 parser/testdata/00098_shard_i_union_all/ast.json create mode 100644 parser/testdata/00101_materialized_views_and_insert_without_explicit_database/ast.json create mode 100644 parser/testdata/00102_insert_into_temporary_table/ast.json create mode 100644 parser/testdata/00103_ipv4_num_to_string_class_c/ast.json create mode 100644 parser/testdata/00104_totals_having_mode/ast.json create mode 100644 parser/testdata/00105_shard_collations/ast.json create mode 100644 parser/testdata/00106_totals_after_having/ast.json create mode 100644 parser/testdata/00107_totals_after_having/ast.json create mode 100644 parser/testdata/00108_shard_totals_after_having/ast.json create mode 100644 parser/testdata/00109_shard_totals_after_having/ast.json create mode 100644 parser/testdata/00110_external_sort/ast.json create mode 100644 parser/testdata/00111_shard_external_sort_distributed/ast.json create mode 100644 parser/testdata/00112_shard_totals_after_having/ast.json create mode 100644 parser/testdata/00113_shard_group_array/ast.json create mode 100644 parser/testdata/00114_float_type_result_of_division/ast.json create mode 100644 parser/testdata/00116_storage_set/ast.json create mode 100644 parser/testdata/00117_parsing_arrays/ast.json create mode 100644 parser/testdata/00118_storage_join/ast.json create mode 100644 parser/testdata/00119_storage_join/ast.json create mode 100644 parser/testdata/00120_join_and_group_by/ast.json create mode 100644 parser/testdata/00121_drop_column_zookeeper/ast.json create mode 100644 parser/testdata/00122_join_with_subquery_with_subquery/ast.json create mode 100644 parser/testdata/00123_shard_unmerged_result_when_max_distributed_connections_is_one/ast.json create mode 100644 parser/testdata/00124_shard_distributed_with_many_replicas/ast.json create mode 100644 parser/testdata/00125_array_element_of_array_of_tuple/ast.json create mode 100644 parser/testdata/00126_buffer/ast.json create mode 100644 parser/testdata/00127_group_by_concat/ast.json create mode 100644 parser/testdata/00128_group_by_number_and_fixed_string/ast.json create mode 100644 parser/testdata/00134_aggregation_by_fixed_string_of_size_1_2_4_8/ast.json create mode 100644 parser/testdata/00135_duplicate_group_by_keys_segfault/ast.json create mode 100644 parser/testdata/00136_duplicate_order_by_elems/ast.json create mode 100644 parser/testdata/00137_in_constants/ast.json create mode 100644 parser/testdata/00138_table_aliases/ast.json create mode 100644 parser/testdata/00140_parse_unix_timestamp_as_datetime/ast.json create mode 100644 parser/testdata/00140_prewhere_column_order/ast.json create mode 100644 parser/testdata/00141_parse_timestamp_as_datetime/ast.json create mode 100644 parser/testdata/00141_transform/ast.json create mode 100644 parser/testdata/00142_parse_timestamp_as_datetime/ast.json create mode 100644 parser/testdata/00142_system_columns/ast.json create mode 100644 parser/testdata/00143_number_classification_functions/ast.json create mode 100644 parser/testdata/00143_transform_non_const_default/ast.json create mode 100644 parser/testdata/00144_empty_regexp/ast.json create mode 100644 parser/testdata/00144_functions_of_aggregation_states/ast.json create mode 100644 parser/testdata/00145_aggregate_functions_statistics/ast.json create mode 100644 parser/testdata/00145_empty_likes/ast.json create mode 100644 parser/testdata/00146_aggregate_function_uniq/ast.json create mode 100644 parser/testdata/00146_summing_merge_tree_nested_map/ast.json create mode 100644 parser/testdata/00147_alter_nested_default/ast.json create mode 100644 parser/testdata/00147_global_in_aggregate_function/ast.json create mode 100644 parser/testdata/00148_monotonic_functions_and_index/ast.json create mode 100644 parser/testdata/00148_summing_merge_tree_aggregate_function/ast.json create mode 100644 parser/testdata/00148_summing_merge_tree_nested_map_multiple_values/ast.json create mode 100644 parser/testdata/00149_function_url_hash/ast.json create mode 100644 parser/testdata/00149_quantiles_timing_distributed/ast.json create mode 100644 parser/testdata/00150_quantiles_timing_precision/ast.json create mode 100644 parser/testdata/00150_with_totals_and_join/ast.json create mode 100644 parser/testdata/00151_order_by_read_in_order/ast.json create mode 100644 parser/testdata/00151_tuple_with_array/ast.json create mode 100644 parser/testdata/00152_insert_different_granularity/ast.json create mode 100644 parser/testdata/00152_totals_in_subquery/ast.json create mode 100644 parser/testdata/00153_aggregate_arena_race/ast.json create mode 100644 parser/testdata/00153_transform/ast.json create mode 100644 parser/testdata/00154_avro/ast.json create mode 100644 parser/testdata/00154_shard_distributed_with_distinct/ast.json create mode 100644 parser/testdata/00156_array_map_to_constant/ast.json create mode 100644 parser/testdata/00156_max_execution_speed_sample_merge/ast.json create mode 100644 parser/testdata/00157_aliases_and_lambda_formal_parameters/ast.json create mode 100644 parser/testdata/00158_cache_dictionary_has/ast.json create mode 100644 parser/testdata/00159_whitespace_in_columns_list/ast.json create mode 100644 parser/testdata/00160_merge_and_index_in_in/ast.json create mode 100644 parser/testdata/00162_mmap_compression_none/ast.json create mode 100644 parser/testdata/00163_shard_join_with_empty_table/ast.json create mode 100644 parser/testdata/00164_not_chain/ast.json create mode 100644 parser/testdata/00164_quantileBfloat16/ast.json create mode 100644 parser/testdata/00165_jit_aggregate_functions/ast.json create mode 100644 parser/testdata/00165_transform_non_const_default/ast.json create mode 100644 parser/testdata/00166_explain_estimate/ast.json create mode 100644 parser/testdata/00166_functions_of_aggregation_states/ast.json create mode 100644 parser/testdata/00167_read_bytes_from_fs/ast.json create mode 100644 parser/testdata/00167_settings_inside_query/ast.json create mode 100644 parser/testdata/00168_buffer_defaults/ast.json create mode 100644 parser/testdata/00170_lower_upper_utf8/ast.json create mode 100644 parser/testdata/00170_s3_cache/ast.json create mode 100644 parser/testdata/00171_grouping_aggregated_transform_bug/ast.json create mode 100644 parser/testdata/00171_shard_array_of_tuple_remote/ast.json create mode 100644 parser/testdata/00172_early_constant_folding/ast.json create mode 100644 parser/testdata/00173_compare_date_time_with_constant_string/ast.json create mode 100644 parser/testdata/00174_distinct_in_order/ast.json create mode 100644 parser/testdata/00175_counting_resources_in_subqueries/ast.json create mode 100644 parser/testdata/00175_partition_by_ignore/ast.json create mode 100644 parser/testdata/00176_distinct_limit_by_limit_bug_43377/ast.json create mode 100644 parser/testdata/00176_if_string_arrays/ast.json create mode 100644 parser/testdata/00178_quantile_ddsketch/ast.json create mode 100644 parser/testdata/00178_query_datetime64_index/ast.json create mode 100644 parser/testdata/00179_lambdas_with_common_expressions_and_filter/ast.json create mode 100644 parser/testdata/00180_attach_materialized_view/ast.json create mode 100644 parser/testdata/00181_aggregate_functions_statistics/ast.json create mode 100644 parser/testdata/00181_aggregate_functions_statistics_stable/ast.json create mode 100644 parser/testdata/00181_cross_join_compression/ast.json create mode 100644 parser/testdata/00182_functions_higher_order_and_consts/ast.json create mode 100644 parser/testdata/00182_simple_squashing_transform_bug/ast.json create mode 100644 parser/testdata/00183_prewhere_conditions_order/ast.json create mode 100644 parser/testdata/00183_skip_unavailable_shards/ast.json create mode 100644 parser/testdata/00184_shard_distributed_group_by_no_merge/ast.json create mode 100644 parser/testdata/00185_array_literals/ast.json create mode 100644 parser/testdata/00187_like_regexp_prefix/ast.json create mode 100644 parser/testdata/00188_constants_as_arguments_of_aggregate_functions/ast.json create mode 100644 parser/testdata/00190_non_constant_array_of_constant_data/ast.json create mode 100644 parser/testdata/00191_aggregating_merge_tree_and_final/ast.json create mode 100644 parser/testdata/00192_least_greatest/ast.json create mode 100644 parser/testdata/00193_parallel_replicas/ast.json create mode 100644 parser/testdata/00194_identity/ast.json create mode 100644 parser/testdata/00195_shard_union_all_and_global_in/ast.json create mode 100644 parser/testdata/00196_float32_formatting/ast.json create mode 100644 parser/testdata/00197_if_fixed_string/ast.json create mode 100644 parser/testdata/00199_ternary_operator_type_check/ast.json create mode 100644 parser/testdata/00200_shard_distinct_order_by_limit_distributed/ast.json create mode 100644 parser/testdata/00201_array_uniq/ast.json create mode 100644 parser/testdata/00202_cross_join/ast.json create mode 100644 parser/testdata/00203_full_join/ast.json create mode 100644 parser/testdata/00204_extract_url_parameter/ast.json create mode 100644 parser/testdata/00205_scalar_subqueries/ast.json create mode 100644 parser/testdata/00207_left_array_join/ast.json create mode 100644 parser/testdata/00208_agg_state_merge/ast.json create mode 100644 parser/testdata/00209_insert_select_extremes/ast.json create mode 100644 parser/testdata/00212_long_shard_aggregate_function_uniq/ast.json create mode 100644 parser/testdata/00213_multiple_global_in/ast.json create mode 100644 parser/testdata/00214_primary_key_order/ast.json create mode 100644 parser/testdata/00215_primary_key_order_zookeeper_long/ast.json create mode 100644 parser/testdata/00217_shard_global_subquery_columns_with_same_name/ast.json create mode 100644 parser/testdata/00218_like_regexp_newline/ast.json create mode 100644 parser/testdata/00219_full_right_join_column_order/ast.json create mode 100644 parser/testdata/00220_shard_with_totals_in_subquery_remote_and_limit/ast.json create mode 100644 parser/testdata/00222_sequence_aggregate_function_family/ast.json create mode 100644 parser/testdata/00223_shard_distributed_aggregation_memory_efficient/ast.json create mode 100644 parser/testdata/00224_shard_distributed_aggregation_memory_efficient_and_overflows/ast.json create mode 100644 parser/testdata/00225_join_duplicate_columns/ast.json create mode 100644 parser/testdata/00226_zookeeper_deduplication_and_unexpected_parts_long/ast.json create mode 100644 parser/testdata/00227_quantiles_timing_arbitrary_order/ast.json create mode 100644 parser/testdata/00228_shard_quantiles_deterministic_merge_overflow/ast.json create mode 100644 parser/testdata/00229_prewhere_column_missing/ast.json create mode 100644 parser/testdata/00230_array_functions_has_count_equal_index_of_non_const_second_arg/ast.json create mode 100644 parser/testdata/00231_format_vertical_raw/ast.json create mode 100644 parser/testdata/00233_position_function_family/ast.json create mode 100644 parser/testdata/00233_position_function_sql_comparibilty/ast.json create mode 100644 parser/testdata/00234_disjunctive_equality_chains_optimization/ast.json create mode 100644 parser/testdata/00235_create_temporary_table_as/ast.json create mode 100644 parser/testdata/00236_replicated_drop_on_non_leader_zookeeper_long/ast.json create mode 100644 parser/testdata/00237_group_by_arrays/ast.json create mode 100644 parser/testdata/00238_removal_of_temporary_columns/ast.json create mode 100644 parser/testdata/00240_replace_substring_loop/ast.json create mode 100644 parser/testdata/00251_has_types/ast.json create mode 100644 parser/testdata/00252_shard_global_in_aggregate_function/ast.json create mode 100644 parser/testdata/00253_insert_recursive_defaults/ast.json create mode 100644 parser/testdata/00254_tuple_extremes/ast.json create mode 100644 parser/testdata/00255_array_concat_string/ast.json create mode 100644 parser/testdata/00256_reverse/ast.json create mode 100644 parser/testdata/00257_shard_no_aggregates_and_constant_keys/ast.json create mode 100644 parser/testdata/00258_materializing_tuples/ast.json create mode 100644 parser/testdata/00259_hashing_tuples/ast.json create mode 100644 parser/testdata/00260_like_and_curly_braces/ast.json create mode 100644 parser/testdata/00261_storage_aliases_and_array_join/ast.json create mode 100644 parser/testdata/00262_alter_alias/ast.json create mode 100644 parser/testdata/00263_merge_aggregates_and_overflow/ast.json create mode 100644 parser/testdata/00266_read_overflow_mode/ast.json create mode 100644 parser/testdata/00268_aliases_without_as_keyword/ast.json create mode 100644 parser/testdata/00269_database_table_whitespace/ast.json create mode 100644 parser/testdata/00270_views_query_processing_stage/ast.json create mode 100644 parser/testdata/00271_agg_state_and_totals/ast.json create mode 100644 parser/testdata/00272_union_all_and_in_subquery/ast.json create mode 100644 parser/testdata/00273_quantiles/ast.json create mode 100644 parser/testdata/00274_shard_group_array/ast.json create mode 100644 parser/testdata/00275_shard_quantiles_weighted/ast.json create mode 100644 parser/testdata/00276_sample/ast.json create mode 100644 parser/testdata/00277_array_filter/ast.json create mode 100644 parser/testdata/00278_insert_already_sorted/ast.json create mode 100644 parser/testdata/00279_quantiles_permuted_args/ast.json create mode 100644 parser/testdata/00280_hex_escape_sequence/ast.json create mode 100644 parser/testdata/00282_merging/ast.json create mode 100644 parser/testdata/00284_external_aggregation/ast.json create mode 100644 parser/testdata/00284_external_aggregation_2/ast.json create mode 100644 parser/testdata/00285_not_all_data_in_totals/ast.json create mode 100644 parser/testdata/00286_format_long_negative_float/ast.json create mode 100644 parser/testdata/00288_empty_stripelog/ast.json create mode 100644 parser/testdata/00290_shard_aggregation_memory_efficient/ast.json create mode 100644 parser/testdata/00292_parser_tuple_element/ast.json create mode 100644 parser/testdata/00293_shard_max_subquery_depth/ast.json create mode 100644 parser/testdata/00294_shard_enums/ast.json create mode 100644 parser/testdata/00295_global_in_one_shard_rows_before_limit/ast.json create mode 100644 parser/testdata/00298_enum_width_and_cast/ast.json create mode 100644 parser/testdata/00299_stripe_log_multiple_inserts/ast.json create mode 100644 parser/testdata/00306_insert_values_and_expressions/ast.json create mode 100644 parser/testdata/00307_format_xml/ast.json create mode 100644 parser/testdata/00308_write_buffer_valid_utf8/ast.json create mode 100644 parser/testdata/00309_formats/ast.json create mode 100644 parser/testdata/00311_array_primary_key/ast.json create mode 100644 parser/testdata/00312_position_case_insensitive_utf8/ast.json create mode 100644 parser/testdata/00314_sample_factor_virtual_column/ast.json create mode 100644 parser/testdata/00315_quantile_off_by_one/ast.json create mode 100644 parser/testdata/00316_rounding_functions_and_empty_block/ast.json create mode 100644 parser/testdata/00318_pk_tuple_order/ast.json create mode 100644 parser/testdata/00319_index_for_like/ast.json create mode 100644 parser/testdata/00321_pk_set/ast.json create mode 100644 parser/testdata/00323_quantiles_timing_bug/ast.json create mode 100644 parser/testdata/00326_long_function_multi_if/ast.json create mode 100644 parser/testdata/00327_summing_composite_nested/ast.json create mode 100644 parser/testdata/00330_view_subqueries/ast.json create mode 100644 parser/testdata/00331_final_and_prewhere/ast.json create mode 100644 parser/testdata/00331_final_and_prewhere_condition_ver_column/ast.json create mode 100644 parser/testdata/00332_quantile_timing_memory_leak/ast.json create mode 100644 parser/testdata/00333_parser_number_bug/ast.json create mode 100644 parser/testdata/00334_column_aggregate_function_limit/ast.json create mode 100644 parser/testdata/00338_replicate_array_of_strings/ast.json create mode 100644 parser/testdata/00340_squashing_insert_select/ast.json create mode 100644 parser/testdata/00341_squashing_insert_select2/ast.json create mode 100644 parser/testdata/00343_array_element_generic/ast.json create mode 100644 parser/testdata/00344_row_number_in_all_blocks/ast.json create mode 100644 parser/testdata/00345_index_accurate_comparison/ast.json create mode 100644 parser/testdata/00346_if_tuple/ast.json create mode 100644 parser/testdata/00347_has_tuple/ast.json create mode 100644 parser/testdata/00348_tuples/ast.json create mode 100644 parser/testdata/00349_visible_width/ast.json create mode 100644 parser/testdata/00350_count_distinct/ast.json create mode 100644 parser/testdata/00351_select_distinct_arrays_tuples/ast.json create mode 100644 parser/testdata/00352_external_sorting_and_constants/ast.json create mode 100644 parser/testdata/00353_join_by_tuple/ast.json create mode 100644 parser/testdata/00355_array_of_non_const_convertible_types/ast.json create mode 100644 parser/testdata/00356_analyze_aggregations_and_union_all/ast.json create mode 100644 parser/testdata/00357_to_string_complex_types/ast.json create mode 100644 parser/testdata/00358_from_string_complex_types/ast.json create mode 100644 parser/testdata/00359_convert_or_zero_functions/ast.json create mode 100644 parser/testdata/00360_to_date_from_string_with_datetime/ast.json create mode 100644 parser/testdata/00361_shared_array_offsets_and_squash_blocks/ast.json create mode 100644 parser/testdata/00362_great_circle_distance/ast.json create mode 100644 parser/testdata/00363_defaults/ast.json create mode 100644 parser/testdata/00369_int_div_of_float/ast.json create mode 100644 parser/testdata/00370_duplicate_columns_in_subqueries/ast.json create mode 100644 parser/testdata/00371_union_all/ast.json create mode 100644 parser/testdata/00373_group_by_tuple/ast.json create mode 100644 parser/testdata/00374_any_last_if_merge/ast.json create mode 100644 parser/testdata/00375_shard_group_uniq_array_of_string/ast.json create mode 100644 parser/testdata/00376_shard_group_uniq_array_of_int_array/ast.json create mode 100644 parser/testdata/00377_shard_group_uniq_array_of_string_array/ast.json create mode 100644 parser/testdata/00378_json_quote_64bit_integers/ast.json create mode 100644 parser/testdata/00383_utf8_validation/ast.json create mode 100644 parser/testdata/00384_column_aggregate_function_insert_from/ast.json create mode 100644 parser/testdata/00386_enum_in_pk/ast.json create mode 100644 parser/testdata/00386_has_column_in_table/ast.json create mode 100644 parser/testdata/00388_enum_with_totals/ast.json create mode 100644 parser/testdata/00389_concat_operator/ast.json create mode 100644 parser/testdata/00390_array_sort/ast.json create mode 100644 parser/testdata/00392_enum_nested_alter/ast.json create mode 100644 parser/testdata/00393_if_with_constant_condition/ast.json create mode 100644 parser/testdata/00394_new_nested_column_keeps_offsets/ast.json create mode 100644 parser/testdata/00394_replaceall_vector_fixed/ast.json create mode 100644 parser/testdata/00395_nullable/ast.json create mode 100644 parser/testdata/00396_uuid/ast.json create mode 100644 parser/testdata/00396_uuid_v7/ast.json create mode 100644 parser/testdata/00397_tsv_format_synonym/ast.json create mode 100644 parser/testdata/00399_group_uniq_array_date_datetime/ast.json create mode 100644 parser/testdata/00401_merge_and_stripelog/ast.json create mode 100644 parser/testdata/00402_nan_and_extremes/ast.json create mode 100644 parser/testdata/00403_to_start_of_day/ast.json create mode 100644 parser/testdata/00404_null_literal/ast.json create mode 100644 parser/testdata/00405_output_format_pretty_color/ast.json create mode 100644 parser/testdata/00405_pretty_formats/ast.json create mode 100644 parser/testdata/00406_tuples_with_nulls/ast.json create mode 100644 parser/testdata/00409_shard_limit_by/ast.json create mode 100644 parser/testdata/00410_aggregation_combinators_with_arenas/ast.json create mode 100644 parser/testdata/00411_long_accurate_number_comparison_float/ast.json create mode 100644 parser/testdata/00411_merge_tree_where_const_in_set/ast.json create mode 100644 parser/testdata/00412_logical_expressions_optimizer/ast.json create mode 100644 parser/testdata/00413_distinct/ast.json create mode 100644 parser/testdata/00413_least_greatest_new_behavior/ast.json create mode 100644 parser/testdata/00414_time_zones_direct_conversion/ast.json create mode 100644 parser/testdata/00420_null_in_scalar_subqueries/ast.json create mode 100644 parser/testdata/00422_hash_function_constexpr/ast.json create mode 100644 parser/testdata/00423_storage_log_single_thread/ast.json create mode 100644 parser/testdata/00424_shard_aggregate_functions_of_nullable/ast.json create mode 100644 parser/testdata/00425_count_nullable/ast.json create mode 100644 parser/testdata/00426_nulls_sorting/ast.json create mode 100644 parser/testdata/00429_point_in_ellipses/ast.json create mode 100644 parser/testdata/00432_aggregate_function_scalars_and_constants/ast.json create mode 100644 parser/testdata/00433_ifnull/ast.json create mode 100644 parser/testdata/00435_coalesce/ast.json create mode 100644 parser/testdata/00438_bit_rotate/ast.json create mode 100644 parser/testdata/00439_fixed_string_filter/ast.json create mode 100644 parser/testdata/00440_nulls_merge_tree/ast.json create mode 100644 parser/testdata/00442_filter_by_nullable/ast.json create mode 100644 parser/testdata/00444_join_use_nulls/ast.json create mode 100644 parser/testdata/00445_join_nullable_keys/ast.json create mode 100644 parser/testdata/00446_clear_column_in_partition_zookeeper_long/ast.json create mode 100644 parser/testdata/00447_foreach_modifier/ast.json create mode 100644 parser/testdata/00448_replicate_nullable_tuple_generic/ast.json create mode 100644 parser/testdata/00448_to_string_cut_to_zero/ast.json create mode 100644 parser/testdata/00449_filter_array_nullable_tuple/ast.json create mode 100644 parser/testdata/00450_higher_order_and_nullable/ast.json create mode 100644 parser/testdata/00451_left_array_join_and_constants/ast.json create mode 100644 parser/testdata/00452_left_array_join_and_nullable/ast.json create mode 100644 parser/testdata/00453_cast_enum/ast.json create mode 100644 parser/testdata/00453_top_k/ast.json create mode 100644 parser/testdata/00456_alter_nullable/ast.json create mode 100644 parser/testdata/00457_log_tinylog_stripelog_nullable/ast.json create mode 100644 parser/testdata/00458_merge_type_cast/ast.json create mode 100644 parser/testdata/00459_group_array_insert_at/ast.json create mode 100644 parser/testdata/00460_vertical_and_totals_extremes/ast.json create mode 100644 parser/testdata/00462_json_true_false_literals/ast.json create mode 100644 parser/testdata/00464_array_element_out_of_range/ast.json create mode 100644 parser/testdata/00464_sort_all_constant_columns/ast.json create mode 100644 parser/testdata/00465_nullable_default/ast.json create mode 100644 parser/testdata/00466_comments_in_keyword/ast.json create mode 100644 parser/testdata/00467_qualified_names/ast.json create mode 100644 parser/testdata/00468_array_join_multiple_arrays_and_use_original_column/ast.json create mode 100644 parser/testdata/00469_comparison_of_strings_containing_null_char/ast.json create mode 100644 parser/testdata/00470_identifiers_in_double_quotes/ast.json create mode 100644 parser/testdata/00472_compare_uuid_with_constant_string/ast.json create mode 100644 parser/testdata/00472_create_view_if_not_exists/ast.json create mode 100644 parser/testdata/00475_in_join_db_table/ast.json create mode 100644 parser/testdata/00476_pretty_formats_and_widths/ast.json create mode 100644 parser/testdata/00477_parsing_data_types/ast.json create mode 100644 parser/testdata/00479_date_and_datetime_to_number/ast.json create mode 100644 parser/testdata/00480_mac_addresses/ast.json create mode 100644 parser/testdata/00481_create_view_for_null/ast.json create mode 100644 parser/testdata/00481_reading_from_last_granula/ast.json create mode 100644 parser/testdata/00482_subqueries_and_aliases/ast.json create mode 100644 parser/testdata/00483_cast_syntax/ast.json create mode 100644 parser/testdata/00483_reading_from_array_structure/ast.json create mode 100644 parser/testdata/00484_preferred_max_column_in_block_size_bytes/ast.json create mode 100644 parser/testdata/00486_if_fixed_string/ast.json create mode 100644 parser/testdata/00487_if_array_fixed_string/ast.json create mode 100644 parser/testdata/00488_column_name_primary/ast.json create mode 100644 parser/testdata/00488_non_ascii_column_names/ast.json create mode 100644 parser/testdata/00489_pk_subexpression/ast.json create mode 100644 parser/testdata/00490_special_line_separators_and_characters_outside_of_bmp/ast.json create mode 100644 parser/testdata/00490_with_select/ast.json create mode 100644 parser/testdata/00491_shard_distributed_and_aliases_in_where_having/ast.json create mode 100644 parser/testdata/00492_drop_temporary_table/ast.json create mode 100644 parser/testdata/00494_shard_alias_substitution_bug/ast.json create mode 100644 parser/testdata/00495_reading_const_zero_column/ast.json create mode 100644 parser/testdata/00498_array_functions_concat_slice_push_pop/ast.json create mode 100644 parser/testdata/00498_bitwise_aggregate_functions/ast.json create mode 100644 parser/testdata/00499_json_enum_insert/ast.json create mode 100644 parser/testdata/00500_point_in_polygon/ast.json create mode 100644 parser/testdata/00500_point_in_polygon_2d_const/ast.json create mode 100644 parser/testdata/00500_point_in_polygon_3d_const/ast.json create mode 100644 parser/testdata/00500_point_in_polygon_bug/ast.json create mode 100644 parser/testdata/00500_point_in_polygon_bug_2/ast.json create mode 100644 parser/testdata/00500_point_in_polygon_bug_3_linestring_rotation_precision/ast.json create mode 100644 parser/testdata/00500_point_in_polygon_empty_bound/ast.json create mode 100644 parser/testdata/00500_point_in_polygon_non_const_poly/ast.json create mode 100644 parser/testdata/00502_custom_partitioning_local/ast.json create mode 100644 parser/testdata/00502_custom_partitioning_replicated_zookeeper_long/ast.json create mode 100644 parser/testdata/00502_sum_map/ast.json create mode 100644 parser/testdata/00504_mergetree_arrays_rw/ast.json create mode 100644 parser/testdata/00506_shard_global_in_union/ast.json create mode 100644 parser/testdata/00506_union_distributed/ast.json create mode 100644 parser/testdata/00507_sumwithoverflow/ast.json create mode 100644 parser/testdata/00508_materialized_view_to/ast.json create mode 100644 parser/testdata/00509_extended_storage_definition_syntax_zookeeper/ast.json create mode 100644 parser/testdata/00510_materizlized_view_and_deduplication_zookeeper/ast.json create mode 100644 parser/testdata/00513_fractional_time_zones/ast.json create mode 100644 parser/testdata/00514_interval_operators/ast.json create mode 100644 parser/testdata/00515_enhanced_time_zones/ast.json create mode 100644 parser/testdata/00515_gcd_lcm/ast.json create mode 100644 parser/testdata/00515_shard_desc_table_functions_and_subqueries/ast.json create mode 100644 parser/testdata/00516_deduplication_after_drop_partition_zookeeper/ast.json create mode 100644 parser/testdata/00516_modulo/ast.json create mode 100644 parser/testdata/00517_date_parsing/ast.json create mode 100644 parser/testdata/00519_create_as_select_from_temporary_table/ast.json create mode 100644 parser/testdata/00520_tuple_values_interpreter/ast.json create mode 100644 parser/testdata/00521_multidimensional/ast.json create mode 100644 parser/testdata/00522_multidimensional/ast.json create mode 100644 parser/testdata/00523_aggregate_functions_in_group_array/ast.json create mode 100644 parser/testdata/00524_time_intervals_months_underflow/ast.json create mode 100644 parser/testdata/00527_totals_having_nullable/ast.json create mode 100644 parser/testdata/00528_const_of_nullable/ast.json create mode 100644 parser/testdata/00529_orantius/ast.json create mode 100644 parser/testdata/00530_arrays_of_nothing/ast.json create mode 100644 parser/testdata/00531_aggregate_over_nullable/ast.json create mode 100644 parser/testdata/00532_topk_generic/ast.json create mode 100644 parser/testdata/00533_uniq_array/ast.json create mode 100644 parser/testdata/00534_exp10/ast.json create mode 100644 parser/testdata/00535_parse_float_scientific/ast.json create mode 100644 parser/testdata/00536_int_exp/ast.json create mode 100644 parser/testdata/00536_int_exp_overflow/ast.json create mode 100644 parser/testdata/00537_quarters/ast.json create mode 100644 parser/testdata/00538_datediff/ast.json create mode 100644 parser/testdata/00538_datediff_plural_units/ast.json create mode 100644 parser/testdata/00539_functions_for_working_with_json/ast.json create mode 100644 parser/testdata/00541_kahan_sum/ast.json create mode 100644 parser/testdata/00542_access_to_temporary_table_in_readonly_mode/ast.json create mode 100644 parser/testdata/00542_materialized_view_and_time_zone_tag/ast.json create mode 100644 parser/testdata/00543_null_and_prewhere/ast.json create mode 100644 parser/testdata/00544_insert_with_select/ast.json create mode 100644 parser/testdata/00546_shard_tuple_element_formatting/ast.json create mode 100644 parser/testdata/00549_join_use_nulls/ast.json create mode 100644 parser/testdata/00553_buff_exists_materlized_column/ast.json create mode 100644 parser/testdata/00553_invalid_nested_name/ast.json create mode 100644 parser/testdata/00554_nested_and_table_engines/ast.json create mode 100644 parser/testdata/00555_hasAll_hasAny/ast.json create mode 100644 parser/testdata/00555_hasSubstr/ast.json create mode 100644 parser/testdata/00555_right_join_excessive_rows/ast.json create mode 100644 parser/testdata/00556_array_intersect/ast.json create mode 100644 parser/testdata/00556_remove_columns_from_subquery/ast.json create mode 100644 parser/testdata/00557_alter_null_storage_tables/ast.json create mode 100644 parser/testdata/00557_array_resize/ast.json create mode 100644 parser/testdata/00558_aggregate_merge_totals_with_arenas/ast.json create mode 100644 parser/testdata/00558_parse_floats/ast.json create mode 100644 parser/testdata/00560_float_leading_plus_in_exponent/ast.json create mode 100644 parser/testdata/00561_storage_join/ast.json create mode 100644 parser/testdata/00562_in_subquery_merge_tree/ast.json create mode 100644 parser/testdata/00562_rewrite_select_expression_with_union/ast.json create mode 100644 parser/testdata/00563_complex_in_expression/ast.json create mode 100644 parser/testdata/00563_insert_into_remote_and_zookeeper_long/ast.json create mode 100644 parser/testdata/00563_shard_insert_into_remote/ast.json create mode 100644 parser/testdata/00564_initial_column_values_with_default_expression/ast.json create mode 100644 parser/testdata/00564_temporary_table_management/ast.json create mode 100644 parser/testdata/00564_versioned_collapsing_merge_tree/ast.json create mode 100644 parser/testdata/00567_parse_datetime_as_unix_timestamp/ast.json create mode 100644 parser/testdata/00568_empty_function_with_fixed_string/ast.json create mode 100644 parser/testdata/00569_parse_date_time_best_effort/ast.json create mode 100644 parser/testdata/00570_empty_array_is_const/ast.json create mode 100644 parser/testdata/00571_alter_nullable/ast.json create mode 100644 parser/testdata/00572_aggregation_by_empty_set/ast.json create mode 100644 parser/testdata/00573_shard_aggregation_by_empty_set/ast.json create mode 100644 parser/testdata/00575_merge_and_index_with_function_in_in/ast.json create mode 100644 parser/testdata/00576_nested_and_prewhere/ast.json create mode 100644 parser/testdata/00577_full_join_segfault/ast.json create mode 100644 parser/testdata/00577_replacing_merge_tree_vertical_merge/ast.json create mode 100644 parser/testdata/00578_merge_table_and_table_virtual_column/ast.json create mode 100644 parser/testdata/00578_merge_table_sampling/ast.json create mode 100644 parser/testdata/00578_merge_table_shadow_virtual_column/ast.json create mode 100644 parser/testdata/00578_merge_trees_without_primary_key/ast.json create mode 100644 parser/testdata/00579_merge_tree_partition_and_primary_keys_using_same_expression/ast.json create mode 100644 parser/testdata/00579_virtual_column_and_lazy/ast.json create mode 100644 parser/testdata/00580_cast_nullable_to_non_nullable/ast.json create mode 100644 parser/testdata/00580_consistent_hashing_functions/ast.json create mode 100644 parser/testdata/00581_limit_on_result_and_subquery_and_insert/ast.json create mode 100644 parser/testdata/00582_not_aliasing_functions/ast.json create mode 100644 parser/testdata/00584_view_union_all/ast.json create mode 100644 parser/testdata/00585_union_all_subquery_aggregation_column_removal/ast.json create mode 100644 parser/testdata/00586_removing_unused_columns_from_subquery/ast.json create mode 100644 parser/testdata/00587_union_all_type_conversions/ast.json create mode 100644 parser/testdata/00588_shard_distributed_prewhere/ast.json create mode 100644 parser/testdata/00589_removal_unused_columns_aggregation/ast.json create mode 100644 parser/testdata/00593_union_all_assert_columns_removed/ast.json create mode 100644 parser/testdata/00594_alias_in_distributed/ast.json create mode 100644 parser/testdata/00597_push_down_predicate_long/ast.json create mode 100644 parser/testdata/00597_with_totals_on_empty_set/ast.json create mode 100644 parser/testdata/00599_create_view_with_subquery/ast.json create mode 100644 parser/testdata/00600_create_temporary_table_if_not_exists/ast.json create mode 100644 parser/testdata/00603_system_parts_nonexistent_database/ast.json create mode 100644 parser/testdata/00604_shard_remote_and_columns_with_defaults/ast.json create mode 100644 parser/testdata/00605_intersections_aggregate_functions/ast.json create mode 100644 parser/testdata/00607_index_in_in/ast.json create mode 100644 parser/testdata/00608_uniq_array/ast.json create mode 100644 parser/testdata/00609_distributed_with_case_when_then/ast.json create mode 100644 parser/testdata/00609_mv_index_in_in/ast.json create mode 100644 parser/testdata/00609_prewhere_and_default/ast.json create mode 100644 parser/testdata/00610_materialized_view_forward_alter_partition_statements/ast.json create mode 100644 parser/testdata/00612_count/ast.json create mode 100644 parser/testdata/00612_http_max_query_size_for_distributed/ast.json create mode 100644 parser/testdata/00612_pk_in_tuple/ast.json create mode 100644 parser/testdata/00612_shard_count/ast.json create mode 100644 parser/testdata/00612_union_query_with_subquery/ast.json create mode 100644 parser/testdata/00613_shard_distributed_max_execution_time/ast.json create mode 100644 parser/testdata/00614_array_nullable/ast.json create mode 100644 parser/testdata/00614_shard_same_header_for_local_and_remote_node_in_distributed_query/ast.json create mode 100644 parser/testdata/00615_nullable_alter_optimize/ast.json create mode 100644 parser/testdata/00616_final_single_part/ast.json create mode 100644 parser/testdata/00617_array_in/ast.json create mode 100644 parser/testdata/00618_nullable_in/ast.json create mode 100644 parser/testdata/00619_union_highlite/ast.json create mode 100644 parser/testdata/00620_optimize_on_nonleader_replica_zookeeper/ast.json create mode 100644 parser/testdata/00621_regression_for_in_operator/ast.json create mode 100644 parser/testdata/00622_select_in_parens/ast.json create mode 100644 parser/testdata/00623_in_partition_key/ast.json create mode 100644 parser/testdata/00623_replicated_truncate_table_zookeeper_long/ast.json create mode 100644 parser/testdata/00623_truncate_all_tables/ast.json create mode 100644 parser/testdata/00623_truncate_table/ast.json create mode 100644 parser/testdata/00624_length_utf8/ast.json create mode 100644 parser/testdata/00625_arrays_in_nested/ast.json create mode 100644 parser/testdata/00625_summing_merge_tree_merge/ast.json create mode 100644 parser/testdata/00626_in_syntax/ast.json create mode 100644 parser/testdata/00626_replace_partition_from_table/ast.json create mode 100644 parser/testdata/00627_recursive_alias/ast.json create mode 100644 parser/testdata/00628_in_lambda_on_merge_table_bug/ast.json create mode 100644 parser/testdata/00632_aggregation_window_funnel/ast.json create mode 100644 parser/testdata/00632_get_sample_block_cache/ast.json create mode 100644 parser/testdata/00633_func_or_in/ast.json create mode 100644 parser/testdata/00634_rename_view/ast.json create mode 100644 parser/testdata/00635_shard_distinct_order_by/ast.json create mode 100644 parser/testdata/00639_startsWith/ast.json create mode 100644 parser/testdata/00640_endsWith/ast.json create mode 100644 parser/testdata/00643_cast_zookeeper_long/ast.json create mode 100644 parser/testdata/00645_date_time_input_format/ast.json create mode 100644 parser/testdata/00646_weird_mmx/ast.json create mode 100644 parser/testdata/00647_histogram/ast.json create mode 100644 parser/testdata/00647_histogram_negative/ast.json create mode 100644 parser/testdata/00647_multiply_aggregation_state/ast.json create mode 100644 parser/testdata/00647_select_numbers_with_offset/ast.json create mode 100644 parser/testdata/00648_replacing_empty_set_from_prewhere/ast.json create mode 100644 parser/testdata/00650_array_enumerate_uniq_with_tuples/ast.json create mode 100644 parser/testdata/00653_monotonic_integer_cast/ast.json create mode 100644 parser/testdata/00653_running_difference/ast.json create mode 100644 parser/testdata/00660_optimize_final_without_partition/ast.json create mode 100644 parser/testdata/00661_array_has_silviucpp/ast.json create mode 100644 parser/testdata/00661_optimize_final_replicated_without_partition_zookeeper/ast.json create mode 100644 parser/testdata/00662_array_has_nullable/ast.json create mode 100644 parser/testdata/00662_has_nullable/ast.json create mode 100644 parser/testdata/00663_tiny_log_empty_insert/ast.json create mode 100644 parser/testdata/00664_cast_from_string_to_nullable/ast.json create mode 100644 parser/testdata/00665_alter_nullable_string_to_nullable_uint8/ast.json create mode 100644 parser/testdata/00666_uniq_complex_types/ast.json create mode 100644 parser/testdata/00668_compare_arrays_silviucpp/ast.json create mode 100644 parser/testdata/00670_truncate_temporary_table/ast.json create mode 100644 parser/testdata/00671_max_intersections/ast.json create mode 100644 parser/testdata/00672_arrayDistinct/ast.json create mode 100644 parser/testdata/00673_subquery_prepared_set_performance/ast.json create mode 100644 parser/testdata/00674_join_on_syntax/ast.json create mode 100644 parser/testdata/00675_shard_remote_with_table_function/ast.json create mode 100644 parser/testdata/00677_shard_any_heavy_merge/ast.json create mode 100644 parser/testdata/00678_murmurhash/ast.json create mode 100644 parser/testdata/00678_shard_funnel_window/ast.json create mode 100644 parser/testdata/00679_replace_asterisk/ast.json create mode 100644 parser/testdata/00679_uuid_in_key/ast.json create mode 100644 parser/testdata/00680_duplicate_columns_inside_union_all/ast.json create mode 100644 parser/testdata/00681_duplicate_columns_inside_union_all_stas_sviridov/ast.json create mode 100644 parser/testdata/00685_output_format_json_escape_forward_slashes/ast.json create mode 100644 parser/testdata/00687_insert_into_mv/ast.json create mode 100644 parser/testdata/00688_aggregation_retention/ast.json create mode 100644 parser/testdata/00688_case_without_else/ast.json create mode 100644 parser/testdata/00688_low_cardinality_alter_add_column/ast.json create mode 100644 parser/testdata/00688_low_cardinality_defaults/ast.json create mode 100644 parser/testdata/00688_low_cardinality_dictionary_deserialization/ast.json create mode 100644 parser/testdata/00688_low_cardinality_in/ast.json create mode 100644 parser/testdata/00688_low_cardinality_nullable_cast/ast.json create mode 100644 parser/testdata/00688_low_cardinality_prewhere/ast.json create mode 100644 parser/testdata/00688_low_cardinality_serialization/ast.json create mode 100644 parser/testdata/00688_low_cardinality_syntax/ast.json create mode 100644 parser/testdata/00689_join_table_function/ast.json create mode 100644 parser/testdata/00691_array_distinct/ast.json create mode 100644 parser/testdata/00692_if_exception_code/ast.json create mode 100644 parser/testdata/00693_max_block_size_system_tables_columns/ast.json create mode 100644 parser/testdata/00695_pretty_max_column_pad_width/ast.json create mode 100644 parser/testdata/00696_system_columns_limit/ast.json create mode 100644 parser/testdata/00697_in_subquery_shard/ast.json create mode 100644 parser/testdata/00698_validate_array_sizes_for_nested/ast.json create mode 100644 parser/testdata/00698_validate_array_sizes_for_nested_kshvakov/ast.json create mode 100644 parser/testdata/00700_decimal_aggregates/ast.json create mode 100644 parser/testdata/00700_decimal_arithm/ast.json create mode 100644 parser/testdata/00700_decimal_array_functions/ast.json create mode 100644 parser/testdata/00700_decimal_bounds/ast.json create mode 100644 parser/testdata/00700_decimal_casts/ast.json create mode 100644 parser/testdata/00700_decimal_casts_2/ast.json create mode 100644 parser/testdata/00700_decimal_compare/ast.json create mode 100644 parser/testdata/00700_decimal_complex_types/ast.json create mode 100644 parser/testdata/00700_decimal_defaults/ast.json create mode 100644 parser/testdata/00700_decimal_empty_aggregates/ast.json create mode 100644 parser/testdata/00700_decimal_formats/ast.json create mode 100644 parser/testdata/00700_decimal_gathers/ast.json create mode 100644 parser/testdata/00700_decimal_in_keys/ast.json create mode 100644 parser/testdata/00700_decimal_math/ast.json create mode 100644 parser/testdata/00700_decimal_null/ast.json create mode 100644 parser/testdata/00700_decimal_round/ast.json create mode 100644 parser/testdata/00700_decimal_with_default_precision_and_scale/ast.json create mode 100644 parser/testdata/00700_to_decimal_or_something/ast.json create mode 100644 parser/testdata/00701_context_use_after_free/ast.json create mode 100644 parser/testdata/00701_join_default_strictness/ast.json create mode 100644 parser/testdata/00701_rollup/ast.json create mode 100644 parser/testdata/00702_join_on_dups/ast.json create mode 100644 parser/testdata/00702_join_with_using/ast.json create mode 100644 parser/testdata/00702_join_with_using_dups/ast.json create mode 100644 parser/testdata/00702_where_with_quailified_names/ast.json create mode 100644 parser/testdata/00703_join_crash/ast.json create mode 100644 parser/testdata/00704_arrayCumSumLimited_arrayDifference/ast.json create mode 100644 parser/testdata/00705_aggregate_states_addition/ast.json create mode 100644 parser/testdata/00706_iso_week_and_day_of_year/ast.json create mode 100644 parser/testdata/00707_float_csv_delimiter/ast.json create mode 100644 parser/testdata/00709_virtual_column_partition_id/ast.json create mode 100644 parser/testdata/00710_array_enumerate_dense/ast.json create mode 100644 parser/testdata/00711_array_enumerate_variants/ast.json create mode 100644 parser/testdata/00712_prewhere_with_alias/ast.json create mode 100644 parser/testdata/00712_prewhere_with_alias_and_virtual_column/ast.json create mode 100644 parser/testdata/00712_prewhere_with_alias_bug/ast.json create mode 100644 parser/testdata/00712_prewhere_with_alias_bug_2/ast.json create mode 100644 parser/testdata/00712_prewhere_with_final/ast.json create mode 100644 parser/testdata/00712_prewhere_with_missing_columns/ast.json create mode 100644 parser/testdata/00712_prewhere_with_missing_columns_2/ast.json create mode 100644 parser/testdata/00712_prewhere_with_sampling/ast.json create mode 100644 parser/testdata/00712_prewhere_with_sampling_and_alias/ast.json create mode 100644 parser/testdata/00713_collapsing_merge_tree/ast.json create mode 100644 parser/testdata/00714_alter_uuid/ast.json create mode 100644 parser/testdata/00714_create_temporary_table_with_in_clause/ast.json create mode 100644 parser/testdata/00715_bounding_ratio/ast.json create mode 100644 parser/testdata/00715_bounding_ratio_merge_empty/ast.json create mode 100644 parser/testdata/00716_allow_ddl/ast.json create mode 100644 parser/testdata/00717_default_join_type/ast.json create mode 100644 parser/testdata/00717_low_cardinaliry_distributed_group_by/ast.json create mode 100644 parser/testdata/00717_low_cardinaliry_group_by/ast.json create mode 100644 parser/testdata/00717_merge_and_distributed/ast.json create mode 100644 parser/testdata/00718_format_datetime/ast.json create mode 100644 parser/testdata/00718_format_datetime_1/ast.json create mode 100644 parser/testdata/00718_low_cardinaliry_alter/ast.json create mode 100644 parser/testdata/00719_format_datetime_f_varsize_bug/ast.json create mode 100644 parser/testdata/00719_format_datetime_rand/ast.json create mode 100644 parser/testdata/00720_with_cube/ast.json create mode 100644 parser/testdata/00721_force_by_identical_result_after_merge_zookeeper_long/ast.json create mode 100644 parser/testdata/00722_inner_join/ast.json create mode 100644 parser/testdata/00723_remerge_sort/ast.json create mode 100644 parser/testdata/00724_insert_values_datetime_conversion/ast.json create mode 100644 parser/testdata/00725_comment_columns_long/ast.json create mode 100644 parser/testdata/00725_ipv4_ipv6_domains/ast.json create mode 100644 parser/testdata/00725_join_on_bug_1/ast.json create mode 100644 parser/testdata/00725_join_on_bug_2/ast.json create mode 100644 parser/testdata/00725_join_on_bug_3/ast.json create mode 100644 parser/testdata/00725_join_on_bug_4/ast.json create mode 100644 parser/testdata/00725_memory_tracking/ast.json create mode 100644 parser/testdata/00725_quantiles_shard/ast.json create mode 100644 parser/testdata/00726_materialized_view_concurrent/ast.json create mode 100644 parser/testdata/00726_modulo_for_date/ast.json create mode 100644 parser/testdata/00727_concat/ast.json create mode 100644 parser/testdata/00729_prewhere_array_join/ast.json create mode 100644 parser/testdata/00730_unicode_terminal_format/ast.json create mode 100644 parser/testdata/00732_base64_functions/ast.json create mode 100644 parser/testdata/00732_decimal_summing_merge_tree/ast.json create mode 100644 parser/testdata/00732_quorum_insert_have_data_before_quorum_zookeeper_long/ast.json create mode 100644 parser/testdata/00732_quorum_insert_lost_part_and_alive_part_zookeeper_long/ast.json create mode 100644 parser/testdata/00732_quorum_insert_lost_part_zookeeper_long/ast.json create mode 100644 parser/testdata/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper_long/ast.json create mode 100644 parser/testdata/00732_quorum_insert_simple_test_1_parts_zookeeper_long/ast.json create mode 100644 parser/testdata/00732_quorum_insert_simple_test_2_parts_zookeeper_long/ast.json create mode 100644 parser/testdata/00733_if_datetime/ast.json create mode 100644 parser/testdata/00734_timeslot/ast.json create mode 100644 parser/testdata/00735_long_conditional/ast.json create mode 100644 parser/testdata/00735_or_expr_optimize_bug/ast.json create mode 100644 parser/testdata/00736_disjunction_optimisation/ast.json create mode 100644 parser/testdata/00737_decimal_group_by/ast.json create mode 100644 parser/testdata/00738_nested_merge_multidimensional_array/ast.json create mode 100644 parser/testdata/00739_array_element_nullable_string_mattrobenolt/ast.json create mode 100644 parser/testdata/00740_optimize_predicate_expression/ast.json create mode 100644 parser/testdata/00741_client_comment_multiline/ast.json create mode 100644 parser/testdata/00742_require_join_strictness/ast.json create mode 100644 parser/testdata/00743_limit_by_not_found_column/ast.json create mode 100644 parser/testdata/00744_join_not_found_column/ast.json create mode 100644 parser/testdata/00745_compile_scalar_subquery/ast.json create mode 100644 parser/testdata/00746_compile_non_deterministic_function/ast.json create mode 100644 parser/testdata/00746_hashing_tuples/ast.json create mode 100644 parser/testdata/00747_contributors/ast.json create mode 100644 parser/testdata/00748_insert_array_with_null/ast.json create mode 100644 parser/testdata/00749_inner_join_of_unnamed_subqueries/ast.json create mode 100644 parser/testdata/00750_merge_tree_merge_with_o_direct/ast.json create mode 100644 parser/testdata/00751_default_databasename_for_view/ast.json create mode 100644 parser/testdata/00751_hashing_ints/ast.json create mode 100644 parser/testdata/00751_low_cardinality_nullable_group_by/ast.json create mode 100644 parser/testdata/00752_low_cardinality_array_result/ast.json create mode 100644 parser/testdata/00752_low_cardinality_lambda_argument/ast.json create mode 100644 parser/testdata/00752_low_cardinality_left_array_join/ast.json create mode 100644 parser/testdata/00752_low_cardinality_mv_1/ast.json create mode 100644 parser/testdata/00752_low_cardinality_mv_2/ast.json create mode 100644 parser/testdata/00752_low_cardinality_permute/ast.json create mode 100644 parser/testdata/00753_alter_attach/ast.json create mode 100644 parser/testdata/00753_alter_destination_for_storage_buffer/ast.json create mode 100644 parser/testdata/00753_comment_columns_zookeeper/ast.json create mode 100644 parser/testdata/00753_distributed_system_columns_and_system_tables/ast.json create mode 100644 parser/testdata/00753_quantile_format/ast.json create mode 100644 parser/testdata/00753_system_columns_and_system_tables_long/ast.json create mode 100644 parser/testdata/00753_with_with_single_alias/ast.json create mode 100644 parser/testdata/00754_alter_modify_column_partitions/ast.json create mode 100644 parser/testdata/00754_alter_modify_order_by/ast.json create mode 100644 parser/testdata/00754_alter_modify_order_by_replicated_zookeeper_long/ast.json create mode 100644 parser/testdata/00754_first_significant_subdomain_more/ast.json create mode 100644 parser/testdata/00755_avg_value_size_hint_passing/ast.json create mode 100644 parser/testdata/00757_enum_defaults/ast.json create mode 100644 parser/testdata/00757_enum_defaults_const_analyzer/ast.json create mode 100644 parser/testdata/00758_array_reverse/ast.json create mode 100644 parser/testdata/00760_insert_json_with_defaults/ast.json create mode 100644 parser/testdata/00760_url_functions_overflow/ast.json create mode 100644 parser/testdata/00762_date_comparsion/ast.json create mode 100644 parser/testdata/00763_create_query_as_table_engine_bug/ast.json create mode 100644 parser/testdata/00765_locate/ast.json create mode 100644 parser/testdata/00765_sql_compatibility_aliases/ast.json create mode 100644 parser/testdata/00779_all_right_join_max_block_size/ast.json create mode 100644 parser/testdata/00780_unaligned_array_join/ast.json create mode 100644 parser/testdata/00794_materialized_view_with_column_defaults/ast.json create mode 100644 parser/testdata/00799_function_dry_run/ast.json create mode 100644 parser/testdata/00800_function_java_hash/ast.json create mode 100644 parser/testdata/00800_low_cardinality_array_group_by_arg/ast.json create mode 100644 parser/testdata/00800_low_cardinality_distinct_numeric/ast.json create mode 100644 parser/testdata/00800_low_cardinality_distributed_insert/ast.json create mode 100644 parser/testdata/00800_low_cardinality_empty_array/ast.json create mode 100644 parser/testdata/00800_low_cardinality_join/ast.json create mode 100644 parser/testdata/00800_versatile_storage_join/ast.json create mode 100644 parser/testdata/00802_daylight_saving_time_shift_backwards_at_midnight/ast.json create mode 100644 parser/testdata/00802_system_parts_with_datetime_partition/ast.json create mode 100644 parser/testdata/00803_odbc_driver_2_format/ast.json create mode 100644 parser/testdata/00803_xxhash/ast.json create mode 100644 parser/testdata/00804_rollup_with_having/ast.json create mode 100644 parser/testdata/00804_test_alter_compression_codecs/ast.json create mode 100644 parser/testdata/00804_test_custom_compression_codecs/ast.json create mode 100644 parser/testdata/00804_test_custom_compression_codes_log_storages/ast.json create mode 100644 parser/testdata/00804_test_deflate_qpl_codec_compression/ast.json create mode 100644 parser/testdata/00804_test_delta_codec_compression/ast.json create mode 100644 parser/testdata/00804_test_delta_codec_no_type_alter/ast.json create mode 100644 parser/testdata/00804_test_zstd_qat_codec_compression/ast.json create mode 100644 parser/testdata/00805_round_down/ast.json create mode 100644 parser/testdata/00806_alter_update/ast.json create mode 100644 parser/testdata/00807_regexp_quote_meta/ast.json create mode 100644 parser/testdata/00808_array_enumerate_segfault/ast.json create mode 100644 parser/testdata/00808_not_optimize_predicate/ast.json create mode 100644 parser/testdata/00809_add_days_segfault/ast.json create mode 100644 parser/testdata/00810_in_operators_segfault/ast.json create mode 100644 parser/testdata/00811_garbage/ast.json create mode 100644 parser/testdata/00812_prewhere_alias_array/ast.json create mode 100644 parser/testdata/00813_parse_date_time_best_effort_more/ast.json create mode 100644 parser/testdata/00814_parsing_ub/ast.json create mode 100644 parser/testdata/00815_left_join_on_stepanel/ast.json create mode 100644 parser/testdata/00816_join_column_names_sarg/ast.json create mode 100644 parser/testdata/00817_with_simple/ast.json create mode 100644 parser/testdata/00818_alias_bug_4110/ast.json create mode 100644 parser/testdata/00818_inner_join_bug_3567/ast.json create mode 100644 parser/testdata/00818_join_bug_4271/ast.json create mode 100644 parser/testdata/00819_ast_refactoring_bugs/ast.json create mode 100644 parser/testdata/00819_full_join_wrong_columns_in_block/ast.json create mode 100644 parser/testdata/00820_multiple_joins/ast.json create mode 100644 parser/testdata/00820_multiple_joins_subquery_requires_alias/ast.json create mode 100644 parser/testdata/00821_distributed_storage_with_join_on/ast.json create mode 100644 parser/testdata/00822_array_insert_default/ast.json create mode 100644 parser/testdata/00823_sequence_match_dfa/ast.json create mode 100644 parser/testdata/00826_cross_to_inner_join/ast.json create mode 100644 parser/testdata/00829_bitmap64_function/ast.json create mode 100644 parser/testdata/00829_bitmap_function/ast.json create mode 100644 parser/testdata/00830_join_overwrite/ast.json create mode 100644 parser/testdata/00831_quantile_weighted_parameter_check/ast.json create mode 100644 parser/testdata/00832_storage_file_lock/ast.json create mode 100644 parser/testdata/00833_sleep_overflow/ast.json create mode 100644 parser/testdata/00834_date_datetime_cmp/ast.json create mode 100644 parser/testdata/00834_limit_with_constant_expressions/ast.json create mode 100644 parser/testdata/00835_if_generic_case/ast.json create mode 100644 parser/testdata/00836_indices_alter/ast.json create mode 100644 parser/testdata/00836_indices_alter_replicated_zookeeper_long/ast.json create mode 100644 parser/testdata/00836_numbers_table_function_zero/ast.json create mode 100644 parser/testdata/00837_insert_select_and_read_prefix/ast.json create mode 100644 parser/testdata/00837_minmax_index_replicated_zookeeper_long/ast.json create mode 100644 parser/testdata/00839_bitmask_negative/ast.json create mode 100644 parser/testdata/00841_temporary_table_database/ast.json create mode 100644 parser/testdata/00842_array_with_constant_overflow/ast.json create mode 100644 parser/testdata/00843_optimize_predicate_and_rename_table/ast.json create mode 100644 parser/testdata/00844_join_lightee2/ast.json create mode 100644 parser/testdata/00845_join_on_aliases/ast.json create mode 100644 parser/testdata/00846_join_using_tuple_crash/ast.json create mode 100644 parser/testdata/00847_multiple_join_same_column/ast.json create mode 100644 parser/testdata/00848_join_use_nulls_segfault/ast.json create mode 100644 parser/testdata/00849_multiple_comma_join_2/ast.json create mode 100644 parser/testdata/00850_global_join_dups/ast.json create mode 100644 parser/testdata/00852_any_join_nulls/ast.json create mode 100644 parser/testdata/00853_join_with_nulls_crash/ast.json create mode 100644 parser/testdata/00854_multiple_join_asterisks/ast.json create mode 100644 parser/testdata/00855_join_with_array_join/ast.json create mode 100644 parser/testdata/00856_no_column_issue_4242/ast.json create mode 100644 parser/testdata/00857_global_joinsavel_table_alias/ast.json create mode 100644 parser/testdata/00858_issue_4756/ast.json create mode 100644 parser/testdata/00859_distinct_with_join/ast.json create mode 100644 parser/testdata/00860_unknown_identifier_bug/ast.json create mode 100644 parser/testdata/00861_decimal_quoted_csv/ast.json create mode 100644 parser/testdata/00862_decimal_in/ast.json create mode 100644 parser/testdata/00863_comma_join_in/ast.json create mode 100644 parser/testdata/00864_union_all_supertype/ast.json create mode 100644 parser/testdata/00870_t64_codec/ast.json create mode 100644 parser/testdata/00871_t64_codec_signed/ast.json create mode 100644 parser/testdata/00872_t64_bit_codec/ast.json create mode 100644 parser/testdata/00873_t64_codec_date/ast.json create mode 100644 parser/testdata/00874_issue_3495/ast.json create mode 100644 parser/testdata/00875_join_right_nulls/ast.json create mode 100644 parser/testdata/00875_join_right_nulls_ors/ast.json create mode 100644 parser/testdata/00876_wrong_arraj_join_column/ast.json create mode 100644 parser/testdata/00877_memory_limit_for_new_delete/ast.json create mode 100644 parser/testdata/00878_join_unexpected_results/ast.json create mode 100644 parser/testdata/00879_cast_to_decimal_crash/ast.json create mode 100644 parser/testdata/00880_decimal_in_key/ast.json create mode 100644 parser/testdata/00881_unknown_identifier_in_in/ast.json create mode 100644 parser/testdata/00882_multiple_join_no_alias/ast.json create mode 100644 parser/testdata/00898_quantile_timing_parameter_check/ast.json create mode 100644 parser/testdata/00899_long_attach_memory_limit/ast.json create mode 100644 parser/testdata/00900_entropy_shard/ast.json create mode 100644 parser/testdata/00901_joint_entropy/ast.json create mode 100644 parser/testdata/00902_entropy/ast.json create mode 100644 parser/testdata/00903_array_with_constant_function/ast.json create mode 100644 parser/testdata/00904_array_with_constant_2/ast.json create mode 100644 parser/testdata/00905_compile_expressions_compare_big_dates/ast.json create mode 100644 parser/testdata/00905_field_with_aggregate_function_state/ast.json create mode 100644 parser/testdata/00906_low_cardinality_cache/ast.json create mode 100644 parser/testdata/00906_low_cardinality_const_argument/ast.json create mode 100644 parser/testdata/00906_low_cardinality_rollup/ast.json create mode 100644 parser/testdata/00907_set_index_with_nullable_and_low_cardinality/ast.json create mode 100644 parser/testdata/00907_set_index_with_nullable_and_low_cardinality_bug/ast.json create mode 100644 parser/testdata/00908_analyze_query/ast.json create mode 100644 parser/testdata/00909_arrayEnumerateUniq/ast.json create mode 100644 parser/testdata/00909_ngram_distance/ast.json create mode 100644 parser/testdata/00910_buffer_prewhere/ast.json create mode 100644 parser/testdata/00910_buffer_prewhere_different_types/ast.json create mode 100644 parser/testdata/00910_crash_when_distributed_modify_order_by/ast.json create mode 100644 parser/testdata/00910_decimal_group_array_crash_3783/ast.json create mode 100644 parser/testdata/00910_zookeeper_custom_compression_codecs_replicated_long/ast.json create mode 100644 parser/testdata/00910_zookeeper_test_alter_compression_codecs_long/ast.json create mode 100644 parser/testdata/00912_string_comparison/ast.json create mode 100644 parser/testdata/00913_many_threads/ast.json create mode 100644 parser/testdata/00914_join_bgranvea/ast.json create mode 100644 parser/testdata/00914_replicate/ast.json create mode 100644 parser/testdata/00915_simple_aggregate_function/ast.json create mode 100644 parser/testdata/00915_simple_aggregate_function_summing_merge_tree/ast.json create mode 100644 parser/testdata/00915_tuple_orantius/ast.json create mode 100644 parser/testdata/00916_add_materialized_column_after/ast.json create mode 100644 parser/testdata/00916_create_or_replace_view/ast.json create mode 100644 parser/testdata/00916_join_using_duplicate_columns/ast.json create mode 100644 parser/testdata/00917_least_sqr/ast.json create mode 100644 parser/testdata/00917_multiple_joins_denny_crane/ast.json create mode 100644 parser/testdata/00918_json_functions/ast.json create mode 100644 parser/testdata/00919_histogram_merge/ast.json create mode 100644 parser/testdata/00919_sum_aggregate_states_constants/ast.json create mode 100644 parser/testdata/00920_multiply_aggregate_states_constants/ast.json create mode 100644 parser/testdata/00921_datetime64_basic/ast.json create mode 100644 parser/testdata/00926_adaptive_index_granularity_collapsing_merge_tree/ast.json create mode 100644 parser/testdata/00926_adaptive_index_granularity_merge_tree/ast.json create mode 100644 parser/testdata/00926_adaptive_index_granularity_pk/ast.json create mode 100644 parser/testdata/00926_adaptive_index_granularity_replacing_merge_tree/ast.json create mode 100644 parser/testdata/00926_adaptive_index_granularity_versioned_collapsing_merge_tree/ast.json create mode 100644 parser/testdata/00926_geo_to_h3/ast.json create mode 100644 parser/testdata/00926_multimatch/ast.json create mode 100644 parser/testdata/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree_long/ast.json create mode 100644 parser/testdata/00927_asof_join_correct_bt/ast.json create mode 100644 parser/testdata/00927_asof_join_long/ast.json create mode 100644 parser/testdata/00927_asof_join_noninclusive/ast.json create mode 100644 parser/testdata/00927_asof_joins/ast.json create mode 100644 parser/testdata/00927_disable_hyperscan/ast.json create mode 100644 parser/testdata/00928_multi_match_constant_constant/ast.json create mode 100644 parser/testdata/00929_multi_match_edit_distance/ast.json create mode 100644 parser/testdata/00930_arrayIntersect/ast.json create mode 100644 parser/testdata/00930_max_partitions_per_insert_block/ast.json create mode 100644 parser/testdata/00931_low_cardinality_nullable_aggregate_function_type/ast.json create mode 100644 parser/testdata/00931_low_cardinality_read_with_empty_array/ast.json create mode 100644 parser/testdata/00931_low_cardinality_set_index_in_key_condition/ast.json create mode 100644 parser/testdata/00932_array_intersect_bug/ast.json create mode 100644 parser/testdata/00932_geohash_support/ast.json create mode 100644 parser/testdata/00933_alter_ttl/ast.json create mode 100644 parser/testdata/00933_reserved_word/ast.json create mode 100644 parser/testdata/00933_ttl_simple/ast.json create mode 100644 parser/testdata/00933_ttl_with_default/ast.json create mode 100644 parser/testdata/00934_is_valid_utf8/ast.json create mode 100644 parser/testdata/00935_to_iso_week_first_year/ast.json create mode 100644 parser/testdata/00936_crc_functions/ast.json create mode 100644 parser/testdata/00936_function_result_with_operator_in/ast.json create mode 100644 parser/testdata/00936_substring_utf8_non_const/ast.json create mode 100644 parser/testdata/00937_ipv4_cidr_range/ast.json create mode 100644 parser/testdata/00938_basename/ast.json create mode 100644 parser/testdata/00938_dataset_test/ast.json create mode 100644 parser/testdata/00938_ipv6_cidr_range/ast.json create mode 100644 parser/testdata/00938_test_retention_function/ast.json create mode 100644 parser/testdata/00939_limit_by_offset/ast.json create mode 100644 parser/testdata/00939_test_null_in/ast.json create mode 100644 parser/testdata/00940_max_parts_in_total/ast.json create mode 100644 parser/testdata/00940_order_by_read_in_order/ast.json create mode 100644 parser/testdata/00941_to_custom_week/ast.json create mode 100644 parser/testdata/00942_mv_rename_table/ast.json create mode 100644 parser/testdata/00943_mv_rename_without_inner_table/ast.json create mode 100644 parser/testdata/00944_minmax_nan/ast.json create mode 100644 parser/testdata/00944_minmax_null/ast.json create mode 100644 parser/testdata/00944_ml_test/ast.json create mode 100644 parser/testdata/00945_bloom_filter_index/ast.json create mode 100644 parser/testdata/00945_ml_test/ast.json create mode 100644 parser/testdata/00946_ml_test/ast.json create mode 100644 parser/testdata/00947_ml_test/ast.json create mode 100644 parser/testdata/00948_to_valid_utf8/ast.json create mode 100644 parser/testdata/00948_values_interpreter_template/ast.json create mode 100644 parser/testdata/00949_format/ast.json create mode 100644 parser/testdata/00950_bad_alloc_when_truncate_join_storage/ast.json create mode 100644 parser/testdata/00950_default_prewhere/ast.json create mode 100644 parser/testdata/00950_test_double_delta_codec/ast.json create mode 100644 parser/testdata/00950_test_double_delta_codec_types/ast.json create mode 100644 parser/testdata/00950_test_gorilla_codec/ast.json create mode 100644 parser/testdata/00951_ngram_search/ast.json create mode 100644 parser/testdata/00952_insert_into_distributed_with_materialized_column/ast.json create mode 100644 parser/testdata/00952_part_frozen_info/ast.json create mode 100644 parser/testdata/00953_moving_functions/ast.json create mode 100644 parser/testdata/00954_resample_combinator/ast.json create mode 100644 parser/testdata/00955_test_final_mark/ast.json create mode 100644 parser/testdata/00956_join_use_nulls_with_array_column/ast.json create mode 100644 parser/testdata/00957_coalesce_const_nullable_crash/ast.json create mode 100644 parser/testdata/00957_delta_diff_bug/ast.json create mode 100644 parser/testdata/00957_neighbor/ast.json create mode 100644 parser/testdata/00960_eval_ml_method_const/ast.json create mode 100644 parser/testdata/00961_check_table/ast.json create mode 100644 parser/testdata/00961_checksums_in_system_parts_columns_table/ast.json create mode 100644 parser/testdata/00961_visit_param_buffer_underflow/ast.json create mode 100644 parser/testdata/00962_enumNotExect/ast.json create mode 100644 parser/testdata/00962_visit_param_various/ast.json create mode 100644 parser/testdata/00963_achimbab/ast.json create mode 100644 parser/testdata/00963_startsWith_force_primary_key/ast.json create mode 100644 parser/testdata/00964_os_thread_priority/ast.json create mode 100644 parser/testdata/00965_shard_unresolvable_addresses/ast.json create mode 100644 parser/testdata/00966_invalid_json_must_not_parse/ast.json create mode 100644 parser/testdata/00967_insert_into_distributed_different_types/ast.json create mode 100644 parser/testdata/00968_file_engine_in_subquery/ast.json create mode 100644 parser/testdata/00968_roundAge/ast.json create mode 100644 parser/testdata/00969_columns_clause/ast.json create mode 100644 parser/testdata/00969_roundDuration/ast.json create mode 100644 parser/testdata/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read/ast.json create mode 100644 parser/testdata/00972_desc_table_virtual_columns/ast.json create mode 100644 parser/testdata/00972_geohashesInBox/ast.json create mode 100644 parser/testdata/00973_create_table_as_table_function/ast.json create mode 100644 parser/testdata/00974_adaptive_granularity_secondary_index/ast.json create mode 100644 parser/testdata/00974_bitmapContains_with_primary_key/ast.json create mode 100644 parser/testdata/00974_distributed_join_on/ast.json create mode 100644 parser/testdata/00974_final_predicate_push_down/ast.json create mode 100644 parser/testdata/00974_fix_join_on/ast.json create mode 100644 parser/testdata/00974_low_cardinality_cast/ast.json create mode 100644 parser/testdata/00974_query_profiler/ast.json create mode 100644 parser/testdata/00975_json_hang/ast.json create mode 100644 parser/testdata/00975_recursive_materialized_view/ast.json create mode 100644 parser/testdata/00975_values_list/ast.json create mode 100644 parser/testdata/00976_max_execution_speed/ast.json create mode 100644 parser/testdata/00976_shard_low_cardinality_achimbab/ast.json create mode 100644 parser/testdata/00976_system_stop_ttl_merges/ast.json create mode 100644 parser/testdata/00976_ttl_with_old_parts/ast.json create mode 100644 parser/testdata/00977_join_use_nulls_denny_crane/ast.json create mode 100644 parser/testdata/00978_sum_map_bugfix/ast.json create mode 100644 parser/testdata/00979_quantileExcatExclusive_and_Inclusive/ast.json create mode 100644 parser/testdata/00979_set_index_not/ast.json create mode 100644 parser/testdata/00979_toFloat_monotonicity/ast.json create mode 100644 parser/testdata/00979_yandex_consistent_hash_fpe/ast.json create mode 100644 parser/testdata/00980_crash_nullable_decimal/ast.json create mode 100644 parser/testdata/00980_full_join_crash_fancyqlx/ast.json create mode 100644 parser/testdata/00980_merge_alter_settings/ast.json create mode 100644 parser/testdata/00980_shard_aggregation_state_deserialization/ast.json create mode 100644 parser/testdata/00980_skip_unused_shards_without_sharding_key/ast.json create mode 100644 parser/testdata/00980_zookeeper_merge_tree_alter_settings/ast.json create mode 100644 parser/testdata/00981_no_virtual_columns/ast.json create mode 100644 parser/testdata/00981_topK_topKWeighted_long/ast.json create mode 100644 parser/testdata/00982_low_cardinality_setting_in_mv/ast.json create mode 100644 parser/testdata/00983_summing_merge_tree_not_an_identifier/ast.json create mode 100644 parser/testdata/00984_materialized_view_to_columns/ast.json create mode 100644 parser/testdata/00985_merge_stack_overflow/ast.json create mode 100644 parser/testdata/00986_materialized_view_stack_overflow/ast.json create mode 100644 parser/testdata/00987_distributed_stack_overflow/ast.json create mode 100644 parser/testdata/00988_constraints_replication_zookeeper_long/ast.json create mode 100644 parser/testdata/00988_expansion_aliases_limit/ast.json create mode 100644 parser/testdata/00988_parallel_parts_removal/ast.json create mode 100644 parser/testdata/00989_parallel_parts_loading/ast.json create mode 100644 parser/testdata/00990_function_current_user/ast.json create mode 100644 parser/testdata/00990_hasToken_and_tokenbf/ast.json create mode 100644 parser/testdata/00990_metric_log_table_not_empty/ast.json create mode 100644 parser/testdata/00990_request_splitting/ast.json create mode 100644 parser/testdata/00994_table_function_numbers_mt/ast.json create mode 100644 parser/testdata/00995_optimize_read_in_order_with_aggregation/ast.json create mode 100644 parser/testdata/00995_order_by_with_fill/ast.json create mode 100644 parser/testdata/00996_limit_with_ties/ast.json create mode 100644 parser/testdata/00996_neighbor/ast.json create mode 100644 parser/testdata/00997_extract_all_crash_6627/ast.json create mode 100644 parser/testdata/00997_set_index_array/ast.json create mode 100644 parser/testdata/00998_constraints_all_tables/ast.json create mode 100644 parser/testdata/00999_full_join_dup_keys_crash/ast.json create mode 100644 parser/testdata/00999_join_not_nullable_types/ast.json create mode 100644 parser/testdata/00999_join_on_expression/ast.json create mode 100644 parser/testdata/00999_nullable_nested_types_4877/ast.json create mode 100644 parser/testdata/00999_settings_no_extra_quotes/ast.json create mode 100644 parser/testdata/00999_test_skip_indices_with_alter_and_merge/ast.json create mode 100644 parser/testdata/01000_bad_size_of_marks_skip_idx/ast.json create mode 100644 parser/testdata/01000_subquery_requires_alias/ast.json create mode 100644 parser/testdata/01001_enums_in_in_section/ast.json create mode 100644 parser/testdata/01006_ttl_with_default_2/ast.json create mode 100644 parser/testdata/01008_materialized_view_henyihanwobushi/ast.json create mode 100644 parser/testdata/01009_global_array_join_names/ast.json create mode 100644 parser/testdata/01009_insert_select_data_loss/ast.json create mode 100644 parser/testdata/01009_insert_select_nicelulu/ast.json create mode 100644 parser/testdata/01010_partial_merge_join/ast.json create mode 100644 parser/testdata/01010_partial_merge_join_const_and_lc/ast.json create mode 100644 parser/testdata/01010_partial_merge_join_negative/ast.json create mode 100644 parser/testdata/01010_pm_join_all_join_bug/ast.json create mode 100644 parser/testdata/01010_pmj_on_disk/ast.json create mode 100644 parser/testdata/01010_pmj_one_row_blocks/ast.json create mode 100644 parser/testdata/01010_pmj_right_table_memory_limits/ast.json create mode 100644 parser/testdata/01010_pmj_skip_blocks/ast.json create mode 100644 parser/testdata/01011_group_uniq_array_memsan/ast.json create mode 100644 parser/testdata/01011_test_create_as_skip_indices/ast.json create mode 100644 parser/testdata/01012_reset_running_accumulate/ast.json create mode 100644 parser/testdata/01012_select_limit_x_0/ast.json create mode 100644 parser/testdata/01012_serialize_array_memory_usage/ast.json create mode 100644 parser/testdata/01013_hex_decimal/ast.json create mode 100644 parser/testdata/01013_hex_float/ast.json create mode 100644 parser/testdata/01013_repeat_function/ast.json create mode 100644 parser/testdata/01013_totals_without_aggregation/ast.json create mode 100644 parser/testdata/01014_count_of_merges_metrics/ast.json create mode 100644 parser/testdata/01014_function_repeat_corner_cases/ast.json create mode 100644 parser/testdata/01015_array_split/ast.json create mode 100644 parser/testdata/01015_attach_part/ast.json create mode 100644 parser/testdata/01015_random_constant/ast.json create mode 100644 parser/testdata/01016_index_tuple_field_type/ast.json create mode 100644 parser/testdata/01016_macros/ast.json create mode 100644 parser/testdata/01016_null_part_minmax/ast.json create mode 100644 parser/testdata/01016_simhash_minhash/ast.json create mode 100644 parser/testdata/01016_simhash_minhash_ppc/ast.json create mode 100644 parser/testdata/01016_uniqCombined64/ast.json create mode 100644 parser/testdata/01017_bithamming_distance/ast.json create mode 100644 parser/testdata/01017_in_unconvertible_complex_type/ast.json create mode 100644 parser/testdata/01017_tuplehamming_distance/ast.json create mode 100644 parser/testdata/01017_uniqCombined_memory_usage/ast.json create mode 100644 parser/testdata/01018_Distributed__shard_num/ast.json create mode 100644 parser/testdata/01018_ambiguous_column/ast.json create mode 100644 parser/testdata/01018_ddl_dictionaries_create/ast.json create mode 100644 parser/testdata/01018_ddl_dictionaries_select/ast.json create mode 100644 parser/testdata/01018_ddl_dictionaries_special/ast.json create mode 100644 parser/testdata/01018_dictionaries_from_dictionaries/ast.json create mode 100644 parser/testdata/01018_empty_aggregation_filling/ast.json create mode 100644 parser/testdata/01018_ip_dictionary_long/ast.json create mode 100644 parser/testdata/01018_optimize_read_in_order_with_in_subquery/ast.json create mode 100644 parser/testdata/01019_Buffer_and_max_memory_usage/ast.json create mode 100644 parser/testdata/01019_alter_materialized_view_query/ast.json create mode 100644 parser/testdata/01019_array_fill/ast.json create mode 100644 parser/testdata/01019_materialized_view_select_extra_columns/ast.json create mode 100644 parser/testdata/01020_function_array_compact/ast.json create mode 100644 parser/testdata/01020_having_without_group_by/ast.json create mode 100644 parser/testdata/01021_create_as_select/ast.json create mode 100644 parser/testdata/01021_only_tuple_columns/ast.json create mode 100644 parser/testdata/01023_materialized_view_query_context/ast.json create mode 100644 parser/testdata/01024__getScalar/ast.json create mode 100644 parser/testdata/01025_array_compact_generic/ast.json create mode 100644 parser/testdata/01026_char_utf8/ast.json create mode 100644 parser/testdata/01030_concatenate_equal_fixed_strings/ast.json create mode 100644 parser/testdata/01030_final_mark_empty_primary_key/ast.json create mode 100644 parser/testdata/01030_incorrect_count_summing_merge_tree/ast.json create mode 100644 parser/testdata/01030_storage_set_supports_read/ast.json create mode 100644 parser/testdata/01030_storage_url_syntax/ast.json create mode 100644 parser/testdata/01031_pmj_new_any_semi_join/ast.json create mode 100644 parser/testdata/01031_semi_anti_join/ast.json create mode 100644 parser/testdata/01032_cityHash64_for_UUID/ast.json create mode 100644 parser/testdata/01032_cityHash64_for_decimal/ast.json create mode 100644 parser/testdata/01032_duplicate_column_insert_query/ast.json create mode 100644 parser/testdata/01033_dictionaries_lifetime/ast.json create mode 100644 parser/testdata/01033_function_substring/ast.json create mode 100644 parser/testdata/01033_storage_odbc_parsing_exception_check/ast.json create mode 100644 parser/testdata/01034_JSONCompactEachRow/ast.json create mode 100644 parser/testdata/01034_order_by_pk_prefix/ast.json create mode 100644 parser/testdata/01034_prewhere_max_parallel_replicas_distributed/ast.json create mode 100644 parser/testdata/01034_sample_final_distributed/ast.json create mode 100644 parser/testdata/01034_unknown_qualified_column_in_join/ast.json create mode 100644 parser/testdata/01035_prewhere_with_alias/ast.json create mode 100644 parser/testdata/01036_no_superfluous_dict_reload_on_create_database/ast.json create mode 100644 parser/testdata/01036_no_superfluous_dict_reload_on_create_database_2/ast.json create mode 100644 parser/testdata/01036_union_different_columns/ast.json create mode 100644 parser/testdata/01037_zookeeper_check_table_empty_pk/ast.json create mode 100644 parser/testdata/01038_array_of_unnamed_tuples/ast.json create mode 100644 parser/testdata/01039_mergetree_exec_time/ast.json create mode 100644 parser/testdata/01039_test_setting_parse/ast.json create mode 100644 parser/testdata/01040_distributed_background_insert_batch_inserts/ast.json create mode 100644 parser/testdata/01040_h3_get_resolution/ast.json create mode 100644 parser/testdata/01041_h3_is_valid/ast.json create mode 100644 parser/testdata/01042_check_query_and_last_granule_size/ast.json create mode 100644 parser/testdata/01042_h3_k_ring/ast.json create mode 100644 parser/testdata/01043_geo_distance/ast.json create mode 100644 parser/testdata/01043_h3_edge_length_m/ast.json create mode 100644 parser/testdata/01044_great_circle_angle/ast.json create mode 100644 parser/testdata/01044_h3_edge_angle/ast.json create mode 100644 parser/testdata/01045_array_zip/ast.json create mode 100644 parser/testdata/01045_bloom_filter_null_array/ast.json create mode 100644 parser/testdata/01046_materialized_view_with_join_over_distributed/ast.json create mode 100644 parser/testdata/01046_trivial_count_query_distributed/ast.json create mode 100644 parser/testdata/01047_no_alias_columns_with_table_aliases/ast.json create mode 100644 parser/testdata/01047_nullable_rand/ast.json create mode 100644 parser/testdata/01047_simple_aggregate_sizes_of_columns_bug/ast.json create mode 100644 parser/testdata/01049_join_low_card_crash/ast.json create mode 100644 parser/testdata/01049_window_view_window_functions/ast.json create mode 100644 parser/testdata/01049_zookeeper_synchronous_mutations_long/ast.json create mode 100644 parser/testdata/01050_engine_join_crash/ast.json create mode 100644 parser/testdata/01050_engine_join_view_crash/ast.json create mode 100644 parser/testdata/01050_group_array_sample/ast.json create mode 100644 parser/testdata/01051_aggregate_function_crash/ast.json create mode 100644 parser/testdata/01051_all_join_engine/ast.json create mode 100644 parser/testdata/01051_new_any_join_engine/ast.json create mode 100644 parser/testdata/01051_random_printable_ascii/ast.json create mode 100644 parser/testdata/01051_same_name_alias_with_joins/ast.json create mode 100644 parser/testdata/01052_array_reduce_exception/ast.json create mode 100644 parser/testdata/01053_drop_database_mat_view/ast.json create mode 100644 parser/testdata/01053_if_chain_check/ast.json create mode 100644 parser/testdata/01054_cache_dictionary_overflow_cell/ast.json create mode 100644 parser/testdata/01055_compact_parts/ast.json create mode 100644 parser/testdata/01055_prewhere_bugs/ast.json create mode 100644 parser/testdata/01056_create_table_as/ast.json create mode 100644 parser/testdata/01056_create_table_as_with_sorting_clauses/ast.json create mode 100644 parser/testdata/01056_negative_with_bloom_filter/ast.json create mode 100644 parser/testdata/01056_predicate_optimizer_bugs/ast.json create mode 100644 parser/testdata/01060_defaults_all_columns/ast.json create mode 100644 parser/testdata/01060_shutdown_table_after_detach/ast.json create mode 100644 parser/testdata/01061_alter_codec_with_type/ast.json create mode 100644 parser/testdata/01062_alter_on_mutataion_zookeeper_long/ast.json create mode 100644 parser/testdata/01062_pm_all_join_with_block_continuation/ast.json create mode 100644 parser/testdata/01062_pm_multiple_all_join_same_value/ast.json create mode 100644 parser/testdata/01063_create_column_set/ast.json create mode 100644 parser/testdata/01064_arrayROCAUC/ast.json create mode 100644 parser/testdata/01064_incremental_streaming_from_2_src_with_feedback/ast.json create mode 100644 parser/testdata/01064_pm_all_join_const_and_nullable/ast.json create mode 100644 parser/testdata/01065_array_zip_mixed_const/ast.json create mode 100644 parser/testdata/01065_if_not_finite/ast.json create mode 100644 parser/testdata/01066_bit_count/ast.json create mode 100644 parser/testdata/01067_join_null/ast.json create mode 100644 parser/testdata/01068_parens/ast.json create mode 100644 parser/testdata/01069_database_memory/ast.json create mode 100644 parser/testdata/01069_insert_float_as_nullable_unit8/ast.json create mode 100644 parser/testdata/01069_materialized_view_alter_target_table/ast.json create mode 100644 parser/testdata/01069_materialized_view_alter_target_table_with_default_expression/ast.json create mode 100644 parser/testdata/01069_set_in_group_by/ast.json create mode 100644 parser/testdata/01070_alter_with_ttl/ast.json create mode 100644 parser/testdata/01070_exception_code_in_query_log_table/ast.json create mode 100644 parser/testdata/01070_h3_get_base_cell/ast.json create mode 100644 parser/testdata/01070_h3_hex_area_m2/ast.json create mode 100644 parser/testdata/01070_h3_indexes_are_neighbors/ast.json create mode 100644 parser/testdata/01070_h3_to_children/ast.json create mode 100644 parser/testdata/01070_h3_to_parent/ast.json create mode 100644 parser/testdata/01070_h3_to_string/ast.json create mode 100644 parser/testdata/01070_materialize_ttl/ast.json create mode 100644 parser/testdata/01070_modify_ttl/ast.json create mode 100644 parser/testdata/01070_modify_ttl_recalc_only/ast.json create mode 100644 parser/testdata/01070_mutations_with_dependencies/ast.json create mode 100644 parser/testdata/01070_string_to_h3/ast.json create mode 100644 parser/testdata/01070_to_decimal_or_null_exception/ast.json create mode 100644 parser/testdata/01071_force_optimize_skip_unused_shards/ast.json create mode 100644 parser/testdata/01071_in_array/ast.json create mode 100644 parser/testdata/01071_prohibition_secondary_index_with_old_format_merge_tree/ast.json create mode 100644 parser/testdata/01072_drop_temporary_table_with_same_name/ast.json create mode 100644 parser/testdata/01072_json_each_row_data_in_square_brackets/ast.json create mode 100644 parser/testdata/01072_nullable_jit/ast.json create mode 100644 parser/testdata/01072_optimize_skip_unused_shards_const_expr_eval/ast.json create mode 100644 parser/testdata/01072_select_constant_limit/ast.json create mode 100644 parser/testdata/01073_attach_if_not_exists/ast.json create mode 100644 parser/testdata/01073_bad_alter_partition/ast.json create mode 100644 parser/testdata/01073_blockSerializedSize/ast.json create mode 100644 parser/testdata/01073_crlf_end_of_line/ast.json create mode 100644 parser/testdata/01073_show_tables_not_like/ast.json create mode 100644 parser/testdata/01074_h3_range_check/ast.json create mode 100644 parser/testdata/01074_partial_revokes/ast.json create mode 100644 parser/testdata/01075_allowed_client_hosts/ast.json create mode 100644 parser/testdata/01075_in_arrays_enmk/ast.json create mode 100644 parser/testdata/01076_array_join_prewhere_const_folding/ast.json create mode 100644 parser/testdata/01076_predicate_optimizer_with_view/ast.json create mode 100644 parser/testdata/01076_range_reader_segfault/ast.json create mode 100644 parser/testdata/01077_yet_another_prewhere_test/ast.json create mode 100644 parser/testdata/01078_bloom_filter_operator_not_has/ast.json create mode 100644 parser/testdata/01078_merge_tree_read_one_thread/ast.json create mode 100644 parser/testdata/01079_alter_default_zookeeper_long/ast.json create mode 100644 parser/testdata/01079_bit_operations_using_bitset/ast.json create mode 100644 parser/testdata/01079_new_range_reader_segfault/ast.json create mode 100644 parser/testdata/01079_order_by_pk/ast.json create mode 100644 parser/testdata/01079_reinterpret_as_fixed_string/ast.json create mode 100644 parser/testdata/01080_engine_merge_prewhere_tupleelement_error/ast.json create mode 100644 parser/testdata/01080_join_get_null/ast.json create mode 100644 parser/testdata/01081_PartialSortingTransform_full_column/ast.json create mode 100644 parser/testdata/01081_demangle/ast.json create mode 100644 parser/testdata/01081_keywords_formatting/ast.json create mode 100644 parser/testdata/01082_bit_test_out_of_bound/ast.json create mode 100644 parser/testdata/01083_aggregation_memory_efficient_bug/ast.json create mode 100644 parser/testdata/01083_cross_to_inner_with_in_bug/ast.json create mode 100644 parser/testdata/01083_cross_to_inner_with_like/ast.json create mode 100644 parser/testdata/01083_expressions_in_engine_arguments/ast.json create mode 100644 parser/testdata/01083_functional_index_in_mergetree/ast.json create mode 100644 parser/testdata/01083_log_first_column_alias/ast.json create mode 100644 parser/testdata/01083_match_zero_byte/ast.json create mode 100644 parser/testdata/01084_defaults_on_aliases/ast.json create mode 100644 parser/testdata/01085_datetime_arithmetic_preserve_timezone/ast.json create mode 100644 parser/testdata/01085_extract_all_empty/ast.json create mode 100644 parser/testdata/01086_modulo_or_zero/ast.json create mode 100644 parser/testdata/01087_index_set_ubsan/ast.json create mode 100644 parser/testdata/01087_storage_generate/ast.json create mode 100644 parser/testdata/01088_array_slice_of_aggregate_functions/ast.json create mode 100644 parser/testdata/01089_alter_settings_old_format/ast.json create mode 100644 parser/testdata/01090_fixed_string_bit_ops/ast.json create mode 100644 parser/testdata/01090_zookeeper_mutations_and_insert_quorum_long/ast.json create mode 100644 parser/testdata/01091_insert_with_default_json/ast.json create mode 100644 parser/testdata/01091_num_threads/ast.json create mode 100644 parser/testdata/01091_query_profiler_does_not_hang/ast.json create mode 100644 parser/testdata/01092_memory_profiler/ast.json create mode 100644 parser/testdata/01093_cyclic_defaults_filimonov/ast.json create mode 100644 parser/testdata/01095_tpch_like_smoke/ast.json create mode 100644 parser/testdata/01096_block_serialized_state/ast.json create mode 100644 parser/testdata/01096_zeros/ast.json create mode 100644 parser/testdata/01097_cyclic_defaults/ast.json create mode 100644 parser/testdata/01097_one_more_range_reader_test/ast.json create mode 100644 parser/testdata/01097_one_more_range_reader_test_wide_part/ast.json create mode 100644 parser/testdata/01097_pre_limit/ast.json create mode 100644 parser/testdata/01098_sum/ast.json create mode 100644 parser/testdata/01099_operators_date_and_timestamp/ast.json create mode 100644 parser/testdata/01099_parallel_distributed_insert_select/ast.json create mode 100644 parser/testdata/01100_split_by_string/ast.json create mode 100644 parser/testdata/01101_literal_column_clash/ast.json create mode 100644 parser/testdata/01101_prewhere_after_alter/ast.json create mode 100644 parser/testdata/01102_distributed_local_in_bug/ast.json create mode 100644 parser/testdata/01103_distributed_product_mode_local_column_renames/ast.json create mode 100644 parser/testdata/01104_distributed_numbers_test/ast.json create mode 100644 parser/testdata/01104_distributed_one_test/ast.json create mode 100644 parser/testdata/01104_fixed_string_like/ast.json create mode 100644 parser/testdata/01105_string_like/ast.json create mode 100644 parser/testdata/01106_const_fixed_string_like/ast.json create mode 100644 parser/testdata/01107_join_right_table_totals/ast.json create mode 100644 parser/testdata/01109_exchange_tables/ast.json create mode 100644 parser/testdata/01109_inflating_cross_join/ast.json create mode 100644 parser/testdata/01109_sc0rp10_string_hash_map_zero_bytes/ast.json create mode 100644 parser/testdata/01110_dictionary_layout_without_arguments/ast.json create mode 100644 parser/testdata/01112_check_table_with_index/ast.json create mode 100644 parser/testdata/01114_alter_modify_compact_parts/ast.json create mode 100644 parser/testdata/01114_clear_column_compact_parts/ast.json create mode 100644 parser/testdata/01114_materialize_clear_index_compact_parts/ast.json create mode 100644 parser/testdata/01114_mysql_database_engine_segfault/ast.json create mode 100644 parser/testdata/01115_join_with_dictionary/ast.json create mode 100644 parser/testdata/01115_prewhere_array_join/ast.json create mode 100644 parser/testdata/01116_asof_join_dolbyzerr/ast.json create mode 100644 parser/testdata/01116_cross_count_asterisks/ast.json create mode 100644 parser/testdata/01117_comma_and_others_join_mix/ast.json create mode 100644 parser/testdata/01118_is_constant/ast.json create mode 100644 parser/testdata/01119_optimize_trivial_insert_select/ast.json create mode 100644 parser/testdata/01121_remote_scalar_subquery/ast.json create mode 100644 parser/testdata/01122_totals_rollup_having_block_header/ast.json create mode 100644 parser/testdata/01123_parse_date_time_best_effort_even_more/ast.json create mode 100644 parser/testdata/01124_view_bad_types/ast.json create mode 100644 parser/testdata/01125_dict_ddl_cannot_add_column/ast.json create mode 100644 parser/testdata/01125_generate_random_qoega/ast.json create mode 100644 parser/testdata/01126_month_partitioning_consistent_code/ast.json create mode 100644 parser/testdata/01127_month_partitioning_consistency_select/ast.json create mode 100644 parser/testdata/01128_generate_random_nested/ast.json create mode 100644 parser/testdata/01131_max_rows_to_sort/ast.json create mode 100644 parser/testdata/01132_max_rows_to_read/ast.json create mode 100644 parser/testdata/01134_max_rows_to_group_by/ast.json create mode 100644 parser/testdata/01134_set_overflow_mode/ast.json create mode 100644 parser/testdata/01135_default_and_alter_zookeeper/ast.json create mode 100644 parser/testdata/01136_multiple_sets/ast.json create mode 100644 parser/testdata/01137_order_by_func/ast.json create mode 100644 parser/testdata/01137_order_by_func_final/ast.json create mode 100644 parser/testdata/01137_sample_final/ast.json create mode 100644 parser/testdata/01138_join_on_distributed_and_tmp/ast.json create mode 100644 parser/testdata/01139_asof_join_types/ast.json create mode 100644 parser/testdata/01140_select_from_storage_join_fix/ast.json create mode 100644 parser/testdata/01141_join_get_negative/ast.json create mode 100644 parser/testdata/01142_join_lc_and_nullable_in_key/ast.json create mode 100644 parser/testdata/01142_merge_join_lc_and_nullable_in_key/ast.json create mode 100644 parser/testdata/01142_with_ties_and_aliases/ast.json create mode 100644 parser/testdata/01143_trivial_count_with_join/ast.json create mode 100644 parser/testdata/01144_join_rewrite_with_ambiguous_column_and_view/ast.json create mode 100644 parser/testdata/01144_multiword_data_types/ast.json create mode 100644 parser/testdata/01147_partial_merge_full_join/ast.json create mode 100644 parser/testdata/01148_zookeeper_path_macros_unfolding/ast.json create mode 100644 parser/testdata/01149_zookeeper_mutation_stuck_after_replace_partition/ast.json create mode 100644 parser/testdata/01151_storage_merge_filter_tables_by_virtual_column/ast.json create mode 100644 parser/testdata/01152_cross_replication/ast.json create mode 100644 parser/testdata/01153_attach_mv_uuid/ast.json create mode 100644 parser/testdata/01155_rename_move_materialized_view/ast.json create mode 100644 parser/testdata/01157_replace_table/ast.json create mode 100644 parser/testdata/01158_zookeeper_log_long/ast.json create mode 100644 parser/testdata/01159_combinators_with_parameters/ast.json create mode 100644 parser/testdata/01163_search_case_insensetive_utf8/ast.json create mode 100644 parser/testdata/01164_alter_memory_database/ast.json create mode 100644 parser/testdata/01165_lost_part_empty_partition/ast.json create mode 100644 parser/testdata/01166_truncate_multiple_partitions/ast.json create mode 100644 parser/testdata/01172_transaction_counters/ast.json create mode 100644 parser/testdata/01173_transaction_control_queries/ast.json create mode 100644 parser/testdata/01177_group_array_moving/ast.json create mode 100644 parser/testdata/01181_db_atomic_drop_on_cluster/ast.json create mode 100644 parser/testdata/01182_materialized_view_different_structure/ast.json create mode 100644 parser/testdata/01185_create_or_replace_table/ast.json create mode 100644 parser/testdata/01186_conversion_to_nullable/ast.json create mode 100644 parser/testdata/01189_create_as_table_as_table_function/ast.json create mode 100644 parser/testdata/01191_rename_dictionary/ast.json create mode 100644 parser/testdata/01197_summing_enum/ast.json create mode 100644 parser/testdata/01198_plus_inf/ast.json create mode 100644 parser/testdata/01199_url_functions_path_without_schema_yiurule/ast.json create mode 100644 parser/testdata/01200_mutations_memory_consumption/ast.json create mode 100644 parser/testdata/01201_drop_column_compact_part_replicated_zookeeper_long/ast.json create mode 100644 parser/testdata/01201_read_single_thread_in_order/ast.json create mode 100644 parser/testdata/01202_arrayROCAUC_special/ast.json create mode 100644 parser/testdata/01210_drop_view/ast.json create mode 100644 parser/testdata/01211_optimize_skip_unused_shards_type_mismatch/ast.json create mode 100644 parser/testdata/01213_alter_rename_column/ast.json create mode 100644 parser/testdata/01213_alter_rename_compact_part/ast.json create mode 100644 parser/testdata/01213_alter_rename_nested/ast.json create mode 100644 parser/testdata/01213_alter_rename_primary_key_zookeeper_long/ast.json create mode 100644 parser/testdata/01213_alter_rename_with_default_zookeeper_long/ast.json create mode 100644 parser/testdata/01213_alter_table_rename_nested/ast.json create mode 100644 parser/testdata/01213_optimize_skip_unused_shards_DISTINCT/ast.json create mode 100644 parser/testdata/01213_point_in_Myanmar/ast.json create mode 100644 parser/testdata/01214_point_in_Mecca/ast.json create mode 100644 parser/testdata/01214_test_storage_merge_aliases_with_where/ast.json create mode 100644 parser/testdata/01220_scalar_optimization_in_alter/ast.json create mode 100644 parser/testdata/01221_system_settings/ast.json create mode 100644 parser/testdata/01222_system_codecs/ast.json create mode 100644 parser/testdata/01223_dist_on_dist/ast.json create mode 100644 parser/testdata/01224_no_superfluous_dict_reload/ast.json create mode 100644 parser/testdata/01225_drop_dictionary_as_table/ast.json create mode 100644 parser/testdata/01225_show_create_table_from_dictionary/ast.json create mode 100644 parser/testdata/01226_dist_on_dist_global_in/ast.json create mode 100644 parser/testdata/01227_distributed_global_in_issue_2610/ast.json create mode 100644 parser/testdata/01227_distributed_merge_global_in_primary_key/ast.json create mode 100644 parser/testdata/01230_join_get_truncate/ast.json create mode 100644 parser/testdata/01231_distributed_aggregation_memory_efficient_mix_levels/ast.json create mode 100644 parser/testdata/01231_log_queries_min_type/ast.json create mode 100644 parser/testdata/01231_markdown_format/ast.json create mode 100644 parser/testdata/01231_operator_null_in/ast.json create mode 100644 parser/testdata/01232_extremes/ast.json create mode 100644 parser/testdata/01232_untuple/ast.json create mode 100644 parser/testdata/01234_to_string_monotonic/ast.json create mode 100644 parser/testdata/01236_graphite_mt/ast.json create mode 100644 parser/testdata/01240_join_get_or_null/ast.json create mode 100644 parser/testdata/01244_optimize_distributed_group_by_sharding_key/ast.json create mode 100644 parser/testdata/01245_distributed_group_by_no_merge_with-extremes_and_totals/ast.json create mode 100644 parser/testdata/01245_limit_infinite_sources/ast.json create mode 100644 parser/testdata/01246_extractAllGroupsHorizontal/ast.json create mode 100644 parser/testdata/01246_extractAllGroupsVertical/ast.json create mode 100644 parser/testdata/01246_finalize_aggregation_race/ast.json create mode 100644 parser/testdata/01246_least_greatest_generic/ast.json create mode 100644 parser/testdata/01247_optimize_distributed_group_by_sharding_key_dist_on_dist/ast.json create mode 100644 parser/testdata/01247_some_msan_crashs_from_22517/ast.json create mode 100644 parser/testdata/01248_least_greatest_mixed_const/ast.json create mode 100644 parser/testdata/01249_bad_arguments_for_bloom_filter/ast.json create mode 100644 parser/testdata/01251_dict_is_in_infinite_loop/ast.json create mode 100644 parser/testdata/01251_string_comparison/ast.json create mode 100644 parser/testdata/01252_weird_time_zone/ast.json create mode 100644 parser/testdata/01253_subquery_in_aggregate_function_JustStranger/ast.json create mode 100644 parser/testdata/01254_array_of_unnamed_tuples/ast.json create mode 100644 parser/testdata/01254_dict_create_without_db/ast.json create mode 100644 parser/testdata/01254_dict_load_after_detach_attach/ast.json create mode 100644 parser/testdata/01255_geo_types_livace/ast.json create mode 100644 parser/testdata/01256_negative_generate_random/ast.json create mode 100644 parser/testdata/01257_dictionary_mismatch_types/ast.json create mode 100644 parser/testdata/01259_combinator_distinct_distributed/ast.json create mode 100644 parser/testdata/01259_datetime64_ubsan/ast.json create mode 100644 parser/testdata/01259_dictionary_custom_settings_ddl/ast.json create mode 100644 parser/testdata/01260_ubsan_decimal_parse/ast.json create mode 100644 parser/testdata/01262_fractional_timezone_near_start_of_epoch/ast.json create mode 100644 parser/testdata/01262_low_cardinality_remove/ast.json create mode 100644 parser/testdata/01263_type_conversion_nvartolomei/ast.json create mode 100644 parser/testdata/01264_nested_baloo_bear/ast.json create mode 100644 parser/testdata/01265_datetime_string_comparison_felix_mueller/ast.json create mode 100644 parser/testdata/01266_default_prewhere_reqq/ast.json create mode 100644 parser/testdata/01267_alter_default_key_columns_zookeeper_long/ast.json create mode 100644 parser/testdata/01268_DateTime64_in_WHERE/ast.json create mode 100644 parser/testdata/01268_data_numeric_parameters/ast.json create mode 100644 parser/testdata/01268_dictionary_direct_layout/ast.json create mode 100644 parser/testdata/01268_mergine_sorted_limit/ast.json create mode 100644 parser/testdata/01268_mv_scalars/ast.json create mode 100644 parser/testdata/01268_shard_avgweighted/ast.json create mode 100644 parser/testdata/01269_alias_type_differs/ast.json create mode 100644 parser/testdata/01269_create_with_null/ast.json create mode 100644 parser/testdata/01269_toStartOfSecond/ast.json create mode 100644 parser/testdata/01270_optimize_skip_unused_shards_low_cardinality/ast.json create mode 100644 parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_long/ast.json create mode 100644 parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_with_alias/ast.json create mode 100644 parser/testdata/01272_offset_without_limit/ast.json create mode 100644 parser/testdata/01272_suspicious_codecs/ast.json create mode 100644 parser/testdata/01272_totals_and_filter_bug/ast.json create mode 100644 parser/testdata/01273_extractGroups/ast.json create mode 100644 parser/testdata/01273_h3EdgeAngle_range_check/ast.json create mode 100644 parser/testdata/01273_lc_fixed_string_field/ast.json create mode 100644 parser/testdata/01274_alter_rename_column_distributed/ast.json create mode 100644 parser/testdata/01275_alter_rename_column_default_expr/ast.json create mode 100644 parser/testdata/01275_extract_groups_check/ast.json create mode 100644 parser/testdata/01276_alter_rename_column_materialized_expr/ast.json create mode 100644 parser/testdata/01276_random_string/ast.json create mode 100644 parser/testdata/01276_system_licenses/ast.json create mode 100644 parser/testdata/01277_alter_rename_column_constraint/ast.json create mode 100644 parser/testdata/01277_alter_rename_column_constraint_zookeeper_long/ast.json create mode 100644 parser/testdata/01277_buffer_column_order/ast.json create mode 100644 parser/testdata/01277_fromUnixTimestamp64/ast.json create mode 100644 parser/testdata/01277_random_fixed_string/ast.json create mode 100644 parser/testdata/01277_toUnixTimestamp64/ast.json create mode 100644 parser/testdata/01278_alter_rename_combination/ast.json create mode 100644 parser/testdata/01278_random_string_utf8/ast.json create mode 100644 parser/testdata/01278_variance_nonnegative/ast.json create mode 100644 parser/testdata/01279_dist_group_by/ast.json create mode 100644 parser/testdata/01280_min_map_max_map/ast.json create mode 100644 parser/testdata/01280_null_in/ast.json create mode 100644 parser/testdata/01280_opencl_bitonic_order_by/ast.json create mode 100644 parser/testdata/01280_unicode_whitespaces_lexer/ast.json create mode 100644 parser/testdata/01281_alter_rename_and_other_renames/ast.json create mode 100644 parser/testdata/01281_join_with_prewhere_fix/ast.json create mode 100644 parser/testdata/01281_parseDateTime64BestEffort/ast.json create mode 100644 parser/testdata/01281_sum_nullable/ast.json create mode 100644 parser/testdata/01281_unsucceeded_insert_select_queries_counter/ast.json create mode 100644 parser/testdata/01282_system_parts_ttl_info/ast.json create mode 100644 parser/testdata/01283_max_threads_simple_query_optimization/ast.json create mode 100644 parser/testdata/01283_strict_resize_bug/ast.json create mode 100644 parser/testdata/01284_fuzz_bits/ast.json create mode 100644 parser/testdata/01284_view_and_extremes_bug/ast.json create mode 100644 parser/testdata/01285_data_skip_index_over_aggregation/ast.json create mode 100644 parser/testdata/01285_date_datetime_key_condition/ast.json create mode 100644 parser/testdata/01286_constraints_on_default/ast.json create mode 100644 parser/testdata/01287_max_execution_speed/ast.json create mode 100644 parser/testdata/01288_shard_max_network_bandwidth/ast.json create mode 100644 parser/testdata/01289_min_execution_speed_not_too_early/ast.json create mode 100644 parser/testdata/01290_empty_array_index_analysis/ast.json create mode 100644 parser/testdata/01290_max_execution_speed_distributed/ast.json create mode 100644 parser/testdata/01291_aggregation_in_order/ast.json create mode 100644 parser/testdata/01291_distributed_low_cardinality_memory_efficient/ast.json create mode 100644 parser/testdata/01291_geo_types/ast.json create mode 100644 parser/testdata/01291_unsupported_conversion_from_decimal/ast.json create mode 100644 parser/testdata/01292_create_user/ast.json create mode 100644 parser/testdata/01292_optimize_data_skip_idx_order_by_expr/ast.json create mode 100644 parser/testdata/01292_quantile_array_bug/ast.json create mode 100644 parser/testdata/01293_create_role/ast.json create mode 100644 parser/testdata/01293_pretty_max_value_width/ast.json create mode 100644 parser/testdata/01293_system_distribution_queue/ast.json create mode 100644 parser/testdata/01294_create_settings_profile/ast.json create mode 100644 parser/testdata/01294_system_distributed_on_cluster/ast.json create mode 100644 parser/testdata/01295_aggregation_bug_11413/ast.json create mode 100644 parser/testdata/01295_create_row_policy/ast.json create mode 100644 parser/testdata/01296_codecs_bad_arguments/ast.json create mode 100644 parser/testdata/01296_create_row_policy_in_current_database/ast.json create mode 100644 parser/testdata/01296_pipeline_stuck/ast.json create mode 100644 parser/testdata/01297_alter_distributed/ast.json create mode 100644 parser/testdata/01298_alter_merge/ast.json create mode 100644 parser/testdata/01299_alter_merge_tree/ast.json create mode 100644 parser/testdata/01300_group_by_other_keys/ast.json create mode 100644 parser/testdata/01300_group_by_other_keys_having/ast.json create mode 100644 parser/testdata/01300_read_wkt/ast.json create mode 100644 parser/testdata/01305_array_join_prewhere_in_subquery/ast.json create mode 100644 parser/testdata/01305_buffer_final_bug/ast.json create mode 100644 parser/testdata/01305_nullable-prewhere_bug/ast.json create mode 100644 parser/testdata/01307_bloom_filter_index_string_multi_granulas/ast.json create mode 100644 parser/testdata/01308_row_policy_and_trivial_count_query/ast.json create mode 100644 parser/testdata/01310_enum_comparison/ast.json create mode 100644 parser/testdata/01311_comparison_with_constant_string/ast.json create mode 100644 parser/testdata/01312_case_insensitive_regexp/ast.json create mode 100644 parser/testdata/01312_comparison_with_constant_string_in_index_analysis/ast.json create mode 100644 parser/testdata/01313_parse_date_time_best_effort_null_zero/ast.json create mode 100644 parser/testdata/01314_position_in_system_columns/ast.json create mode 100644 parser/testdata/01315_count_distinct_return_not_nullable/ast.json create mode 100644 parser/testdata/01318_alter_add_column_exists/ast.json create mode 100644 parser/testdata/01318_decrypt/ast.json create mode 100644 parser/testdata/01318_encrypt/ast.json create mode 100644 parser/testdata/01318_map_add_map_subtract/ast.json create mode 100644 parser/testdata/01318_map_add_map_subtract_on_map_type/ast.json create mode 100644 parser/testdata/01318_map_populate_series/ast.json create mode 100644 parser/testdata/01318_parallel_final_stuck/ast.json create mode 100644 parser/testdata/01319_manual_write_to_replicas_long/ast.json create mode 100644 parser/testdata/01319_mv_constants_bug/ast.json create mode 100644 parser/testdata/01319_optimize_skip_unused_shards_nesting/ast.json create mode 100644 parser/testdata/01320_optimize_skip_unused_shards_no_non_deterministic/ast.json create mode 100644 parser/testdata/01321_aggregate_functions_of_group_by_keys/ast.json create mode 100644 parser/testdata/01322_cast_keep_nullable/ast.json create mode 100644 parser/testdata/01323_add_scalars_in_time/ast.json create mode 100644 parser/testdata/01323_bad_arg_in_arithmetic_operations/ast.json create mode 100644 parser/testdata/01323_if_with_nulls/ast.json create mode 100644 parser/testdata/01323_redundant_functions_in_order_by/ast.json create mode 100644 parser/testdata/01323_too_many_threads_bug/ast.json create mode 100644 parser/testdata/01324_if_transform_strings_to_enum/ast.json create mode 100644 parser/testdata/01324_insert_tsv_raw/ast.json create mode 100644 parser/testdata/01324_settings_documentation/ast.json create mode 100644 parser/testdata/01325_freeze_mutation_stuck/ast.json create mode 100644 parser/testdata/01326_build_id/ast.json create mode 100644 parser/testdata/01326_fixed_string_comparison_denny_crane/ast.json create mode 100644 parser/testdata/01326_hostname_alias/ast.json create mode 100644 parser/testdata/01327_decimal_cut_extra_digits_after_point/ast.json create mode 100644 parser/testdata/01328_bad_peephole_optimization/ast.json create mode 100644 parser/testdata/01329_compare_tuple_string_constant/ast.json create mode 100644 parser/testdata/01330_array_join_in_higher_order_function/ast.json create mode 100644 parser/testdata/01332_join_type_syntax_position/ast.json create mode 100644 parser/testdata/01333_select_abc_asterisk/ast.json create mode 100644 parser/testdata/01338_sha256_fixedstring/ast.json create mode 100644 parser/testdata/01338_uuid_without_separator/ast.json create mode 100644 parser/testdata/01340_datetime64_fpe/ast.json create mode 100644 parser/testdata/01341_datetime64_wrong_supertype/ast.json create mode 100644 parser/testdata/01343_min_bytes_to_use_mmap_io/ast.json create mode 100644 parser/testdata/01344_alter_enum_partition_key/ast.json create mode 100644 parser/testdata/01344_min_bytes_to_use_mmap_io_index/ast.json create mode 100644 parser/testdata/01345_array_join_LittleMaverick/ast.json create mode 100644 parser/testdata/01345_index_date_vs_datetime/ast.json create mode 100644 parser/testdata/01346_alter_enum_partition_key_replicated_zookeeper_long/ast.json create mode 100644 parser/testdata/01346_array_join_mrxotey/ast.json create mode 100644 parser/testdata/01347_partition_date_vs_datetime/ast.json create mode 100644 parser/testdata/01349_mutation_datetime_key/ast.json create mode 100644 parser/testdata/01350_intdiv_nontrivial_fpe/ast.json create mode 100644 parser/testdata/01351_parse_date_time_best_effort_us/ast.json create mode 100644 parser/testdata/01353_neighbor_overflow/ast.json create mode 100644 parser/testdata/01353_nullable_tuple/ast.json create mode 100644 parser/testdata/01354_tuple_low_cardinality_array_mapped_bug/ast.json create mode 100644 parser/testdata/01355_alter_column_with_order/ast.json create mode 100644 parser/testdata/01355_if_fixed_string/ast.json create mode 100644 parser/testdata/01355_ilike/ast.json create mode 100644 parser/testdata/01356_initialize_aggregation/ast.json create mode 100644 parser/testdata/01356_state_resample/ast.json create mode 100644 parser/testdata/01356_view_threads/ast.json create mode 100644 parser/testdata/01356_wrong_filter-type_bug/ast.json create mode 100644 parser/testdata/01357_result_rows/ast.json create mode 100644 parser/testdata/01357_version_collapsing_attach_detach_zookeeper/ast.json create mode 100644 parser/testdata/01358_constexpr_constraint/ast.json create mode 100644 parser/testdata/01358_mutation_delete_null_rows/ast.json create mode 100644 parser/testdata/01358_union_threads_bug/ast.json create mode 100644 parser/testdata/01359_codeql/ast.json create mode 100644 parser/testdata/01360_division_overflow/ast.json create mode 100644 parser/testdata/01360_materialized_view_with_join_on_query_log/ast.json create mode 100644 parser/testdata/01361_buffer_table_flush_with_materialized_view/ast.json create mode 100644 parser/testdata/01362_year_of_ISO8601_week_modificators_for_formatDateTime/ast.json create mode 100644 parser/testdata/01372_remote_table_function_empty_table/ast.json create mode 100644 parser/testdata/01372_wrong_order_by_removal/ast.json create mode 100644 parser/testdata/01373_is_zero_or_null/ast.json create mode 100644 parser/testdata/01373_summing_merge_tree_exclude_partition_key/ast.json create mode 100644 parser/testdata/01373_summing_merge_tree_explicit_columns_definition/ast.json create mode 100644 parser/testdata/01375_GROUP_BY_injective_elimination_dictGet_BAD_ARGUMENTS/ast.json create mode 100644 parser/testdata/01375_compact_parts_codecs/ast.json create mode 100644 parser/testdata/01375_null_issue_3767/ast.json create mode 100644 parser/testdata/01375_storage_file_write_prefix_csv_with_names/ast.json create mode 100644 parser/testdata/01375_storage_file_write_prefix_tsv_with_names/ast.json create mode 100644 parser/testdata/01376_GROUP_BY_injective_elimination_dictGet/ast.json create mode 100644 parser/testdata/01376_array_fill_empty/ast.json create mode 100644 parser/testdata/01376_null_logical/ast.json create mode 100644 parser/testdata/01377_supertype_low_cardinality/ast.json create mode 100644 parser/testdata/01378_alter_rename_with_ttl_zookeeper/ast.json create mode 100644 parser/testdata/01380_nullable_state/ast.json create mode 100644 parser/testdata/01381_for_each_with_states/ast.json create mode 100644 parser/testdata/01383_remote_ambiguous_column_shard/ast.json create mode 100644 parser/testdata/01384_bloom_filter_bad_arguments/ast.json create mode 100644 parser/testdata/01385_not_function/ast.json create mode 100644 parser/testdata/01386_negative_float_constant_key_condition/ast.json create mode 100644 parser/testdata/01387_clear_column_default_depends/ast.json create mode 100644 parser/testdata/01388_clear_all_columns/ast.json create mode 100644 parser/testdata/01388_multi_if_optimization/ast.json create mode 100644 parser/testdata/01389_filter_by_virtual_columns/ast.json create mode 100644 parser/testdata/01390_check_table_codec/ast.json create mode 100644 parser/testdata/01390_remove_injective_in_uniq/ast.json create mode 100644 parser/testdata/01391_join_on_dict_crash/ast.json create mode 100644 parser/testdata/01391_limit_overflow/ast.json create mode 100644 parser/testdata/01396_low_cardinality_fixed_string_default/ast.json create mode 100644 parser/testdata/01396_negative_datetime_saturate_to_zero/ast.json create mode 100644 parser/testdata/01397_in_bad_arguments/ast.json create mode 100644 parser/testdata/01398_in_tuple_func/ast.json create mode 100644 parser/testdata/01400_join_get_with_multi_keys/ast.json create mode 100644 parser/testdata/01402_cast_nullable_string_to_enum/ast.json create mode 100644 parser/testdata/01403_datetime64_constant_arg/ast.json create mode 100644 parser/testdata/01404_roundUpToPowerOfTwoOrZero_safety/ast.json create mode 100644 parser/testdata/01408_range_overflow/ast.json create mode 100644 parser/testdata/01409_topK_merge/ast.json create mode 100644 parser/testdata/01410_full_join_and_null_predicates/ast.json create mode 100644 parser/testdata/01410_nullable_key_and_index/ast.json create mode 100644 parser/testdata/01410_nullable_key_and_index_negate_cond/ast.json create mode 100644 parser/testdata/01411_from_unixtime/ast.json create mode 100644 parser/testdata/01411_xor_itai_shirav/ast.json create mode 100644 parser/testdata/01412_group_array_moving_shard/ast.json create mode 100644 parser/testdata/01412_mod_float/ast.json create mode 100644 parser/testdata/01412_optimize_deduplicate_bug/ast.json create mode 100644 parser/testdata/01412_row_from_totals/ast.json create mode 100644 parser/testdata/01413_allow_non_metadata_alters/ast.json create mode 100644 parser/testdata/01413_alter_update_supertype/ast.json create mode 100644 parser/testdata/01413_if_array_uuid/ast.json create mode 100644 parser/testdata/01413_rows_events/ast.json create mode 100644 parser/testdata/01413_truncate_without_table_keyword/ast.json create mode 100644 parser/testdata/01414_bloom_filter_index_with_const_column/ast.json create mode 100644 parser/testdata/01414_freeze_does_not_prevent_alters/ast.json create mode 100644 parser/testdata/01414_low_cardinality_nullable/ast.json create mode 100644 parser/testdata/01414_mutations_and_errors/ast.json create mode 100644 parser/testdata/01414_push_predicate_when_contains_with_clause/ast.json create mode 100644 parser/testdata/01415_inconsistent_merge_tree_settings/ast.json create mode 100644 parser/testdata/01415_overlimiting_threads_for_repica_bug/ast.json create mode 100644 parser/testdata/01415_table_function_view/ast.json create mode 100644 parser/testdata/01416_clear_column_pk/ast.json create mode 100644 parser/testdata/01416_join_totals_header_bug/ast.json create mode 100644 parser/testdata/01417_update_permutation_crash/ast.json create mode 100644 parser/testdata/01418_custom_settings/ast.json create mode 100644 parser/testdata/01418_index_analysis_bug/ast.json create mode 100644 parser/testdata/01418_query_scope_constants_and_remote/ast.json create mode 100644 parser/testdata/01419_materialize_null/ast.json create mode 100644 parser/testdata/01419_merge_tree_settings_sanity_check/ast.json create mode 100644 parser/testdata/01419_skip_index_compact_parts/ast.json create mode 100644 parser/testdata/01420_logical_functions_materialized_null/ast.json create mode 100644 parser/testdata/01422_array_nullable_element_nullable_index/ast.json create mode 100644 parser/testdata/01422_map_skip_null/ast.json create mode 100644 parser/testdata/01424_parse_date_time_bad_date/ast.json create mode 100644 parser/testdata/01425_decimal_parse_big_negative_exponent/ast.json create mode 100644 parser/testdata/01427_pk_and_expression_with_different_type/ast.json create mode 100644 parser/testdata/01428_h3_range_check/ast.json create mode 100644 parser/testdata/01428_nullable_asof_join/ast.json create mode 100644 parser/testdata/01429_join_on_error_messages/ast.json create mode 100644 parser/testdata/01430_fix_any_rewrite_aliases/ast.json create mode 100644 parser/testdata/01430_modify_sample_by_zookeeper_long/ast.json create mode 100644 parser/testdata/01430_moving_sum_empty_state/ast.json create mode 100644 parser/testdata/01431_finish_sorting_with_consts/ast.json create mode 100644 parser/testdata/01432_parse_date_time_best_effort_timestamp/ast.json create mode 100644 parser/testdata/01433_hex_float/ast.json create mode 100644 parser/testdata/01435_lcm_overflow/ast.json create mode 100644 parser/testdata/01436_storage_merge_with_join_push_down/ast.json create mode 100644 parser/testdata/01440_big_int_arithm/ast.json create mode 100644 parser/testdata/01440_big_int_exotic_casts/ast.json create mode 100644 parser/testdata/01440_big_int_shift/ast.json create mode 100644 parser/testdata/01440_to_date_monotonicity/ast.json create mode 100644 parser/testdata/01441_array_combinator/ast.json create mode 100644 parser/testdata/01441_low_cardinality_array_index/ast.json create mode 100644 parser/testdata/01442_date_time_with_params/ast.json create mode 100644 parser/testdata/01442_h3kring_range_check/ast.json create mode 100644 parser/testdata/01447_json_strings/ast.json create mode 100644 parser/testdata/01448_json_compact_strings_each_row/ast.json create mode 100644 parser/testdata/01449_json_compact_strings/ast.json create mode 100644 parser/testdata/01450_set_null_const/ast.json create mode 100644 parser/testdata/01451_detach_drop_part/ast.json create mode 100644 parser/testdata/01451_normalize_query/ast.json create mode 100644 parser/testdata/01451_replicated_detach_drop_and_quorum_long/ast.json create mode 100644 parser/testdata/01451_replicated_detach_drop_part_long/ast.json create mode 100644 parser/testdata/01452_normalized_query_hash/ast.json create mode 100644 parser/testdata/01453_fixsed_string_sort/ast.json create mode 100644 parser/testdata/01455_default_compression/ast.json create mode 100644 parser/testdata/01455_nullable_type_with_if_agg_combinator/ast.json create mode 100644 parser/testdata/01455_optimize_trivial_insert_select/ast.json create mode 100644 parser/testdata/01455_rank_correlation_spearman/ast.json create mode 100644 parser/testdata/01455_shard_leaf_max_rows_bytes_to_read/ast.json create mode 100644 parser/testdata/01455_time_zones/ast.json create mode 100644 parser/testdata/01456_ast_optimizations_over_distributed/ast.json create mode 100644 parser/testdata/01456_low_cardinality_sorting_bugfix/ast.json create mode 100644 parser/testdata/01456_min_negative_decimal_formatting/ast.json create mode 100644 parser/testdata/01456_modify_column_type_via_add_drop_update/ast.json create mode 100644 parser/testdata/01457_compile_expressions_fuzzer/ast.json create mode 100644 parser/testdata/01457_create_as_table_function_structure/ast.json create mode 100644 parser/testdata/01457_int256_hashing/ast.json create mode 100644 parser/testdata/01457_min_index_granularity_bytes_setting/ast.json create mode 100644 parser/testdata/01457_order_by_limit/ast.json create mode 100644 parser/testdata/01457_order_by_nulls_first/ast.json create mode 100644 parser/testdata/01458_count_digits/ast.json create mode 100644 parser/testdata/01458_is_decimal_overflow/ast.json create mode 100644 parser/testdata/01458_named_tuple_millin/ast.json create mode 100644 parser/testdata/01459_decimal_casts/ast.json create mode 100644 parser/testdata/01459_default_value_of_argument_type_nullptr_dereference/ast.json create mode 100644 parser/testdata/01460_allow_dollar_and_number_in_identifier/ast.json create mode 100644 parser/testdata/01460_mark_inclusion_search_crash/ast.json create mode 100644 parser/testdata/01461_alter_table_function/ast.json create mode 100644 parser/testdata/01461_query_start_time_microseconds/ast.json create mode 100644 parser/testdata/01462_test_codec_on_alias/ast.json create mode 100644 parser/testdata/01463_resample_overflow/ast.json create mode 100644 parser/testdata/01465_ttl_recompression/ast.json create mode 100644 parser/testdata/01470_columns_transformers/ast.json create mode 100644 parser/testdata/01470_columns_transformers2/ast.json create mode 100644 parser/testdata/01470_show_databases_like/ast.json create mode 100644 parser/testdata/01470_test_insert_select_asterisk/ast.json create mode 100644 parser/testdata/01471_calculate_ttl_during_merge/ast.json create mode 100644 parser/testdata/01471_top_k_range_check/ast.json create mode 100644 parser/testdata/01472_many_rows_in_totals/ast.json create mode 100644 parser/testdata/01472_toBoundsOfInterval_disallow_empty_tz_field/ast.json create mode 100644 parser/testdata/01473_event_time_microseconds/ast.json create mode 100644 parser/testdata/01473_system_events_zeroes/ast.json create mode 100644 parser/testdata/01474_bad_global_join/ast.json create mode 100644 parser/testdata/01474_decimal_scale_bug/ast.json create mode 100644 parser/testdata/01474_executable_dictionary/ast.json create mode 100644 parser/testdata/01475_fix_bigint_shift/ast.json create mode 100644 parser/testdata/01475_mutation_with_if/ast.json create mode 100644 parser/testdata/01475_read_subcolumns/ast.json create mode 100644 parser/testdata/01475_read_subcolumns_2/ast.json create mode 100644 parser/testdata/01475_read_subcolumns_3/ast.json create mode 100644 parser/testdata/01476_right_full_join_switch/ast.json create mode 100644 parser/testdata/01479_cross_join_9855/ast.json create mode 100644 parser/testdata/01480_binary_operator_monotonicity/ast.json create mode 100644 parser/testdata/01481_join_with_materialized/ast.json create mode 100644 parser/testdata/01482_move_to_prewhere_and_cast/ast.json create mode 100644 parser/testdata/01483_merge_table_join_and_group_by/ast.json create mode 100644 parser/testdata/01485_256_bit_multiply/ast.json create mode 100644 parser/testdata/01486_json_array_output/ast.json create mode 100644 parser/testdata/01490_nullable_string_to_enum/ast.json create mode 100644 parser/testdata/01492_array_join_crash_13829/ast.json create mode 100644 parser/testdata/01493_alter_remove_no_property_zookeeper_long/ast.json create mode 100644 parser/testdata/01493_alter_remove_properties/ast.json create mode 100644 parser/testdata/01493_alter_remove_properties_zookeeper/ast.json create mode 100644 parser/testdata/01493_alter_remove_wrong_default/ast.json create mode 100644 parser/testdata/01493_storage_set_persistency/ast.json create mode 100644 parser/testdata/01493_table_function_null/ast.json create mode 100644 parser/testdata/01494_storage_join_persistency/ast.json create mode 100644 parser/testdata/01495_subqueries_in_with_statement/ast.json create mode 100644 parser/testdata/01495_subqueries_in_with_statement_3/ast.json create mode 100644 parser/testdata/01496_signedness_conversion_monotonicity/ast.json create mode 100644 parser/testdata/01497_alias_on_default_array/ast.json create mode 100644 parser/testdata/01497_mutation_support_for_storage_memory/ast.json create mode 100644 parser/testdata/01498_alter_column_storage_memory/ast.json create mode 100644 parser/testdata/01499_json_named_tuples/ast.json create mode 100644 parser/testdata/01499_log_deadlock/ast.json create mode 100644 parser/testdata/01501_cache_dictionary_all_fields/ast.json create mode 100644 parser/testdata/01502_bar_overflow/ast.json create mode 100644 parser/testdata/01503_fixed_string_primary_key/ast.json create mode 100644 parser/testdata/01503_if_const_optimization/ast.json create mode 100644 parser/testdata/01504_compression_multiple_streams/ast.json create mode 100644 parser/testdata/01504_rocksdb/ast.json create mode 100644 parser/testdata/01504_view_type_conversion/ast.json create mode 100644 parser/testdata/01505_distributed_local_type_conversion_enum/ast.json create mode 100644 parser/testdata/01505_log_distributed_deadlock/ast.json create mode 100644 parser/testdata/01505_trivial_count_with_partition_predicate/ast.json create mode 100644 parser/testdata/01506_buffer_table_alter_block_structure/ast.json create mode 100644 parser/testdata/01506_buffer_table_alter_block_structure_2/ast.json create mode 100644 parser/testdata/01506_ttl_same_with_order_by/ast.json create mode 100644 parser/testdata/01507_multiversion_storage_for_storagememory/ast.json create mode 100644 parser/testdata/01507_transform_null_in/ast.json create mode 100644 parser/testdata/01508_explain_header/ast.json create mode 100644 parser/testdata/01509_output_format_pretty_row_numbers/ast.json create mode 100644 parser/testdata/01509_parallel_quorum_insert_no_replicas_long/ast.json create mode 100644 parser/testdata/01511_alter_version_versioned_collapsing_merge_tree/ast.json create mode 100644 parser/testdata/01511_alter_version_versioned_collapsing_merge_tree_zookeeper/ast.json create mode 100644 parser/testdata/01511_different_expression_with_same_alias/ast.json create mode 100644 parser/testdata/01511_prewhere_with_virtuals/ast.json create mode 100644 parser/testdata/01513_count_without_select_sequence_consistency_zookeeper_long/ast.json create mode 100644 parser/testdata/01513_defaults_on_defaults_no_column/ast.json create mode 100644 parser/testdata/01513_ilike_like_cache/ast.json create mode 100644 parser/testdata/01513_optimize_aggregation_in_order_memory_long/ast.json create mode 100644 parser/testdata/01514_empty_buffer_different_types/ast.json create mode 100644 parser/testdata/01514_input_format_csv_enum_as_number_setting/ast.json create mode 100644 parser/testdata/01514_input_format_json_enum_as_number/ast.json create mode 100644 parser/testdata/01514_input_format_tsv_enum_as_number_setting/ast.json create mode 100644 parser/testdata/01514_parallel_formatting/ast.json create mode 100644 parser/testdata/01514_tid_function/ast.json create mode 100644 parser/testdata/01515_force_data_skipping_indices/ast.json create mode 100644 parser/testdata/01515_mv_and_array_join_optimisation_bag/ast.json create mode 100644 parser/testdata/01515_with_global_and_with_propagation/ast.json create mode 100644 parser/testdata/01516_create_table_primary_key/ast.json create mode 100644 parser/testdata/01516_date_time_output_format/ast.json create mode 100644 parser/testdata/01517_drop_mv_with_inner_table/ast.json create mode 100644 parser/testdata/01517_select_final_distributed/ast.json create mode 100644 parser/testdata/01518_cast_nullable_virtual_system_column/ast.json create mode 100644 parser/testdata/01518_filtering_aliased_materialized_column/ast.json create mode 100644 parser/testdata/01518_nullable_aggregate_states2/ast.json create mode 100644 parser/testdata/01518_select_in_null/ast.json create mode 100644 parser/testdata/01519_topK_distributed_parametrized/ast.json create mode 100644 parser/testdata/01521_alter_enum_and_reverse_read/ast.json create mode 100644 parser/testdata/01521_distributed_query_hang/ast.json create mode 100644 parser/testdata/01521_format_readable_time_delta2/ast.json create mode 100644 parser/testdata/01521_global_in_prewhere_15792/ast.json create mode 100644 parser/testdata/01521_max_length_alias/ast.json create mode 100644 parser/testdata/01522_validate_alter_default/ast.json create mode 100644 parser/testdata/01523_date_time_compare_with_date_literal/ast.json create mode 100644 parser/testdata/01523_interval_operator_support_string_literal/ast.json create mode 100644 parser/testdata/01524_do_not_merge_across_partitions_select_final/ast.json create mode 100644 parser/testdata/01525_select_with_offset_fetch_clause/ast.json create mode 100644 parser/testdata/01526_alter_add_and_modify_order_zookeeper/ast.json create mode 100644 parser/testdata/01526_complex_key_dict_direct_layout/ast.json create mode 100644 parser/testdata/01527_bad_aggregation_in_lambda/ast.json create mode 100644 parser/testdata/01527_dist_sharding_key_dictGet_reload/ast.json create mode 100644 parser/testdata/01527_materialized_view_stack_overflow/ast.json create mode 100644 parser/testdata/01528_allow_nondeterministic_optimize_skip_unused_shards/ast.json create mode 100644 parser/testdata/01528_setting_aggregate_functions_null_for_empty/ast.json create mode 100644 parser/testdata/01528_to_uuid_or_null_or_zero/ast.json create mode 100644 parser/testdata/01529_union_distinct_and_setting_union_default_mode/ast.json create mode 100644 parser/testdata/01530_drop_database_atomic_sync/ast.json create mode 100644 parser/testdata/01531_query_log_query_comment/ast.json create mode 100644 parser/testdata/01532_collate_in_low_cardinality/ast.json create mode 100644 parser/testdata/01532_execute_merges_on_single_replica_long/ast.json create mode 100644 parser/testdata/01532_having_with_totals/ast.json create mode 100644 parser/testdata/01532_min_max_with_modifiers/ast.json create mode 100644 parser/testdata/01532_primary_key_without_order_by_zookeeper/ast.json create mode 100644 parser/testdata/01532_tuple_with_name_type/ast.json create mode 100644 parser/testdata/01533_collate_in_nullable/ast.json create mode 100644 parser/testdata/01533_distinct_depends_on_max_threads/ast.json create mode 100644 parser/testdata/01533_distinct_nullable_uuid/ast.json create mode 100644 parser/testdata/01533_multiple_nested/ast.json create mode 100644 parser/testdata/01533_optimize_skip_merged_partitions/ast.json create mode 100644 parser/testdata/01533_quantile_deterministic_assert/ast.json create mode 100644 parser/testdata/01533_sum_if_nullable_bug/ast.json create mode 100644 parser/testdata/01534_lambda_array_join/ast.json create mode 100644 parser/testdata/01535_decimal_round_scale_overflow_check/ast.json create mode 100644 parser/testdata/01536_fuzz_cast/ast.json create mode 100644 parser/testdata/01537_fuzz_count_equal/ast.json create mode 100644 parser/testdata/01540_verbatim_partition_pruning/ast.json create mode 100644 parser/testdata/01542_collate_in_array/ast.json create mode 100644 parser/testdata/01543_collate_in_tuple/ast.json create mode 100644 parser/testdata/01543_parse_datetime_besteffort_or_null_empty_string/ast.json create mode 100644 parser/testdata/01543_toModifiedJulianDay/ast.json create mode 100644 parser/testdata/01544_errorCodeToName/ast.json create mode 100644 parser/testdata/01544_fromModifiedJulianDay/ast.json create mode 100644 parser/testdata/01545_url_file_format_settings/ast.json create mode 100644 parser/testdata/01546_log_queries_min_query_duration_ms/ast.json create mode 100644 parser/testdata/01547_query_log_current_database/ast.json create mode 100644 parser/testdata/01548_lzy305/ast.json create mode 100644 parser/testdata/01548_uncomparable_columns_in_keys/ast.json create mode 100644 parser/testdata/01548_with_totals_having/ast.json create mode 100644 parser/testdata/01549_low_cardinality_materialized_view/ast.json create mode 100644 parser/testdata/01549_low_cardinality_mv_fuzz/ast.json create mode 100644 parser/testdata/01550_create_map_type/ast.json create mode 100644 parser/testdata/01550_mutation_subquery/ast.json create mode 100644 parser/testdata/01550_type_map_formats/ast.json create mode 100644 parser/testdata/01551_context_uaf/ast.json create mode 100644 parser/testdata/01551_mergetree_read_in_order_spread/ast.json create mode 100644 parser/testdata/01552_alter_name_collision/ast.json create mode 100644 parser/testdata/01552_dict_fixedstring/ast.json create mode 100644 parser/testdata/01552_impl_aggfunc_cloneresize/ast.json create mode 100644 parser/testdata/01553_datetime64_comparison/ast.json create mode 100644 parser/testdata/01553_settings_early_apply/ast.json create mode 100644 parser/testdata/01554_bloom_filter_index_big_integer_uuid/ast.json create mode 100644 parser/testdata/01554_interpreter_integer_float/ast.json create mode 100644 parser/testdata/01555_system_distribution_queue_mask/ast.json create mode 100644 parser/testdata/01556_accurate_cast_or_null/ast.json create mode 100644 parser/testdata/01556_explain_select_with_union_query/ast.json create mode 100644 parser/testdata/01557_max_parallel_replicas_no_sample/ast.json create mode 100644 parser/testdata/01558_enum_as_num_in_tsv_csv_input/ast.json create mode 100644 parser/testdata/01558_transform_null_in/ast.json create mode 100644 parser/testdata/01558_ttest/ast.json create mode 100644 parser/testdata/01559_aggregate_null_for_empty_fix/ast.json create mode 100644 parser/testdata/01560_cancel_agg_func_combinator_native_name_constraint/ast.json create mode 100644 parser/testdata/01560_crash_in_agg_empty_arglist/ast.json create mode 100644 parser/testdata/01560_mann_whitney/ast.json create mode 100644 parser/testdata/01560_merge_distributed_join/ast.json create mode 100644 parser/testdata/01560_optimize_on_insert_long/ast.json create mode 100644 parser/testdata/01560_optimize_on_insert_zookeeper/ast.json create mode 100644 parser/testdata/01561_aggregate_functions_of_key_with_join/ast.json create mode 100644 parser/testdata/01562_agg_null_for_empty_ahead/ast.json create mode 100644 parser/testdata/01566_negate_formatting/ast.json create mode 100644 parser/testdata/01567_system_processes_current_database/ast.json create mode 100644 parser/testdata/01570_aggregator_combinator_simple_state/ast.json create mode 100644 parser/testdata/01571_window_functions/ast.json create mode 100644 parser/testdata/01575_disable_detach_table_of_dictionary/ast.json create mode 100644 parser/testdata/01576_alias_column_rewrite/ast.json create mode 100644 parser/testdata/01576_if_null_external_aggregation/ast.json create mode 100644 parser/testdata/01579_date_datetime_index_comparison/ast.json create mode 100644 parser/testdata/01580_column_const_comparision/ast.json create mode 100644 parser/testdata/01581_deduplicate_by_columns_replicated_long/ast.json create mode 100644 parser/testdata/01582_any_join_supertype/ast.json create mode 100644 parser/testdata/01582_distinct_subquery_groupby/ast.json create mode 100644 parser/testdata/01582_move_to_prewhere_compact_parts/ast.json create mode 100644 parser/testdata/01583_const_column_in_set_index/ast.json create mode 100644 parser/testdata/01584_distributed_buffer_cannot_find_column/ast.json create mode 100644 parser/testdata/01585_fuzz_bits_with_bugfix/ast.json create mode 100644 parser/testdata/01585_use_index_for_global_in/ast.json create mode 100644 parser/testdata/01585_use_index_for_global_in_with_null/ast.json create mode 100644 parser/testdata/01586_columns_pruning/ast.json create mode 100644 parser/testdata/01586_replicated_mutations_empty_partition/ast.json create mode 100644 parser/testdata/01586_storage_join_low_cardinality_key/ast.json create mode 100644 parser/testdata/01590_countSubstrings/ast.json create mode 100644 parser/testdata/01591_window_functions/ast.json create mode 100644 parser/testdata/01592_length_map/ast.json create mode 100644 parser/testdata/01592_long_window_functions1/ast.json create mode 100644 parser/testdata/01592_toUnixTimestamp_Date/ast.json create mode 100644 parser/testdata/01592_window_functions/ast.json create mode 100644 parser/testdata/01593_insert_settings/ast.json create mode 100644 parser/testdata/01594_storage_join_uuid/ast.json create mode 100644 parser/testdata/01595_countMatches/ast.json create mode 100644 parser/testdata/01596_full_join_chertus/ast.json create mode 100644 parser/testdata/01596_null_as_default_nullable/ast.json create mode 100644 parser/testdata/01596_setting_limit_offset/ast.json create mode 100644 parser/testdata/01598_memory_limit_zeros/ast.json create mode 100644 parser/testdata/01600_encode_XML/ast.json create mode 100644 parser/testdata/01600_min_max_compress_block_size/ast.json create mode 100644 parser/testdata/01600_multiple_left_join_with_aliases/ast.json create mode 100644 parser/testdata/01600_remerge_sort_lowered_memory_bytes_ratio/ast.json create mode 100644 parser/testdata/01600_select_in_different_types/ast.json create mode 100644 parser/testdata/01601_accurate_cast/ast.json create mode 100644 parser/testdata/01601_detach_permanently/ast.json create mode 100644 parser/testdata/01602_array_aggregation/ast.json create mode 100644 parser/testdata/01602_insert_into_table_function_cluster/ast.json create mode 100644 parser/testdata/01602_runningConcurrency/ast.json create mode 100644 parser/testdata/01602_temporary_table_in_system_tables/ast.json create mode 100644 parser/testdata/01603_decimal_mult_float/ast.json create mode 100644 parser/testdata/01603_insert_select_too_many_parts/ast.json create mode 100644 parser/testdata/01603_read_with_backoff_bug/ast.json create mode 100644 parser/testdata/01603_remove_column_ttl/ast.json create mode 100644 parser/testdata/01603_rename_overwrite_bug/ast.json create mode 100644 parser/testdata/01605_adaptive_granularity_block_borders/ast.json create mode 100644 parser/testdata/01605_dictinct_two_level/ast.json create mode 100644 parser/testdata/01605_key_condition_enum_int/ast.json create mode 100644 parser/testdata/01605_skip_idx_compact_parts/ast.json create mode 100644 parser/testdata/01606_merge_from_wide_to_compact/ast.json create mode 100644 parser/testdata/01611_string_to_low_cardinality_key_alter/ast.json create mode 100644 parser/testdata/01615_random_one_shard_insertion/ast.json create mode 100644 parser/testdata/01615_two_args_function_index_fix/ast.json create mode 100644 parser/testdata/01616_untuple_access_field/ast.json create mode 100644 parser/testdata/01620_fix_simple_state_arg_type/ast.json create mode 100644 parser/testdata/01621_decode_XML/ast.json create mode 100644 parser/testdata/01621_sort_after_join_pipeline_stuck/ast.json create mode 100644 parser/testdata/01621_summap_check_types/ast.json create mode 100644 parser/testdata/01622_byte_size/ast.json create mode 100644 parser/testdata/01622_codec_zstd_long/ast.json create mode 100644 parser/testdata/01622_constraints_simple_optimization/ast.json create mode 100644 parser/testdata/01622_constraints_where_optimization/ast.json create mode 100644 parser/testdata/01622_defaults_for_file_engine/ast.json create mode 100644 parser/testdata/01622_multiple_ttls/ast.json create mode 100644 parser/testdata/01623_byte_size_const/ast.json create mode 100644 parser/testdata/01623_constraints_column_swap/ast.json create mode 100644 parser/testdata/01625_constraints_index_append/ast.json create mode 100644 parser/testdata/01626_cnf_test/ast.json create mode 100644 parser/testdata/01630_disallow_floating_point_as_partition_key/ast.json create mode 100644 parser/testdata/01630_simple_aggregate_all_functions_in_aggregating_merge_tree/ast.json create mode 100644 parser/testdata/01630_simple_aggregate_all_functions_in_summing_merge_tree/ast.json create mode 100644 parser/testdata/01630_simple_aggregate_function_in_summing_merge_tree/ast.json create mode 100644 parser/testdata/01631_date_overflow_as_partition_key/ast.json create mode 100644 parser/testdata/01632_group_array_msan/ast.json create mode 100644 parser/testdata/01632_max_partitions_to_read/ast.json create mode 100644 parser/testdata/01632_nullable_string_type_convert_to_decimal_type/ast.json create mode 100644 parser/testdata/01632_select_all_syntax/ast.json create mode 100644 parser/testdata/01633_limit_fuzz/ast.json create mode 100644 parser/testdata/01634_summap_nullable/ast.json create mode 100644 parser/testdata/01634_uuid_fuzz/ast.json create mode 100644 parser/testdata/01635_sum_map_fuzz/ast.json create mode 100644 parser/testdata/01636_nullable_fuzz2/ast.json create mode 100644 parser/testdata/01637_nullable_fuzz3/ast.json create mode 100644 parser/testdata/01638_div_mod_ambiguities/ast.json create mode 100644 parser/testdata/01639_distributed_sync_insert_zero_rows/ast.json create mode 100644 parser/testdata/01640_distributed_async_insert_compression/ast.json create mode 100644 parser/testdata/01640_marks_corruption_regression/ast.json create mode 100644 parser/testdata/01641_memory_tracking_insert_optimize/ast.json create mode 100644 parser/testdata/01643_merge_tree_fsync_smoke/ast.json create mode 100644 parser/testdata/01643_replicated_merge_tree_fsync_smoke/ast.json create mode 100644 parser/testdata/01644_distributed_async_insert_fsync_smoke/ast.json create mode 100644 parser/testdata/01646_fix_window_funnel_inconistency/ast.json create mode 100644 parser/testdata/01646_rewrite_sum_if/ast.json create mode 100644 parser/testdata/01646_rewrite_sum_if_bug/ast.json create mode 100644 parser/testdata/01646_system_restart_replicas_smoke/ast.json create mode 100644 parser/testdata/01648_mutations_and_escaping/ast.json create mode 100644 parser/testdata/01649_with_alias_key_condition/ast.json create mode 100644 parser/testdata/01650_drop_part_and_deduplication_zookeeper_long/ast.json create mode 100644 parser/testdata/01650_fetch_patition_with_macro_in_zk_path_long/ast.json create mode 100644 parser/testdata/01651_bugs_from_15889/ast.json create mode 100644 parser/testdata/01651_lc_insert_tiny_log_1/ast.json create mode 100644 parser/testdata/01651_lc_insert_tiny_log_2/ast.json create mode 100644 parser/testdata/01651_lc_insert_tiny_log_3/ast.json create mode 100644 parser/testdata/01651_map_functions/ast.json create mode 100644 parser/testdata/01652_ignore_and_low_cardinality/ast.json create mode 100644 parser/testdata/01652_ttl_old_syntax/ast.json create mode 100644 parser/testdata/01653_tuple_hamming_distance_2/ast.json create mode 100644 parser/testdata/01655_agg_if_nullable/ast.json create mode 100644 parser/testdata/01655_plan_optimizations_merge_filters/ast.json create mode 100644 parser/testdata/01655_quarter_modificator_for_formatDateTime/ast.json create mode 100644 parser/testdata/01655_test_isnull_mysql_dialect/ast.json create mode 100644 parser/testdata/01655_window_functions_cume_dist/ast.json create mode 100644 parser/testdata/01656_ipv4_bad_formatting/ast.json create mode 100644 parser/testdata/01656_sequence_next_node_distinct/ast.json create mode 100644 parser/testdata/01656_sequence_next_node_long/ast.json create mode 100644 parser/testdata/01656_test_hex_mysql_dialect/ast.json create mode 100644 parser/testdata/01656_test_query_log_factories_info/ast.json create mode 100644 parser/testdata/01657_array_element_ubsan/ast.json create mode 100644 parser/testdata/01657_test_toHour_mysql_compatibility/ast.json create mode 100644 parser/testdata/01658_test_base64Encode_mysql_compatibility/ast.json create mode 100644 parser/testdata/01658_values_ubsan/ast.json create mode 100644 parser/testdata/01659_h3_buffer_overflow/ast.json create mode 100644 parser/testdata/01659_test_base64Decode_mysql_compatibility/ast.json create mode 100644 parser/testdata/01660_join_or_all/ast.json create mode 100644 parser/testdata/01660_join_or_any/ast.json create mode 100644 parser/testdata/01660_join_or_inner/ast.json create mode 100644 parser/testdata/01660_join_or_subqueries/ast.json create mode 100644 parser/testdata/01660_second_extremes_bug/ast.json create mode 100644 parser/testdata/01660_sum_ubsan/ast.json create mode 100644 parser/testdata/01660_system_parts_smoke/ast.json create mode 100644 parser/testdata/01660_test_toDayOfYear_mysql_compatibility/ast.json create mode 100644 parser/testdata/01661_arraySlice_ubsan/ast.json create mode 100644 parser/testdata/01661_extract_all_groups_throw_fast/ast.json create mode 100644 parser/testdata/01661_test_toDayOfWeek_mysql_compatibility/ast.json create mode 100644 parser/testdata/01661_week_functions_string_args/ast.json create mode 100644 parser/testdata/01662_date_ubsan/ast.json create mode 100644 parser/testdata/01662_join_mixed/ast.json create mode 100644 parser/testdata/01662_test_toDayOfMonth_mysql_compatibility/ast.json create mode 100644 parser/testdata/01663_aes_msan/ast.json create mode 100644 parser/testdata/01663_quantile_weighted_overflow/ast.json create mode 100644 parser/testdata/01663_test_toDate_mysql_compatibility/ast.json create mode 100644 parser/testdata/01664_array_slice_ubsan/ast.json create mode 100644 parser/testdata/01664_ntoa_aton_mysql_compatibility/ast.json create mode 100644 parser/testdata/01665_merge_tree_min_for_concurrent_read/ast.json create mode 100644 parser/testdata/01665_running_difference_ubsan/ast.json create mode 100644 parser/testdata/01665_substring_ubsan/ast.json create mode 100644 parser/testdata/01666_date_lut_buffer_overflow/ast.json create mode 100644 parser/testdata/01666_gcd_ubsan/ast.json create mode 100644 parser/testdata/01666_great_circle_distance_ubsan/ast.json create mode 100644 parser/testdata/01666_lcm_ubsan/ast.json create mode 100644 parser/testdata/01668_test_toMonth_mysql_dialect/ast.json create mode 100644 parser/testdata/01669_join_or_duplicates/ast.json create mode 100644 parser/testdata/01669_test_toYear_mysql_dialect/ast.json create mode 100644 parser/testdata/01670_dictionary_create_key_expression/ast.json create mode 100644 parser/testdata/01670_distributed_bytes_to_throw_insert/ast.json create mode 100644 parser/testdata/01670_log_comment/ast.json create mode 100644 parser/testdata/01670_neighbor_lc_bug/ast.json create mode 100644 parser/testdata/01670_sign_function/ast.json create mode 100644 parser/testdata/01670_test_repeat_mysql_dialect/ast.json create mode 100644 parser/testdata/01671_aggregate_function_group_bitmap_data/ast.json create mode 100644 parser/testdata/01671_merge_join_and_constants/ast.json create mode 100644 parser/testdata/01671_test_toQuarter_mysql_dialect/ast.json create mode 100644 parser/testdata/01672_test_toSecond_mysql_dialect/ast.json create mode 100644 parser/testdata/01673_test_toMinute_mysql_dialect/ast.json create mode 100644 parser/testdata/01674_executable_dictionary_implicit_key/ast.json create mode 100644 parser/testdata/01674_filter_by_uint8/ast.json create mode 100644 parser/testdata/01674_htm_xml_coarse_parse/ast.json create mode 100644 parser/testdata/01674_where_prewhere_array_crash/ast.json create mode 100644 parser/testdata/01676_dictget_in_default_expression/ast.json create mode 100644 parser/testdata/01676_range_hashed_dictionary/ast.json create mode 100644 parser/testdata/01676_reinterpret_as/ast.json create mode 100644 parser/testdata/01676_round_int_ubsan/ast.json create mode 100644 parser/testdata/01677_array_enumerate_bug/ast.json create mode 100644 parser/testdata/01678_great_circle_angle/ast.json create mode 100644 parser/testdata/01680_date_time_add_ubsan/ast.json create mode 100644 parser/testdata/01680_predicate_pushdown_union_distinct_subquery/ast.json create mode 100644 parser/testdata/01681_bloom_filter_nullable_column/ast.json create mode 100644 parser/testdata/01681_cache_dictionary_simple_key/ast.json create mode 100644 parser/testdata/01682_cache_dictionary_complex_key/ast.json create mode 100644 parser/testdata/01682_gather_utils_ubsan/ast.json create mode 100644 parser/testdata/01683_codec_encrypted/ast.json create mode 100644 parser/testdata/01683_dist_INSERT_block_structure_mismatch/ast.json create mode 100644 parser/testdata/01683_flat_dictionary/ast.json create mode 100644 parser/testdata/01684_geohash_ubsan/ast.json create mode 100644 parser/testdata/01684_insert_specify_shard_id/ast.json create mode 100644 parser/testdata/01686_rocksdb/ast.json create mode 100644 parser/testdata/01690_quantilesTiming_ubsan/ast.json create mode 100644 parser/testdata/01691_DateTime64_clamp/ast.json create mode 100644 parser/testdata/01692_DateTime64_from_DateTime/ast.json create mode 100644 parser/testdata/01698_map_populate_overflow/ast.json create mode 100644 parser/testdata/01700_deltasum/ast.json create mode 100644 parser/testdata/01700_mod_negative_type_promotion/ast.json create mode 100644 parser/testdata/01700_system_zookeeper_path_in/ast.json create mode 100644 parser/testdata/01701_clear_projection_and_part_remove/ast.json create mode 100644 parser/testdata/01701_if_tuple_segfault/ast.json create mode 100644 parser/testdata/01702_bitmap_native_integers/ast.json create mode 100644 parser/testdata/01702_rewrite_avg_for_algebraic_optimization/ast.json create mode 100644 parser/testdata/01702_system_numbers_scientific_notation/ast.json create mode 100644 parser/testdata/01702_system_query_log/ast.json create mode 100644 parser/testdata/01702_toDateTime_from_string_clamping/ast.json create mode 100644 parser/testdata/01703_rewrite_aggregate_function_case_insensitive/ast.json create mode 100644 parser/testdata/01704_transform_with_float_key/ast.json create mode 100644 parser/testdata/01705_normalize_case_insensitive_function_names/ast.json create mode 100644 parser/testdata/01705_normalize_create_alter_function_names/ast.json create mode 100644 parser/testdata/01706_optimize_normalize_count_variants/ast.json create mode 100644 parser/testdata/01707_join_use_nulls/ast.json create mode 100644 parser/testdata/01709_inactive_parts_to_throw_insert/ast.json create mode 100644 parser/testdata/01710_aggregate_projection_with_grouping_set/ast.json create mode 100644 parser/testdata/01710_aggregate_projection_with_hashing/ast.json create mode 100644 parser/testdata/01710_aggregate_projection_with_monotonic_key_expr/ast.json create mode 100644 parser/testdata/01710_aggregate_projection_with_normalized_states/ast.json create mode 100644 parser/testdata/01710_force_use_projection/ast.json create mode 100644 parser/testdata/01710_minmax_count_projection/ast.json create mode 100644 parser/testdata/01710_minmax_count_projection_constant_query/ast.json create mode 100644 parser/testdata/01710_minmax_count_projection_count_nullable/ast.json create mode 100644 parser/testdata/01710_minmax_count_projection_distributed_query/ast.json create mode 100644 parser/testdata/01710_minmax_count_projection_modify_partition_key/ast.json create mode 100644 parser/testdata/01710_normal_projection_fix1/ast.json create mode 100644 parser/testdata/01710_normal_projection_format/ast.json create mode 100644 parser/testdata/01710_normal_projection_join_plan_fix/ast.json create mode 100644 parser/testdata/01710_normal_projection_with_query_plan_optimization/ast.json create mode 100644 parser/testdata/01710_order_by_projections_complete/ast.json create mode 100644 parser/testdata/01710_order_by_projections_incomplete/ast.json create mode 100644 parser/testdata/01710_projection_additional_filters/ast.json create mode 100644 parser/testdata/01710_projection_aggregate_functions_null_for_empty/ast.json create mode 100644 parser/testdata/01710_projection_aggregation_in_order/ast.json create mode 100644 parser/testdata/01710_projection_array_join/ast.json create mode 100644 parser/testdata/01710_projection_detach_part/ast.json create mode 100644 parser/testdata/01710_projection_drop_if_exists/ast.json create mode 100644 parser/testdata/01710_projection_external_aggregate/ast.json create mode 100644 parser/testdata/01710_projection_fetch_long/ast.json create mode 100644 parser/testdata/01710_projection_group_by_order_by/ast.json create mode 100644 parser/testdata/01710_projection_in_index/ast.json create mode 100644 parser/testdata/01710_projection_in_set/ast.json create mode 100644 parser/testdata/01710_projection_materialize_with_missing_columns/ast.json create mode 100644 parser/testdata/01710_projection_mutation/ast.json create mode 100644 parser/testdata/01710_projection_optimize_aggregators_of_group_by_keys/ast.json create mode 100644 parser/testdata/01710_projection_optimize_group_by_function_keys/ast.json create mode 100644 parser/testdata/01710_projection_optimize_materialize/ast.json create mode 100644 parser/testdata/01710_projection_part_check/ast.json create mode 100644 parser/testdata/01710_projection_pk_trivial_count/ast.json create mode 100644 parser/testdata/01710_projection_query_plan_optimization_misc/ast.json create mode 100644 parser/testdata/01710_projection_row_policy/ast.json create mode 100644 parser/testdata/01710_projection_vertical_merges/ast.json create mode 100644 parser/testdata/01710_projection_with_alter_conversions/ast.json create mode 100644 parser/testdata/01710_projection_with_ast_rewrite_settings/ast.json create mode 100644 parser/testdata/01710_projection_with_column_transformers/ast.json create mode 100644 parser/testdata/01710_projection_with_joins/ast.json create mode 100644 parser/testdata/01710_projection_with_mixed_pipeline/ast.json create mode 100644 parser/testdata/01710_projection_with_nullable_keys/ast.json create mode 100644 parser/testdata/01710_projections/ast.json create mode 100644 parser/testdata/01710_projections_and_duplicate_columms/ast.json create mode 100644 parser/testdata/01710_projections_group_by_no_key/ast.json create mode 100644 parser/testdata/01710_projections_in_distributed_query/ast.json create mode 100644 parser/testdata/01710_projections_order_by_complete/ast.json create mode 100644 parser/testdata/01710_projections_order_by_incomplete/ast.json create mode 100644 parser/testdata/01710_query_log_with_projection_info/ast.json create mode 100644 parser/testdata/01711_cte_subquery_fix/ast.json create mode 100644 parser/testdata/01711_decimal_multiplication/ast.json create mode 100644 parser/testdata/01712_no_adaptive_granularity_vertical_merge/ast.json create mode 100644 parser/testdata/01713_table_ttl_old_syntax_zookeeper/ast.json create mode 100644 parser/testdata/01714_alter_drop_version/ast.json create mode 100644 parser/testdata/01715_background_checker_blather_zookeeper_long/ast.json create mode 100644 parser/testdata/01715_tuple_insert_null_as_default/ast.json create mode 100644 parser/testdata/01716_decimal_comparison_ubsan/ast.json create mode 100644 parser/testdata/01716_drop_rename_sign_column/ast.json create mode 100644 parser/testdata/01717_int_div_float_too_large_ubsan/ast.json create mode 100644 parser/testdata/01718_subtract_seconds_date/ast.json create mode 100644 parser/testdata/01719_join_timezone/ast.json create mode 100644 parser/testdata/01720_constraints_complex_types/ast.json create mode 100644 parser/testdata/01720_dictionary_create_source_with_functions/ast.json create mode 100644 parser/testdata/01720_engine_file_empty_if_not_exists/ast.json create mode 100644 parser/testdata/01720_type_map_and_casts/ast.json create mode 100644 parser/testdata/01720_union_distinct_with_limit/ast.json create mode 100644 parser/testdata/01721_constraints_constant_expressions/ast.json create mode 100644 parser/testdata/01721_dictionary_decimal_p_s/ast.json create mode 100644 parser/testdata/01721_engine_file_truncate_on_insert/ast.json create mode 100644 parser/testdata/01730_distributed_group_by_no_merge_order_by_long/ast.json create mode 100644 parser/testdata/01732_alters_bad_conversions/ast.json create mode 100644 parser/testdata/01732_bigint_ubsan/ast.json create mode 100644 parser/testdata/01732_more_consistent_datetime64_parsing/ast.json create mode 100644 parser/testdata/01732_union_and_union_all/ast.json create mode 100644 parser/testdata/01734_datetime64_from_float/ast.json create mode 100644 parser/testdata/01735_join_get_low_card_fix/ast.json create mode 100644 parser/testdata/01735_to_datetime64/ast.json create mode 100644 parser/testdata/01736_null_as_default/ast.json create mode 100644 parser/testdata/01737_move_order_key_to_prewhere_select_final/ast.json create mode 100644 parser/testdata/01739_index_hint/ast.json create mode 100644 parser/testdata/01745_alter_delete_view/ast.json create mode 100644 parser/testdata/01746_convert_type_with_default/ast.json create mode 100644 parser/testdata/01746_executable_pool_dictionary/ast.json create mode 100644 parser/testdata/01746_extract_text_from_html/ast.json create mode 100644 parser/testdata/01746_forbid_drop_column_referenced_by_mv/ast.json create mode 100644 parser/testdata/01746_lc_values_format_bug/ast.json create mode 100644 parser/testdata/01746_test_for_tupleElement_must_be_constant_issue/ast.json create mode 100644 parser/testdata/01747_alter_partition_key_enum_zookeeper_long/ast.json create mode 100644 parser/testdata/01747_executable_pool_dictionary_implicit_key/ast.json create mode 100644 parser/testdata/01747_join_view_filter_dictionary/ast.json create mode 100644 parser/testdata/01747_transform_empty_arrays/ast.json create mode 100644 parser/testdata/01748_dictionary_table_dot/ast.json create mode 100644 parser/testdata/01748_partition_id_pruning/ast.json create mode 100644 parser/testdata/01752_distributed_query_sigsegv/ast.json create mode 100644 parser/testdata/01753_direct_dictionary_simple_key/ast.json create mode 100644 parser/testdata/01753_mutate_table_predicated_with_table/ast.json create mode 100644 parser/testdata/01754_cluster_all_replicas_shard_num/ast.json create mode 100644 parser/testdata/01754_direct_dictionary_complex_key/ast.json create mode 100644 parser/testdata/01755_shard_pruning_with_literal/ast.json create mode 100644 parser/testdata/01756_optimize_skip_unused_shards_rewrite_in/ast.json create mode 100644 parser/testdata/01757_optimize_skip_unused_shards_limit/ast.json create mode 100644 parser/testdata/01759_dictionary_unique_attribute_names/ast.json create mode 100644 parser/testdata/01759_optimize_skip_unused_shards_zero_shards/ast.json create mode 100644 parser/testdata/01760_ddl_dictionary_use_current_database_name/ast.json create mode 100644 parser/testdata/01760_modulo_negative/ast.json create mode 100644 parser/testdata/01760_polygon_dictionaries/ast.json create mode 100644 parser/testdata/01760_system_dictionaries/ast.json create mode 100644 parser/testdata/01761_alter_decimal_zookeeper_long/ast.json create mode 100644 parser/testdata/01761_round_year_bounds/ast.json create mode 100644 parser/testdata/01762_datetime64_extended_parsing/ast.json create mode 100644 parser/testdata/01763_filter_push_down_bugs/ast.json create mode 100644 parser/testdata/01763_long_ttl_group_by/ast.json create mode 100644 parser/testdata/01763_max_distributed_depth/ast.json create mode 100644 parser/testdata/01763_support_map_lowcardinality_type/ast.json create mode 100644 parser/testdata/01764_collapsing_merge_adaptive_granularity/ast.json create mode 100644 parser/testdata/01764_prefer_column_name_to_alias/ast.json create mode 100644 parser/testdata/01764_table_function_dictionary/ast.json create mode 100644 parser/testdata/01765_hashed_dictionary_simple_key/ast.json create mode 100644 parser/testdata/01765_move_to_table_overlapping_block_number/ast.json create mode 100644 parser/testdata/01765_tehran_dst/ast.json create mode 100644 parser/testdata/01766_hashed_dictionary_complex_key/ast.json create mode 100644 parser/testdata/01766_todatetime64_no_timezone_arg/ast.json create mode 100644 parser/testdata/01768_array_product/ast.json create mode 100644 parser/testdata/01768_extended_range/ast.json create mode 100644 parser/testdata/01769_extended_range_2/ast.json create mode 100644 parser/testdata/01770_add_months_ubsan/ast.json create mode 100644 parser/testdata/01770_extended_range_3/ast.json create mode 100644 parser/testdata/01771_bloom_filter_not_has/ast.json create mode 100644 parser/testdata/01771_datetime64_no_time_part/ast.json create mode 100644 parser/testdata/01772_intdiv_minus_one_ubsan/ast.json create mode 100644 parser/testdata/01772_to_start_of_hour_align/ast.json create mode 100644 parser/testdata/01773_case_sensitive_revision/ast.json create mode 100644 parser/testdata/01773_case_sensitive_version/ast.json create mode 100644 parser/testdata/01773_min_max_time_system_parts_datetime64/ast.json create mode 100644 parser/testdata/01774_case_sensitive_connection_id/ast.json create mode 100644 parser/testdata/01774_ip_address_in_range/ast.json create mode 100644 parser/testdata/01774_ip_address_in_range_2/ast.json create mode 100644 parser/testdata/01776_decrypt_aead_size_check/ast.json create mode 100644 parser/testdata/01777_map_populate_series_ubsan/ast.json create mode 100644 parser/testdata/01778_hierarchical_dictionaries/ast.json create mode 100644 parser/testdata/01778_mmap_cache_infra/ast.json create mode 100644 parser/testdata/01778_test_LowCardinality_FixedString_pk/ast.json create mode 100644 parser/testdata/01778_where_with_column_name/ast.json create mode 100644 parser/testdata/01779_quantile_deterministic_msan/ast.json create mode 100644 parser/testdata/01780_clickhouse_dictionary_source_loop/ast.json create mode 100644 parser/testdata/01780_column_sparse/ast.json create mode 100644 parser/testdata/01780_column_sparse_alter/ast.json create mode 100644 parser/testdata/01780_column_sparse_distinct/ast.json create mode 100644 parser/testdata/01780_column_sparse_filter/ast.json create mode 100644 parser/testdata/01780_column_sparse_full/ast.json create mode 100644 parser/testdata/01780_column_sparse_materialize/ast.json create mode 100644 parser/testdata/01780_column_sparse_pk/ast.json create mode 100644 parser/testdata/01780_column_sparse_tuple/ast.json create mode 100644 parser/testdata/01780_dict_get_or_null/ast.json create mode 100644 parser/testdata/01780_range_msan/ast.json create mode 100644 parser/testdata/01781_merge_tree_deduplication/ast.json create mode 100644 parser/testdata/01781_token_extractor_buffer_overflow/ast.json create mode 100644 parser/testdata/01782_field_oom/ast.json create mode 100644 parser/testdata/01783_merge_engine_join_key_condition/ast.json create mode 100644 parser/testdata/01784_parallel_formatting_memory/ast.json create mode 100644 parser/testdata/01785_dictionary_element_count/ast.json create mode 100644 parser/testdata/01785_pmj_lc_bug/ast.json create mode 100644 parser/testdata/01786_group_by_pk_many_streams/ast.json create mode 100644 parser/testdata/01787_arena_assert_column_nothing/ast.json create mode 100644 parser/testdata/01787_map_remote/ast.json create mode 100644 parser/testdata/01788_update_nested_type_subcolumn_check/ast.json create mode 100644 parser/testdata/01790_dist_INSERT_block_structure_mismatch_types_and_names/ast.json create mode 100644 parser/testdata/01795_TinyLog_rwlock_ub/ast.json create mode 100644 parser/testdata/01796_Log_rwlock_ub/ast.json create mode 100644 parser/testdata/01797_StripeLog_rwlock_ub/ast.json create mode 100644 parser/testdata/01798_having_push_down/ast.json create mode 100644 parser/testdata/01798_uniq_theta_sketch/ast.json create mode 100644 parser/testdata/01798_uniq_theta_union_intersect_not/ast.json create mode 100644 parser/testdata/01799_long_uniq_theta_sketch/ast.json create mode 100644 parser/testdata/01800_log_nested/ast.json create mode 100644 parser/testdata/01801_approx_total_rows_mergetree_reverse/ast.json create mode 100644 parser/testdata/01801_dateDiff_DateTime64/ast.json create mode 100644 parser/testdata/01801_distinct_group_by_shard/ast.json create mode 100644 parser/testdata/01801_s3_cluster/ast.json create mode 100644 parser/testdata/01801_s3_cluster_count/ast.json create mode 100644 parser/testdata/01802_formatDateTime_DateTime64_century/ast.json create mode 100644 parser/testdata/01802_rank_corr_mann_whitney_over_window/ast.json create mode 100644 parser/testdata/01802_toDateTime64_large_values/ast.json create mode 100644 parser/testdata/01803_const_nullable_map/ast.json create mode 100644 parser/testdata/01804_dictionary_decimal256_type/ast.json create mode 100644 parser/testdata/01809_inactive_parts_to_delay_throw_insert/ast.json create mode 100644 parser/testdata/01811_filter_by_null/ast.json create mode 100644 parser/testdata/01812_has_generic/ast.json create mode 100644 parser/testdata/01813_distributed_scalar_subqueries_alias/ast.json create mode 100644 parser/testdata/01817_storage_buffer_parameters/ast.json create mode 100644 parser/testdata/01818_move_partition_simple/ast.json create mode 100644 parser/testdata/01820_unhex_case_insensitive/ast.json create mode 100644 parser/testdata/01821_dictionary_primary_key_wrong_order/ast.json create mode 100644 parser/testdata/01821_join_table_mutation/ast.json create mode 100644 parser/testdata/01821_table_comment/ast.json create mode 100644 parser/testdata/01821_to_date_time_ubsan/ast.json create mode 100644 parser/testdata/01822_short_circuit/ast.json create mode 100644 parser/testdata/01822_union_and_constans_error/ast.json create mode 100644 parser/testdata/01824_move_to_prewhere_many_columns/ast.json create mode 100644 parser/testdata/01824_prefer_global_in_and_join/ast.json create mode 100644 parser/testdata/01825_new_type_json_10/ast.json create mode 100644 parser/testdata/01825_new_type_json_18/ast.json create mode 100644 parser/testdata/01825_new_type_json_2/ast.json create mode 100644 parser/testdata/01825_new_type_json_9/ast.json create mode 100644 parser/testdata/01825_new_type_json_bools/ast.json create mode 100644 parser/testdata/01825_new_type_json_distributed/ast.json create mode 100644 parser/testdata/01825_new_type_json_ephemeral/ast.json create mode 100644 parser/testdata/01825_new_type_json_in_array/ast.json create mode 100644 parser/testdata/01825_new_type_json_insert_select/ast.json create mode 100644 parser/testdata/01825_new_type_json_missed_values/ast.json create mode 100644 parser/testdata/01825_new_type_json_mutations/ast.json create mode 100644 parser/testdata/01825_new_type_json_order_by/ast.json create mode 100644 parser/testdata/01825_new_type_json_parallel_insert/ast.json create mode 100644 parser/testdata/01825_new_type_json_partitions/ast.json create mode 100644 parser/testdata/01825_replacing_vertical_merge/ast.json create mode 100644 parser/testdata/01831_max_streams/ast.json create mode 100644 parser/testdata/01832_memory_write_suffix/ast.json create mode 100644 parser/testdata/01833_test_collation_alvarotuso/ast.json create mode 100644 parser/testdata/01835_alias_to_primary_key_cyfdecyf/ast.json create mode 100644 parser/testdata/01836_date_time_keep_default_timezone_on_operations_den_crane/ast.json create mode 100644 parser/testdata/01837_cast_to_array_from_empty_array/ast.json create mode 100644 parser/testdata/01837_database_memory_ddl_dictionaries/ast.json create mode 100644 parser/testdata/01838_system_dictionaries_virtual_key_column/ast.json create mode 100644 parser/testdata/01845_add_testcase_for_arrayElement/ast.json create mode 100644 parser/testdata/01846_alter_column_without_type_bugfix/ast.json create mode 100644 parser/testdata/01846_null_as_default_for_insert_select/ast.json create mode 100644 parser/testdata/01848_partition_value_column/ast.json create mode 100644 parser/testdata/01849_geoToS2/ast.json create mode 100644 parser/testdata/01850_dist_INSERT_preserve_error/ast.json create mode 100644 parser/testdata/01851_array_difference_decimal_overflow_ubsan/ast.json create mode 100644 parser/testdata/01851_clear_column_referenced_by_mv/ast.json create mode 100644 parser/testdata/01851_fix_row_policy_empty_result/ast.json create mode 100644 parser/testdata/01851_hedged_connections_external_tables/ast.json create mode 100644 parser/testdata/01851_s2_to_geo/ast.json create mode 100644 parser/testdata/01852_cast_operator_4/ast.json create mode 100644 parser/testdata/01852_dictionary_query_count_long/ast.json create mode 100644 parser/testdata/01852_jit_if/ast.json create mode 100644 parser/testdata/01852_map_combinator/ast.json create mode 100644 parser/testdata/01852_multiple_joins_with_union_join/ast.json create mode 100644 parser/testdata/01852_s2_get_neighbours/ast.json create mode 100644 parser/testdata/01853_s2_cells_intersect/ast.json create mode 100644 parser/testdata/01854_dictionary_range_hashed_min_max_attr/ast.json create mode 100644 parser/testdata/01854_s2_cap_contains/ast.json create mode 100644 parser/testdata/01854_s2_cap_union/ast.json create mode 100644 parser/testdata/01855_jit_comparison_constant_result/ast.json create mode 100644 parser/testdata/01860_Distributed__shard_num_GROUP_BY/ast.json create mode 100644 parser/testdata/01861_explain_pipeline/ast.json create mode 100644 parser/testdata/01865_aggregator_overflow_row/ast.json create mode 100644 parser/testdata/01866_aggregate_function_interval_length_sum/ast.json create mode 100644 parser/testdata/01866_bit_positions_to_array/ast.json create mode 100644 parser/testdata/01866_datetime64_cmp_with_constant/ast.json create mode 100644 parser/testdata/01866_split_by_regexp/ast.json create mode 100644 parser/testdata/01866_view_persist_settings/ast.json create mode 100644 parser/testdata/01867_fix_storage_memory_mutation/ast.json create mode 100644 parser/testdata/01867_support_datetime64_version_column/ast.json create mode 100644 parser/testdata/01869_function_modulo_legacy/ast.json create mode 100644 parser/testdata/01869_reinterpret_as_fixed_string_uuid/ast.json create mode 100644 parser/testdata/01870_buffer_flush/ast.json create mode 100644 parser/testdata/01870_modulo_partition_key/ast.json create mode 100644 parser/testdata/01871_merge_tree_compile_expressions/ast.json create mode 100644 parser/testdata/01872_functions_to_subcolumns_analyzer/ast.json create mode 100644 parser/testdata/01880_materialized_view_to_table_type_check/ast.json create mode 100644 parser/testdata/01880_remote_ipv6/ast.json create mode 100644 parser/testdata/01881_aggregate_functions_versioning/ast.json create mode 100644 parser/testdata/01881_create_as_tuple/ast.json create mode 100644 parser/testdata/01881_to_week_monotonic_fix/ast.json create mode 100644 parser/testdata/01881_total_bytes_storage_buffer/ast.json create mode 100644 parser/testdata/01881_union_header_mismatch_bug/ast.json create mode 100644 parser/testdata/01882_check_max_parts_to_merge_at_once/ast.json create mode 100644 parser/testdata/01882_scalar_subquery_exception/ast.json create mode 100644 parser/testdata/01883_grouping_sets_crash/ast.json create mode 100644 parser/testdata/01883_subcolumns_distributed/ast.json create mode 100644 parser/testdata/01883_with_grouping_sets/ast.json create mode 100644 parser/testdata/01888_read_int_safe/ast.json create mode 100644 parser/testdata/01889_key_condition_function_chains/ast.json create mode 100644 parser/testdata/01889_sql_json_functions/ast.json create mode 100644 parser/testdata/01889_tokenize/ast.json create mode 100644 parser/testdata/01890_cross_join_explain_crash/ast.json create mode 100644 parser/testdata/01890_jit_aggregation_function_sum_long/ast.json create mode 100644 parser/testdata/01890_state_of_state/ast.json create mode 100644 parser/testdata/01890_stem/ast.json create mode 100644 parser/testdata/01891_echo/ast.json create mode 100644 parser/testdata/01891_jit_aggregation_function_any_long/ast.json create mode 100644 parser/testdata/01891_not_in_partition_prune/ast.json create mode 100644 parser/testdata/01891_not_like_partition_prune/ast.json create mode 100644 parser/testdata/01891_partition_by_uuid/ast.json create mode 100644 parser/testdata/01891_partition_hash/ast.json create mode 100644 parser/testdata/01891_partition_hash_no_long_int/ast.json create mode 100644 parser/testdata/01892_jit_aggregation_function_any_last_long/ast.json create mode 100644 parser/testdata/01892_setting_limit_offset_distributed/ast.json create mode 100644 parser/testdata/01893_jit_aggregation_function_min_long/ast.json create mode 100644 parser/testdata/01894_jit_aggregation_function_max_long/ast.json create mode 100644 parser/testdata/01895_jit_aggregation_function_avg_long/ast.json create mode 100644 parser/testdata/01896_jit_aggregation_function_if_long/ast.json create mode 100644 parser/testdata/01897_jit_aggregation_function_avg_weighted_long/ast.json create mode 100644 parser/testdata/01901_in_literal_shard_prune/ast.json create mode 100644 parser/testdata/01901_test_attach_partition_from/ast.json create mode 100644 parser/testdata/01902_dictionary_array_type/ast.json create mode 100644 parser/testdata/01902_self_aliases_in_columns/ast.json create mode 100644 parser/testdata/01902_table_function_merge_db_params/ast.json create mode 100644 parser/testdata/01902_table_function_merge_db_repr/ast.json create mode 100644 parser/testdata/01904_dictionary_default_nullable_type/ast.json create mode 100644 parser/testdata/01906_h3_to_geo/ast.json create mode 100644 parser/testdata/01906_lc_in_bug/ast.json create mode 100644 parser/testdata/01906_partition_by_multiply_by_zero/ast.json create mode 100644 parser/testdata/01907_multiple_aliases/ast.json create mode 100644 parser/testdata/01908_with_unknown_column/ast.json create mode 100644 parser/testdata/01909_mbtolou/ast.json create mode 100644 parser/testdata/01910_memory_tracking_topk/ast.json create mode 100644 parser/testdata/01910_view_dictionary/ast.json create mode 100644 parser/testdata/01910_view_dictionary_check_refresh/ast.json create mode 100644 parser/testdata/01911_logical_error_minus/ast.json create mode 100644 parser/testdata/01913_exact_rows_before_limit/ast.json create mode 100644 parser/testdata/01913_exact_rows_before_limit_full/ast.json create mode 100644 parser/testdata/01913_fix_column_transformer_replace_format/ast.json create mode 100644 parser/testdata/01913_if_int_decimal/ast.json create mode 100644 parser/testdata/01913_join_push_down_bug/ast.json create mode 100644 parser/testdata/01913_replace_dictionary/ast.json create mode 100644 parser/testdata/01913_summing_mt_and_simple_agg_function_with_lc/ast.json create mode 100644 parser/testdata/01914_exchange_dictionaries/ast.json create mode 100644 parser/testdata/01914_index_bgranvea/ast.json create mode 100644 parser/testdata/01915_create_or_replace_dictionary/ast.json create mode 100644 parser/testdata/01915_json_extract_raw_string/ast.json create mode 100644 parser/testdata/01915_merge_prewhere_virtual_column_rand_chao_wang/ast.json create mode 100644 parser/testdata/01916_low_cardinality_interval/ast.json create mode 100644 parser/testdata/01916_lowcard_dict_type/ast.json create mode 100644 parser/testdata/01916_multiple_join_view_optimize_predicate_chertus/ast.json create mode 100644 parser/testdata/01917_prewhere_column_type/ast.json create mode 100644 parser/testdata/01917_system_data_skipping_indices/ast.json create mode 100644 parser/testdata/01920_not_chain_format/ast.json create mode 100644 parser/testdata/01921_datatype_date32/ast.json create mode 100644 parser/testdata/01921_not_chain/ast.json create mode 100644 parser/testdata/01922_array_join_with_index/ast.json create mode 100644 parser/testdata/01922_sum_null_for_remote/ast.json create mode 100644 parser/testdata/01923_different_expression_name_alias/ast.json create mode 100644 parser/testdata/01923_ttl_with_modify_column/ast.json create mode 100644 parser/testdata/01924_argmax_bitmap_state/ast.json create mode 100644 parser/testdata/01925_broken_partition_id_zookeeper/ast.json create mode 100644 parser/testdata/01925_date_date_time_comparison/ast.json create mode 100644 parser/testdata/01925_jit_aggregation_function_count_long/ast.json create mode 100644 parser/testdata/01925_join_materialized_columns/ast.json create mode 100644 parser/testdata/01925_json_as_string_data_in_square_brackets/ast.json create mode 100644 parser/testdata/01925_map_populate_series_on_map/ast.json create mode 100644 parser/testdata/01925_merge_prewhere_table/ast.json create mode 100644 parser/testdata/01925_test_group_by_const_consistency/ast.json create mode 100644 parser/testdata/01925_test_storage_merge_aliases/ast.json create mode 100644 parser/testdata/01925_test_storage_merge_aliases_analyzer/ast.json create mode 100644 parser/testdata/01926_bin_unbin/ast.json create mode 100644 parser/testdata/01926_date_date_time_supertype/ast.json create mode 100644 parser/testdata/01926_order_by_desc_limit/ast.json create mode 100644 parser/testdata/01927_query_views_log_current_database/ast.json create mode 100644 parser/testdata/01930_optimize_skip_unused_shards_rewrite_in/ast.json create mode 100644 parser/testdata/01931_storage_merge_no_columns/ast.json create mode 100644 parser/testdata/01932_alter_index_with_order/ast.json create mode 100644 parser/testdata/01932_global_in_function/ast.json create mode 100644 parser/testdata/01932_null_valid_identifier/ast.json create mode 100644 parser/testdata/01932_remote_sharding_key_column/ast.json create mode 100644 parser/testdata/01933_invalid_date/ast.json create mode 100644 parser/testdata/01934_constexpr_aggregate_function_parameters/ast.json create mode 100644 parser/testdata/01936_empty_function_support_uuid/ast.json create mode 100644 parser/testdata/01936_quantiles_cannot_return_null/ast.json create mode 100644 parser/testdata/01936_three_parts_identifiers_in_wrong_places/ast.json create mode 100644 parser/testdata/01937_nested_chinese/ast.json create mode 100644 parser/testdata/01938_joins_identifiers/ast.json create mode 100644 parser/testdata/01939_type_map_json/ast.json create mode 100644 parser/testdata/01940_custom_tld_sharding_key/ast.json create mode 100644 parser/testdata/01940_pad_string/ast.json create mode 100644 parser/testdata/01940_point_in_polygon_ubsan/ast.json create mode 100644 parser/testdata/01940_totimezone_operator_monotonicity/ast.json create mode 100644 parser/testdata/01941_dict_get_has_complex_single_key/ast.json create mode 100644 parser/testdata/01942_create_table_with_sample/ast.json create mode 100644 parser/testdata/01942_dateTimeToSnowflake/ast.json create mode 100644 parser/testdata/01942_dateTimeToSnowflakeID/ast.json create mode 100644 parser/testdata/01942_snowflakeIDToDateTime/ast.json create mode 100644 parser/testdata/01942_snowflakeToDateTime/ast.json create mode 100644 parser/testdata/01943_log_column_sizes/ast.json create mode 100644 parser/testdata/01943_non_deterministic_order_key/ast.json create mode 100644 parser/testdata/01943_query_id_check/ast.json create mode 100644 parser/testdata/01944_range_max_elements/ast.json create mode 100644 parser/testdata/01946_profile_sleep/ast.json create mode 100644 parser/testdata/01947_mv_subquery/ast.json create mode 100644 parser/testdata/01948_dictionary_quoted_database_name/ast.json create mode 100644 parser/testdata/01948_group_bitmap_and_or_xor_fix/ast.json create mode 100644 parser/testdata/01948_heredoc/ast.json create mode 100644 parser/testdata/01950_aliases_bad_cast/ast.json create mode 100644 parser/testdata/01951_distributed_push_down_limit/ast.json create mode 100644 parser/testdata/01952_optimize_distributed_group_by_sharding_key/ast.json create mode 100644 parser/testdata/01958_partial_hour_timezone/ast.json create mode 100644 parser/testdata/01961_roaring_memory_tracking/ast.json create mode 100644 parser/testdata/01999_grant_with_replace/ast.json create mode 100644 parser/testdata/02000_default_from_default_empty_column/ast.json create mode 100644 parser/testdata/02000_join_on_const/ast.json create mode 100644 parser/testdata/02000_map_full_text_bloom_filter_index/ast.json create mode 100644 parser/testdata/02000_table_function_cluster_macros/ast.json create mode 100644 parser/testdata/02001_dist_on_dist_WithMergeableStateAfterAggregation/ast.json create mode 100644 parser/testdata/02001_hostname_test/ast.json create mode 100644 parser/testdata/02001_join_on_const/ast.json create mode 100644 parser/testdata/02001_shard_num_shard_count/ast.json create mode 100644 parser/testdata/02002_parse_map_int_key/ast.json create mode 100644 parser/testdata/02002_sampling_and_unknown_column_bug/ast.json create mode 100644 parser/testdata/02003_WithMergeableStateAfterAggregationAndLimit_LIMIT_BY_LIMIT_OFFSET/ast.json create mode 100644 parser/testdata/02003_bug_from_23515/ast.json create mode 100644 parser/testdata/02004_intersect_except_distinct_operators/ast.json create mode 100644 parser/testdata/02004_invalid_partition_mutation_stuck/ast.json create mode 100644 parser/testdata/02004_max_hyperscan_regex_length/ast.json create mode 100644 parser/testdata/02005_log_formatted_queries/ast.json create mode 100644 parser/testdata/02006_client_test_hint_error_name/ast.json create mode 100644 parser/testdata/02006_h3_to_geo_boundary/ast.json create mode 100644 parser/testdata/02006_test_positional_arguments/ast.json create mode 100644 parser/testdata/02006_todatetime64_from_string/ast.json create mode 100644 parser/testdata/02007_join_use_nulls/ast.json create mode 100644 parser/testdata/02008_aliased_column_distributed_bug/ast.json create mode 100644 parser/testdata/02008_complex_key_range_hashed_dictionary/ast.json create mode 100644 parser/testdata/02008_materialize_column/ast.json create mode 100644 parser/testdata/02008_test_union_distinct_in_subquery/ast.json create mode 100644 parser/testdata/02008_tuple_to_name_value_pairs/ast.json create mode 100644 parser/testdata/02009_array_join_partition/ast.json create mode 100644 parser/testdata/02009_decimal_no_trailing_zeros/ast.json create mode 100644 parser/testdata/02010_array_index_bad_cast/ast.json create mode 100644 parser/testdata/02011_dictionary_empty_attribute_list/ast.json create mode 100644 parser/testdata/02011_normalize_utf8/ast.json create mode 100644 parser/testdata/02011_tuple_vector_functions/ast.json create mode 100644 parser/testdata/02012_changed_enum_type_non_replicated/ast.json create mode 100644 parser/testdata/02012_get_server_port/ast.json create mode 100644 parser/testdata/02012_low_cardinality_uuid_with_extremes/ast.json create mode 100644 parser/testdata/02012_settings_clause_for_s3/ast.json create mode 100644 parser/testdata/02012_sha512_fixedstring/ast.json create mode 100644 parser/testdata/02012_zookeeper_changed_enum_type_incompatible/ast.json create mode 100644 parser/testdata/02013_bloom_filter_hasAll/ast.json create mode 100644 parser/testdata/02013_emptystring_cast/ast.json create mode 100644 parser/testdata/02013_json_function_null_column/ast.json create mode 100644 parser/testdata/02013_lc_nullable_and_infinity/ast.json create mode 100644 parser/testdata/02014_dict_get_nullable_key/ast.json create mode 100644 parser/testdata/02014_map_different_keys/ast.json create mode 100644 parser/testdata/02014_storage_merge_order_by/ast.json create mode 100644 parser/testdata/02015_column_default_dict_get_identifier/ast.json create mode 100644 parser/testdata/02015_division_by_nullable/ast.json create mode 100644 parser/testdata/02015_executable_user_defined_functions/ast.json create mode 100644 parser/testdata/02016_agg_empty_result_bug_28880/ast.json create mode 100644 parser/testdata/02016_aggregation_spark_bar/ast.json create mode 100644 parser/testdata/02016_bit_shift_right_for_string_integer/ast.json create mode 100644 parser/testdata/02016_order_by_with_fill_monotonic_functions_removal/ast.json create mode 100644 parser/testdata/02016_summing_mt_aggregating_column/ast.json create mode 100644 parser/testdata/02017_bit_shift_left_for_string_integer/ast.json create mode 100644 parser/testdata/02017_columns_with_dot/ast.json create mode 100644 parser/testdata/02017_columns_with_dot_2/ast.json create mode 100644 parser/testdata/02017_create_distributed_table_coredump/ast.json create mode 100644 parser/testdata/02020_cast_integer_overflow/ast.json create mode 100644 parser/testdata/02020_exponential_smoothing/ast.json create mode 100644 parser/testdata/02021_exponential_sum/ast.json create mode 100644 parser/testdata/02021_exponential_sum_shard/ast.json create mode 100644 parser/testdata/02021_h3_get_faces/ast.json create mode 100644 parser/testdata/02021_h3_is_pentagon/ast.json create mode 100644 parser/testdata/02021_h3_is_res_classIII/ast.json create mode 100644 parser/testdata/02021_map_bloom_filter_index/ast.json create mode 100644 parser/testdata/02021_map_has/ast.json create mode 100644 parser/testdata/02021_prewhere_always_true_where/ast.json create mode 100644 parser/testdata/02021_prewhere_column_optimization/ast.json create mode 100644 parser/testdata/02022_array_full_text_bloom_filter_index/ast.json create mode 100644 parser/testdata/02023_nullable_int_uint_where/ast.json create mode 100644 parser/testdata/02023_parser_number_binary_literal/ast.json create mode 100644 parser/testdata/02023_transform_or_to_in/ast.json create mode 100644 parser/testdata/02024_compile_expressions_with_short_circuit_evaluation/ast.json create mode 100644 parser/testdata/02024_create_dictionary_with_comment/ast.json create mode 100644 parser/testdata/02024_merge_regexp_assert/ast.json create mode 100644 parser/testdata/02025_dictionary_array_nested_map/ast.json create mode 100644 parser/testdata/02025_dictionary_view_different_db/ast.json create mode 100644 parser/testdata/02025_having_filter_column/ast.json create mode 100644 parser/testdata/02025_nested_func_for_if_combinator/ast.json create mode 100644 parser/testdata/02025_subcolumns_compact_parts/ast.json create mode 100644 parser/testdata/02026_accurate_cast_or_default/ast.json create mode 100644 parser/testdata/02026_arrayDifference_const/ast.json create mode 100644 parser/testdata/02026_describe_include_subcolumns/ast.json create mode 100644 parser/testdata/02027_arrayCumSumNonNegative_const/ast.json create mode 100644 parser/testdata/02027_ngrams/ast.json create mode 100644 parser/testdata/02028_add_default_database_for_alterquery_on_cluster/ast.json create mode 100644 parser/testdata/02028_create_select_settings/ast.json create mode 100644 parser/testdata/02028_system_data_skipping_indices_size/ast.json create mode 100644 parser/testdata/02028_tokens/ast.json create mode 100644 parser/testdata/02029_output_csv_null_representation/ast.json create mode 100644 parser/testdata/02030_function_mapContainsKeyLike/ast.json create mode 100644 parser/testdata/02030_tuple_filter/ast.json create mode 100644 parser/testdata/02032_short_circuit_least_greatest_bug/ast.json create mode 100644 parser/testdata/02035_isNull_isNotNull_format/ast.json create mode 100644 parser/testdata/02036_jit_short_circuit/ast.json create mode 100644 parser/testdata/02039_group_by_with_totals_having/ast.json create mode 100644 parser/testdata/02041_conversion_between_date32_and_datetime64/ast.json create mode 100644 parser/testdata/02041_openssl_hash_functions_test/ast.json create mode 100644 parser/testdata/02041_test_fuzzy_alter/ast.json create mode 100644 parser/testdata/02042_map_get_non_const_key/ast.json create mode 100644 parser/testdata/02043_user_defined_executable_function_implicit_cast/ast.json create mode 100644 parser/testdata/02044_exists_operator/ast.json create mode 100644 parser/testdata/02046_remote_table_function_named_collections/ast.json create mode 100644 parser/testdata/02047_alias_for_table_and_database_name/ast.json create mode 100644 parser/testdata/02049_lowcardinality_shortcircuit_crash/ast.json create mode 100644 parser/testdata/02053_INSERT_SELECT_MATERIALIZED/ast.json create mode 100644 parser/testdata/02067_lost_part_s3/ast.json create mode 100644 parser/testdata/02070_join_on_disk/ast.json create mode 100644 parser/testdata/02071_lower_upper_utf8_row_overlaps/ast.json create mode 100644 parser/testdata/02095_function_get_os_kernel_version/ast.json create mode 100644 parser/testdata/02096_date_time_1970_saturation/ast.json create mode 100644 parser/testdata/02096_date_time_1970_saturation2/ast.json create mode 100644 parser/testdata/02096_join_unusual_identifier_begin/ast.json create mode 100644 parser/testdata/02096_rename_atomic_hang/ast.json create mode 100644 parser/testdata/02096_sample_by_tuple/ast.json create mode 100644 parser/testdata/02096_totals_global_in_bug/ast.json create mode 100644 parser/testdata/02097_default_dict_get_add_database/ast.json create mode 100644 parser/testdata/02097_initializeAggregationNullable/ast.json create mode 100644 parser/testdata/02097_polygon_dictionary_store_key/ast.json create mode 100644 parser/testdata/02097_remove_sample_by/ast.json create mode 100644 parser/testdata/02098_date32_comparison/ast.json create mode 100644 parser/testdata/02100_alter_scalar_circular_deadlock/ast.json create mode 100644 parser/testdata/02100_limit_push_down_bug/ast.json create mode 100644 parser/testdata/02100_now64_types_bug/ast.json create mode 100644 parser/testdata/02100_replaceRegexpAll_bug/ast.json create mode 100644 parser/testdata/02111_function_mapExtractKeyLike/ast.json create mode 100644 parser/testdata/02111_global_context_temporary_tables/ast.json create mode 100644 parser/testdata/02111_json_column_name_encoding/ast.json create mode 100644 parser/testdata/02111_modify_table_comment/ast.json create mode 100644 parser/testdata/02111_with_fill_no_rows/ast.json create mode 100644 parser/testdata/02112_skip_index_set_and_or/ast.json create mode 100644 parser/testdata/02112_with_fill_interval/ast.json create mode 100644 parser/testdata/02113_base64encode_trailing_bytes/ast.json create mode 100644 parser/testdata/02113_format_row/ast.json create mode 100644 parser/testdata/02113_format_row_bug/ast.json create mode 100644 parser/testdata/02114_bool_type/ast.json create mode 100644 parser/testdata/02115_map_contains_analyzer/ast.json create mode 100644 parser/testdata/02115_rewrite_local_join_right_distribute_table/ast.json create mode 100644 parser/testdata/02116_tuple_element_analyzer/ast.json create mode 100644 parser/testdata/02123_MySQLWire_regression/ast.json create mode 100644 parser/testdata/02124_clickhouse_dictionary_with_predefined_configuration/ast.json create mode 100644 parser/testdata/02124_comparison_betwwen_decimal_and_float/ast.json create mode 100644 parser/testdata/02124_encrypt_decrypt_nullable/ast.json create mode 100644 parser/testdata/02124_insert_deduplication_token/ast.json create mode 100644 parser/testdata/02124_insert_deduplication_token_materialized_views/ast.json create mode 100644 parser/testdata/02124_insert_deduplication_token_replica/ast.json create mode 100644 parser/testdata/02124_uncompressed_cache/ast.json create mode 100644 parser/testdata/02125_constant_if_condition_and_not_existing_column/ast.json create mode 100644 parser/testdata/02125_dict_get_type_nullable_fix/ast.json create mode 100644 parser/testdata/02125_fix_storage_filelog/ast.json create mode 100644 parser/testdata/02125_low_cardinality_int256/ast.json create mode 100644 parser/testdata/02125_query_views_log/ast.json create mode 100644 parser/testdata/02125_transform_decimal_bug/ast.json create mode 100644 parser/testdata/02126_lc_window_functions/ast.json create mode 100644 parser/testdata/02127_storage_join_settings_with_persistency/ast.json create mode 100644 parser/testdata/02128_cast_nullable/ast.json create mode 100644 parser/testdata/02128_hex_bin_on_uuid/ast.json create mode 100644 parser/testdata/02129_add_column_add_ttl/ast.json create mode 100644 parser/testdata/02129_window_functions_disable_optimizations/ast.json create mode 100644 parser/testdata/02131_materialize_column_cast/ast.json create mode 100644 parser/testdata/02131_mv_many_chunks_bug/ast.json create mode 100644 parser/testdata/02131_remove_columns_in_subquery/ast.json create mode 100644 parser/testdata/02131_row_policies_combination/ast.json create mode 100644 parser/testdata/02131_skip_index_not_materialized/ast.json create mode 100644 parser/testdata/02131_used_row_policies_in_query_log/ast.json create mode 100644 parser/testdata/02132_empty_mutation_livelock/ast.json create mode 100644 parser/testdata/02133_classification/ast.json create mode 100644 parser/testdata/02133_distributed_queries_formatting/ast.json create mode 100644 parser/testdata/02133_final_prewhere_where_lowcardinality_replacing/ast.json create mode 100644 parser/testdata/02133_issue_32458/ast.json create mode 100644 parser/testdata/02137_mv_into_join/ast.json create mode 100644 parser/testdata/02139_MV_with_scalar_subquery/ast.json create mode 100644 parser/testdata/02144_avg_ubsan/ast.json create mode 100644 parser/testdata/02146_mv_non_phys/ast.json create mode 100644 parser/testdata/02148_issue_32737/ast.json create mode 100644 parser/testdata/02149_issue_32487/ast.json create mode 100644 parser/testdata/02149_read_in_order_fixed_prefix/ast.json create mode 100644 parser/testdata/02150_replace_regexp_all_empty_match/ast.json create mode 100644 parser/testdata/02151_lc_prefetch/ast.json create mode 100644 parser/testdata/02151_replace_regexp_all_empty_match_alternative/ast.json create mode 100644 parser/testdata/02152_bool_type/ast.json create mode 100644 parser/testdata/02152_count_distinct_optimization/ast.json create mode 100644 parser/testdata/02152_csv_tuple/ast.json create mode 100644 parser/testdata/02152_dictionary_date32_type/ast.json create mode 100644 parser/testdata/02152_short_circuit_throw_if/ast.json create mode 100644 parser/testdata/02154_bit_slice_for_fixedstring/ast.json create mode 100644 parser/testdata/02154_bit_slice_for_string/ast.json create mode 100644 parser/testdata/02154_bitmap_contains/ast.json create mode 100644 parser/testdata/02154_default_keyword_insert/ast.json create mode 100644 parser/testdata/02155_binary_op_between_float_and_decimal/ast.json create mode 100644 parser/testdata/02155_dictionary_comment/ast.json create mode 100644 parser/testdata/02155_h3_to_center_child/ast.json create mode 100644 parser/testdata/02155_multiple_inserts_for_formats_with_suffix/ast.json create mode 100644 parser/testdata/02155_nested_lc_defalut_bug/ast.json create mode 100644 parser/testdata/02155_parse_date_lowcard_default_throw/ast.json create mode 100644 parser/testdata/02155_read_in_order_max_rows_to_read/ast.json create mode 100644 parser/testdata/02156_storage_merge_prewhere/ast.json create mode 100644 parser/testdata/02156_storage_merge_prewhere_2/ast.json create mode 100644 parser/testdata/02156_storage_merge_prewhere_not_ready_set_bug/ast.json create mode 100644 parser/testdata/02157_line_as_string_output_format/ast.json create mode 100644 parser/testdata/02158_contingency/ast.json create mode 100644 parser/testdata/02158_proportions_ztest/ast.json create mode 100644 parser/testdata/02158_ztest/ast.json create mode 100644 parser/testdata/02159_left_right/ast.json create mode 100644 parser/testdata/02160_h3_cell_area_m2/ast.json create mode 100644 parser/testdata/02160_h3_cell_area_rads2/ast.json create mode 100644 parser/testdata/02160_h3_hex_area_Km2/ast.json create mode 100644 parser/testdata/02160_special_functions/ast.json create mode 100644 parser/testdata/02161_addressToLineWithInlines/ast.json create mode 100644 parser/testdata/02161_array_first_last/ast.json create mode 100644 parser/testdata/02162_array_first_last_index/ast.json create mode 100644 parser/testdata/02162_range_hashed_dictionary_ddl_expression/ast.json create mode 100644 parser/testdata/02163_shard_num/ast.json create mode 100644 parser/testdata/02164_materialized_view_support_virtual_column/ast.json create mode 100644 parser/testdata/02165_h3_edge_length_km/ast.json create mode 100644 parser/testdata/02165_h3_exact_edge_length_Km/ast.json create mode 100644 parser/testdata/02165_h3_exact_edge_length_m/ast.json create mode 100644 parser/testdata/02165_h3_exact_edge_length_rads/ast.json create mode 100644 parser/testdata/02165_h3_num_hexagons/ast.json create mode 100644 parser/testdata/02167_columns_with_dots_default_values/ast.json create mode 100644 parser/testdata/02168_avro_bug/ast.json create mode 100644 parser/testdata/02169_fix_view_offset_limit_setting/ast.json create mode 100644 parser/testdata/02169_map_functions/ast.json create mode 100644 parser/testdata/02174_cte_scalar_cache/ast.json create mode 100644 parser/testdata/02174_cte_scalar_cache_mv/ast.json create mode 100644 parser/testdata/02175_distributed_join_current_database/ast.json create mode 100644 parser/testdata/02176_dict_get_has_implicit_key_cast/ast.json create mode 100644 parser/testdata/02176_optimize_aggregation_in_order_empty/ast.json create mode 100644 parser/testdata/02176_toStartOfWeek_overflow_pruning/ast.json create mode 100644 parser/testdata/02177_issue_31009/ast.json create mode 100644 parser/testdata/02177_merge_optimize_aggregation_in_order/ast.json create mode 100644 parser/testdata/02177_sum_if_not_found/ast.json create mode 100644 parser/testdata/02178_column_function_insert_from/ast.json create mode 100644 parser/testdata/02179_bool_type/ast.json create mode 100644 parser/testdata/02179_degrees_radians/ast.json create mode 100644 parser/testdata/02179_key_condition_no_common_type/ast.json create mode 100644 parser/testdata/02179_range_hashed_dictionary_invalid_interval/ast.json create mode 100644 parser/testdata/02179_sparse_columns_detach/ast.json create mode 100644 parser/testdata/02180_insert_into_values_settings/ast.json create mode 100644 parser/testdata/02181_dictionary_attach_detach/ast.json create mode 100644 parser/testdata/02183_array_tuple_literals_remote/ast.json create mode 100644 parser/testdata/02183_combinator_if/ast.json create mode 100644 parser/testdata/02183_dictionary_date_types/ast.json create mode 100644 parser/testdata/02183_dictionary_no_attributes/ast.json create mode 100644 parser/testdata/02184_default_table_engine/ast.json create mode 100644 parser/testdata/02184_hash_functions_and_ip_types/ast.json create mode 100644 parser/testdata/02184_ipv6_cast_test/ast.json create mode 100644 parser/testdata/02184_ipv6_select_parsing/ast.json create mode 100644 parser/testdata/02184_nested_tuple/ast.json create mode 100644 parser/testdata/02184_range_hashed_dictionary_outside_range_values/ast.json create mode 100644 parser/testdata/02184_storage_add_support_ttl/ast.json create mode 100644 parser/testdata/02185_arraySlice_negative_offset_size/ast.json create mode 100644 parser/testdata/02185_range_hashed_dictionary_open_ranges/ast.json create mode 100644 parser/testdata/02185_split_by_char/ast.json create mode 100644 parser/testdata/02186_range_hashed_dictionary_intersecting_intervals/ast.json create mode 100644 parser/testdata/02187_insert_values_with_mv/ast.json create mode 100644 parser/testdata/02187_test_final_and_limit_modifier/ast.json create mode 100644 parser/testdata/02188_parser_dictionary_primary_key/ast.json create mode 100644 parser/testdata/02190_current_metrics_query/ast.json create mode 100644 parser/testdata/02191_nested_with_dots/ast.json create mode 100644 parser/testdata/02191_parse_date_time_best_effort_more_cases/ast.json create mode 100644 parser/testdata/02193_async_insert_tcp_client_1/ast.json create mode 100644 parser/testdata/02205_ephemeral_1/ast.json create mode 100644 parser/testdata/02205_map_populate_series_non_const/ast.json create mode 100644 parser/testdata/02205_postgresql_functions/ast.json create mode 100644 parser/testdata/02206_array_starts_ends_with/ast.json create mode 100644 parser/testdata/02206_minimum_sample_size/ast.json create mode 100644 parser/testdata/02207_key_condition_floats/ast.json create mode 100644 parser/testdata/02207_subseconds_intervals/ast.json create mode 100644 parser/testdata/02207_ttl_move_if_exists/ast.json create mode 100644 parser/testdata/02209_short_circuit_node_without_parents/ast.json create mode 100644 parser/testdata/02210_append_to_dev_dull/ast.json create mode 100644 parser/testdata/02210_toColumnTypeName_toLowCardinality_const/ast.json create mode 100644 parser/testdata/02211_jsonl_format_extension/ast.json create mode 100644 parser/testdata/02212_cte_and_table_alias/ast.json create mode 100644 parser/testdata/02212_h3_get_pentagon_indexes/ast.json create mode 100644 parser/testdata/02212_h3_get_res0_indexes/ast.json create mode 100644 parser/testdata/02212_h3_point_dist/ast.json create mode 100644 parser/testdata/02222_allow_experimental_projection_optimization__enable_global_with_statement/ast.json create mode 100644 parser/testdata/02223_h3_test_const_columns/ast.json create mode 100644 parser/testdata/02223_insert_select_schema_inference/ast.json create mode 100644 parser/testdata/02224_parallel_distributed_insert_select_cluster/ast.json create mode 100644 parser/testdata/02224_s2_test_const_columns/ast.json create mode 100644 parser/testdata/02226_analyzer_or_like_combine/ast.json create mode 100644 parser/testdata/02226_async_insert_table_function/ast.json create mode 100644 parser/testdata/02226_in_untuple_issue_34810/ast.json create mode 100644 parser/testdata/02226_low_cardinality_text_bloom_filter_index/ast.json create mode 100644 parser/testdata/02227_union_match_by_name/ast.json create mode 100644 parser/testdata/02228_merge_tree_insert_memory_usage/ast.json create mode 100644 parser/testdata/02230_create_table_as_ignore_ttl/ast.json create mode 100644 parser/testdata/02231_bloom_filter_sizing/ast.json create mode 100644 parser/testdata/02231_buffer_aggregate_states_leak/ast.json create mode 100644 parser/testdata/02231_hierarchical_dictionaries_constant/ast.json create mode 100644 parser/testdata/02232_functions_to_subcolumns_alias/ast.json create mode 100644 parser/testdata/02232_partition_pruner_mixed_constant_type/ast.json create mode 100644 parser/testdata/02232_partition_pruner_single_point/ast.json create mode 100644 parser/testdata/02233_optimize_aggregation_in_order_prefix/ast.json create mode 100644 parser/testdata/02233_optimize_aggregation_in_order_prefix_with_merge/ast.json create mode 100644 parser/testdata/02233_set_enable_with_statement_cte_perf/ast.json create mode 100644 parser/testdata/02233_with_total_empty_chunk/ast.json create mode 100644 parser/testdata/02234_cast_to_ip_address/ast.json create mode 100644 parser/testdata/02234_column_function_short_circuit/ast.json create mode 100644 parser/testdata/02235_add_part_offset_virtual_column/ast.json create mode 100644 parser/testdata/02235_check_table_sparse_serialization/ast.json create mode 100644 parser/testdata/02236_explain_pipeline_join/ast.json create mode 100644 parser/testdata/02236_json_each_row_empty_map_schema_inference/ast.json create mode 100644 parser/testdata/02240_asof_join_biginteger/ast.json create mode 100644 parser/testdata/02240_filesystem_cache_bypass_cache_threshold/ast.json create mode 100644 parser/testdata/02240_filesystem_query_cache/ast.json create mode 100644 parser/testdata/02240_get_type_serialization_streams/ast.json create mode 100644 parser/testdata/02241_array_first_last_or_null/ast.json create mode 100644 parser/testdata/02242_if_then_else_null_bug/ast.json create mode 100644 parser/testdata/02242_join_rocksdb/ast.json create mode 100644 parser/testdata/02242_make_date/ast.json create mode 100644 parser/testdata/02242_make_date_mysql/ast.json create mode 100644 parser/testdata/02242_negative_datetime64/ast.json create mode 100644 parser/testdata/02242_optimize_to_subcolumns_no_storage/ast.json create mode 100644 parser/testdata/02242_subcolumns_sizes/ast.json create mode 100644 parser/testdata/02242_throw_if_constant_argument/ast.json create mode 100644 parser/testdata/02243_in_ip_address/ast.json create mode 100644 parser/testdata/02243_ipv6_long_parsing/ast.json create mode 100644 parser/testdata/02243_make_date32/ast.json create mode 100644 parser/testdata/02243_make_date32_mysql/ast.json create mode 100644 parser/testdata/02244_casewithexpression_return_type/ast.json create mode 100644 parser/testdata/02244_column_names_in_shcmea_inference/ast.json create mode 100644 parser/testdata/02244_ip_address_invalid_insert/ast.json create mode 100644 parser/testdata/02244_lowcardinality_hash_join/ast.json create mode 100644 parser/testdata/02244_make_datetime/ast.json create mode 100644 parser/testdata/02244_url_engine_headers_test/ast.json create mode 100644 parser/testdata/02245_format_string_stack_overflow/ast.json create mode 100644 parser/testdata/02245_join_with_nullable_lowcardinality_crash/ast.json create mode 100644 parser/testdata/02245_make_datetime64/ast.json create mode 100644 parser/testdata/02245_s3_support_read_nested_column/ast.json create mode 100644 parser/testdata/02245_s3_virtual_columns/ast.json create mode 100644 parser/testdata/02245_weird_partitions_pruning/ast.json create mode 100644 parser/testdata/02246_flatten_tuple/ast.json create mode 100644 parser/testdata/02247_fix_extract_parser/ast.json create mode 100644 parser/testdata/02248_nullable_custom_types_to_string/ast.json create mode 100644 parser/testdata/02249_insert_select_from_input_schema_inference/ast.json create mode 100644 parser/testdata/02249_parse_date_time_basic/ast.json create mode 100644 parser/testdata/02250_insert_select_from_file_schema_inference/ast.json create mode 100644 parser/testdata/02251_alter_enum_nested_struct/ast.json create mode 100644 parser/testdata/02252_executable_user_defined_function_short_circuit/ast.json create mode 100644 parser/testdata/02252_jit_profile_events/ast.json create mode 100644 parser/testdata/02252_reset_non_existing_setting/ast.json create mode 100644 parser/testdata/02265_column_ttl/ast.json create mode 100644 parser/testdata/02265_per_table_ttl_mutation_on_change/ast.json create mode 100644 parser/testdata/02265_rename_join_ordinary_to_atomic/ast.json create mode 100644 parser/testdata/02266_auto_add_nullable/ast.json create mode 100644 parser/testdata/02267_empty_arrays_read_reverse/ast.json create mode 100644 parser/testdata/02267_insert_empty_data/ast.json create mode 100644 parser/testdata/02267_jsonlines_ndjson_format/ast.json create mode 100644 parser/testdata/02267_special_operator_parse_alias_check/ast.json create mode 100644 parser/testdata/02267_type_inference_for_insert_into_function_null/ast.json create mode 100644 parser/testdata/02268_json_wrong_root_type_in_schema_inference/ast.json create mode 100644 parser/testdata/02269_insert_select_with_format_without_schema_inference/ast.json create mode 100644 parser/testdata/02269_to_start_of_interval_overflow/ast.json create mode 100644 parser/testdata/02271_fix_column_matcher_and_column_transformer/ast.json create mode 100644 parser/testdata/02271_replace_partition_many_tables/ast.json create mode 100644 parser/testdata/02271_temporary_table_show_rows_bytes/ast.json create mode 100644 parser/testdata/02276_full_sort_join_unsupported/ast.json create mode 100644 parser/testdata/02277_full_sort_join_misc/ast.json create mode 100644 parser/testdata/02280_add_query_level_settings/ast.json create mode 100644 parser/testdata/02281_limit_by_distributed/ast.json create mode 100644 parser/testdata/02282_array_distance/ast.json create mode 100644 parser/testdata/02283_array_norm/ast.json create mode 100644 parser/testdata/02285_executable_user_defined_function_group_by/ast.json create mode 100644 parser/testdata/02285_hex_bin_support_more_types/ast.json create mode 100644 parser/testdata/02286_convert_decimal_type/ast.json create mode 100644 parser/testdata/02286_function_wyhash/ast.json create mode 100644 parser/testdata/02286_quantile_tdigest_infinity/ast.json create mode 100644 parser/testdata/02286_tuple_numeric_identifier/ast.json create mode 100644 parser/testdata/02286_vertical_merges_missed_column/ast.json create mode 100644 parser/testdata/02287_legacy_column_name_of_tuple_literal_over_distributed/ast.json create mode 100644 parser/testdata/02291_dictionary_scalar_subquery_reload/ast.json create mode 100644 parser/testdata/02291_join_const_literal_36279/ast.json create mode 100644 parser/testdata/02292_h3_unidirectional_funcs/ast.json create mode 100644 parser/testdata/02292_hash_array_tuples/ast.json create mode 100644 parser/testdata/02292_nested_not_flattened_detach/ast.json create mode 100644 parser/testdata/02293_arrow_dictionary_indexes/ast.json create mode 100644 parser/testdata/02293_grouping_function/ast.json create mode 100644 parser/testdata/02293_grouping_function_group_by/ast.json create mode 100644 parser/testdata/02293_h3_distance/ast.json create mode 100644 parser/testdata/02293_h3_hex_ring/ast.json create mode 100644 parser/testdata/02293_h3_line/ast.json create mode 100644 parser/testdata/02293_ilike_on_fixed_strings/ast.json create mode 100644 parser/testdata/02293_optimize_aggregation_in_order_Array_functions/ast.json create mode 100644 parser/testdata/02294_decimal_second_errors/ast.json create mode 100644 parser/testdata/02294_dictionaries_hierarchical_index/ast.json create mode 100644 parser/testdata/02294_fp_seconds_profile/ast.json create mode 100644 parser/testdata/02294_nothing_arguments_in_functions/ast.json create mode 100644 parser/testdata/02294_optimize_aggregation_in_order_prefix_Array_functions/ast.json create mode 100644 parser/testdata/02294_stringsearch_with_nonconst_needle/ast.json create mode 100644 parser/testdata/02295_GROUP_BY_AggregateFunction/ast.json create mode 100644 parser/testdata/02296_nullable_arguments_in_array_filter/ast.json create mode 100644 parser/testdata/02296_ttl_non_deterministic/ast.json create mode 100644 parser/testdata/02302_clash_const_aggegate_join/ast.json create mode 100644 parser/testdata/02302_join_auto_lc_nullable_bug/ast.json create mode 100644 parser/testdata/02302_lc_nullable_string_insert_as_number/ast.json create mode 100644 parser/testdata/02302_projections_GROUP_BY_ORDERY_BY_optimize_aggregation_in_order/ast.json create mode 100644 parser/testdata/02302_s3_file_pruning/ast.json create mode 100644 parser/testdata/02303_cast_nullable_to_custom_types/ast.json create mode 100644 parser/testdata/02304_grouping_set_order_by/ast.json create mode 100644 parser/testdata/02304_orc_arrow_parquet_string_as_string/ast.json create mode 100644 parser/testdata/02306_part_types_profile_events/ast.json create mode 100644 parser/testdata/02307_join_get_array_null/ast.json create mode 100644 parser/testdata/02310_generate_multi_columns_with_uuid/ast.json create mode 100644 parser/testdata/02310_uuid_v7/ast.json create mode 100644 parser/testdata/02311_create_table_with_unknown_format/ast.json create mode 100644 parser/testdata/02311_range_hashed_dictionary_range_cast/ast.json create mode 100644 parser/testdata/02311_system_zookeeper_insert/ast.json create mode 100644 parser/testdata/02312_is_not_null_prewhere/ast.json create mode 100644 parser/testdata/02312_parquet_orc_arrow_names_tuples/ast.json create mode 100644 parser/testdata/02313_cross_join_dup_col_names/ast.json create mode 100644 parser/testdata/02313_displayname/ast.json create mode 100644 parser/testdata/02313_group_by_modifiers_with_non_default_types/ast.json create mode 100644 parser/testdata/02313_multiple_limits/ast.json create mode 100644 parser/testdata/02313_test_fpc_codec/ast.json create mode 100644 parser/testdata/02314_csv_tsv_skip_first_lines/ast.json create mode 100644 parser/testdata/02315_grouping_constant_folding/ast.json create mode 100644 parser/testdata/02315_pmj_union_ubsan_35857/ast.json create mode 100644 parser/testdata/02316_cast_to_ip_address_default_column/ast.json create mode 100644 parser/testdata/02316_literal_no_octal/ast.json create mode 100644 parser/testdata/02316_values_table_func_bug/ast.json create mode 100644 parser/testdata/02317_distinct_in_order_optimization/ast.json create mode 100644 parser/testdata/02317_functions_with_nothing/ast.json create mode 100644 parser/testdata/02317_like_with_trailing_escape/ast.json create mode 100644 parser/testdata/02318_template_schema_inference_bug/ast.json create mode 100644 parser/testdata/02319_dict_get_check_arguments_size/ast.json create mode 100644 parser/testdata/02319_lightweight_delete_on_merge_tree/ast.json create mode 100644 parser/testdata/02319_lightweight_delete_on_merge_tree_compact_parts/ast.json create mode 100644 parser/testdata/02319_quantile_interpolated_weighted/ast.json create mode 100644 parser/testdata/02319_sql_standard_create_drop_index/ast.json create mode 100644 parser/testdata/02319_timeslots_dt64/ast.json create mode 100644 parser/testdata/02320_alter_columns_with_dots/ast.json create mode 100644 parser/testdata/02320_mapped_array_witn_const_nullable/ast.json create mode 100644 parser/testdata/02321_nested_short_circuit_functions/ast.json create mode 100644 parser/testdata/02322_sql_insert_format/ast.json create mode 100644 parser/testdata/02323_null_modifier_in_table_function/ast.json create mode 100644 parser/testdata/02324_map_combinator_bug/ast.json create mode 100644 parser/testdata/02325_compatibility_setting_2/ast.json create mode 100644 parser/testdata/02325_dates_schema_inference/ast.json create mode 100644 parser/testdata/02326_numbers_from_json_strings_schema_inference/ast.json create mode 100644 parser/testdata/02327_try_infer_integers_schema_inference/ast.json create mode 100644 parser/testdata/02336_sparse_columns_s3/ast.json create mode 100644 parser/testdata/02337_analyzer_columns_basic/ast.json create mode 100644 parser/testdata/02337_base58/ast.json create mode 100644 parser/testdata/02337_check_translate_qualified_names_matcher/ast.json create mode 100644 parser/testdata/02337_multiple_joins_original_names/ast.json create mode 100644 parser/testdata/02338_analyzer_constants_basic/ast.json create mode 100644 parser/testdata/02339_analyzer_matcher_basic/ast.json create mode 100644 parser/testdata/02340_analyzer_functions/ast.json create mode 100644 parser/testdata/02340_union_header/ast.json create mode 100644 parser/testdata/02341_analyzer_aliases_basics/ast.json create mode 100644 parser/testdata/02342_analyzer_compound_types/ast.json create mode 100644 parser/testdata/02343_aggregation_pipeline/ast.json create mode 100644 parser/testdata/02343_analyzer_column_transformers_strict/ast.json create mode 100644 parser/testdata/02343_analyzer_lambdas/ast.json create mode 100644 parser/testdata/02343_analyzer_lambdas_issue_28083/ast.json create mode 100644 parser/testdata/02343_analyzer_lambdas_issue_36677/ast.json create mode 100644 parser/testdata/02343_group_by_use_nulls/ast.json create mode 100644 parser/testdata/02343_group_by_use_nulls_distributed/ast.json create mode 100644 parser/testdata/02343_read_from_s3_compressed_blocks/ast.json create mode 100644 parser/testdata/02344_analyzer_multiple_aliases_for_expression/ast.json create mode 100644 parser/testdata/02344_distinct_limit_distiributed/ast.json create mode 100644 parser/testdata/02344_insert_profile_events_stress/ast.json create mode 100644 parser/testdata/02345_analyzer_subqueries/ast.json create mode 100644 parser/testdata/02345_create_table_allow_trailing_comma/ast.json create mode 100644 parser/testdata/02345_implicit_transaction/ast.json create mode 100644 parser/testdata/02345_partial_sort_transform_optimization/ast.json create mode 100644 parser/testdata/02346_additional_filters/ast.json create mode 100644 parser/testdata/02346_additional_filters_distr/ast.json create mode 100644 parser/testdata/02346_additional_filters_index/ast.json create mode 100644 parser/testdata/02346_exclude_materialize_skip_indexes_on_insert/ast.json create mode 100644 parser/testdata/02346_exclude_materialize_skip_indexes_on_merge/ast.json create mode 100644 parser/testdata/02346_non_negative_derivative/ast.json create mode 100644 parser/testdata/02346_position_countsubstrings_zero_byte/ast.json create mode 100644 parser/testdata/02346_text_index_array_support/ast.json create mode 100644 parser/testdata/02346_text_index_bug47393/ast.json create mode 100644 parser/testdata/02346_text_index_bug54541/ast.json create mode 100644 parser/testdata/02346_text_index_bug59039/ast.json create mode 100644 parser/testdata/02346_text_index_bug62681/ast.json create mode 100644 parser/testdata/02346_text_index_bug84805/ast.json create mode 100644 parser/testdata/02346_text_index_bug87887/ast.json create mode 100644 parser/testdata/02346_text_index_bug88080/ast.json create mode 100644 parser/testdata/02346_text_index_bug89605/ast.json create mode 100644 parser/testdata/02346_text_index_coalescingmergetree/ast.json create mode 100644 parser/testdata/02346_text_index_collapsingmergetree/ast.json create mode 100644 parser/testdata/02346_text_index_creation/ast.json create mode 100644 parser/testdata/02346_text_index_default_granularity/ast.json create mode 100644 parser/testdata/02346_text_index_detach_attach/ast.json create mode 100644 parser/testdata/02346_text_index_dictionary_cache/ast.json create mode 100644 parser/testdata/02346_text_index_dictionary_frontcoding/ast.json create mode 100644 parser/testdata/02346_text_index_direct_read/ast.json create mode 100644 parser/testdata/02346_text_index_direct_read_crash/ast.json create mode 100644 parser/testdata/02346_text_index_direct_read_with_query_condition_cache/ast.json create mode 100644 parser/testdata/02346_text_index_experimental_flag/ast.json create mode 100644 parser/testdata/02346_text_index_function_hasAnyAllTokens/ast.json create mode 100644 parser/testdata/02346_text_index_function_hasAnyAllTokens_partially_materialized/ast.json create mode 100644 parser/testdata/02346_text_index_functions_with_empty_needle/ast.json create mode 100644 parser/testdata/02346_text_index_header_cache/ast.json create mode 100644 parser/testdata/02346_text_index_hits/ast.json create mode 100644 parser/testdata/02346_text_index_map_support/ast.json create mode 100644 parser/testdata/02346_text_index_match_predicate/ast.json create mode 100644 parser/testdata/02346_text_index_on_lower_column/ast.json create mode 100644 parser/testdata/02346_text_index_parallel_replicas/ast.json create mode 100644 parser/testdata/02346_text_index_part_format/ast.json create mode 100644 parser/testdata/02346_text_index_postings_cache/ast.json create mode 100644 parser/testdata/02346_text_index_prefetch/ast.json create mode 100644 parser/testdata/02346_text_index_preprocessor/ast.json create mode 100644 parser/testdata/02346_text_index_queries/ast.json create mode 100644 parser/testdata/02346_text_index_replacingmergetree/ast.json create mode 100644 parser/testdata/02346_text_index_summingmergetree/ast.json create mode 100644 parser/testdata/02346_to_hour_monotonicity_fix/ast.json create mode 100644 parser/testdata/02346_to_hour_monotonicity_fix_2/ast.json create mode 100644 parser/testdata/02347_rank_corr_size_overflow/ast.json create mode 100644 parser/testdata/02350_views_max_insert_threads/ast.json create mode 100644 parser/testdata/02351_Map_combinator_dist/ast.json create mode 100644 parser/testdata/02352_grouby_shadows_arg/ast.json create mode 100644 parser/testdata/02352_lightweight_delete/ast.json create mode 100644 parser/testdata/02352_lightweight_delete_in_partition/ast.json create mode 100644 parser/testdata/02352_lightweight_delete_on_replicated_merge_tree/ast.json create mode 100644 parser/testdata/02353_ascii/ast.json create mode 100644 parser/testdata/02353_isnullable/ast.json create mode 100644 parser/testdata/02353_partition_prune_nullable_key/ast.json create mode 100644 parser/testdata/02353_simdjson_buffer_overflow/ast.json create mode 100644 parser/testdata/02353_translate/ast.json create mode 100644 parser/testdata/02354_array_lowcardinality/ast.json create mode 100644 parser/testdata/02354_distributed_with_external_aggregation_memory_usage/ast.json create mode 100644 parser/testdata/02354_numeric_literals_with_underscores/ast.json create mode 100644 parser/testdata/02354_parse_timedelta/ast.json create mode 100644 parser/testdata/02354_read_in_order_prewhere/ast.json create mode 100644 parser/testdata/02354_tuple_element_with_default/ast.json create mode 100644 parser/testdata/02354_tuple_lowcardinality/ast.json create mode 100644 parser/testdata/02354_vector_search_adaptive_index_granularity/ast.json create mode 100644 parser/testdata/02354_vector_search_and_other_skipping_indexes/ast.json create mode 100644 parser/testdata/02354_vector_search_binary_quantization/ast.json create mode 100644 parser/testdata/02354_vector_search_choose_correct_index/ast.json create mode 100644 parser/testdata/02354_vector_search_default_granularity/ast.json create mode 100644 parser/testdata/02354_vector_search_detach_attach/ast.json create mode 100644 parser/testdata/02354_vector_search_different_array_sizes/ast.json create mode 100644 parser/testdata/02354_vector_search_drop_table_clear_cache/ast.json create mode 100644 parser/testdata/02354_vector_search_empty_arrays_or_default_values/ast.json create mode 100644 parser/testdata/02354_vector_search_expansion_search/ast.json create mode 100644 parser/testdata/02354_vector_search_index_creation_negative/ast.json create mode 100644 parser/testdata/02354_vector_search_multiple_indexes/ast.json create mode 100644 parser/testdata/02354_vector_search_multiple_marks/ast.json create mode 100644 parser/testdata/02354_vector_search_part_format/ast.json create mode 100644 parser/testdata/02354_vector_search_postfiltering_bug/ast.json create mode 100644 parser/testdata/02354_vector_search_pre_and_post_filtering/ast.json create mode 100644 parser/testdata/02354_vector_search_queries/ast.json create mode 100644 parser/testdata/02354_vector_search_reference_vector_types/ast.json create mode 100644 parser/testdata/02354_vector_search_rescoring/ast.json create mode 100644 parser/testdata/02354_vector_search_rescoring_and_prewhere/ast.json create mode 100644 parser/testdata/02354_vector_search_rescoring_distance_in_select_list/ast.json create mode 100644 parser/testdata/02354_vector_search_subquery/ast.json create mode 100644 parser/testdata/02354_vector_search_unquoted_index_parameters/ast.json create mode 100644 parser/testdata/02354_vector_search_vector_similarity_index_cache/ast.json create mode 100644 parser/testdata/02354_vector_search_with_huge_dimension/ast.json create mode 100644 parser/testdata/02354_with_statement_non_exist_column/ast.json create mode 100644 parser/testdata/02355_column_type_name_lc/ast.json create mode 100644 parser/testdata/02355_control_block_size_in_aggregator/ast.json create mode 100644 parser/testdata/02355_control_block_size_in_array_join/ast.json create mode 100644 parser/testdata/02356_insert_query_log_metrics/ast.json create mode 100644 parser/testdata/02356_trivial_count_with_empty_set/ast.json create mode 100644 parser/testdata/02357_file_default_value/ast.json create mode 100644 parser/testdata/02360_small_notation_h_for_hour_interval/ast.json create mode 100644 parser/testdata/02363_mapupdate_improve/ast.json create mode 100644 parser/testdata/02364_dictionary_datetime_64_attribute_crash/ast.json create mode 100644 parser/testdata/02364_multiSearch_function_family/ast.json create mode 100644 parser/testdata/02364_setting_cross_to_inner_rewrite/ast.json create mode 100644 parser/testdata/02364_window_case/ast.json create mode 100644 parser/testdata/02365_multisearch_random_tests/ast.json create mode 100644 parser/testdata/02366_asof_optimize_predicate_bug_37813/ast.json create mode 100644 parser/testdata/02366_direct_dictionary_dict_has/ast.json create mode 100644 parser/testdata/02366_explain_query_tree/ast.json create mode 100644 parser/testdata/02366_kql_create_table/ast.json create mode 100644 parser/testdata/02366_kql_datatype/ast.json create mode 100644 parser/testdata/02366_kql_distinct/ast.json create mode 100644 parser/testdata/02366_kql_func_binary/ast.json create mode 100644 parser/testdata/02366_kql_func_datetime/ast.json create mode 100644 parser/testdata/02366_kql_func_dynamic/ast.json create mode 100644 parser/testdata/02366_kql_func_ip/ast.json create mode 100644 parser/testdata/02366_kql_func_math/ast.json create mode 100644 parser/testdata/02366_kql_func_scalar/ast.json create mode 100644 parser/testdata/02366_kql_func_string/ast.json create mode 100644 parser/testdata/02366_kql_mvexpand/ast.json create mode 100644 parser/testdata/02366_kql_operator_in_sql/ast.json create mode 100644 parser/testdata/02366_normalize_aggregate_function_types_and_states/ast.json create mode 100644 parser/testdata/02366_window_function_order_by/ast.json create mode 100644 parser/testdata/02366_with_fill_date/ast.json create mode 100644 parser/testdata/02367_analyzer_table_alias_columns/ast.json create mode 100644 parser/testdata/02367_optimize_trivial_count_with_array_join/ast.json create mode 100644 parser/testdata/02368_analyzer_table_functions/ast.json create mode 100644 parser/testdata/02369_analyzer_array_join_function/ast.json create mode 100644 parser/testdata/02370_analyzer_in_function/ast.json create mode 100644 parser/testdata/02371_analyzer_join_cross/ast.json create mode 100644 parser/testdata/02371_create_temporary_table_as_with_columns_list/ast.json create mode 100644 parser/testdata/02371_select_projection_normal_agg/ast.json create mode 100644 parser/testdata/02372_nowInBlock/ast.json create mode 100644 parser/testdata/02373_analyzer_join_use_nulls/ast.json create mode 100644 parser/testdata/02374_analyzer_array_join/ast.json create mode 100644 parser/testdata/02374_combine_multi_if_and_count_if_opt/ast.json create mode 100644 parser/testdata/02374_in_tuple_index/ast.json create mode 100644 parser/testdata/02375_double_escaping_json/ast.json create mode 100644 parser/testdata/02375_scalar_lc_cte/ast.json create mode 100644 parser/testdata/02376_analyzer_in_function_subquery/ast.json create mode 100644 parser/testdata/02376_arrow_dict_with_string/ast.json create mode 100644 parser/testdata/02377_analyzer_in_function_set/ast.json create mode 100644 parser/testdata/02377_fix_file_virtual_column/ast.json create mode 100644 parser/testdata/02377_majority_insert_quorum_zookeeper_long/ast.json create mode 100644 parser/testdata/02377_modify_column_from_lc/ast.json create mode 100644 parser/testdata/02377_modify_column_from_nested/ast.json create mode 100644 parser/testdata/02377_optimize_sorting_by_input_stream_properties/ast.json create mode 100644 parser/testdata/02377_optimize_sorting_by_input_stream_properties_2/ast.json create mode 100644 parser/testdata/02378_analyzer_projection_names/ast.json create mode 100644 parser/testdata/02378_part_log_profile_events_replicated/ast.json create mode 100644 parser/testdata/02379_analyzer_subquery_depth/ast.json create mode 100644 parser/testdata/02380_analyzer_join_sample/ast.json create mode 100644 parser/testdata/02381_analyzer_join_final/ast.json create mode 100644 parser/testdata/02381_compress_marks_and_primary_key/ast.json create mode 100644 parser/testdata/02381_parseDateTime64BestEffortUS/ast.json create mode 100644 parser/testdata/02381_parse_array_of_tuples/ast.json create mode 100644 parser/testdata/02381_setting_value_auto/ast.json create mode 100644 parser/testdata/02382_analyzer_matcher_join_using/ast.json create mode 100644 parser/testdata/02382_join_and_filtering_set/ast.json create mode 100644 parser/testdata/02383_analyzer_merge_tree_self_join/ast.json create mode 100644 parser/testdata/02384_analyzer_dict_get_join_get/ast.json create mode 100644 parser/testdata/02384_decrypt_bad_arguments/ast.json create mode 100644 parser/testdata/02384_nullable_low_cardinality_as_dict_in_arrow/ast.json create mode 100644 parser/testdata/02385_analyzer_aliases_compound_expression/ast.json create mode 100644 parser/testdata/02385_profile_events_overflow/ast.json create mode 100644 parser/testdata/02386_analyzer_in_function_nested_subqueries/ast.json create mode 100644 parser/testdata/02386_set_columns_order/ast.json create mode 100644 parser/testdata/02387_analyzer_cte/ast.json create mode 100644 parser/testdata/02387_parse_date_as_datetime/ast.json create mode 100644 parser/testdata/02388_analyzer_recursive_lambda/ast.json create mode 100644 parser/testdata/02388_conversion_from_string_with_datetime64_to_date_and_date32/ast.json create mode 100644 parser/testdata/02389_analyzer_nested_lambda/ast.json create mode 100644 parser/testdata/02391_hashed_dictionary_shards/ast.json create mode 100644 parser/testdata/02391_recursive_buffer/ast.json create mode 100644 parser/testdata/02392_every_setting_must_have_documentation/ast.json create mode 100644 parser/testdata/02393_every_metric_must_have_documentation/ast.json create mode 100644 parser/testdata/02394_every_profile_event_must_have_documentation/ast.json create mode 100644 parser/testdata/02395_every_merge_tree_setting_must_have_documentation/ast.json create mode 100644 parser/testdata/02398_subquery_where_pushdown_and_limit_offset/ast.json create mode 100644 parser/testdata/02399_merge_tree_mutate_in_partition/ast.json create mode 100644 parser/testdata/02400_create_table_on_cluster_normalization/ast.json create mode 100644 parser/testdata/02400_memory_accounting_on_error/ast.json create mode 100644 parser/testdata/02401_merge_tree_old_tmp_dirs_cleanup/ast.json create mode 100644 parser/testdata/02402_external_disk_metrics/ast.json create mode 100644 parser/testdata/02402_merge_engine_with_view/ast.json create mode 100644 parser/testdata/02403_ttl_column_multiple_times/ast.json create mode 100644 parser/testdata/02404_lightweight_delete_vertical_merge/ast.json create mode 100644 parser/testdata/02404_memory_bound_merging/ast.json create mode 100644 parser/testdata/02405_avro_read_nested/ast.json create mode 100644 parser/testdata/02405_pmj_issue_40335/ast.json create mode 100644 parser/testdata/02406_minmax_behaviour/ast.json create mode 100644 parser/testdata/02406_try_read_datetime64_bug/ast.json create mode 100644 parser/testdata/02407_array_element_from_map_wrong_type/ast.json create mode 100644 parser/testdata/02408_to_fixed_string_short_circuit/ast.json create mode 100644 parser/testdata/02410_to_decimal_or_default/ast.json create mode 100644 parser/testdata/02411_legacy_geobase/ast.json create mode 100644 parser/testdata/02412_nlp/ast.json create mode 100644 parser/testdata/02414_all_new_table_functions_must_be_documented/ast.json create mode 100644 parser/testdata/02415_all_new_functions_must_be_documented/ast.json create mode 100644 parser/testdata/02415_all_new_functions_must_have_version_information/ast.json create mode 100644 parser/testdata/02416_grouping_function_compatibility/ast.json create mode 100644 parser/testdata/02416_in_set_same_ast_diff_columns/ast.json create mode 100644 parser/testdata/02416_json_tuple_to_array_schema_inference/ast.json create mode 100644 parser/testdata/02416_keeper_map/ast.json create mode 100644 parser/testdata/02416_rocksdb_delete_update/ast.json create mode 100644 parser/testdata/02416_row_policy_always_false_index/ast.json create mode 100644 parser/testdata/02417_from_select_syntax/ast.json create mode 100644 parser/testdata/02417_json_object_each_row_format/ast.json create mode 100644 parser/testdata/02417_keeper_map_create_drop/ast.json create mode 100644 parser/testdata/02417_null_variadic_behaviour/ast.json create mode 100644 parser/testdata/02418_aggregate_combinators/ast.json create mode 100644 parser/testdata/02418_keeper_map_keys_limit/ast.json create mode 100644 parser/testdata/02418_tautological_if_index/ast.json create mode 100644 parser/testdata/02419_contingency_array_nullable/ast.json create mode 100644 parser/testdata/02420_final_setting_analyzer/ast.json create mode 100644 parser/testdata/02420_key_condition_actions_dag_bug_40599/ast.json create mode 100644 parser/testdata/02421_decimal_in_precision_issue_41125/ast.json create mode 100644 parser/testdata/02421_exponential_join_rewrite_21557/ast.json create mode 100644 parser/testdata/02421_json_decimals_as_strings/ast.json create mode 100644 parser/testdata/02422_insert_different_granularity/ast.json create mode 100644 parser/testdata/02422_msgpack_uuid_wrong_column/ast.json create mode 100644 parser/testdata/02422_read_numbers_as_strings/ast.json create mode 100644 parser/testdata/02425_categorical_information_value_properties/ast.json create mode 100644 parser/testdata/02426_create_suspicious_fixed_string/ast.json create mode 100644 parser/testdata/02426_pod_array_overflow_2/ast.json create mode 100644 parser/testdata/02427_msan_group_array_resample/ast.json create mode 100644 parser/testdata/02427_mutate_and_zero_copy_replication_zookeeper/ast.json create mode 100644 parser/testdata/02428_combinators_with_over_statement/ast.json create mode 100644 parser/testdata/02428_decimal_in_floating_point_literal/ast.json create mode 100644 parser/testdata/02428_delete_with_settings/ast.json create mode 100644 parser/testdata/02428_index_analysis_with_null_literal/ast.json create mode 100644 parser/testdata/02428_partial_sort_optimization_bug/ast.json create mode 100644 parser/testdata/02429_combinators_in_array_reduce/ast.json create mode 100644 parser/testdata/02429_groupBitmap_chain_state/ast.json create mode 100644 parser/testdata/02429_offset_pipeline_stuck_bug/ast.json create mode 100644 parser/testdata/02430_bitmap_transform_exception_code/ast.json create mode 100644 parser/testdata/02430_initialize_aggregation_with_combinators/ast.json create mode 100644 parser/testdata/02431_single_value_or_null_empty/ast.json create mode 100644 parser/testdata/02433_default_expression_operator_in/ast.json create mode 100644 parser/testdata/02436_system_zookeeper_context/ast.json create mode 100644 parser/testdata/02438_sync_replica_lightweight/ast.json create mode 100644 parser/testdata/02439_merge_selecting_partitions/ast.json create mode 100644 parser/testdata/02440_mutations_finalization/ast.json create mode 100644 parser/testdata/02441_alter_delete_and_drop_column/ast.json create mode 100644 parser/testdata/02442_auxiliary_zookeeper_endpoint_id/ast.json create mode 100644 parser/testdata/02448_clone_replica_lost_part/ast.json create mode 100644 parser/testdata/02449_check_dependencies_and_table_shutdown/ast.json create mode 100644 parser/testdata/02451_variadic_null_garbage_data/ast.json create mode 100644 parser/testdata/02452_check_low_cardinality/ast.json create mode 100644 parser/testdata/02452_json_utf8_validation/ast.json create mode 100644 parser/testdata/02453_check_path_in_errors_logger/ast.json create mode 100644 parser/testdata/02454_compressed_marks_in_compact_part/ast.json create mode 100644 parser/testdata/02454_disable_mergetree_with_lightweight_delete_column/ast.json create mode 100644 parser/testdata/02454_json_object_each_row_column_for_object_name/ast.json create mode 100644 parser/testdata/02455_count_state_asterisk/ast.json create mode 100644 parser/testdata/02455_extract_fixed_string_from_nested_json/ast.json create mode 100644 parser/testdata/02456_BLAKE3_hash_function_test/ast.json create mode 100644 parser/testdata/02456_aggregate_state_conversion/ast.json create mode 100644 parser/testdata/02456_alter-nullable-column-bag-2/ast.json create mode 100644 parser/testdata/02456_alter-nullable-column-bag/ast.json create mode 100644 parser/testdata/02456_datetime_schema_inference/ast.json create mode 100644 parser/testdata/02456_keeper_retries_during_insert/ast.json create mode 100644 parser/testdata/02456_summing_mt_lc/ast.json create mode 100644 parser/testdata/02457_filesystem_function/ast.json create mode 100644 parser/testdata/02457_key_condition_with_types_that_cannot_be_nullable/ast.json create mode 100644 parser/testdata/02457_morton_coding/ast.json create mode 100644 parser/testdata/02457_morton_coding_with_mask/ast.json create mode 100644 parser/testdata/02457_parse_date_time_best_effort/ast.json create mode 100644 parser/testdata/02458_datediff_date32/ast.json create mode 100644 parser/testdata/02458_default_setting/ast.json create mode 100644 parser/testdata/02458_key_condition_not_like_prefix/ast.json create mode 100644 parser/testdata/02458_relax_too_many_parts/ast.json create mode 100644 parser/testdata/02458_use_structure_from_insertion_table/ast.json create mode 100644 parser/testdata/02459_group_by_all/ast.json create mode 100644 parser/testdata/02459_low_cardinality_uint128_aggregator/ast.json create mode 100644 parser/testdata/02459_materialized_view_default_value/ast.json create mode 100644 parser/testdata/02459_read_in_order_bufer/ast.json create mode 100644 parser/testdata/02460_prewhere_row_level_policy/ast.json create mode 100644 parser/testdata/02461_alter_update_respect_part_column_type_bug/ast.json create mode 100644 parser/testdata/02461_join_lc_issue_42380/ast.json create mode 100644 parser/testdata/02461_mullable_pk_monotonicity_bug/ast.json create mode 100644 parser/testdata/02461_welch_t_test_fuzz/ast.json create mode 100644 parser/testdata/02462_match_regexp_pk/ast.json create mode 100644 parser/testdata/02462_number_to_datetype/ast.json create mode 100644 parser/testdata/02463_julian_day_ubsan/ast.json create mode 100644 parser/testdata/02464_decimal_scale_buffer_overflow/ast.json create mode 100644 parser/testdata/02465_limit_trivial_max_rows_to_read/ast.json create mode 100644 parser/testdata/02467_set_with_lowcardinality_type/ast.json create mode 100644 parser/testdata/02468_has_any_tuple/ast.json create mode 100644 parser/testdata/02469_interval_msan/ast.json create mode 100644 parser/testdata/02470_suspicious_low_cardinality_msan/ast.json create mode 100644 parser/testdata/02471_wrong_date_monotonicity/ast.json create mode 100644 parser/testdata/02473_extract_low_cardinality_from_json/ast.json create mode 100644 parser/testdata/02473_map_element_nullable/ast.json create mode 100644 parser/testdata/02473_prewhere_with_bigint/ast.json create mode 100644 parser/testdata/02474_analyzer_subqueries_table_expression_modifiers/ast.json create mode 100644 parser/testdata/02474_extract_fixedstring_from_json/ast.json create mode 100644 parser/testdata/02474_timeDiff_UTCTimestamp/ast.json create mode 100644 parser/testdata/02474_unhex_in_fix_string/ast.json create mode 100644 parser/testdata/02475_analysis_of_variance/ast.json create mode 100644 parser/testdata/02475_analyzer_join_tree_subquery/ast.json create mode 100644 parser/testdata/02475_analyzer_subquery_compound_expression/ast.json create mode 100644 parser/testdata/02475_bad_cast_low_cardinality_to_string_bug/ast.json create mode 100644 parser/testdata/02475_date_time_schema_inference_bug/ast.json create mode 100644 parser/testdata/02475_join_bug_42832/ast.json create mode 100644 parser/testdata/02475_or_function_alias_and_const_where/ast.json create mode 100644 parser/testdata/02475_positive_modulo/ast.json create mode 100644 parser/testdata/02475_precise_decimal_arithmetics/ast.json create mode 100644 parser/testdata/02475_split_with_max_substrings/ast.json create mode 100644 parser/testdata/02476_analyzer_join_with_unused_columns/ast.json create mode 100644 parser/testdata/02476_fuse_sum_count/ast.json create mode 100644 parser/testdata/02476_query_parameters_insert/ast.json create mode 100644 parser/testdata/02476_query_parameters_without_serialisation/ast.json create mode 100644 parser/testdata/02477_age/ast.json create mode 100644 parser/testdata/02477_age_date32/ast.json create mode 100644 parser/testdata/02477_age_datetime64/ast.json create mode 100644 parser/testdata/02477_analyzer_array_join_with_join/ast.json create mode 100644 parser/testdata/02477_analyzer_ast_key_condition_crash/ast.json create mode 100644 parser/testdata/02477_exists_fuzz_43478/ast.json create mode 100644 parser/testdata/02477_fuse_quantiles/ast.json create mode 100644 parser/testdata/02477_invalid_reads/ast.json create mode 100644 parser/testdata/02477_logical_expressions_optimizer_issue_89803/ast.json create mode 100644 parser/testdata/02477_logical_expressions_optimizer_low_cardinality/ast.json create mode 100644 parser/testdata/02477_single_value_data_string_regression/ast.json create mode 100644 parser/testdata/02478_analyzer_table_expression_aliases/ast.json create mode 100644 parser/testdata/02478_factorial/ast.json create mode 100644 parser/testdata/02478_projection_and_alter_low_cardinality/ast.json create mode 100644 parser/testdata/02478_projection_with_group_by_alter/ast.json create mode 100644 parser/testdata/02479_analyzer_aggregation_crash/ast.json create mode 100644 parser/testdata/02479_analyzer_aggregation_totals_rollup_crash_fix/ast.json create mode 100644 parser/testdata/02479_analyzer_join_with_constants/ast.json create mode 100644 parser/testdata/02479_if_with_null_and_cullable_const/ast.json create mode 100644 parser/testdata/02479_mysql_connect_to_self/ast.json create mode 100644 parser/testdata/02479_nullable_primary_key_non_first_column/ast.json create mode 100644 parser/testdata/02480_analyzer_alias_nullptr/ast.json create mode 100644 parser/testdata/02480_every_asynchronous_metric_must_have_documentation/ast.json create mode 100644 parser/testdata/02480_interval_casting_and_subquery/ast.json create mode 100644 parser/testdata/02480_max_map_null_totals/ast.json create mode 100644 parser/testdata/02480_parse_date_time_best_effort_math_overflow/ast.json create mode 100644 parser/testdata/02480_s3_support_wildcard/ast.json create mode 100644 parser/testdata/02480_suspicious_lowcard_in_key/ast.json create mode 100644 parser/testdata/02480_tlp_nan/ast.json create mode 100644 parser/testdata/02481_aggregation_in_order_plan/ast.json create mode 100644 parser/testdata/02481_analyzer_join_alias_unknown_identifier_crash/ast.json create mode 100644 parser/testdata/02481_analyzer_optimize_aggregation_arithmetics/ast.json create mode 100644 parser/testdata/02481_analyzer_optimize_grouping_sets_keys/ast.json create mode 100644 parser/testdata/02481_array_join_with_map/ast.json create mode 100644 parser/testdata/02481_default_value_used_in_row_level_filter/ast.json create mode 100644 parser/testdata/02481_inject_random_order_for_select_without_order_by/ast.json create mode 100644 parser/testdata/02481_low_cardinality_with_short_circuit_functins/ast.json create mode 100644 parser/testdata/02481_low_cardinality_with_short_circuit_functins_mutations/ast.json create mode 100644 parser/testdata/02481_merge_array_join_sample_by/ast.json create mode 100644 parser/testdata/02481_pk_analysis_with_enum_to_string/ast.json create mode 100644 parser/testdata/02481_prewhere_filtered_rows_div_by_zero/ast.json create mode 100644 parser/testdata/02481_s3_throw_if_mismatch_files/ast.json create mode 100644 parser/testdata/02481_xxh3_hash_function/ast.json create mode 100644 parser/testdata/02482_execute_functions_before_sorting_bug/ast.json create mode 100644 parser/testdata/02482_insert_into_dist_race/ast.json create mode 100644 parser/testdata/02482_value_block_assert/ast.json create mode 100644 parser/testdata/02483_check_virtuals_shile_using_structure_from_insertion_table/ast.json create mode 100644 parser/testdata/02483_cuturlparameter_with_arrays/ast.json create mode 100644 parser/testdata/02483_substitute_udf_create/ast.json create mode 100644 parser/testdata/02484_substitute_udf_storage_args/ast.json create mode 100644 parser/testdata/02486_truncate_and_unexpected_parts/ast.json create mode 100644 parser/testdata/02487_create_index_normalize_functions/ast.json create mode 100644 parser/testdata/02489_analyzer_indexes/ast.json create mode 100644 parser/testdata/02490_replacing_merge_tree_is_deleted_column/ast.json create mode 100644 parser/testdata/02490_replacing_merge_tree_is_deleted_column_transform_opt/ast.json create mode 100644 parser/testdata/02491_part_log_has_table_uuid/ast.json create mode 100644 parser/testdata/02493_analyzer_sum_if_to_count_if/ast.json create mode 100644 parser/testdata/02493_analyzer_table_functions_untuple/ast.json create mode 100644 parser/testdata/02493_analyzer_uniq_injective_functions_elimination/ast.json create mode 100644 parser/testdata/02493_do_not_assume_that_the_original_query_was_valid_when_transforming_joins/ast.json create mode 100644 parser/testdata/02493_max_streams_for_merge_tree_reading/ast.json create mode 100644 parser/testdata/02494_analyzer_compound_expression_crash_fix/ast.json create mode 100644 parser/testdata/02494_array_function_range/ast.json create mode 100644 parser/testdata/02494_combinators_with_null_argument/ast.json create mode 100644 parser/testdata/02494_optimize_group_by_function_keys_and_alias_columns/ast.json create mode 100644 parser/testdata/02494_parser_string_binary_literal/ast.json create mode 100644 parser/testdata/02494_query_cache_bugs/ast.json create mode 100644 parser/testdata/02494_query_cache_case_agnostic_matching/ast.json create mode 100644 parser/testdata/02494_query_cache_compression/ast.json create mode 100644 parser/testdata/02494_query_cache_drop_cache/ast.json create mode 100644 parser/testdata/02494_query_cache_eligible_queries/ast.json create mode 100644 parser/testdata/02494_query_cache_empty_tuple/ast.json create mode 100644 parser/testdata/02494_query_cache_events/ast.json create mode 100644 parser/testdata/02494_query_cache_exception_handling/ast.json create mode 100644 parser/testdata/02494_query_cache_explain/ast.json create mode 100644 parser/testdata/02494_query_cache_ignore_output_settings/ast.json create mode 100644 parser/testdata/02494_query_cache_key/ast.json create mode 100644 parser/testdata/02494_query_cache_log_comment/ast.json create mode 100644 parser/testdata/02494_query_cache_metrics/ast.json create mode 100644 parser/testdata/02494_query_cache_min_query_duration/ast.json create mode 100644 parser/testdata/02494_query_cache_min_query_runs/ast.json create mode 100644 parser/testdata/02494_query_cache_nondeterministic_functions/ast.json create mode 100644 parser/testdata/02494_query_cache_normalize_ast/ast.json create mode 100644 parser/testdata/02494_query_cache_passive_usage/ast.json create mode 100644 parser/testdata/02494_query_cache_query_log/ast.json create mode 100644 parser/testdata/02494_query_cache_secrets/ast.json create mode 100644 parser/testdata/02494_query_cache_sparse_columns/ast.json create mode 100644 parser/testdata/02494_query_cache_squash_partial_results/ast.json create mode 100644 parser/testdata/02494_query_cache_system_tables/ast.json create mode 100644 parser/testdata/02494_query_cache_tag/ast.json create mode 100644 parser/testdata/02494_query_cache_totals_extremes/ast.json create mode 100644 parser/testdata/02494_query_cache_ttl_long/ast.json create mode 100644 parser/testdata/02494_query_cache_udf_sql/ast.json create mode 100644 parser/testdata/02494_query_cache_user_quotas/ast.json create mode 100644 parser/testdata/02494_query_cache_user_quotas_after_drop/ast.json create mode 100644 parser/testdata/02495_analyzer_storage_join/ast.json create mode 100644 parser/testdata/02495_concat_with_separator/ast.json create mode 100644 parser/testdata/02495_s3_filter_by_file/ast.json create mode 100644 parser/testdata/02495_sum_if_to_count_if_bug/ast.json create mode 100644 parser/testdata/02496_format_datetime_in_joda_syntax/ast.json create mode 100644 parser/testdata/02496_from_unixtime_in_joda_syntax/ast.json create mode 100644 parser/testdata/02496_storage_s3_profile_events/ast.json create mode 100644 parser/testdata/02497_analyzer_sum_if_count_if_pass_crash_fix/ast.json create mode 100644 parser/testdata/02497_having_without_actual_aggregation_bug/ast.json create mode 100644 parser/testdata/02497_if_transform_strings_to_enum/ast.json create mode 100644 parser/testdata/02497_remote_disk_fat_column/ast.json create mode 100644 parser/testdata/02497_schema_inference_nulls/ast.json create mode 100644 parser/testdata/02497_source_part_is_intact_when_mutation/ast.json create mode 100644 parser/testdata/02497_storage_join_right_assert/ast.json create mode 100644 parser/testdata/02498_analyzer_aggregate_functions_arithmetic_operations_pass_fix/ast.json create mode 100644 parser/testdata/02498_analyzer_settings_push_down/ast.json create mode 100644 parser/testdata/02498_storage_join_key_positions/ast.json create mode 100644 parser/testdata/02499_analyzer_aggregate_function_lambda_crash_fix/ast.json create mode 100644 parser/testdata/02499_analyzer_set_index/ast.json create mode 100644 parser/testdata/02499_quantile_nan_ubsan_msan/ast.json create mode 100644 parser/testdata/02499_read_json_objects_as_strings/ast.json create mode 100644 parser/testdata/02500_analyzer_storage_view_crash_fix/ast.json create mode 100644 parser/testdata/02500_prevent_drop_nested_if_empty_part/ast.json create mode 100644 parser/testdata/02501_analyzer_expired_context_crash_fix/ast.json create mode 100644 parser/testdata/02501_limits_on_result_for_view/ast.json create mode 100644 parser/testdata/02502_analyzer_insert_select_crash_fix/ast.json create mode 100644 parser/testdata/02502_fuzz_bad_cast_to_ast_literal/ast.json create mode 100644 parser/testdata/02503_bad_compatibility_setting/ast.json create mode 100644 parser/testdata/02503_mysql_compat_utc_timestamp/ast.json create mode 100644 parser/testdata/02504_disallow_arrayjoin_in_mutations/ast.json create mode 100644 parser/testdata/02504_parse_datetime_best_effort_calebeaires/ast.json create mode 100644 parser/testdata/02504_regexp_dictionary_table_source/ast.json create mode 100644 parser/testdata/02505_forbid_paths_in_datetime_timezone/ast.json create mode 100644 parser/testdata/02506_date_time64_floating_point_negative_value/ast.json create mode 100644 parser/testdata/02507_to_unix_timestamp_overflow/ast.json create mode 100644 parser/testdata/02508_bad_graphite/ast.json create mode 100644 parser/testdata/02508_index_analysis_to_date_timezone/ast.json create mode 100644 parser/testdata/02509_h3_arguments/ast.json create mode 100644 parser/testdata/02510_group_by_prewhere_null/ast.json create mode 100644 parser/testdata/02511_complex_literals_as_aggregate_function_parameters/ast.json create mode 100644 parser/testdata/02512_array_join_name_resolution/ast.json create mode 100644 parser/testdata/02513_analyzer_duplicate_alias_crash_fix/ast.json create mode 100644 parser/testdata/02513_analyzer_sort_msan/ast.json create mode 100644 parser/testdata/02513_broken_datetime64_init_on_mac/ast.json create mode 100644 parser/testdata/02513_prewhere_combine_step_filters/ast.json create mode 100644 parser/testdata/02513_validate_data_types/ast.json create mode 100644 parser/testdata/02514_analyzer_drop_join_on/ast.json create mode 100644 parser/testdata/02514_bad_index_granularity/ast.json create mode 100644 parser/testdata/02514_if_with_lazy_low_cardinality/ast.json create mode 100644 parser/testdata/02514_null_dictionary_source/ast.json create mode 100644 parser/testdata/02514_tsv_zero_started_number/ast.json create mode 100644 parser/testdata/02515_aggregate_functions_statistics/ast.json create mode 100644 parser/testdata/02515_analyzer_null_for_empty/ast.json create mode 100644 parser/testdata/02515_and_or_if_multiif_not_return_lc/ast.json create mode 100644 parser/testdata/02515_distinct_zero_size_key_bug_44831/ast.json create mode 100644 parser/testdata/02515_generate_ulid/ast.json create mode 100644 parser/testdata/02515_projections_with_totals/ast.json create mode 100644 parser/testdata/02516_projections_and_context/ast.json create mode 100644 parser/testdata/02516_projections_with_rollup/ast.json create mode 100644 parser/testdata/02517_executable_pool_bad_input_query/ast.json create mode 100644 parser/testdata/02517_uuid_parsing/ast.json create mode 100644 parser/testdata/02517_wrong_total_structure_crash/ast.json create mode 100644 parser/testdata/02518_delete_on_materialized_view/ast.json create mode 100644 parser/testdata/02518_merge_engine_nullable_43324/ast.json create mode 100644 parser/testdata/02518_qualified_asterisks_alias_table_name/ast.json create mode 100644 parser/testdata/02518_rewrite_aggregate_function_with_if/ast.json create mode 100644 parser/testdata/02519_monotonicity_fuzz/ast.json create mode 100644 parser/testdata/02520_group_array_last/ast.json create mode 100644 parser/testdata/02521_aggregation_by_partitions/ast.json create mode 100644 parser/testdata/02521_analyzer_aggregation_without_column/ast.json create mode 100644 parser/testdata/02521_analyzer_array_join_crash/ast.json create mode 100644 parser/testdata/02521_cannot_find_column_in_projection/ast.json create mode 100644 parser/testdata/02521_grouping_sets_plus_memory_efficient_aggr/ast.json create mode 100644 parser/testdata/02521_lightweight_delete_and_ttl/ast.json create mode 100644 parser/testdata/02521_to_custom_day_of_week/ast.json create mode 100644 parser/testdata/02522_different_types_in_storage_merge/ast.json create mode 100644 parser/testdata/02523_array_shuffle/ast.json create mode 100644 parser/testdata/02524_fuzz_and_fuss_2/ast.json create mode 100644 parser/testdata/02525_analyzer_function_in_crash_fix/ast.json create mode 100644 parser/testdata/02525_different_engines_in_temporary_tables/ast.json create mode 100644 parser/testdata/02525_jit_logical_functions_nan/ast.json create mode 100644 parser/testdata/02525_range_hashed_dictionary_update_field/ast.json create mode 100644 parser/testdata/02526_kv_engine_different_filter_type/ast.json create mode 100644 parser/testdata/02526_merge_join_int_decimal/ast.json create mode 100644 parser/testdata/02527_storage_merge_prewhere_different_type/ast.json create mode 100644 parser/testdata/02530_ip_part_id/ast.json create mode 100644 parser/testdata/02531_ipv4_arithmetic/ast.json create mode 100644 parser/testdata/02531_semi_join_null_const_bug/ast.json create mode 100644 parser/testdata/02531_storage_join_null_44940/ast.json create mode 100644 parser/testdata/02532_analyzer_aggregation_with_rollup/ast.json create mode 100644 parser/testdata/02532_profileevents_server_startup_time/ast.json create mode 100644 parser/testdata/02533_generate_random_schema_inference/ast.json create mode 100644 parser/testdata/02534_analyzer_grouping_function/ast.json create mode 100644 parser/testdata/02534_default_granularity/ast.json create mode 100644 parser/testdata/02534_join_prewhere_bug/ast.json create mode 100644 parser/testdata/02534_s3_cluster_insert_select_schema_inference/ast.json create mode 100644 parser/testdata/02534_s3_heap_use_after_free/ast.json create mode 100644 parser/testdata/02535_analyzer_group_by_use_nulls/ast.json create mode 100644 parser/testdata/02535_analyzer_limit_offset/ast.json create mode 100644 parser/testdata/02535_ip_parser_not_whole/ast.json create mode 100644 parser/testdata/02536_date_from_number_inference_fix/ast.json create mode 100644 parser/testdata/02536_delta_gorilla_corruption/ast.json create mode 100644 parser/testdata/02536_distributed_detach_table/ast.json create mode 100644 parser/testdata/02536_replace_with_nonconst_needle_and_replacement/ast.json create mode 100644 parser/testdata/02536_system_sync_file_cache/ast.json create mode 100644 parser/testdata/02538_alter_rename_sequence/ast.json create mode 100644 parser/testdata/02538_analyzer_create_table_as_select/ast.json create mode 100644 parser/testdata/02538_ngram_bf_index_with_null/ast.json create mode 100644 parser/testdata/02538_nullable_array_tuple_timeseries/ast.json create mode 100644 parser/testdata/02539_generate_random_ip/ast.json create mode 100644 parser/testdata/02539_generate_random_low_cardinality/ast.json create mode 100644 parser/testdata/02539_generate_random_map/ast.json create mode 100644 parser/testdata/02539_vertical_merge_compact_parts/ast.json create mode 100644 parser/testdata/02540_analyzer_matcher_alias_materialized_columns/ast.json create mode 100644 parser/testdata/02540_date_column_consistent_insert_behaviour/ast.json create mode 100644 parser/testdata/02540_duplicate_primary_key/ast.json create mode 100644 parser/testdata/02540_duplicate_primary_key2/ast.json create mode 100644 parser/testdata/02541_analyzer_grouping_sets_crash_fix/ast.json create mode 100644 parser/testdata/02541_empty_function_support_ip/ast.json create mode 100644 parser/testdata/02541_lightweight_delete_on_cluster/ast.json create mode 100644 parser/testdata/02541_multiple_ignore_with_nested_select/ast.json create mode 100644 parser/testdata/02541_tuple_element_with_null/ast.json create mode 100644 parser/testdata/02542_transform_new/ast.json create mode 100644 parser/testdata/02542_transform_old/ast.json create mode 100644 parser/testdata/02551_ipv4_implicit_uint64/ast.json create mode 100644 parser/testdata/02552_analyzer_optimize_group_by_function_keys_crash/ast.json create mode 100644 parser/testdata/02552_check_referential_table_dependencies/ast.json create mode 100644 parser/testdata/02552_inner_join_with_where_true/ast.json create mode 100644 parser/testdata/02552_regression_crash/ast.json create mode 100644 parser/testdata/02552_sparse_columns_intersect/ast.json create mode 100644 parser/testdata/02553_new_type_json_attach_partition/ast.json create mode 100644 parser/testdata/02554_fix_grouping_sets_predicate_push_down/ast.json create mode 100644 parser/testdata/02554_format_json_columns_for_empty/ast.json create mode 100644 parser/testdata/02554_log_faminy_support_storage_policy/ast.json create mode 100644 parser/testdata/02554_rewrite_count_distinct_if_with_count_distinct_implementation/ast.json create mode 100644 parser/testdata/02559_add_parts/ast.json create mode 100644 parser/testdata/02559_ip_types_bloom/ast.json create mode 100644 parser/testdata/02559_multiple_read_steps_in_prewhere/ast.json create mode 100644 parser/testdata/02559_multiple_read_steps_in_prewhere_fuzz/ast.json create mode 100644 parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns/ast.json create mode 100644 parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns_2/ast.json create mode 100644 parser/testdata/02559_multiple_read_steps_in_prewhere_reuse_computation/ast.json create mode 100644 parser/testdata/02559_nested_multiple_levels_default/ast.json create mode 100644 parser/testdata/02560_agg_state_deserialization_hash_table_crash/ast.json create mode 100644 parser/testdata/02560_analyzer_materialized_view/ast.json create mode 100644 parser/testdata/02560_count_digits/ast.json create mode 100644 parser/testdata/02560_null_as_default/ast.json create mode 100644 parser/testdata/02560_quantile_min_max/ast.json create mode 100644 parser/testdata/02560_regexp_denial_of_service/ast.json create mode 100644 parser/testdata/02560_vertical_merge_memory_usage/ast.json create mode 100644 parser/testdata/02561_sorting_constants_and_distinct_crash/ast.json create mode 100644 parser/testdata/02561_with_fill_date_datetime_incompatible/ast.json create mode 100644 parser/testdata/02562_regexp_extract/ast.json create mode 100644 parser/testdata/02563_analyzer_merge/ast.json create mode 100644 parser/testdata/02564_analyzer_cross_to_inner/ast.json create mode 100644 parser/testdata/02564_analyzer_ssb_cross_to_inner/ast.json create mode 100644 parser/testdata/02564_date_format/ast.json create mode 100644 parser/testdata/02564_read_in_order_final_desc/ast.json create mode 100644 parser/testdata/02565_analyzer_limit_settings/ast.json create mode 100644 parser/testdata/02565_update_empty_nested/ast.json create mode 100644 parser/testdata/02566_analyzer_limit_settings_distributed/ast.json create mode 100644 parser/testdata/02567_and_consistency/ast.json create mode 100644 parser/testdata/02568_and_consistency/ast.json create mode 100644 parser/testdata/02568_array_map_const_low_cardinality/ast.json create mode 100644 parser/testdata/02568_json_array_length/ast.json create mode 100644 parser/testdata/02569_order_by_aggregation_result/ast.json create mode 100644 parser/testdata/02572_materialized_views_ignore_errors/ast.json create mode 100644 parser/testdata/02572_max_intersections/ast.json create mode 100644 parser/testdata/02572_system_logs_materialized_views_ignore_errors/ast.json create mode 100644 parser/testdata/02573_insert_null_as_default_null_as_empty_nested/ast.json create mode 100644 parser/testdata/02573_quantile_fuse_msan/ast.json create mode 100644 parser/testdata/02574_suspicious_low_cardinality_msan/ast.json create mode 100644 parser/testdata/02575_map_hashing_msan/ast.json create mode 100644 parser/testdata/02575_merge_prewhere_default_expression/ast.json create mode 100644 parser/testdata/02575_merge_prewhere_different_default_kind/ast.json create mode 100644 parser/testdata/02575_merge_prewhere_ephemeral/ast.json create mode 100644 parser/testdata/02575_merge_prewhere_materialized/ast.json create mode 100644 parser/testdata/02576_predicate_push_down_sorting_fix/ast.json create mode 100644 parser/testdata/02576_rewrite_array_exists_to_has/ast.json create mode 100644 parser/testdata/02577_analyzer_array_join_calc_twice/ast.json create mode 100644 parser/testdata/02577_keepermap_delete_update/ast.json create mode 100644 parser/testdata/02578_ipv4_codec_t64/ast.json create mode 100644 parser/testdata/02578_parameterized_rename_queries/ast.json create mode 100644 parser/testdata/02579_fill_empty_chunk/ast.json create mode 100644 parser/testdata/02579_fill_empty_chunk_analyzer/ast.json create mode 100644 parser/testdata/02579_parameterized_replace/ast.json create mode 100644 parser/testdata/02581_share_big_sets_between_multiple_mutations_tasks_long/ast.json create mode 100644 parser/testdata/02581_share_big_sets_between_mutation_tasks/ast.json create mode 100644 parser/testdata/02581_share_big_sets_between_mutation_tasks_long/ast.json create mode 100644 parser/testdata/02581_share_big_sets_between_mutation_tasks_with_storage_set/ast.json create mode 100644 parser/testdata/02581_width_bucket/ast.json create mode 100644 parser/testdata/02582_analyzer_join_subquery_empty_column_list/ast.json create mode 100644 parser/testdata/02582_async_reading_with_small_limit/ast.json create mode 100644 parser/testdata/02583_map_literal_cast/ast.json create mode 100644 parser/testdata/02584_range_ipv4/ast.json create mode 100644 parser/testdata/02586_generate_random_structure/ast.json create mode 100644 parser/testdata/02589_bson_invalid_document_size/ast.json create mode 100644 parser/testdata/02591_bson_long_tuple/ast.json create mode 100644 parser/testdata/02596_build_set_and_remote/ast.json create mode 100644 parser/testdata/02597_column_update_tricky_expression_and_replication/ast.json create mode 100644 parser/testdata/02661_quantile_approx/ast.json create mode 100644 parser/testdata/02662_first_last_value/ast.json create mode 100644 parser/testdata/02662_sparse_columns_mutations_1/ast.json create mode 100644 parser/testdata/02662_sparse_columns_mutations_2/ast.json create mode 100644 parser/testdata/02662_sparse_columns_mutations_3/ast.json create mode 100644 parser/testdata/02662_sparse_columns_mutations_4/ast.json create mode 100644 parser/testdata/02662_sparse_columns_mutations_5/ast.json create mode 100644 parser/testdata/02668_column_block_number/ast.json create mode 100644 parser/testdata/02668_column_block_number_vertical_merge/ast.json create mode 100644 parser/testdata/02668_column_block_number_with_projections/ast.json create mode 100644 parser/testdata/02668_logical_optimizer_removing_redundant_checks/ast.json create mode 100644 parser/testdata/02668_parse_datetime/ast.json create mode 100644 parser/testdata/02668_parse_datetime_in_joda_syntax/ast.json create mode 100644 parser/testdata/02668_ulid_decoding/ast.json create mode 100644 parser/testdata/02669_alter_modify_to_nullable/ast.json create mode 100644 parser/testdata/02670_constant_skip_index/ast.json create mode 100644 parser/testdata/02674_and_consistency/ast.json create mode 100644 parser/testdata/02674_null_default_structure/ast.json create mode 100644 parser/testdata/02674_trivial_count_analyzer/ast.json create mode 100644 parser/testdata/02675_is_ipv6_function_fix/ast.json create mode 100644 parser/testdata/02675_predicate_push_down_filled_join_fix/ast.json create mode 100644 parser/testdata/02675_sparse_columns_clear_column/ast.json create mode 100644 parser/testdata/02676_analyzer_limit_offset/ast.json create mode 100644 parser/testdata/02676_distinct_reading_in_order_analyzer/ast.json create mode 100644 parser/testdata/02676_kafka_murmur_hash/ast.json create mode 100644 parser/testdata/02676_to_decimal_string/ast.json create mode 100644 parser/testdata/02677_analyzer_compound_expressions/ast.json create mode 100644 parser/testdata/02677_get_subcolumn_array_of_tuples/ast.json create mode 100644 parser/testdata/02677_grace_hash_limit_race/ast.json create mode 100644 parser/testdata/02678_explain_pipeline_graph_with_projection/ast.json create mode 100644 parser/testdata/02679_explain_merge_tree_prewhere_row_policy/ast.json create mode 100644 parser/testdata/02679_query_parameters_dangling_pointer/ast.json create mode 100644 parser/testdata/02680_datetime64_monotonic_check/ast.json create mode 100644 parser/testdata/02680_illegal_type_of_filter_projection/ast.json create mode 100644 parser/testdata/02680_instr_alias_for_position_case_insensitive/ast.json create mode 100644 parser/testdata/02680_lc_null_as_default/ast.json create mode 100644 parser/testdata/02680_mysql_ast_logical_err/ast.json create mode 100644 parser/testdata/02681_aggregation_by_partitions_bug/ast.json create mode 100644 parser/testdata/02681_comparsion_tuple_elimination_ast/ast.json create mode 100644 parser/testdata/02681_undrop_query/ast.json create mode 100644 parser/testdata/02685_decimal256_various/ast.json create mode 100644 parser/testdata/02688_long_aggregate_function_names/ast.json create mode 100644 parser/testdata/02690_subquery_identifiers/ast.json create mode 100644 parser/testdata/02691_drop_column_with_projections_replicated/ast.json create mode 100644 parser/testdata/02691_multiple_joins_backtick_identifiers/ast.json create mode 100644 parser/testdata/02692_multiple_joins_unicode/ast.json create mode 100644 parser/testdata/02693_multiple_joins_in/ast.json create mode 100644 parser/testdata/02694_wrong_identifier_shouldnt_be_accepted/ast.json create mode 100644 parser/testdata/02695_logical_optimizer_alias_bug/ast.json create mode 100644 parser/testdata/02695_storage_join_insert_select_deadlock/ast.json create mode 100644 parser/testdata/02696_ignore_inacc_tables_mat_view_atttach/ast.json create mode 100644 parser/testdata/02697_alter_dependencies/ast.json create mode 100644 parser/testdata/02698_marked_dropped_tables/ast.json create mode 100644 parser/testdata/02699_polygons_sym_difference_total_analyzer/ast.json create mode 100644 parser/testdata/02700_regexp_operator/ast.json create mode 100644 parser/testdata/02701_invalid_having_NOT_AN_AGGREGATE/ast.json create mode 100644 parser/testdata/02701_non_parametric_function/ast.json create mode 100644 parser/testdata/02702_logical_optimizer_with_nulls/ast.json create mode 100644 parser/testdata/02704_storage_merge_explain_graph_crash/ast.json create mode 100644 parser/testdata/02705_grouping_keys_equal_keys/ast.json create mode 100644 parser/testdata/02705_projection_and_ast_optimizations_bug/ast.json create mode 100644 parser/testdata/02705_settings_check_changed_flag/ast.json create mode 100644 parser/testdata/02706_keeper_map_insert_strict/ast.json create mode 100644 parser/testdata/02706_kolmogorov_smirnov_test/ast.json create mode 100644 parser/testdata/02706_show_columns/ast.json create mode 100644 parser/testdata/02707_keeper_map_delete_update_strict/ast.json create mode 100644 parser/testdata/02707_skip_index_with_in/ast.json create mode 100644 parser/testdata/02708_dotProduct/ast.json create mode 100644 parser/testdata/02708_parallel_replicas_not_found_column/ast.json create mode 100644 parser/testdata/02709_generate_random_valid_decimals_and_bools/ast.json create mode 100644 parser/testdata/02709_storage_memory_compressed/ast.json create mode 100644 parser/testdata/02710_aggregation_nested_map_ip_uuid/ast.json create mode 100644 parser/testdata/02710_allow_suspicious_indices/ast.json create mode 100644 parser/testdata/02710_date_diff_aliases/ast.json create mode 100644 parser/testdata/02710_default_replicated_parameters/ast.json create mode 100644 parser/testdata/02710_show_table/ast.json create mode 100644 parser/testdata/02710_topk_with_empty_array/ast.json create mode 100644 parser/testdata/02711_server_uuid_macro/ast.json create mode 100644 parser/testdata/02711_soundex_function/ast.json create mode 100644 parser/testdata/02711_trim_aliases/ast.json create mode 100644 parser/testdata/02713_array_low_cardinality_string/ast.json create mode 100644 parser/testdata/02713_sequence_match_serialization_fix/ast.json create mode 100644 parser/testdata/02714_date_date32_in/ast.json create mode 100644 parser/testdata/02714_read_bytes_aggregateFunction/ast.json create mode 100644 parser/testdata/02715_or_null/ast.json create mode 100644 parser/testdata/02716_create_direct_dict_with_lifetime_throws/ast.json create mode 100644 parser/testdata/02716_drop_if_empty/ast.json create mode 100644 parser/testdata/02716_int256_arrayfunc/ast.json create mode 100644 parser/testdata/02718_array_fold/ast.json create mode 100644 parser/testdata/02718_insert_meet_hardware_error/ast.json create mode 100644 parser/testdata/02719_aggregate_with_empty_string_key/ast.json create mode 100644 parser/testdata/02720_row_policy_column_with_dots/ast.json create mode 100644 parser/testdata/02721_url_cluster/ast.json create mode 100644 parser/testdata/02722_log_profile_events/ast.json create mode 100644 parser/testdata/02723_jit_aggregation_bug_48120/ast.json create mode 100644 parser/testdata/02723_parallelize_output_setting/ast.json create mode 100644 parser/testdata/02723_zookeeper_name/ast.json create mode 100644 parser/testdata/02724_function_in_left_table_clause_asof_join/ast.json create mode 100644 parser/testdata/02724_jit_logical_functions/ast.json create mode 100644 parser/testdata/02724_mutliple_storage_join/ast.json create mode 100644 parser/testdata/02724_persist_interval_type/ast.json create mode 100644 parser/testdata/02724_show_indexes/ast.json create mode 100644 parser/testdata/02725_agg_projection_respect_PK/ast.json create mode 100644 parser/testdata/02725_alias_columns_should_not_allow_compression_codec/ast.json create mode 100644 parser/testdata/02725_alias_with_restricted_keywords/ast.json create mode 100644 parser/testdata/02725_any_join_single_row/ast.json create mode 100644 parser/testdata/02725_cnf_large_check/ast.json create mode 100644 parser/testdata/02725_memory-for-merges/ast.json create mode 100644 parser/testdata/02725_null_group_key_with_rollup/ast.json create mode 100644 parser/testdata/02725_sleep_max_time/ast.json create mode 100644 parser/testdata/02725_url_support_virtual_column/ast.json create mode 100644 parser/testdata/02726_async_insert_flush_queue/ast.json create mode 100644 parser/testdata/02730_dictionary_hashed_load_factor_element_count/ast.json create mode 100644 parser/testdata/02730_with_fill_by_sorting_prefix/ast.json create mode 100644 parser/testdata/02731_auto_convert_dictionary_layout_to_complex_by_complex_keys/ast.json create mode 100644 parser/testdata/02731_formats_s3/ast.json create mode 100644 parser/testdata/02731_in_operator_with_one_size_tuple/ast.json create mode 100644 parser/testdata/02731_parallel_replicas_join_subquery/ast.json create mode 100644 parser/testdata/02731_replace_partition_from_temporary_table/ast.json create mode 100644 parser/testdata/02732_transform_fuzz/ast.json create mode 100644 parser/testdata/02733_distinct/ast.json create mode 100644 parser/testdata/02733_fix_distinct_in_order_bug_49622/ast.json create mode 100644 parser/testdata/02733_sparse_columns_reload/ast.json create mode 100644 parser/testdata/02734_optimize_group_by/ast.json create mode 100644 parser/testdata/02734_sparse_columns_mutation/ast.json create mode 100644 parser/testdata/02734_sparse_columns_short_circuit/ast.json create mode 100644 parser/testdata/02735_array_map_array_of_tuples/ast.json create mode 100644 parser/testdata/02735_asof_join_right_null/ast.json create mode 100644 parser/testdata/02735_parquet_encoder/ast.json create mode 100644 parser/testdata/02735_system_zookeeper_auxiliary/ast.json create mode 100644 parser/testdata/02735_system_zookeeper_connection/ast.json create mode 100644 parser/testdata/02736_bit_count_big_int/ast.json create mode 100644 parser/testdata/02737_arrayJaccardIndex/ast.json create mode 100644 parser/testdata/02737_session_timezone/ast.json create mode 100644 parser/testdata/02737_sql_auto_is_null/ast.json create mode 100644 parser/testdata/02740_hashed_dictionary_load_factor_smoke/ast.json create mode 100644 parser/testdata/02746_index_analysis_binary_operator_with_null/ast.json create mode 100644 parser/testdata/02751_match_constant_needle/ast.json create mode 100644 parser/testdata/02751_multiif_to_if_crash/ast.json create mode 100644 parser/testdata/02751_parallel_replicas_bug_chunkinfo_not_set/ast.json create mode 100644 parser/testdata/02751_query_log_test_partitions/ast.json create mode 100644 parser/testdata/02752_custom_separated_ignore_spaces_bug/ast.json create mode 100644 parser/testdata/02752_forbidden_headers/ast.json create mode 100644 parser/testdata/02752_space_function/ast.json create mode 100644 parser/testdata/02762_replicated_database_no_args/ast.json create mode 100644 parser/testdata/02763_jit_compare_functions_nan/ast.json create mode 100644 parser/testdata/02763_mutate_compact_part_with_skip_indices_and_projections/ast.json create mode 100644 parser/testdata/02764_index_analysis_fix/ast.json create mode 100644 parser/testdata/02764_parallel_replicas_plain_merge_tree/ast.json create mode 100644 parser/testdata/02765_parallel_replicas_final_modifier/ast.json create mode 100644 parser/testdata/02766_bitshift_with_const_arguments/ast.json create mode 100644 parser/testdata/02768_cse_nested_distributed/ast.json create mode 100644 parser/testdata/02769_compare_functions_nan/ast.json create mode 100644 parser/testdata/02769_parallel_replicas_unavailable_shards/ast.json create mode 100644 parser/testdata/02770_jit_aggregation_nullable_key_fix/ast.json create mode 100644 parser/testdata/02771_ignore_data_skipping_indices/ast.json create mode 100644 parser/testdata/02771_jit_functions_comparison_crash/ast.json create mode 100644 parser/testdata/02771_log_faminy_truncate_count/ast.json create mode 100644 parser/testdata/02771_parallel_replicas_analyzer/ast.json create mode 100644 parser/testdata/02771_resolve_compound_identifier/ast.json create mode 100644 parser/testdata/02771_tsv_csv_custom_skip_trailing_empty_lines/ast.json create mode 100644 parser/testdata/02772_jit_date_time_add/ast.json create mode 100644 parser/testdata/02772_s3_crash/ast.json create mode 100644 parser/testdata/02775_show_columns_called_from_clickhouse/ast.json create mode 100644 parser/testdata/02780_final_streams_data_skipping_index/ast.json create mode 100644 parser/testdata/02781_data_skipping_index_merge_tree_min_for_seek/ast.json create mode 100644 parser/testdata/02782_values_null_to_lc_nullable/ast.json create mode 100644 parser/testdata/02783_date_predicate_optimizations/ast.json create mode 100644 parser/testdata/02783_max_bytes_to_read_in_schema_inference/ast.json create mode 100644 parser/testdata/02783_parsedatetimebesteffort_syslog/ast.json create mode 100644 parser/testdata/02784_move_all_conditions_to_prewhere_analyzer_asan/ast.json create mode 100644 parser/testdata/02784_projections_read_in_order_bug/ast.json create mode 100644 parser/testdata/02785_date_predicate_optimizations_ast_query_tree_rewrite/ast.json create mode 100644 parser/testdata/02785_global_join_too_many_columns/ast.json create mode 100644 parser/testdata/02785_left_anti_join_bug/ast.json create mode 100644 parser/testdata/02785_summing_merge_tree_datetime64/ast.json create mode 100644 parser/testdata/02786_max_execution_time_leaf/ast.json create mode 100644 parser/testdata/02786_transform_float/ast.json create mode 100644 parser/testdata/02787_transform_null/ast.json create mode 100644 parser/testdata/02788_current_schemas_function/ast.json create mode 100644 parser/testdata/02788_fix_logical_error_in_sorting/ast.json create mode 100644 parser/testdata/02789_functions_after_sorting_and_columns_with_same_names_bug/ast.json create mode 100644 parser/testdata/02789_set_index_nullable_condition_bug/ast.json create mode 100644 parser/testdata/02790_keyed_hash_bug/ast.json create mode 100644 parser/testdata/02790_optimize_skip_unused_shards_join/ast.json create mode 100644 parser/testdata/02790_sql_standard_fetch/ast.json create mode 100644 parser/testdata/02790_url_multiple_tsv_files/ast.json create mode 100644 parser/testdata/02791_final_block_structure_mismatch_bug/ast.json create mode 100644 parser/testdata/02792_alter_table_modify_comment/ast.json create mode 100644 parser/testdata/02792_drop_projection_lwd/ast.json create mode 100644 parser/testdata/02794_pushdown_invalid_get/ast.json create mode 100644 parser/testdata/02796_calculate_text_stack_trace/ast.json create mode 100644 parser/testdata/02796_projection_date_filter_on_view/ast.json create mode 100644 parser/testdata/02797_aggregator_huge_mem_usage_bug/ast.json create mode 100644 parser/testdata/02797_range_nullable/ast.json create mode 100644 parser/testdata/02798_explain_settings_not_applied_bug/ast.json create mode 100644 parser/testdata/02798_generic_transform/ast.json create mode 100644 parser/testdata/02798_substring_index/ast.json create mode 100644 parser/testdata/02799_transform_empty_arrays/ast.json create mode 100644 parser/testdata/02800_transform_alter/ast.json create mode 100644 parser/testdata/02801_transform_nullable/ast.json create mode 100644 parser/testdata/02803_remote_cannot_clone_block/ast.json create mode 100644 parser/testdata/02804_clusterAllReplicas_insert/ast.json create mode 100644 parser/testdata/02805_distributed_queries_timeouts/ast.json create mode 100644 parser/testdata/02807_lower_utf8_msan/ast.json create mode 100644 parser/testdata/02807_math_unary_crash/ast.json create mode 100644 parser/testdata/02809_has_subsequence/ast.json create mode 100644 parser/testdata/02809_has_token/ast.json create mode 100644 parser/testdata/02809_prewhere_and_in/ast.json create mode 100644 parser/testdata/02809_storage_set_analysis_bug/ast.json create mode 100644 parser/testdata/02810_convert_uuid_to_uint128/ast.json create mode 100644 parser/testdata/02810_fix_remove_dedundant_distinct_view/ast.json create mode 100644 parser/testdata/02810_initcap/ast.json create mode 100644 parser/testdata/02811_insert_schema_inference/ast.json create mode 100644 parser/testdata/02811_invalid_embedded_rocksdb_create/ast.json create mode 100644 parser/testdata/02811_parallel_replicas_prewhere_count/ast.json create mode 100644 parser/testdata/02811_primary_key_in_columns/ast.json create mode 100644 parser/testdata/02811_read_in_order_and_array_join_bug/ast.json create mode 100644 parser/testdata/02812_bug_with_unused_join_columns/ast.json create mode 100644 parser/testdata/02812_csv_date_time_with_comma/ast.json create mode 100644 parser/testdata/02812_from_to_utc_timestamp/ast.json create mode 100644 parser/testdata/02812_large_varints/ast.json create mode 100644 parser/testdata/02812_pointwise_array_operations/ast.json create mode 100644 parser/testdata/02812_subquery_operators/ast.json create mode 100644 parser/testdata/02813_any_value/ast.json create mode 100644 parser/testdata/02813_array_agg/ast.json create mode 100644 parser/testdata/02813_array_concat_agg/ast.json create mode 100644 parser/testdata/02813_create_index_noop/ast.json create mode 100644 parser/testdata/02813_func_now_and_alias/ast.json create mode 100644 parser/testdata/02813_func_today_and_alias/ast.json create mode 100644 parser/testdata/02813_optimize_lazy_materialization/ast.json create mode 100644 parser/testdata/02813_seriesDecomposeSTL/ast.json create mode 100644 parser/testdata/02813_seriesOutliersDetectTukey/ast.json create mode 100644 parser/testdata/02813_series_period_detect/ast.json create mode 100644 parser/testdata/02813_starting_in_text_log/ast.json create mode 100644 parser/testdata/02814_ReplacingMergeTree_fix_select_final_on_single_partition/ast.json create mode 100644 parser/testdata/02814_age_datediff/ast.json create mode 100644 parser/testdata/02814_create_index_uniq_noop/ast.json create mode 100644 parser/testdata/02814_currentDatabase_for_table_functions/ast.json create mode 100644 parser/testdata/02814_order_by_tuple_window_function/ast.json create mode 100644 parser/testdata/02815_alias_to_length/ast.json create mode 100644 parser/testdata/02815_analyzer_aggregate_functions_of_group_by_keys/ast.json create mode 100644 parser/testdata/02815_first_line/ast.json create mode 100644 parser/testdata/02815_fix_not_found_constants_col_in_block/ast.json create mode 100644 parser/testdata/02815_join_algorithm_setting/ast.json create mode 100644 parser/testdata/02815_logical_error_cannot_get_column_name_of_set/ast.json create mode 100644 parser/testdata/02815_range_dict_no_direct_join/ast.json create mode 100644 parser/testdata/02816_has_token_empty/ast.json create mode 100644 parser/testdata/02816_s2_invalid_point/ast.json create mode 100644 parser/testdata/02817_group_array_moving_zero_window_size/ast.json create mode 100644 parser/testdata/02828_create_as_table_function_rename/ast.json create mode 100644 parser/testdata/02830_insert_values_time_interval/ast.json create mode 100644 parser/testdata/02831_regexp_analyze_recursion/ast.json create mode 100644 parser/testdata/02831_trash/ast.json create mode 100644 parser/testdata/02832_alter_delete_indexes_projections/ast.json create mode 100644 parser/testdata/02833_array_join_columns/ast.json create mode 100644 parser/testdata/02833_multiprewhere_extra_column/ast.json create mode 100644 parser/testdata/02833_sparse_columns_tuple_function/ast.json create mode 100644 parser/testdata/02833_starts_ends_with_utf8/ast.json create mode 100644 parser/testdata/02833_std_alias/ast.json create mode 100644 parser/testdata/02833_tuple_concat/ast.json create mode 100644 parser/testdata/02834_add_sub_date_functions/ast.json create mode 100644 parser/testdata/02834_alter_exception/ast.json create mode 100644 parser/testdata/02834_analyzer_with_statement_references/ast.json create mode 100644 parser/testdata/02834_apache_arrow_abort/ast.json create mode 100644 parser/testdata/02834_array_exists_segfault/ast.json create mode 100644 parser/testdata/02834_formats_with_variable_number_of_columns/ast.json create mode 100644 parser/testdata/02834_nulls_first_sort/ast.json create mode 100644 parser/testdata/02834_sparse_columns_sort_with_limit/ast.json create mode 100644 parser/testdata/02834_timestamp_function/ast.json create mode 100644 parser/testdata/02835_fuzz_remove_redundant_sorting/ast.json create mode 100644 parser/testdata/02835_join_step_explain/ast.json create mode 100644 parser/testdata/02835_nested_array_lowcardinality/ast.json create mode 100644 parser/testdata/02835_parallel_replicas_over_distributed/ast.json create mode 100644 parser/testdata/02840_grace_hash_join_structure_mismatch/ast.json create mode 100644 parser/testdata/02841_group_array_sorted/ast.json create mode 100644 parser/testdata/02841_join_filter_set_sparse/ast.json create mode 100644 parser/testdata/02841_not_ready_set_constraints/ast.json create mode 100644 parser/testdata/02841_parallel_final_wrong_columns_order/ast.json create mode 100644 parser/testdata/02841_parquet_filter_pushdown/ast.json create mode 100644 parser/testdata/02841_remote_parameter_parsing_error/ast.json create mode 100644 parser/testdata/02841_tuple_modulo/ast.json create mode 100644 parser/testdata/02841_with_clause_resolve/ast.json create mode 100644 parser/testdata/02842_filesystem_cache_validate_path/ast.json create mode 100644 parser/testdata/02842_largestTriangleThreeBuckets_aggregate_function/ast.json create mode 100644 parser/testdata/02842_move_pk_to_end_of_prewhere/ast.json create mode 100644 parser/testdata/02842_mutations_replace_non_deterministic/ast.json create mode 100644 parser/testdata/02842_truncate_database/ast.json create mode 100644 parser/testdata/02842_vertical_merge_after_add_drop_column/ast.json create mode 100644 parser/testdata/02843_context_has_expired/ast.json create mode 100644 parser/testdata/02844_distributed_virtual_columns/ast.json create mode 100644 parser/testdata/02844_subquery_timeout_with_break/ast.json create mode 100644 parser/testdata/02845_arrayShiftRotate/ast.json create mode 100644 parser/testdata/02845_domain_rfc_support_ipv6/ast.json create mode 100644 parser/testdata/02845_group_by_constant_keys/ast.json create mode 100644 parser/testdata/02845_join_on_cond_sparse/ast.json create mode 100644 parser/testdata/02845_prewhere_preserve_column/ast.json create mode 100644 parser/testdata/02860_distributed_flush_on_detach/ast.json create mode 100644 parser/testdata/02861_filter_pushdown_const_bug/ast.json create mode 100644 parser/testdata/02861_index_set_incorrect_args/ast.json create mode 100644 parser/testdata/02861_interpolate_alias_precedence/ast.json create mode 100644 parser/testdata/02861_replacing_merge_tree_with_cleanup/ast.json create mode 100644 parser/testdata/02861_uuid_format_serialization/ast.json create mode 100644 parser/testdata/02862_sorted_distinct_sparse_fix/ast.json create mode 100644 parser/testdata/02862_uuid_reinterpret_as_numeric/ast.json create mode 100644 parser/testdata/02863_decode_html_component/ast.json create mode 100644 parser/testdata/02863_delayed_source_with_totals_and_extremes/ast.json create mode 100644 parser/testdata/02863_interpolate_subquery/ast.json create mode 100644 parser/testdata/02863_mutation_where_in_set_result_cache_pipeline_stuck_bug/ast.json create mode 100644 parser/testdata/02863_non_const_timezone_check/ast.json create mode 100644 parser/testdata/02864_filtered_url_with_globs/ast.json create mode 100644 parser/testdata/02864_profile_event_part_lock/ast.json create mode 100644 parser/testdata/02864_replace_regexp_string_fallback/ast.json create mode 100644 parser/testdata/02864_statistics_bug_67742/ast.json create mode 100644 parser/testdata/02864_statistics_bug_69589/ast.json create mode 100644 parser/testdata/02864_statistics_create_materialize_drop/ast.json create mode 100644 parser/testdata/02864_statistics_ddl/ast.json create mode 100644 parser/testdata/02864_statistics_delayed_materialization_in_merge/ast.json create mode 100644 parser/testdata/02864_statistics_predicates/ast.json create mode 100644 parser/testdata/02864_statistics_usage/ast.json create mode 100644 parser/testdata/02864_test_ipv4_type_mismatch/ast.json create mode 100644 parser/testdata/02865_array_join_with_max_block_size/ast.json create mode 100644 parser/testdata/02866_size_of_marks_skip_idx_explain/ast.json create mode 100644 parser/testdata/02867_create_user_ssh/ast.json create mode 100644 parser/testdata/02867_null_lc_in_bug/ast.json create mode 100644 parser/testdata/02867_nullable_primary_key_final/ast.json create mode 100644 parser/testdata/02868_distinct_to_count_optimization/ast.json create mode 100644 parser/testdata/02868_select_support_from_keywords/ast.json create mode 100644 parser/testdata/02869_insert_filenames_collisions/ast.json create mode 100644 parser/testdata/02869_parallel_replicas_read_from_several/ast.json create mode 100644 parser/testdata/02870_move_partition_to_volume_io_throttling/ast.json create mode 100644 parser/testdata/02870_per_column_settings/ast.json create mode 100644 parser/testdata/02872_prewhere_filter/ast.json create mode 100644 parser/testdata/02873_s3_presigned_url_and_url_with_special_characters/ast.json create mode 100644 parser/testdata/02874_analysis_of_variance_overflow/ast.json create mode 100644 parser/testdata/02874_infer_objects_as_named_tuples/ast.json create mode 100644 parser/testdata/02874_json_merge_patch_function_test/ast.json create mode 100644 parser/testdata/02874_toDaysSinceYearZero/ast.json create mode 100644 parser/testdata/02875_final_invalid_read_ranges_bug/ast.json create mode 100644 parser/testdata/02875_fix_column_decimal_serialization/ast.json create mode 100644 parser/testdata/02875_json_array_as_string/ast.json create mode 100644 parser/testdata/02875_parallel_replicas_cluster_all_replicas/ast.json create mode 100644 parser/testdata/02875_parallel_replicas_remote/ast.json create mode 100644 parser/testdata/02876_json_incomplete_types_as_strings_inference/ast.json create mode 100644 parser/testdata/02876_sort_union_of_sorted/ast.json create mode 100644 parser/testdata/02876_yyyymmddhhmmsstodatetime/ast.json create mode 100644 parser/testdata/02876_yyyymmddtodate/ast.json create mode 100644 parser/testdata/02880_indexHint__partition_id/ast.json create mode 100644 parser/testdata/02882_formatQuery/ast.json create mode 100644 parser/testdata/02882_primary_key_index_in_function_different_types/ast.json create mode 100644 parser/testdata/02882_replicated_fetch_checksums_doesnt_match/ast.json create mode 100644 parser/testdata/02883_array_scalar_mult_div_modulo/ast.json create mode 100644 parser/testdata/02883_read_in_reverse_order_virtual_column/ast.json create mode 100644 parser/testdata/02884_async_insert_skip_settings/ast.json create mode 100644 parser/testdata/02884_duplicate_index_name/ast.json create mode 100644 parser/testdata/02884_interval_operator_support_plural_literal/ast.json create mode 100644 parser/testdata/02884_parallel_window_functions/ast.json create mode 100644 parser/testdata/02884_parallel_window_functions_bug/ast.json create mode 100644 parser/testdata/02884_string_distance_function/ast.json create mode 100644 parser/testdata/02884_virtual_column_order_by/ast.json create mode 100644 parser/testdata/02885_arg_min_max_combinator/ast.json create mode 100644 parser/testdata/02885_create_distributed_table_without_as/ast.json create mode 100644 parser/testdata/02886_binary_like/ast.json create mode 100644 parser/testdata/02887_byteswap/ast.json create mode 100644 parser/testdata/02887_tuple_element_distributed/ast.json create mode 100644 parser/testdata/02888_integer_type_inference_in_if_function/ast.json create mode 100644 parser/testdata/02888_obsolete_settings/ast.json create mode 100644 parser/testdata/02889_datetime64_from_string/ast.json create mode 100644 parser/testdata/02889_parts_columns_filenames/ast.json create mode 100644 parser/testdata/02889_print_pretty_type_names/ast.json create mode 100644 parser/testdata/02890_describe_table_options/ast.json create mode 100644 parser/testdata/02890_named_tuple_functions/ast.json create mode 100644 parser/testdata/02890_partition_prune_in_extra_columns/ast.json create mode 100644 parser/testdata/02890_untuple_column_names/ast.json create mode 100644 parser/testdata/02891_alter_update_adaptive_granularity/ast.json create mode 100644 parser/testdata/02891_array_shingles/ast.json create mode 100644 parser/testdata/02891_empty_tuple/ast.json create mode 100644 parser/testdata/02891_functions_over_sparse_columns/ast.json create mode 100644 parser/testdata/02892_SummingMergeTree_Nested/ast.json create mode 100644 parser/testdata/02892_orc_filter_pushdown/ast.json create mode 100644 parser/testdata/02892_rocksdb_trivial_count/ast.json create mode 100644 parser/testdata/02893_array_enum_has_hasAny/ast.json create mode 100644 parser/testdata/02893_bad_sample_view/ast.json create mode 100644 parser/testdata/02893_trash_optimization/ast.json create mode 100644 parser/testdata/02893_vertical_final_bugs/ast.json create mode 100644 parser/testdata/02895_cast_operator_bug/ast.json create mode 100644 parser/testdata/02896_cyclic_aliases_crash/ast.json create mode 100644 parser/testdata/02896_leading_zeroes_no_octal/ast.json create mode 100644 parser/testdata/02896_max_execution_time_with_break_overflow_mode/ast.json create mode 100644 parser/testdata/02896_multiple_OR/ast.json create mode 100644 parser/testdata/02896_optimize_array_exists_to_has_with_date/ast.json create mode 100644 parser/testdata/02898_parallel_replicas_custom_key_final/ast.json create mode 100644 parser/testdata/02898_parallel_replicas_progress_bar/ast.json create mode 100644 parser/testdata/02899_indexing_by_space_filling_curves/ast.json create mode 100644 parser/testdata/02900_add_subtract_interval_with_string_date/ast.json create mode 100644 parser/testdata/02900_date_time_check_overflow/ast.json create mode 100644 parser/testdata/02900_decimal_sort_with_multiple_columns/ast.json create mode 100644 parser/testdata/02900_issue_55858/ast.json create mode 100644 parser/testdata/02900_window_function_with_sparse_column/ast.json create mode 100644 parser/testdata/02901_predicate_pushdown_cte_stateful/ast.json create mode 100644 parser/testdata/02901_remove_nullable_crash_analyzer/ast.json create mode 100644 parser/testdata/02902_add_scalar_in_all_case/ast.json create mode 100644 parser/testdata/02902_diable_apply_deleted_mask/ast.json create mode 100644 parser/testdata/02902_json_skip_null_values/ast.json create mode 100644 parser/testdata/02902_select_subcolumns_from_engine_null/ast.json create mode 100644 parser/testdata/02903_bug_43644/ast.json create mode 100644 parser/testdata/02905_show_setting_query/ast.json create mode 100644 parser/testdata/02905_system_logs_hostname/ast.json create mode 100644 parser/testdata/02906_flatten_only_true_nested/ast.json create mode 100644 parser/testdata/02906_force_optimize_projection_name/ast.json create mode 100644 parser/testdata/02906_interval_comparison/ast.json create mode 100644 parser/testdata/02906_orc_tuple_field_prune/ast.json create mode 100644 parser/testdata/02907_filter_pushdown_crash/ast.json create mode 100644 parser/testdata/02907_fromDaysSinceYearZero/ast.json create mode 100644 parser/testdata/02910_prefetch_unexpceted_exception/ast.json create mode 100644 parser/testdata/02910_replicated_merge_parameters_must_consistent/ast.json create mode 100644 parser/testdata/02910_rocksdb_optimize/ast.json create mode 100644 parser/testdata/02911_add_index_and_materialize_index/ast.json create mode 100644 parser/testdata/02911_analyzer_explain_estimate/ast.json create mode 100644 parser/testdata/02911_analyzer_order_by_read_in_order_query_plan/ast.json create mode 100644 parser/testdata/02911_analyzer_remove_unused_projection_columns/ast.json create mode 100644 parser/testdata/02911_cte_invalid_query_analysis/ast.json create mode 100644 parser/testdata/02911_join_on_nullsafe_optimization/ast.json create mode 100644 parser/testdata/02911_support_alias_column_in_indices/ast.json create mode 100644 parser/testdata/02911_system_symbols/ast.json create mode 100644 parser/testdata/02912_group_array_sample/ast.json create mode 100644 parser/testdata/02912_ingestion_mv_deduplication/ast.json create mode 100644 parser/testdata/02913_sum_map_state/ast.json create mode 100644 parser/testdata/02915_analyzer_fuzz_1/ast.json create mode 100644 parser/testdata/02915_analyzer_fuzz_2/ast.json create mode 100644 parser/testdata/02915_analyzer_fuzz_5/ast.json create mode 100644 parser/testdata/02915_analyzer_fuzz_6/ast.json create mode 100644 parser/testdata/02915_move_partition_inactive_replica/ast.json create mode 100644 parser/testdata/02916_addcolumn_nested/ast.json create mode 100644 parser/testdata/02916_analyzer_set_in_join/ast.json create mode 100644 parser/testdata/02916_another_move_partition_inactive_replica/ast.json create mode 100644 parser/testdata/02916_csv_infer_numbers_from_strings/ast.json create mode 100644 parser/testdata/02916_date_text_parsing/ast.json create mode 100644 parser/testdata/02916_distributed_skip_unavailable_shards/ast.json create mode 100644 parser/testdata/02916_glogal_in_cancel/ast.json create mode 100644 parser/testdata/02916_replication_protocol_wait_for_part/ast.json create mode 100644 parser/testdata/02916_to_start_of_interval_with_origin/ast.json create mode 100644 parser/testdata/02918_alter_temporary_table/ast.json create mode 100644 parser/testdata/02918_join_pm_lc_crash/ast.json create mode 100644 parser/testdata/02918_optimize_count_for_merge_tables/ast.json create mode 100644 parser/testdata/02918_parallel_replicas_custom_key_unavailable_replica/ast.json create mode 100644 parser/testdata/02918_wrong_dictionary_source/ast.json create mode 100644 parser/testdata/02919_alter_temporary_table_with_nondefault_engine/ast.json create mode 100644 parser/testdata/02919_ddsketch_quantile/ast.json create mode 100644 parser/testdata/02919_insert_meet_eternal_hardware_error/ast.json create mode 100644 parser/testdata/02919_segfault_nullable_materialized_update/ast.json create mode 100644 parser/testdata/02919_storage_fuzzjson/ast.json create mode 100644 parser/testdata/02920_alter_column_of_projections/ast.json create mode 100644 parser/testdata/02920_fix_json_merge_patch/ast.json create mode 100644 parser/testdata/02920_rename_column_of_skip_indices/ast.json create mode 100644 parser/testdata/02921_database_filesystem_path_check/ast.json create mode 100644 parser/testdata/02921_fuzzbits_with_array_join/ast.json create mode 100644 parser/testdata/02921_parameterized_view_except_queries/ast.json create mode 100644 parser/testdata/02922_analyzer_aggregate_nothing_type/ast.json create mode 100644 parser/testdata/02922_respect_nulls_states/ast.json create mode 100644 parser/testdata/02923_cte_equality_disjunction/ast.json create mode 100644 parser/testdata/02931_alter_materialized_view_query_inconsistent/ast.json create mode 100644 parser/testdata/02931_max_num_to_warn/ast.json create mode 100644 parser/testdata/02931_rewrite_sum_column_and_constant/ast.json create mode 100644 parser/testdata/02931_ubsan_error_arena_aligned_alloc/ast.json create mode 100644 parser/testdata/02932_analyzer_rewrite_sum_column_and_constant/ast.json create mode 100644 parser/testdata/02932_apply_deleted_mask/ast.json create mode 100644 parser/testdata/02932_group_by_null_fuzzer/ast.json create mode 100644 parser/testdata/02932_idna/ast.json create mode 100644 parser/testdata/02932_lwd_and_mutations/ast.json create mode 100644 parser/testdata/02932_materialized_view_with_dropped_target_table_no_exception/ast.json create mode 100644 parser/testdata/02932_non_ready_set_stuck/ast.json create mode 100644 parser/testdata/02932_parallel_replicas_fuzzer/ast.json create mode 100644 parser/testdata/02932_punycode/ast.json create mode 100644 parser/testdata/02932_query_settings_max_size_drop/ast.json create mode 100644 parser/testdata/02932_query_settings_max_size_drop_rmt/ast.json create mode 100644 parser/testdata/02932_set_ttl_where/ast.json create mode 100644 parser/testdata/02933_compare_with_bool_as_string/ast.json create mode 100644 parser/testdata/02933_ephemeral_mv/ast.json create mode 100644 parser/testdata/02933_sqid/ast.json create mode 100644 parser/testdata/02934_merge_tree_max_projections/ast.json create mode 100644 parser/testdata/02935_date_trunc_case_unsensitiveness/ast.json create mode 100644 parser/testdata/02935_format_with_arbitrary_types/ast.json create mode 100644 parser/testdata/02935_ipv6_from_uint128_equality/ast.json create mode 100644 parser/testdata/02935_ipv6_from_uint128_one/ast.json create mode 100644 parser/testdata/02935_ipv6_from_uint128_two/ast.json create mode 100644 parser/testdata/02935_ipv6_from_uint128_with_bit_and/ast.json create mode 100644 parser/testdata/02935_ipv6_to_and_from_uint128/ast.json create mode 100644 parser/testdata/02935_parallel_replicas_settings/ast.json create mode 100644 parser/testdata/02940_json_array_of_unnamed_tuples_inference/ast.json create mode 100644 parser/testdata/02940_variant_text_deserialization/ast.json create mode 100644 parser/testdata/02941_any_RESPECT_NULL_sparse_column/ast.json create mode 100644 parser/testdata/02941_projections_external_aggregation/ast.json create mode 100644 parser/testdata/02942_variant_cast/ast.json create mode 100644 parser/testdata/02943_create_query_interpreter_sample_block_fix/ast.json create mode 100644 parser/testdata/02943_exprs_order_in_group_by_with_rollup/ast.json create mode 100644 parser/testdata/02943_order_by_all/ast.json create mode 100644 parser/testdata/02943_positional_arguments_bugs/ast.json create mode 100644 parser/testdata/02943_tokenbf_and_ngrambf_indexes_support_match_function/ast.json create mode 100644 parser/testdata/02943_use_full_text_skip_index_with_has_any/ast.json create mode 100644 parser/testdata/02943_variant_element/ast.json create mode 100644 parser/testdata/02944_variant_as_common_type_analyzer/ast.json create mode 100644 parser/testdata/02945_blake3_msan/ast.json create mode 100644 parser/testdata/02946_literal_alias_misclassification/ast.json create mode 100644 parser/testdata/02946_materialize_column_must_not_override_past_values/ast.json create mode 100644 parser/testdata/02946_merge_tree_final_split_ranges_by_primary_key/ast.json create mode 100644 parser/testdata/02946_parallel_replicas_distributed/ast.json create mode 100644 parser/testdata/02946_parallel_replicas_force_primary_key/ast.json create mode 100644 parser/testdata/02947_dropped_tables_parts/ast.json create mode 100644 parser/testdata/02947_merge_tree_index_table_1/ast.json create mode 100644 parser/testdata/02947_merge_tree_index_table_2/ast.json create mode 100644 parser/testdata/02947_merge_tree_index_table_4/ast.json create mode 100644 parser/testdata/02947_parallel_replicas_remote/ast.json create mode 100644 parser/testdata/02949_parallel_replicas_in_subquery/ast.json create mode 100644 parser/testdata/02949_parallel_replicas_scalar_subquery_big_integer/ast.json create mode 100644 parser/testdata/02949_ttl_group_by_bug/ast.json create mode 100644 parser/testdata/02950_dictionary_short_circuit/ast.json create mode 100644 parser/testdata/02950_parallel_replicas_used_count/ast.json create mode 100644 parser/testdata/02950_part_offset_as_primary_key/ast.json create mode 100644 parser/testdata/02950_reading_array_tuple_subcolumns/ast.json create mode 100644 parser/testdata/02952_conjunction_optimization/ast.json create mode 100644 parser/testdata/02953_slow_create_view/ast.json create mode 100644 parser/testdata/02955_avro_format_zstd_encode_support/ast.json create mode 100644 parser/testdata/02955_sparkBar_alias_sparkbar/ast.json create mode 100644 parser/testdata/02956_fix_to_start_of_milli_microsecond/ast.json create mode 100644 parser/testdata/02956_format_constexpr/ast.json create mode 100644 parser/testdata/02956_rocksdb_with_ttl/ast.json create mode 100644 parser/testdata/02960_alter_table_part_query_parameter/ast.json create mode 100644 parser/testdata/02960_validate_database_engines/ast.json create mode 100644 parser/testdata/02961_analyzer_low_cardinality_fuzzer/ast.json create mode 100644 parser/testdata/02961_higher_order_constant_expressions/ast.json create mode 100644 parser/testdata/02961_read_bool_as_string_json/ast.json create mode 100644 parser/testdata/02961_sumMapFiltered_keepKey/ast.json create mode 100644 parser/testdata/02962_analyzer_const_in_count_distinct/ast.json create mode 100644 parser/testdata/02962_analyzer_constant_set/ast.json create mode 100644 parser/testdata/02962_analyzer_resolve_group_by_on_shards/ast.json create mode 100644 parser/testdata/02962_indexHint_rpn_construction/ast.json create mode 100644 parser/testdata/02962_join_using_bug_57894/ast.json create mode 100644 parser/testdata/02962_max_joined_block_rows/ast.json create mode 100644 parser/testdata/02962_parallel_window_functions_different_partitioning/ast.json create mode 100644 parser/testdata/02963_invalid_identifier/ast.json create mode 100644 parser/testdata/02963_msan_agg_addBatchLookupTable8/ast.json create mode 100644 parser/testdata/02963_single_value_destructor/ast.json create mode 100644 parser/testdata/02963_test_flexible_disk_configuration/ast.json create mode 100644 parser/testdata/02965_projection_with_partition_pruning/ast.json create mode 100644 parser/testdata/02966_float32_promotion/ast.json create mode 100644 parser/testdata/02967_fuzz_bad_cast/ast.json create mode 100644 parser/testdata/02967_index_hint_crash/ast.json create mode 100644 parser/testdata/02968_adaptive_async_insert_timeout/ast.json create mode 100644 parser/testdata/02968_analyzer_join_column_not_found/ast.json create mode 100644 parser/testdata/02968_full_sorting_join_fuzz/ast.json create mode 100644 parser/testdata/02968_projection_merge/ast.json create mode 100644 parser/testdata/02968_url_args/ast.json create mode 100644 parser/testdata/02969_analyzer_eliminate_injective_functions/ast.json create mode 100644 parser/testdata/02969_functions_to_subcolumns_if_null/ast.json create mode 100644 parser/testdata/02969_mysql_cast_type_aliases/ast.json create mode 100644 parser/testdata/02970_generate_series/ast.json create mode 100644 parser/testdata/02970_visible_width_behavior/ast.json create mode 100644 parser/testdata/02971_functions_to_subcolumns_column_names/ast.json create mode 100644 parser/testdata/02971_functions_to_subcolumns_map/ast.json create mode 100644 parser/testdata/02971_functions_to_subcolumns_variant/ast.json create mode 100644 parser/testdata/02971_limit_by_distributed/ast.json create mode 100644 parser/testdata/02972_insert_deduplication_token_hierarchical_inserts/ast.json create mode 100644 parser/testdata/02972_insert_deduplication_token_hierarchical_inserts_views/ast.json create mode 100644 parser/testdata/02972_parallel_replicas_cte/ast.json create mode 100644 parser/testdata/02972_to_string_nullable_timezone/ast.json create mode 100644 parser/testdata/02973_analyzer_join_use_nulls_column_not_found/ast.json create mode 100644 parser/testdata/02973_block_number_sparse_serialization_and_mutation/ast.json create mode 100644 parser/testdata/02973_dictionary_table_exception_fix/ast.json create mode 100644 parser/testdata/02974_analyzer_array_join_subcolumn/ast.json create mode 100644 parser/testdata/02974_if_with_map/ast.json create mode 100644 parser/testdata/02975_intdiv_with_decimal/ast.json create mode 100644 parser/testdata/02975_system_zookeeper_retries/ast.json create mode 100644 parser/testdata/02976_system_zookeeper_filters/ast.json create mode 100644 parser/testdata/02977_csv_format_support_tuple/ast.json create mode 100644 parser/testdata/02981_nested_bad_types/ast.json create mode 100644 parser/testdata/02981_translate_fixedstring/ast.json create mode 100644 parser/testdata/02981_variant_type_function/ast.json create mode 100644 parser/testdata/02981_vertical_merges_memory_usage/ast.json create mode 100644 parser/testdata/02982_changeDate/ast.json create mode 100644 parser/testdata/02982_create_mv_inner_extra/ast.json create mode 100644 parser/testdata/02982_parallel_replicas_unexpected_cluster/ast.json create mode 100644 parser/testdata/02982_unambiguous_alter_commands/ast.json create mode 100644 parser/testdata/02983_const_sharding_key/ast.json create mode 100644 parser/testdata/02983_empty_map/ast.json create mode 100644 parser/testdata/02983_empty_map_hasToken/ast.json create mode 100644 parser/testdata/02984_topk_empty_merge/ast.json create mode 100644 parser/testdata/02985_dialects_with_distributed_tables/ast.json create mode 100644 parser/testdata/02985_if_over_big_int_decimal/ast.json create mode 100644 parser/testdata/02985_minmax_index_aggregate_function/ast.json create mode 100644 parser/testdata/02985_shard_query_start_time/ast.json create mode 100644 parser/testdata/02986_leftpad_fixedstring/ast.json create mode 100644 parser/testdata/02987_group_array_intersect/ast.json create mode 100644 parser/testdata/02987_logical_optimizer_pass_lowcardinality/ast.json create mode 100644 parser/testdata/02988_join_using_prewhere_pushdown/ast.json create mode 100644 parser/testdata/02988_ordinary_database_warning/ast.json create mode 100644 parser/testdata/02989_group_by_tuple/ast.json create mode 100644 parser/testdata/02989_join_using_parent_scope/ast.json create mode 100644 parser/testdata/02989_replicated_merge_tree_invalid_metadata_version/ast.json create mode 100644 parser/testdata/02989_system_tables_metadata_version/ast.json create mode 100644 parser/testdata/02989_variant_comparison/ast.json create mode 100644 parser/testdata/02990_arrayFold_nullable_lc/ast.json create mode 100644 parser/testdata/02990_format_not_precedence/ast.json create mode 100644 parser/testdata/02990_optimize_uniq_to_count_alias/ast.json create mode 100644 parser/testdata/02990_parts_splitter_invalid_ranges/ast.json create mode 100644 parser/testdata/02990_rmt_replica_path_uuid/ast.json create mode 100644 parser/testdata/02990_variant_where_cond/ast.json create mode 100644 parser/testdata/02991_count_rewrite_analyzer/ast.json create mode 100644 parser/testdata/02992_all_columns_should_have_comment/ast.json create mode 100644 parser/testdata/02992_analyzer_group_by_const/ast.json create mode 100644 parser/testdata/02992_settings_overflow/ast.json create mode 100644 parser/testdata/02993_lazy_index_loading/ast.json create mode 100644 parser/testdata/02993_values_escape_quote/ast.json create mode 100644 parser/testdata/02994_cosineDistanceNullable/ast.json create mode 100644 parser/testdata/02994_inconsistent_formatting/ast.json create mode 100644 parser/testdata/02994_sanity_check_settings/ast.json create mode 100644 parser/testdata/02995_preliminary_filters_duplicated_columns/ast.json create mode 100644 parser/testdata/02995_preliminary_filters_duplicated_columns_SimpleAggregateFunction/ast.json create mode 100644 parser/testdata/02996_analyzer_prewhere_projection/ast.json create mode 100644 parser/testdata/02996_index_compaction_counterexample/ast.json create mode 100644 parser/testdata/02996_nullable_arrayReduce/ast.json create mode 100644 parser/testdata/02997_fix_datetime64_scale_conversion/ast.json create mode 100644 parser/testdata/02998_analyzer_prewhere_report/ast.json create mode 100644 parser/testdata/02998_analyzer_secret_args_tree_node/ast.json create mode 100644 parser/testdata/02998_ipv6_hashing/ast.json create mode 100644 parser/testdata/02998_operator_respect_nulls/ast.json create mode 100644 parser/testdata/02998_pretty_format_print_readable_number_on_single_value/ast.json create mode 100644 parser/testdata/02998_primary_key_skip_columns/ast.json create mode 100644 parser/testdata/02998_projection_after_attach_partition/ast.json create mode 100644 parser/testdata/02998_to_milliseconds/ast.json create mode 100644 parser/testdata/02999_analyzer_preimage_null/ast.json create mode 100644 parser/testdata/02999_scalar_subqueries_bug_1/ast.json create mode 100644 parser/testdata/02999_scalar_subqueries_bug_2/ast.json create mode 100644 parser/testdata/02999_ulid_short_circuit/ast.json create mode 100644 parser/testdata/02999_variant_suspicious_types/ast.json create mode 100644 parser/testdata/03000_minmax_index_first/ast.json create mode 100644 parser/testdata/03000_too_big_max_execution_time_setting/ast.json create mode 100644 parser/testdata/03000_traverse_shadow_system_data_paths/ast.json create mode 100644 parser/testdata/03000_virtual_columns_in_prewhere/ast.json create mode 100644 parser/testdata/03001_block_offset_column_2/ast.json create mode 100644 parser/testdata/03001_consider_lwd_when_merge/ast.json create mode 100644 parser/testdata/03001_data_version_column/ast.json create mode 100644 parser/testdata/03001_insert_threads_deduplication/ast.json create mode 100644 parser/testdata/03001_max_parallel_replicas_zero_value/ast.json create mode 100644 parser/testdata/03002_analyzer_prewhere/ast.json create mode 100644 parser/testdata/03002_filter_skip_virtual_columns_with_non_deterministic_functions/ast.json create mode 100644 parser/testdata/03002_int_div_decimal_with_date_bug/ast.json create mode 100644 parser/testdata/03002_map_array_functions_with_low_cardinality/ast.json create mode 100644 parser/testdata/03002_modify_query_cte/ast.json create mode 100644 parser/testdata/03002_sample_factor_where/ast.json create mode 100644 parser/testdata/03003_analyzer_setting/ast.json create mode 100644 parser/testdata/03003_compatibility_setting_bad_value/ast.json create mode 100644 parser/testdata/03003_count_asterisk_filter/ast.json create mode 100644 parser/testdata/03003_functions_to_subcolumns_final/ast.json create mode 100644 parser/testdata/03004_force_null_for_omitted/ast.json create mode 100644 parser/testdata/03004_json_named_tuples_inference_ambiguous_paths_as_string/ast.json create mode 100644 parser/testdata/03005_input_function_in_join/ast.json create mode 100644 parser/testdata/03006_buffer_overflow_join/ast.json create mode 100644 parser/testdata/03006_mv_deduplication_throw_if_async_insert/ast.json create mode 100644 parser/testdata/03006_parallel_replicas_cte_explain_syntax_crash/ast.json create mode 100644 parser/testdata/03007_column_nullable_uninitialzed_value/ast.json create mode 100644 parser/testdata/03008_deduplication_cases_from_docs/ast.json create mode 100644 parser/testdata/03008_deduplication_insert_into_partitioned_table/ast.json create mode 100644 parser/testdata/03008_deduplication_remote_insert_select/ast.json create mode 100644 parser/testdata/03008_deduplication_wrong_mv/ast.json create mode 100644 parser/testdata/03008_filter_projections_non_deterministoc_functions/ast.json create mode 100644 parser/testdata/03008_index_small/ast.json create mode 100644 parser/testdata/03008_optimize_equal_ranges/ast.json create mode 100644 parser/testdata/03008_uniq_exact_equal_ranges/ast.json create mode 100644 parser/testdata/03009_consecutive_keys_nullable/ast.json create mode 100644 parser/testdata/03009_range_dict_get_or_default/ast.json create mode 100644 parser/testdata/03009_storage_memory_circ_buffer_usage/ast.json create mode 100644 parser/testdata/03010_file_log_large_poll_batch_size/ast.json create mode 100644 parser/testdata/03010_read_system_parts_table_test/ast.json create mode 100644 parser/testdata/03010_sum_to_to_count_if_nullable/ast.json create mode 100644 parser/testdata/03010_view_prewhere_in/ast.json create mode 100644 parser/testdata/03010_virtual_memory_mappings_asynchronous_metrics/ast.json create mode 100644 parser/testdata/03011_adaptative_timeout_compatibility/ast.json create mode 100644 parser/testdata/03011_definitive_guide_to_cast/ast.json create mode 100644 parser/testdata/03012_prewhere_merge_distributed/ast.json create mode 100644 parser/testdata/03013_addDays_with_timezone/ast.json create mode 100644 parser/testdata/03013_fuzz_arrayPartialReverseSort/ast.json create mode 100644 parser/testdata/03013_group_by_use_nulls_with_materialize_and_analyzer/ast.json create mode 100644 parser/testdata/03013_ignore_drop_queries_probability/ast.json create mode 100644 parser/testdata/03013_position_const_start_pos/ast.json create mode 100644 parser/testdata/03013_repeat_with_nonnative_integers/ast.json create mode 100644 parser/testdata/03013_test_part_level_is_reset_attach_from_disk_mt/ast.json create mode 100644 parser/testdata/03014_analyzer_group_by_use_nulls/ast.json create mode 100644 parser/testdata/03014_group_by_use_nulls_injective_functions_and_analyzer/ast.json create mode 100644 parser/testdata/03014_msan_parse_date_time/ast.json create mode 100644 parser/testdata/03015_aggregator_empty_data_multiple_blocks/ast.json create mode 100644 parser/testdata/03015_peder1001/ast.json create mode 100644 parser/testdata/03018_analyzer_distributed_query_with_positional_arguments/ast.json create mode 100644 parser/testdata/03019_numbers_pretty/ast.json create mode 100644 parser/testdata/03020_order_by_SimpleAggregateFunction/ast.json create mode 100644 parser/testdata/03022_alter_materialized_view_query_has_inner_table/ast.json create mode 100644 parser/testdata/03022_highlight_digit_groups/ast.json create mode 100644 parser/testdata/03023_analyzer_optimize_group_by_function_keys_with_nulls/ast.json create mode 100644 parser/testdata/03023_group_by_use_nulls_analyzer_crashes/ast.json create mode 100644 parser/testdata/03023_remove_unused_column_distinct/ast.json create mode 100644 parser/testdata/03024_total_rows_approx_is_set_for_system_zeros_and_generate_random/ast.json create mode 100644 parser/testdata/03030_system_flush_distributed_settings/ast.json create mode 100644 parser/testdata/03031_distinguish_bool_and_int_in_settings/ast.json create mode 100644 parser/testdata/03031_filter_float64_logical_error/ast.json create mode 100644 parser/testdata/03031_low_cardinality_logical_error/ast.json create mode 100644 parser/testdata/03031_read_in_order_optimization_with_virtual_row/ast.json create mode 100644 parser/testdata/03031_read_in_order_optimization_with_virtual_row_explain/ast.json create mode 100644 parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/ast.json create mode 100644 parser/testdata/03031_table_function_fuzzquery/ast.json create mode 100644 parser/testdata/03031_tuple_elimination_analyzer/ast.json create mode 100644 parser/testdata/03032_multi_search_const_low_cardinality/ast.json create mode 100644 parser/testdata/03032_numbers_zeros/ast.json create mode 100644 parser/testdata/03032_redundant_equals/ast.json create mode 100644 parser/testdata/03032_rmt_create_columns_from_replica/ast.json create mode 100644 parser/testdata/03032_save_bad_json_escape_sequences/ast.json create mode 100644 parser/testdata/03032_scalars_create_as_select/ast.json create mode 100644 parser/testdata/03032_storage_memory_modify_settings/ast.json create mode 100644 parser/testdata/03032_string_to_variant_cast/ast.json create mode 100644 parser/testdata/03032_variant_bool_number_not_suspicious/ast.json create mode 100644 parser/testdata/03033_analyzer_merge_engine_filter_push_down/ast.json create mode 100644 parser/testdata/03033_analyzer_parametrized_view_alias/ast.json create mode 100644 parser/testdata/03033_analyzer_resolve_from_parent_scope/ast.json create mode 100644 parser/testdata/03033_create_as_copies_comment/ast.json create mode 100644 parser/testdata/03033_cte_numbers_memory/ast.json create mode 100644 parser/testdata/03033_dist_settings.optimize_skip_unused_shards_rewrite_in_composite_sharding_key/ast.json create mode 100644 parser/testdata/03033_dynamic_text_serialization/ast.json create mode 100644 parser/testdata/03033_final_undefined_last_mark/ast.json create mode 100644 parser/testdata/03033_from_unixtimestamp_joda_by_int64/ast.json create mode 100644 parser/testdata/03033_lightweight_deletes_sync/ast.json create mode 100644 parser/testdata/03033_parts_splitter_bug_and_index_loading/ast.json create mode 100644 parser/testdata/03033_recursive_cte_basic/ast.json create mode 100644 parser/testdata/03033_scalars_context_data_race/ast.json create mode 100644 parser/testdata/03033_set_index_in/ast.json create mode 100644 parser/testdata/03033_tupleIntXYZ_and_tupleModulo/ast.json create mode 100644 parser/testdata/03033_virtual_column_override/ast.json create mode 100644 parser/testdata/03033_with_fill_interpolate/ast.json create mode 100644 parser/testdata/03034_ddls_and_merges_with_unusual_maps/ast.json create mode 100644 parser/testdata/03034_dynamic_conversions/ast.json create mode 100644 parser/testdata/03034_json_extract_variant/ast.json create mode 100644 parser/testdata/03034_normalized_ast/ast.json create mode 100644 parser/testdata/03034_recursive_cte_tree/ast.json create mode 100644 parser/testdata/03034_recursive_cte_tree_fuzz_crash_fix/ast.json create mode 100644 parser/testdata/03034_recursive_cte_tree_merge_tree/ast.json create mode 100644 parser/testdata/03035_alias_column_bug_distributed/ast.json create mode 100644 parser/testdata/03035_argMinMax_numeric_non_extreme_bug/ast.json create mode 100644 parser/testdata/03035_dynamic_sorting/ast.json create mode 100644 parser/testdata/03035_internal_functions_direct_call/ast.json create mode 100644 parser/testdata/03035_materialized_primary_key/ast.json create mode 100644 parser/testdata/03035_morton_encode_no_rows/ast.json create mode 100644 parser/testdata/03036_clamp/ast.json create mode 100644 parser/testdata/03036_dynamic_read_shared_subcolumns_compact_merge_tree/ast.json create mode 100644 parser/testdata/03036_dynamic_read_shared_subcolumns_memory/ast.json create mode 100644 parser/testdata/03036_dynamic_read_shared_subcolumns_wide_merge_tree/ast.json create mode 100644 parser/testdata/03036_dynamic_read_subcolumns_compact_merge_tree/ast.json create mode 100644 parser/testdata/03036_dynamic_read_subcolumns_memory/ast.json create mode 100644 parser/testdata/03036_dynamic_read_subcolumns_wide_merge_tree/ast.json create mode 100644 parser/testdata/03036_join_filter_push_down_equivalent_sets/ast.json create mode 100644 parser/testdata/03036_prewhere_lambda_function/ast.json create mode 100644 parser/testdata/03036_reading_s3_archives/ast.json create mode 100644 parser/testdata/03036_reading_s3_cluster_archives/ast.json create mode 100644 parser/testdata/03036_schema_inference_cache_s3_archives/ast.json create mode 100644 parser/testdata/03036_with_numbers/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_1_horizontal_compact_merge_tree/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_1_horizontal_compact_wide_tree/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_1_vertical_compact_merge_tree/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_1_vertical_wide_merge_tree/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_2_horizontal_compact_merge_tree/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_2_horizontal_wide_merge_tree/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_2_vertical_compact_merge_tree/ast.json create mode 100644 parser/testdata/03037_dynamic_merges_2_vertical_wide_merge_tree/ast.json create mode 100644 parser/testdata/03037_precent_rank/ast.json create mode 100644 parser/testdata/03037_union_view/ast.json create mode 100644 parser/testdata/03037_zero_step_in_numbers_table_function/ast.json create mode 100644 parser/testdata/03038_ambiguous_column/ast.json create mode 100644 parser/testdata/03038_move_partition_to_oneself_deadlock/ast.json create mode 100644 parser/testdata/03038_nested_dynamic_merges_compact_horizontal/ast.json create mode 100644 parser/testdata/03038_nested_dynamic_merges_compact_vertical/ast.json create mode 100644 parser/testdata/03038_nested_dynamic_merges_wide_horizontal/ast.json create mode 100644 parser/testdata/03038_nested_dynamic_merges_wide_vertical/ast.json create mode 100644 parser/testdata/03039_unknown_identifier_window_function/ast.json create mode 100644 parser/testdata/03040_alias_column_join/ast.json create mode 100644 parser/testdata/03040_array_sum_and_join/ast.json create mode 100644 parser/testdata/03040_dynamic_type_alters_1_compact_merge_tree/ast.json create mode 100644 parser/testdata/03040_dynamic_type_alters_1_memory/ast.json create mode 100644 parser/testdata/03040_dynamic_type_alters_1_wide_merge_tree/ast.json create mode 100644 parser/testdata/03040_dynamic_type_alters_2_compact_merge_tree/ast.json create mode 100644 parser/testdata/03040_dynamic_type_alters_2_wide_merge_tree/ast.json create mode 100644 parser/testdata/03041_analyzer_gigachad_join/ast.json create mode 100644 parser/testdata/03041_select_with_query_result/ast.json create mode 100644 parser/testdata/03042_analyzer_alias_join/ast.json create mode 100644 parser/testdata/03042_not_found_column_c1/ast.json create mode 100644 parser/testdata/03043_group_array_result_is_expected/ast.json create mode 100644 parser/testdata/03044_analyzer_alias_join/ast.json create mode 100644 parser/testdata/03044_array_join_columns_in_nested_table/ast.json create mode 100644 parser/testdata/03045_analyzer_alias_join_with_if/ast.json create mode 100644 parser/testdata/03045_unknown_identifier_alias_substitution/ast.json create mode 100644 parser/testdata/03046_column_in_block_array_join/ast.json create mode 100644 parser/testdata/03047_analyzer_alias_join/ast.json create mode 100644 parser/testdata/03047_group_by_field_identified_aggregation/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_events/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_materialized/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_multiple_updates/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_multiple_updates_rmt/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_non_deterministic/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_non_deterministic_replace/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_prewhere/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_projections/ast.json create mode 100644 parser/testdata/03047_on_fly_mutations_skip_index/ast.json create mode 100644 parser/testdata/03047_on_fly_update_delete/ast.json create mode 100644 parser/testdata/03048_not_found_column_xxx_in_block/ast.json create mode 100644 parser/testdata/03049_analyzer_group_by_alias/ast.json create mode 100644 parser/testdata/03049_unknown_identifier_materialized_column/ast.json create mode 100644 parser/testdata/03050_select_one_one_one/ast.json create mode 100644 parser/testdata/03051_many_ctes/ast.json create mode 100644 parser/testdata/03052_query_hash_includes_aliases/ast.json create mode 100644 parser/testdata/03053_analyzer_join_alias/ast.json create mode 100644 parser/testdata/03054_analyzer_join_alias/ast.json create mode 100644 parser/testdata/03055_analyzer_subquery_group_array/ast.json create mode 100644 parser/testdata/03057_analyzer_subquery_alias_join/ast.json create mode 100644 parser/testdata/03058_analyzer_ambiguous_columns/ast.json create mode 100644 parser/testdata/03059_analyzer_join_engine_missing_column/ast.json create mode 100644 parser/testdata/03060_analyzer_regular_view_alias/ast.json create mode 100644 parser/testdata/03061_analyzer_alias_as_right_key_in_join/ast.json create mode 100644 parser/testdata/03062_analyzer_join_engine_missing_column/ast.json create mode 100644 parser/testdata/03063_analyzer_multi_join_wrong_table_specifier/ast.json create mode 100644 parser/testdata/03064_analyzer_named_subqueries/ast.json create mode 100644 parser/testdata/03065_analyzer_cross_join_and_array_join/ast.json create mode 100644 parser/testdata/03066_analyzer_global_with_statement/ast.json create mode 100644 parser/testdata/03067_analyzer_complex_alias_join/ast.json create mode 100644 parser/testdata/03068_analyzer_distributed_join/ast.json create mode 100644 parser/testdata/03069_analyzer_with_alias_in_array_join/ast.json create mode 100644 parser/testdata/03070_analyzer_CTE_scalar_as_numbers/ast.json create mode 100644 parser/testdata/03071_analyzer_array_join_forbid_non_existing_columns/ast.json create mode 100644 parser/testdata/03072_analyzer_missing_columns_from_subquery/ast.json create mode 100644 parser/testdata/03073_analyzer_alias_as_column_name/ast.json create mode 100644 parser/testdata/03074_analyzer_alias_column_in_view/ast.json create mode 100644 parser/testdata/03075_analyzer_subquery_alias/ast.json create mode 100644 parser/testdata/03076_analyzer_multiple_joins_alias/ast.json create mode 100644 parser/testdata/03077_analyzer_multi_scalar_subquery_aliases/ast.json create mode 100644 parser/testdata/03078_analyzer_multi_scalar_subquery_aliases/ast.json create mode 100644 parser/testdata/03079_analyzer_numeric_literals_as_column_names/ast.json create mode 100644 parser/testdata/03080_analyzer_prefer_column_name_to_alias__virtual_columns/ast.json create mode 100644 parser/testdata/03080_incorrect_join_with_merge/ast.json create mode 100644 parser/testdata/03081_analyzer_agg_func_CTE/ast.json create mode 100644 parser/testdata/03082_analyzer_left_join_correct_column/ast.json create mode 100644 parser/testdata/03084_analyzer_join_column_alias/ast.json create mode 100644 parser/testdata/03085_analyzer_alias_column_group_by/ast.json create mode 100644 parser/testdata/03086_analyzer_window_func_part_of_group_by/ast.json create mode 100644 parser/testdata/03087_analyzer_subquery_with_alias/ast.json create mode 100644 parser/testdata/03088_analyzer_ambiguous_column_multi_call/ast.json create mode 100644 parser/testdata/03089_analyzer_alias_replacement/ast.json create mode 100644 parser/testdata/03090_analyzer_multiple_using_statements/ast.json create mode 100644 parser/testdata/03091_analyzer_same_table_name_in_different_databases/ast.json create mode 100644 parser/testdata/03092_analyzer_same_table_name_in_different_databases/ast.json create mode 100644 parser/testdata/03093_analyzer_column_alias/ast.json create mode 100644 parser/testdata/03093_analyzer_miel_test/ast.json create mode 100644 parser/testdata/03093_reading_bug_with_parallel_replicas/ast.json create mode 100644 parser/testdata/03093_special_column_errors/ast.json create mode 100644 parser/testdata/03093_virtual_column_override_group_by/ast.json create mode 100644 parser/testdata/03094_analyzer_fiddle_multiif/ast.json create mode 100644 parser/testdata/03094_grouparraysorted_memory/ast.json create mode 100644 parser/testdata/03094_one_thousand_joins/ast.json create mode 100644 parser/testdata/03094_transform_return_first/ast.json create mode 100644 parser/testdata/03094_virtual_column_table_name/ast.json create mode 100644 parser/testdata/03095_group_by_server_constants_bug/ast.json create mode 100644 parser/testdata/03095_join_filter_push_down_right_stream_filled/ast.json create mode 100644 parser/testdata/03095_merge_and_buffer_tables/ast.json create mode 100644 parser/testdata/03095_msan_uuid_string_to_num/ast.json create mode 100644 parser/testdata/03095_window_functions_qualify/ast.json create mode 100644 parser/testdata/03096_order_by_system_tables/ast.json create mode 100644 parser/testdata/03096_update_non_indexed_columns/ast.json create mode 100644 parser/testdata/03097_query_log_join_processes/ast.json create mode 100644 parser/testdata/03098_prefer_column_to_alias_subquery/ast.json create mode 100644 parser/testdata/03099_analyzer_multi_join/ast.json create mode 100644 parser/testdata/03100_analyzer_constants_in_multiif/ast.json create mode 100644 parser/testdata/03100_lwu_01_basics/ast.json create mode 100644 parser/testdata/03100_lwu_02_basics/ast.json create mode 100644 parser/testdata/03100_lwu_03_join/ast.json create mode 100644 parser/testdata/03100_lwu_04_prewhere/ast.json create mode 100644 parser/testdata/03100_lwu_05_basics/ast.json create mode 100644 parser/testdata/03100_lwu_06_apply_patches/ast.json create mode 100644 parser/testdata/03100_lwu_07_merge_patches/ast.json create mode 100644 parser/testdata/03100_lwu_08_multiple_blocks/ast.json create mode 100644 parser/testdata/03100_lwu_09_different_structure/ast.json create mode 100644 parser/testdata/03100_lwu_10_apply_on_merges/ast.json create mode 100644 parser/testdata/03100_lwu_12_sequential_consistency/ast.json create mode 100644 parser/testdata/03100_lwu_18_sequence/ast.json create mode 100644 parser/testdata/03100_lwu_19_nullable/ast.json create mode 100644 parser/testdata/03100_lwu_20_different_structure/ast.json create mode 100644 parser/testdata/03100_lwu_22_detach_attach_patches/ast.json create mode 100644 parser/testdata/03100_lwu_23_apply_patches/ast.json create mode 100644 parser/testdata/03100_lwu_26_subcolumns/ast.json create mode 100644 parser/testdata/03100_lwu_27_update_after_on_fly_mutations/ast.json create mode 100644 parser/testdata/03100_lwu_30_join_cache/ast.json create mode 100644 parser/testdata/03100_lwu_31_merge_memory_usage/ast.json create mode 100644 parser/testdata/03100_lwu_32_on_fly_filter/ast.json create mode 100644 parser/testdata/03100_lwu_33_add_column/ast.json create mode 100644 parser/testdata/03100_lwu_34_multistep_prewhere/ast.json create mode 100644 parser/testdata/03100_lwu_35_lock_profile_events/ast.json create mode 100644 parser/testdata/03100_lwu_36_json_skip_indexes/ast.json create mode 100644 parser/testdata/03100_lwu_37_update_all_columns/ast.json create mode 100644 parser/testdata/03100_lwu_38_replacing/ast.json create mode 100644 parser/testdata/03100_lwu_39_after_replace_partition/ast.json create mode 100644 parser/testdata/03100_lwu_41_bytes_limits/ast.json create mode 100644 parser/testdata/03100_lwu_43_subquery_from_rmt/ast.json create mode 100644 parser/testdata/03100_lwu_44_missing_default/ast.json create mode 100644 parser/testdata/03100_lwu_45_query_condition_cache/ast.json create mode 100644 parser/testdata/03100_lwu_46_deletes_skip_indexes/ast.json create mode 100644 parser/testdata/03100_lwu_deletes_1/ast.json create mode 100644 parser/testdata/03100_lwu_deletes_2/ast.json create mode 100644 parser/testdata/03100_lwu_deletes_3/ast.json create mode 100644 parser/testdata/03100_lwu_deletes_4_index/ast.json create mode 100644 parser/testdata/03100_lwu_deletes_5_vertical_merge/ast.json create mode 100644 parser/testdata/03101_analyzer_identifiers_1/ast.json create mode 100644 parser/testdata/03101_analyzer_identifiers_2/ast.json create mode 100644 parser/testdata/03101_analyzer_identifiers_3/ast.json create mode 100644 parser/testdata/03101_analyzer_identifiers_4/ast.json create mode 100644 parser/testdata/03101_analyzer_invalid_join_on/ast.json create mode 100644 parser/testdata/03102_prefer_column_name_to_alias/ast.json create mode 100644 parser/testdata/03103_positional_arguments/ast.json create mode 100644 parser/testdata/03104_create_view_join/ast.json create mode 100644 parser/testdata/03105_table_aliases_in_mv/ast.json create mode 100644 parser/testdata/03107_ill_formed_select_in_materialized_view/ast.json create mode 100644 parser/testdata/03108_describe_union_all/ast.json create mode 100644 parser/testdata/03109_ast_too_big/ast.json create mode 100644 parser/testdata/03110_unicode_alias/ast.json create mode 100644 parser/testdata/03111_inner_join_group_by/ast.json create mode 100644 parser/testdata/03112_analyzer_not_found_column_in_block/ast.json create mode 100644 parser/testdata/03113_analyzer_not_found_column_in_block_2/ast.json create mode 100644 parser/testdata/03114_analyzer_cte_with_join/ast.json create mode 100644 parser/testdata/03115_alias_exists_column/ast.json create mode 100644 parser/testdata/03116_analyzer_explicit_alias_as_column_name/ast.json create mode 100644 parser/testdata/03117_analyzer_same_column_name_as_func/ast.json create mode 100644 parser/testdata/03118_analyzer_multi_join_prewhere/ast.json create mode 100644 parser/testdata/03119_analyzer_window_function_in_CTE_alias/ast.json create mode 100644 parser/testdata/03120_analyzer_dist_join/ast.json create mode 100644 parser/testdata/03120_analyzer_param_in_CTE_alias/ast.json create mode 100644 parser/testdata/03121_analyzer_filed_redefenition_in_subquery/ast.json create mode 100644 parser/testdata/03122_analyzer_collate_in_window_function/ast.json create mode 100644 parser/testdata/03123_analyzer_dist_join_CTE/ast.json create mode 100644 parser/testdata/03124_analyzer_nested_CTE_dist_in/ast.json create mode 100644 parser/testdata/03125_analyzer_CTE_two_joins/ast.json create mode 100644 parser/testdata/03126_column_not_under_group_by/ast.json create mode 100644 parser/testdata/03127_argMin_combinator_state/ast.json create mode 100644 parser/testdata/03127_system_unload_primary_key_table/ast.json create mode 100644 parser/testdata/03127_window_functions_uint16/ast.json create mode 100644 parser/testdata/03128_argMin_combinator_projection/ast.json create mode 100644 parser/testdata/03128_merge_tree_index_lazy_load/ast.json create mode 100644 parser/testdata/03128_system_unload_primary_key/ast.json create mode 100644 parser/testdata/03129_cte_with_final/ast.json create mode 100644 parser/testdata/03129_low_cardinality_nullable_non_first_primary_key/ast.json create mode 100644 parser/testdata/03129_serial_test_zookeeper/ast.json create mode 100644 parser/testdata/03129_update_nested_materialized_column_check/ast.json create mode 100644 parser/testdata/03130_abs_in_key_condition_bug/ast.json create mode 100644 parser/testdata/03130_analyzer_array_join_prefer_column/ast.json create mode 100644 parser/testdata/03130_analyzer_self_join_group_by/ast.json create mode 100644 parser/testdata/03130_convert_outer_join_to_inner_join/ast.json create mode 100644 parser/testdata/03130_generateSnowflakeId/ast.json create mode 100644 parser/testdata/03131_deprecated_functions/ast.json create mode 100644 parser/testdata/03131_hilbert_coding/ast.json create mode 100644 parser/testdata/03131_rewrite_sum_if_nullable/ast.json create mode 100644 parser/testdata/03132_jit_sort_description_crash_fix/ast.json create mode 100644 parser/testdata/03132_rewrite_aggregate_function_with_if_implicit_cast/ast.json create mode 100644 parser/testdata/03132_sqlancer_union_all/ast.json create mode 100644 parser/testdata/03141_fetches_errors_stress/ast.json create mode 100644 parser/testdata/03142_alter_comment_parameterized_view/ast.json create mode 100644 parser/testdata/03142_skip_ANSI_in_UTF8_compute_width/ast.json create mode 100644 parser/testdata/03142_untuple_crash/ast.json create mode 100644 parser/testdata/03142_window_function_limit_by/ast.json create mode 100644 parser/testdata/03143_asof_join_ddb_long/ast.json create mode 100644 parser/testdata/03143_cte_scope/ast.json create mode 100644 parser/testdata/03143_group_by_constant_secondary/ast.json create mode 100644 parser/testdata/03143_join_filter_push_down_filled_join_fix/ast.json create mode 100644 parser/testdata/03143_parallel_replicas_mat_view_bug/ast.json create mode 100644 parser/testdata/03143_ttl_in_system_parts_columns_table/ast.json create mode 100644 parser/testdata/03143_window_functions_qualify_validation/ast.json create mode 100644 parser/testdata/03144_aggregate_states_with_different_types/ast.json create mode 100644 parser/testdata/03144_alter_column_and_read/ast.json create mode 100644 parser/testdata/03144_asof_join_ddb_doubles/ast.json create mode 100644 parser/testdata/03144_invalid_filter/ast.json create mode 100644 parser/testdata/03145_asof_join_ddb_inequalities/ast.json create mode 100644 parser/testdata/03145_unicode_quotes/ast.json create mode 100644 parser/testdata/03146_bug47862/ast.json create mode 100644 parser/testdata/03146_parameterized_view_with_date/ast.json create mode 100644 parser/testdata/03146_tpc_ds_grouping/ast.json create mode 100644 parser/testdata/03147_asof_join_ddb_missing/ast.json create mode 100644 parser/testdata/03147_datetime64_constant_index_analysis/ast.json create mode 100644 parser/testdata/03147_parquet_memory_tracking/ast.json create mode 100644 parser/testdata/03147_rows_before_limit_fix/ast.json create mode 100644 parser/testdata/03147_table_function_loop/ast.json create mode 100644 parser/testdata/03147_table_function_loop_remote_storage/ast.json create mode 100644 parser/testdata/03148_asof_join_ddb_subquery/ast.json create mode 100644 parser/testdata/03148_mutations_virtual_columns/ast.json create mode 100644 parser/testdata/03148_query_log_used_dictionaries/ast.json create mode 100644 parser/testdata/03148_setting_max_streams_to_max_threads_ratio_overflow/ast.json create mode 100644 parser/testdata/03149_analyzer_join_projection_name/ast.json create mode 100644 parser/testdata/03149_analyzer_join_projection_name_2/ast.json create mode 100644 parser/testdata/03149_analyzer_window_redefinition/ast.json create mode 100644 parser/testdata/03149_asof_join_ddb_timestamps/ast.json create mode 100644 parser/testdata/03149_variant_pop_back_typo/ast.json create mode 100644 parser/testdata/03150_dynamic_type_mv_insert/ast.json create mode 100644 parser/testdata/03150_grouping_sets_use_nulls_pushdown/ast.json create mode 100644 parser/testdata/03150_infer_type_variant/ast.json create mode 100644 parser/testdata/03150_trace_log_add_build_id/ast.json create mode 100644 parser/testdata/03150_url_hash_non_constant_level/ast.json create mode 100644 parser/testdata/03151_analyzer_view_read_only_necessary_columns/ast.json create mode 100644 parser/testdata/03151_dynamic_type_scale_max_types/ast.json create mode 100644 parser/testdata/03151_external_cross_join/ast.json create mode 100644 parser/testdata/03151_pmj_join_non_procssed_clash/ast.json create mode 100644 parser/testdata/03151_redundant_distinct_with_window/ast.json create mode 100644 parser/testdata/03152_analyzer_columns_list/ast.json create mode 100644 parser/testdata/03152_dynamic_type_simple/ast.json create mode 100644 parser/testdata/03152_join_filter_push_down_equivalent_columns/ast.json create mode 100644 parser/testdata/03152_trailing_comma_in_columns_list_in_insert/ast.json create mode 100644 parser/testdata/03153_dynamic_type_empty/ast.json create mode 100644 parser/testdata/03153_trailing_comma_in_values_list_in_insert/ast.json create mode 100644 parser/testdata/03154_recursive_cte_distributed/ast.json create mode 100644 parser/testdata/03155_analyzer_interpolate/ast.json create mode 100644 parser/testdata/03155_datasketches_ubsan/ast.json create mode 100644 parser/testdata/03155_in_nested_subselects/ast.json create mode 100644 parser/testdata/03156_analyzer_array_join_distributed/ast.json create mode 100644 parser/testdata/03156_group_concat/ast.json create mode 100644 parser/testdata/03156_nullable_number_tips/ast.json create mode 100644 parser/testdata/03156_tuple_map_low_cardinality/ast.json create mode 100644 parser/testdata/03157_dynamic_type_json/ast.json create mode 100644 parser/testdata/03157_negative_positional_arguments_ubsan/ast.json create mode 100644 parser/testdata/03158_dynamic_type_from_variant/ast.json create mode 100644 parser/testdata/03159_dynamic_type_all_types/ast.json create mode 100644 parser/testdata/03160_dynamic_type_agg/ast.json create mode 100644 parser/testdata/03161_cnf_reduction/ast.json create mode 100644 parser/testdata/03161_create_table_as_mv/ast.json create mode 100644 parser/testdata/03161_ipv4_ipv6_equality/ast.json create mode 100644 parser/testdata/03161_lightweight_delete_projection/ast.json create mode 100644 parser/testdata/03162_dynamic_type_nested/ast.json create mode 100644 parser/testdata/03163_dynamic_as_supertype/ast.json create mode 100644 parser/testdata/03164_adapting_parquet_reader_output_size/ast.json create mode 100644 parser/testdata/03164_analyzer_global_in_alias/ast.json create mode 100644 parser/testdata/03164_analyzer_rewrite_aggregate_function_with_if/ast.json create mode 100644 parser/testdata/03164_analyzer_validate_tree_size/ast.json create mode 100644 parser/testdata/03164_create_as_default/ast.json create mode 100644 parser/testdata/03164_early_constant_folding_analyzer/ast.json create mode 100644 parser/testdata/03164_linestring_geometry/ast.json create mode 100644 parser/testdata/03164_materialize_skip_index/ast.json create mode 100644 parser/testdata/03164_materialize_skip_index_on_merge/ast.json create mode 100644 parser/testdata/03164_optimize_read_in_order_nullable/ast.json create mode 100644 parser/testdata/03164_orc_signedness/ast.json create mode 100644 parser/testdata/03164_parallel_replicas_range_filter_min_max/ast.json create mode 100644 parser/testdata/03164_s3_settings_for_queries_and_merges/ast.json create mode 100644 parser/testdata/03165_distinct_with_window_func_crash/ast.json create mode 100644 parser/testdata/03165_order_by_duplicate/ast.json create mode 100644 parser/testdata/03165_parseReadableSize/ast.json create mode 100644 parser/testdata/03165_storage_merge_view_prewhere/ast.json create mode 100644 parser/testdata/03165_string_functions_with_token_text_indexes/ast.json create mode 100644 parser/testdata/03166_mv_prewhere_duplicating_name_bug/ast.json create mode 100644 parser/testdata/03166_optimize_row_order_during_insert/ast.json create mode 100644 parser/testdata/03166_skip_indexes_vertical_merge_1/ast.json create mode 100644 parser/testdata/03166_skip_indexes_vertical_merge_2/ast.json create mode 100644 parser/testdata/03167_base64_url_functions/ast.json create mode 100644 parser/testdata/03167_empty_tuple_concat/ast.json create mode 100644 parser/testdata/03167_fancy_quotes_off_by_one/ast.json create mode 100644 parser/testdata/03167_parametrized_view_with_cte/ast.json create mode 100644 parser/testdata/03167_transactions_are_really_disabled/ast.json create mode 100644 parser/testdata/03168_attach_as_replicated_materialized_view/ast.json create mode 100644 parser/testdata/03168_cld2_tsan/ast.json create mode 100644 parser/testdata/03168_loop_engine_with_parallel_replicas/ast.json create mode 100644 parser/testdata/03168_read_in_order_buffering_1/ast.json create mode 100644 parser/testdata/03168_read_in_order_buffering_2/ast.json create mode 100644 parser/testdata/03169_cache_complex_dict_short_circuit_bug/ast.json create mode 100644 parser/testdata/03169_display_column_names_in_footer/ast.json create mode 100644 parser/testdata/03169_modify_column_data_loss/ast.json create mode 100644 parser/testdata/03169_optimize_injective_functions_inside_uniq_crash/ast.json create mode 100644 parser/testdata/03170_part_offset_as_table_column/ast.json create mode 100644 parser/testdata/03171_condition_pushdown/ast.json create mode 100644 parser/testdata/03171_direct_dict_short_circuit_bug/ast.json create mode 100644 parser/testdata/03171_function_to_subcolumns_fuzzer/ast.json create mode 100644 parser/testdata/03171_hashed_dictionary_short_circuit_bug_fix/ast.json create mode 100644 parser/testdata/03171_indexing_by_hilbert_curve/ast.json create mode 100644 parser/testdata/03172_bcrypt_validation/ast.json create mode 100644 parser/testdata/03172_format_settings_clauses/ast.json create mode 100644 parser/testdata/03172_system_detached_tables_no_loop/ast.json create mode 100644 parser/testdata/03173_check_cyclic_dependencies_on_create_and_rename/ast.json create mode 100644 parser/testdata/03173_distinct_combinator_alignment/ast.json create mode 100644 parser/testdata/03173_forbid_qualify/ast.json create mode 100644 parser/testdata/03173_set_transformed_partition_pruning/ast.json create mode 100644 parser/testdata/03174_exact_rows_before_aggregation/ast.json create mode 100644 parser/testdata/03174_least_greatest_ignore_null_input_values/ast.json create mode 100644 parser/testdata/03174_merge_join_bug/ast.json create mode 100644 parser/testdata/03174_projection_deduplicate/ast.json create mode 100644 parser/testdata/03174_split_parts_ranges_into_intersecting_and_non_intersecting_final_and_read-in-order_bug/ast.json create mode 100644 parser/testdata/03175_sparse_and_skip_index/ast.json create mode 100644 parser/testdata/03176_check_timeout_in_index_analysis/ast.json create mode 100644 parser/testdata/03195_group_concat_deserialization_fix/ast.json create mode 100644 parser/testdata/03196_max_intersections_arena_crash/ast.json create mode 100644 parser/testdata/03197_fix_parse_mysql_iso_date/ast.json create mode 100644 parser/testdata/03197_storage_join_strictness_type_restriction/ast.json create mode 100644 parser/testdata/03198_bit_shift_throws_error_for_out_of_bounds/ast.json create mode 100644 parser/testdata/03198_dynamic_read_subcolumns/ast.json create mode 100644 parser/testdata/03198_group_array_intersect/ast.json create mode 100644 parser/testdata/03198_json_extract_more_types/ast.json create mode 100644 parser/testdata/03198_table_function_directory_path/ast.json create mode 100644 parser/testdata/03199_fix_auc_tie_handling/ast.json create mode 100644 parser/testdata/03199_has_lc_fixed_string/ast.json create mode 100644 parser/testdata/03199_join_with_materialized_column/ast.json create mode 100644 parser/testdata/03199_json_extract_dynamic/ast.json create mode 100644 parser/testdata/03199_merge_filters_bug/ast.json create mode 100644 parser/testdata/03199_queries_with_new_analyzer/ast.json create mode 100644 parser/testdata/03200_memory_engine_alter_dynamic/ast.json create mode 100644 parser/testdata/03200_subcolumns_join_use_nulls/ast.json create mode 100644 parser/testdata/03201_analyzer_resolve_in_parent_scope/ast.json create mode 100644 parser/testdata/03201_sumIf_to_countIf_return_type/ast.json create mode 100644 parser/testdata/03202_enum_json_cast/ast.json create mode 100644 parser/testdata/03202_system_load_primary_key/ast.json create mode 100644 parser/testdata/03203_count_with_non_deterministic_function/ast.json create mode 100644 parser/testdata/03203_drop_detached_partition_all/ast.json create mode 100644 parser/testdata/03203_fill_missed_subcolumns/ast.json create mode 100644 parser/testdata/03203_function_printf/ast.json create mode 100644 parser/testdata/03203_multiif_and_where_2_conditions_old_analyzer_bug/ast.json create mode 100644 parser/testdata/03203_optimize_disjunctions_chain_to_in/ast.json create mode 100644 parser/testdata/03203_system_numbers_limit_and_offset_simple/ast.json create mode 100644 parser/testdata/03203_variant_convert_field_to_type_bug/ast.json create mode 100644 parser/testdata/03204_distributed_with_scalar_subquery/ast.json create mode 100644 parser/testdata/03204_index_hint_fuzzer/ast.json create mode 100644 parser/testdata/03204_storage_join_optimize/ast.json create mode 100644 parser/testdata/03205_hashing_empty_tuples/ast.json create mode 100644 parser/testdata/03205_json_cast_from_string/ast.json create mode 100644 parser/testdata/03205_json_syntax/ast.json create mode 100644 parser/testdata/03205_overlay/ast.json create mode 100644 parser/testdata/03205_parallel_replicas_alter_select_ubsan/ast.json create mode 100644 parser/testdata/03205_parallel_window_finctions_and_column_sparse_bug/ast.json create mode 100644 parser/testdata/03205_system_sync_replica_format/ast.json create mode 100644 parser/testdata/03206_is_null_constant_result_old_analyzer_bug/ast.json create mode 100644 parser/testdata/03206_projection_merge_special_mergetree/ast.json create mode 100644 parser/testdata/03206_projection_merge_special_mergetree_ignore/ast.json create mode 100644 parser/testdata/03206_replication_lag_metric/ast.json create mode 100644 parser/testdata/03207_composite_expressions_lambda_consistent_formatting/ast.json create mode 100644 parser/testdata/03207_json_read_subcolumns_1_memory/ast.json create mode 100644 parser/testdata/03207_json_read_subcolumns_2_memory/ast.json create mode 100644 parser/testdata/03208_array_of_json_read_subcolumns_2_memory/ast.json create mode 100644 parser/testdata/03208_buffer_over_distributed_type_mismatch/ast.json create mode 100644 parser/testdata/03208_groupArrayIntersect_serialization/ast.json create mode 100644 parser/testdata/03208_multiple_joins_with_storage_join/ast.json create mode 100644 parser/testdata/03208_numbers_total_rows_approx/ast.json create mode 100644 parser/testdata/03208_uniq_with_empty_tuple/ast.json create mode 100644 parser/testdata/03209_functions_json_msan_fuzzer_issue/ast.json create mode 100644 parser/testdata/03209_parallel_replicas_lost_decimal_conversion/ast.json create mode 100644 parser/testdata/03209_parallel_replicas_order_by_all/ast.json create mode 100644 parser/testdata/03209_parameterized_view_with_non_literal_params/ast.json create mode 100644 parser/testdata/03210_convert_outer_join_to_inner_join_any_join/ast.json create mode 100644 parser/testdata/03210_dynamic_squashing/ast.json create mode 100644 parser/testdata/03210_empty_tuple_lhs_of_in/ast.json create mode 100644 parser/testdata/03210_nested_short_circuit_functions_bug/ast.json create mode 100644 parser/testdata/03210_optimize_rewrite_aggregate_function_with_if_return_type_bug/ast.json create mode 100644 parser/testdata/03210_variant_with_aggregate_function_type/ast.json create mode 100644 parser/testdata/03211_convert_outer_join_to_inner_join_anti_join/ast.json create mode 100644 parser/testdata/03212_optimize_with_constraints_logical_error/ast.json create mode 100644 parser/testdata/03212_variant_dynamic_cast_or_default/ast.json create mode 100644 parser/testdata/03213_array_element_msan/ast.json create mode 100644 parser/testdata/03213_deep_json/ast.json create mode 100644 parser/testdata/03213_denseRank_percentRank_alias/ast.json create mode 100644 parser/testdata/03213_distributed_analyzer/ast.json create mode 100644 parser/testdata/03214_bitslice_argument_evaluation/ast.json create mode 100644 parser/testdata/03214_count_distinct_null_key_memory_leak/ast.json create mode 100644 parser/testdata/03214_join_on_tuple_comparison_elimination_bug/ast.json create mode 100644 parser/testdata/03214_json_typed_dynamic_path/ast.json create mode 100644 parser/testdata/03215_analyzer_materialized_constants_bug/ast.json create mode 100644 parser/testdata/03215_analyzer_replace_with_dummy_tables/ast.json create mode 100644 parser/testdata/03215_fix_get_index_in_tuple/ast.json create mode 100644 parser/testdata/03215_key_condition_bug/ast.json create mode 100644 parser/testdata/03215_multilinestring_geometry/ast.json create mode 100644 parser/testdata/03215_parquet_index/ast.json create mode 100644 parser/testdata/03215_parsing_archive_name_s3/ast.json create mode 100644 parser/testdata/03215_partition_in_tuple/ast.json create mode 100644 parser/testdata/03215_toStartOfWeek_with_dateTime64_fix/ast.json create mode 100644 parser/testdata/03215_validate_type_in_alter_add_modify_column/ast.json create mode 100644 parser/testdata/03215_varian_as_common_type_integers/ast.json create mode 100644 parser/testdata/03215_varian_as_common_type_tuple_map/ast.json create mode 100644 parser/testdata/03215_view_with_recursive/ast.json create mode 100644 parser/testdata/03216_arrayWithConstant_limits/ast.json create mode 100644 parser/testdata/03217_datetime64_constant_to_ast/ast.json create mode 100644 parser/testdata/03217_filtering_in_system_tables/ast.json create mode 100644 parser/testdata/03217_fliter_pushdown_no_keys/ast.json create mode 100644 parser/testdata/03217_json_merge_patch_stack_overflow/ast.json create mode 100644 parser/testdata/03217_primary_index_memory_leak/ast.json create mode 100644 parser/testdata/03218_materialize_msan/ast.json create mode 100644 parser/testdata/03221_create_if_not_exists_setting/ast.json create mode 100644 parser/testdata/03221_incomplete_utf8_sequence/ast.json create mode 100644 parser/testdata/03221_key_condition_bug/ast.json create mode 100644 parser/testdata/03221_merge_profile_events/ast.json create mode 100644 parser/testdata/03221_variant_logical_error/ast.json create mode 100644 parser/testdata/03222_create_timeseries_table/ast.json create mode 100644 parser/testdata/03222_date_time_inference/ast.json create mode 100644 parser/testdata/03222_datetime64_small_value_const/ast.json create mode 100644 parser/testdata/03222_json_empty_as_default/ast.json create mode 100644 parser/testdata/03222_json_squashing/ast.json create mode 100644 parser/testdata/03222_parallel_replicas_final_in_subquery/ast.json create mode 100644 parser/testdata/03222_parallel_replicas_min_marks_to_read_overflow/ast.json create mode 100644 parser/testdata/03222_pr_asan_index_granularity/ast.json create mode 100644 parser/testdata/03223_analyzer_with_cube_fuzz/ast.json create mode 100644 parser/testdata/03223_interval_data_type_comparison/ast.json create mode 100644 parser/testdata/03223_nested_json_in_shared_data_merges/ast.json create mode 100644 parser/testdata/03223_system_tables_set_not_ready/ast.json create mode 100644 parser/testdata/03224_arrayUnion/ast.json create mode 100644 parser/testdata/03224_invalid_alter/ast.json create mode 100644 parser/testdata/03224_json_merges_new_type_in_shared_data/ast.json create mode 100644 parser/testdata/03224_nested_json_merges_new_type_in_shared_data/ast.json create mode 100644 parser/testdata/03224_tuple_element_identifier/ast.json create mode 100644 parser/testdata/03225_const_prewhere_non_ataptive/ast.json create mode 100644 parser/testdata/03227_distinct_dynamic_types_json_paths/ast.json create mode 100644 parser/testdata/03227_dynamic_subcolumns_enumerate_streams/ast.json create mode 100644 parser/testdata/03227_implicit_select/ast.json create mode 100644 parser/testdata/03227_json_invalid_regexp/ast.json create mode 100644 parser/testdata/03227_test_sample_n/ast.json create mode 100644 parser/testdata/03228_async_insert_query_params_bad_type/ast.json create mode 100644 parser/testdata/03228_dynamic_serializations_uninitialized_value/ast.json create mode 100644 parser/testdata/03228_dynamic_subcolumns_from_subquery/ast.json create mode 100644 parser/testdata/03228_join_to_rerange_right_table/ast.json create mode 100644 parser/testdata/03228_pr_subquery_view_order_by/ast.json create mode 100644 parser/testdata/03228_variant_permutation_issue/ast.json create mode 100644 parser/testdata/03228_virtual_column_merge_dist/ast.json create mode 100644 parser/testdata/03229_async_insert_alter/ast.json create mode 100644 parser/testdata/03229_empty_tuple_in_array/ast.json create mode 100644 parser/testdata/03229_json_null_as_default_for_tuple/ast.json create mode 100644 parser/testdata/03229_json_structure_comparison/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_drop_cache/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_final/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_in_operator/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_nondeterministic_functions/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_plaintext_condition/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_profile_events/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_recursive_cte/ast.json create mode 100644 parser/testdata/03229_query_condition_cache_system_table/ast.json create mode 100644 parser/testdata/03230_alter_with_mixed_mutations_and_remove_materialized/ast.json create mode 100644 parser/testdata/03230_anyHeavy_merge/ast.json create mode 100644 parser/testdata/03230_array_zip_unaligned/ast.json create mode 100644 parser/testdata/03230_date_trunc_and_to_start_of_interval_on_date32/ast.json create mode 100644 parser/testdata/03230_show_create_query_identifier_quoting_style/ast.json create mode 100644 parser/testdata/03230_subcolumns_mv/ast.json create mode 100644 parser/testdata/03230_system_projections/ast.json create mode 100644 parser/testdata/03231_create_with_clone_as/ast.json create mode 100644 parser/testdata/03231_csv_dont_infer_bool_from_string/ast.json create mode 100644 parser/testdata/03231_dynamic_incomplete_type_insert_bug/ast.json create mode 100644 parser/testdata/03231_dynamic_uniq_group_by/ast.json create mode 100644 parser/testdata/03231_dynamic_variant_in_order_by_group_by/ast.json create mode 100644 parser/testdata/03231_pr_duplicate_announcement/ast.json create mode 100644 parser/testdata/03231_pr_duplicate_announcement_2/ast.json create mode 100644 parser/testdata/03231_pr_reverse_in_order/ast.json create mode 100644 parser/testdata/03231_prewhere_conditions_order/ast.json create mode 100644 parser/testdata/03231_values_respect_format_settings_in_fields_conversion/ast.json create mode 100644 parser/testdata/03232_json_uniq_group_by/ast.json create mode 100644 parser/testdata/03232_pr_not_ready_set/ast.json create mode 100644 parser/testdata/03233_dynamic_in_functions/ast.json create mode 100644 parser/testdata/03234_enable_secure_identifiers/ast.json create mode 100644 parser/testdata/03234_get_setting_or_default/ast.json create mode 100644 parser/testdata/03235_groupArray_string_consistency/ast.json create mode 100644 parser/testdata/03236_create_query_ttl_where/ast.json create mode 100644 parser/testdata/03236_keeper_map_engine_parameters/ast.json create mode 100644 parser/testdata/03236_squashing_high_memory/ast.json create mode 100644 parser/testdata/03236_test_zero_field_decimal/ast.json create mode 100644 parser/testdata/03237_create_table_select_as_with_recursive/ast.json create mode 100644 parser/testdata/03237_max_map_state_decimal_serialization/ast.json create mode 100644 parser/testdata/03238_analyzer_unknown_function/ast.json create mode 100644 parser/testdata/03239_if_constant_folding/ast.json create mode 100644 parser/testdata/03240_array_element_or_null/ast.json create mode 100644 parser/testdata/03240_array_element_or_null_for_map/ast.json create mode 100644 parser/testdata/03240_cte_in_subquery/ast.json create mode 100644 parser/testdata/03240_insert_select_named_tuple/ast.json create mode 100644 parser/testdata/03240_quantile_exact_weighted_interpolated/ast.json create mode 100644 parser/testdata/03241_orc_dictionary_encode/ast.json create mode 100644 parser/testdata/03241_view_block_structure/ast.json create mode 100644 parser/testdata/03242_view_block_structure/ast.json create mode 100644 parser/testdata/03243_array_join_lambda/ast.json create mode 100644 parser/testdata/03243_check_for_nullable_nothing_in_alter/ast.json create mode 100644 parser/testdata/03243_cluster_not_found_column/ast.json create mode 100644 parser/testdata/03243_compatibility_setting_with_alias/ast.json create mode 100644 parser/testdata/03243_create_or_replace_view_dependency_check/ast.json create mode 100644 parser/testdata/03243_lower_utf8_msan/ast.json create mode 100644 parser/testdata/03243_to_start_of_interval_aliases/ast.json create mode 100644 parser/testdata/03244_skip_index_in_final_query_with_pk_rescan/ast.json create mode 100644 parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_basic/ast.json create mode 100644 parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_extremes/ast.json create mode 100644 parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_no_final_mark/ast.json create mode 100644 parser/testdata/03245_ripemd160/ast.json create mode 100644 parser/testdata/03245_views_and_filter_push_down_bug/ast.json create mode 100644 parser/testdata/03246_alter_update_dynamic_hung/ast.json create mode 100644 parser/testdata/03246_join_on_asterisk/ast.json create mode 100644 parser/testdata/03246_json_subcolumn_correct_type/ast.json create mode 100644 parser/testdata/03246_json_tuple_decompress_race/ast.json create mode 100644 parser/testdata/03246_range_literal_replacement_works/ast.json create mode 100644 parser/testdata/03246_toStartOfInterval_date_timezone_bug/ast.json create mode 100644 parser/testdata/03247_generic_arrayMin_arrayMax_fixes/ast.json create mode 100644 parser/testdata/03247_json_extract_lc_nullable/ast.json create mode 100644 parser/testdata/03247_object_column_copy/ast.json create mode 100644 parser/testdata/03247_pr_local_plan_non_constant_in_source/ast.json create mode 100644 parser/testdata/03248_max_parts_to_move/ast.json create mode 100644 parser/testdata/03248_with_fill_string_crash/ast.json create mode 100644 parser/testdata/03248_with_insert/ast.json create mode 100644 parser/testdata/03249_dynamic_alter_consistency/ast.json create mode 100644 parser/testdata/03250_avoid_prefetch_empty_parts/ast.json create mode 100644 parser/testdata/03250_ephemeral_comment/ast.json create mode 100644 parser/testdata/03250_json_group_by_sub_object_subcolumn/ast.json create mode 100644 parser/testdata/03251_unaligned_window_function_state/ast.json create mode 100644 parser/testdata/03252_check_number_of_arguments_for_dynamic/ast.json create mode 100644 parser/testdata/03252_fill_missed_arrays/ast.json create mode 100644 parser/testdata/03252_merge_tree_min_bytes_to_seek/ast.json create mode 100644 parser/testdata/03253_getMaxTableNameLength/ast.json create mode 100644 parser/testdata/03254_attach_part_order/ast.json create mode 100644 parser/testdata/03254_last_2_samples_aggregate_function/ast.json create mode 100644 parser/testdata/03254_last_2_samples_aggregate_function_simple/ast.json create mode 100644 parser/testdata/03254_merge_source_parts/ast.json create mode 100644 parser/testdata/03254_normalize_aggregate_states_with_named_tuple_args/ast.json create mode 100644 parser/testdata/03254_part_log_partition_column_is_set/ast.json create mode 100644 parser/testdata/03254_pr_join_on_dups/ast.json create mode 100644 parser/testdata/03254_prewarm_mark_cache_columns/ast.json create mode 100644 parser/testdata/03254_prewarm_mark_cache_rmt/ast.json create mode 100644 parser/testdata/03254_project_lwd_respects_row_exists/ast.json create mode 100644 parser/testdata/03254_system_prewarm_mark_cache/ast.json create mode 100644 parser/testdata/03254_timeseries_functions/ast.json create mode 100644 parser/testdata/03254_timeseries_functions_various_arguments/ast.json create mode 100644 parser/testdata/03254_timeseries_group_array/ast.json create mode 100644 parser/testdata/03254_timeseries_instant_value_aggregate_functions/ast.json create mode 100644 parser/testdata/03254_timeseries_range/ast.json create mode 100644 parser/testdata/03254_timeseries_to_grid_aggregate_function/ast.json create mode 100644 parser/testdata/03254_timeseries_to_grid_aggregate_function_sparse/ast.json create mode 100644 parser/testdata/03255_merge_mutation_start_entry_in_the_part_log/ast.json create mode 100644 parser/testdata/03256_invalid_mutation_query/ast.json create mode 100644 parser/testdata/03257_json_escape_file_names/ast.json create mode 100644 parser/testdata/03257_reverse_sorting_key/ast.json create mode 100644 parser/testdata/03257_reverse_sorting_key_simple/ast.json create mode 100644 parser/testdata/03257_reverse_sorting_key_zookeeper/ast.json create mode 100644 parser/testdata/03257_setting_tiers/ast.json create mode 100644 parser/testdata/03258_dynamic_in_functions_weak_ptr_exception/ast.json create mode 100644 parser/testdata/03258_multiple_array_joins/ast.json create mode 100644 parser/testdata/03258_quantile_exact_weighted_issue/ast.json create mode 100644 parser/testdata/03259_grouping_sets_aliases/ast.json create mode 100644 parser/testdata/03259_join_condition_executed_block_bug/ast.json create mode 100644 parser/testdata/03259_negate_key_overflow/ast.json create mode 100644 parser/testdata/03259_orc_date_out_of_range/ast.json create mode 100644 parser/testdata/03260_dynamic_low_cardinality_dict_bug/ast.json create mode 100644 parser/testdata/03261_any_respect_camelCase_aliases/ast.json create mode 100644 parser/testdata/03261_delayed_streams_memory/ast.json create mode 100644 parser/testdata/03261_low_cardinality_nullable_to_dynamic_cast/ast.json create mode 100644 parser/testdata/03261_minmax_indices_by_default/ast.json create mode 100644 parser/testdata/03261_minmax_indices_by_default_table_copy/ast.json create mode 100644 parser/testdata/03261_mongodb_argumetns_crash/ast.json create mode 100644 parser/testdata/03261_optimize_rewrite_array_exists_to_has_crash/ast.json create mode 100644 parser/testdata/03261_pr_semi_anti_join/ast.json create mode 100644 parser/testdata/03261_sort_cursor_crash/ast.json create mode 100644 parser/testdata/03261_tuple_map_to_json_cast/ast.json create mode 100644 parser/testdata/03261_variant_permutation_bug/ast.json create mode 100644 parser/testdata/03262_analyzer_materialized_view_in_with_cte/ast.json create mode 100644 parser/testdata/03262_column_sizes_with_dynamic_structure/ast.json create mode 100644 parser/testdata/03262_common_expression_optimization/ast.json create mode 100644 parser/testdata/03262_const_adaptive_index_granularity/ast.json create mode 100644 parser/testdata/03262_filter_push_down_view/ast.json create mode 100644 parser/testdata/03262_system_functions_should_not_fill_query_log_functions/ast.json create mode 100644 parser/testdata/03263_analyzer_materialized_view_cte_nested/ast.json create mode 100644 parser/testdata/03263_forbid_materialize_sort_key/ast.json create mode 100644 parser/testdata/03263_parquet_write_bloom_filter/ast.json create mode 100644 parser/testdata/03266_lowcardinality_string_monotonicity/ast.json create mode 100644 parser/testdata/03266_with_fill_staleness/ast.json create mode 100644 parser/testdata/03266_with_fill_staleness_cases/ast.json create mode 100644 parser/testdata/03266_with_fill_staleness_errors/ast.json create mode 100644 parser/testdata/03267_join_swap_bug/ast.json create mode 100644 parser/testdata/03268_empty_tuple_update/ast.json create mode 100644 parser/testdata/03268_nested_analyzer/ast.json create mode 100644 parser/testdata/03268_system_parts_index_granularity/ast.json create mode 100644 parser/testdata/03268_vertical_pretty_numbers/ast.json create mode 100644 parser/testdata/03269_partition_key_not_in_set/ast.json create mode 100644 parser/testdata/03270_empty_tuple_in_array_intersect/ast.json create mode 100644 parser/testdata/03270_fix_column_modifier_write_order/ast.json create mode 100644 parser/testdata/03270_max_bytes_ratio_before_external_group_by/ast.json create mode 100644 parser/testdata/03271_date_to_datetime_saturation/ast.json create mode 100644 parser/testdata/03271_decimal_monotonic_day_of_week/ast.json create mode 100644 parser/testdata/03271_dynamic_variant_in_min_max/ast.json create mode 100644 parser/testdata/03271_max_bytes_ratio_before_external_order_by/ast.json create mode 100644 parser/testdata/03271_s3_table_function_asterisk_glob/ast.json create mode 100644 parser/testdata/03271_sqllancer_having_issue/ast.json create mode 100644 parser/testdata/03272_arrayAUCPR/ast.json create mode 100644 parser/testdata/03272_bad_aggregate_function/ast.json create mode 100644 parser/testdata/03272_bitmapTransform_error_counter/ast.json create mode 100644 parser/testdata/03272_json_to_json_cast_1/ast.json create mode 100644 parser/testdata/03272_json_to_json_cast_2/ast.json create mode 100644 parser/testdata/03272_json_to_json_cast_3/ast.json create mode 100644 parser/testdata/03272_json_to_json_cast_4/ast.json create mode 100644 parser/testdata/03272_json_to_json_cast_5/ast.json create mode 100644 parser/testdata/03272_json_to_json_cast_6/ast.json create mode 100644 parser/testdata/03272_parallel_replicas_read_in_order/ast.json create mode 100644 parser/testdata/03272_partition_pruning_monotonic_func_bug/ast.json create mode 100644 parser/testdata/03272_prewarm_mark_cache_add_column/ast.json create mode 100644 parser/testdata/03273_better_json_subcolumns_parsing/ast.json create mode 100644 parser/testdata/03273_dynamic_pretty_json_serialization/ast.json create mode 100644 parser/testdata/03273_format_inference_create_query_s3_url/ast.json create mode 100644 parser/testdata/03273_group_by_in_order_still_used_when_group_by_key_doesnt_match_order_by_key/ast.json create mode 100644 parser/testdata/03273_primary_index_cache/ast.json create mode 100644 parser/testdata/03273_primary_index_cache_low_cardinality/ast.json create mode 100644 parser/testdata/03274_aliases_in_udf/ast.json create mode 100644 parser/testdata/03274_dynamic_column_data_race_with_concurrent_hj/ast.json create mode 100644 parser/testdata/03274_dynamic_column_sizes_vertical_merge/ast.json create mode 100644 parser/testdata/03274_grace_hash_max_joined_block_size_rows_bug/ast.json create mode 100644 parser/testdata/03274_join_algorithm_default/ast.json create mode 100644 parser/testdata/03274_json_pretty_output/ast.json create mode 100644 parser/testdata/03274_json_to_json_alter_nested_json/ast.json create mode 100644 parser/testdata/03274_philipzucker/ast.json create mode 100644 parser/testdata/03274_prewarm_primary_index_cache/ast.json create mode 100644 parser/testdata/03274_squashing_transform_sparse_bug/ast.json create mode 100644 parser/testdata/03275_auto_cluster_functions_with_parallel_replicas/ast.json create mode 100644 parser/testdata/03275_block_number_mutation/ast.json create mode 100644 parser/testdata/03275_block_number_update/ast.json create mode 100644 parser/testdata/03275_count_digits_argument_evaluation/ast.json create mode 100644 parser/testdata/03275_matview_with_union/ast.json create mode 100644 parser/testdata/03275_pr_any_join/ast.json create mode 100644 parser/testdata/03275_subcolumns_in_primary_key_bug/ast.json create mode 100644 parser/testdata/03276_database_backup_merge_tree_table_file_engine/ast.json create mode 100644 parser/testdata/03276_empty_variant_type/ast.json create mode 100644 parser/testdata/03276_functions_to_subcolumns_lc/ast.json create mode 100644 parser/testdata/03276_index_empty_part/ast.json create mode 100644 parser/testdata/03276_index_of_assume_sorted/ast.json create mode 100644 parser/testdata/03276_merge_tree_index_lazy_load/ast.json create mode 100644 parser/testdata/03276_parquet_output_compression_level/ast.json create mode 100644 parser/testdata/03277_analyzer_array_join_fix/ast.json create mode 100644 parser/testdata/03277_dead_letter_queue_unsupported/ast.json create mode 100644 parser/testdata/03277_join_adaptive_spill/ast.json create mode 100644 parser/testdata/03277_join_adaptive_spill_oom/ast.json create mode 100644 parser/testdata/03277_logging_elapsed_ns/ast.json create mode 100644 parser/testdata/03278_database_backup_merge_tree_table_disk_engine/ast.json create mode 100644 parser/testdata/03278_dateTime64_in_dateTime64_bug/ast.json create mode 100644 parser/testdata/03278_enum_in_unknown_value/ast.json create mode 100644 parser/testdata/03278_enum_string_functions/ast.json create mode 100644 parser/testdata/03279_array_normalized_gini/ast.json create mode 100644 parser/testdata/03279_database_backup_database_disk_engine/ast.json create mode 100644 parser/testdata/03279_join_choose_build_table/ast.json create mode 100644 parser/testdata/03279_join_choose_build_table_auto_statistics/ast.json create mode 100644 parser/testdata/03279_join_choose_build_table_statistics/ast.json create mode 100644 parser/testdata/03279_not_empty_json/ast.json create mode 100644 parser/testdata/03280_dynamic_if_null/ast.json create mode 100644 parser/testdata/03281_dynamic_coalesce/ast.json create mode 100644 parser/testdata/03282_block_number_otehr_mutations/ast.json create mode 100644 parser/testdata/03282_dynamic_in_functions_convert/ast.json create mode 100644 parser/testdata/03282_highlight_trailing_whitespace_pretty/ast.json create mode 100644 parser/testdata/03282_join_distributed_no_columns/ast.json create mode 100644 parser/testdata/03282_json_equal_comparison/ast.json create mode 100644 parser/testdata/03282_materialized_views_ignore_errors/ast.json create mode 100644 parser/testdata/03282_memory_transaction_crash/ast.json create mode 100644 parser/testdata/03283_json_binary_serialization_use_default_setttings/ast.json create mode 100644 parser/testdata/03283_optimize_on_insert_level/ast.json create mode 100644 parser/testdata/03284_json_object_as_tuple_duplicate_keys/ast.json create mode 100644 parser/testdata/03285_analyzer_array_join_nested/ast.json create mode 100644 parser/testdata/03285_analyzer_extract_common_expr_bug/ast.json create mode 100644 parser/testdata/03285_analyzer_optimize_disjunctions/ast.json create mode 100644 parser/testdata/03285_default_engine_with_settings/ast.json create mode 100644 parser/testdata/03285_materialize_ttl_only_drop_parts/ast.json create mode 100644 parser/testdata/03285_parallel_replicas_one_replica/ast.json create mode 100644 parser/testdata/03286_backup_to_memory/ast.json create mode 100644 parser/testdata/03286_backup_to_null/ast.json create mode 100644 parser/testdata/03286_collation_locale_with_modifier/ast.json create mode 100644 parser/testdata/03286_format_datetime_timezones/ast.json create mode 100644 parser/testdata/03286_parallel_replicas_cross_join_bug/ast.json create mode 100644 parser/testdata/03286_reverse_sorting_key_final/ast.json create mode 100644 parser/testdata/03286_reverse_sorting_key_final2/ast.json create mode 100644 parser/testdata/03286_serialization_hint_system_columns/ast.json create mode 100644 parser/testdata/03287_dynamic_and_json_squashing_fix/ast.json create mode 100644 parser/testdata/03287_format_datetime_mysqlfraction/ast.json create mode 100644 parser/testdata/03287_not_comparable_types_in_order_by_and_comparison_functions/ast.json create mode 100644 parser/testdata/03289_explain_syntax_statistics/ast.json create mode 100644 parser/testdata/03289_tuple_element_to_subcolumn/ast.json create mode 100644 parser/testdata/03290_final_collapsing/ast.json create mode 100644 parser/testdata/03290_final_replacing/ast.json create mode 100644 parser/testdata/03290_final_sample/ast.json create mode 100644 parser/testdata/03290_force_normal_projection/ast.json create mode 100644 parser/testdata/03290_mix_engine_and_query_settings/ast.json create mode 100644 parser/testdata/03290_pr_non_replicated_in_subquery/ast.json create mode 100644 parser/testdata/03291_collapsing_invalid_sign/ast.json create mode 100644 parser/testdata/03291_json_big_structure_deserialization/ast.json create mode 100644 parser/testdata/03291_low_cardinality_uuid/ast.json create mode 100644 parser/testdata/03292_nullable_json_schema_inference/ast.json create mode 100644 parser/testdata/03296_bfloat16_ubsan/ast.json create mode 100644 parser/testdata/03297_cut_column_name/ast.json create mode 100644 parser/testdata/03298_analyzer_group_by_all_fix/ast.json create mode 100644 parser/testdata/03298_server_client_native_settings/ast.json create mode 100644 parser/testdata/03298_vertical_columns/ast.json create mode 100644 parser/testdata/03299_deep_nested_map_creation/ast.json create mode 100644 parser/testdata/03299_map_named_tuple/ast.json create mode 100644 parser/testdata/03299_pretty_squash/ast.json create mode 100644 parser/testdata/03300_generate_random_const_expr_params/ast.json create mode 100644 parser/testdata/03300_nested_json_empty_keys/ast.json create mode 100644 parser/testdata/03300_pretty_vertical_cut/ast.json create mode 100644 parser/testdata/03301_is_ipv4_string/ast.json create mode 100644 parser/testdata/03301_subcolumns_in_mv/ast.json create mode 100644 parser/testdata/03302_analyzer_distributed_filter_push_down/ast.json create mode 100644 parser/testdata/03302_analyzer_join_filter_push_down_bug/ast.json create mode 100644 parser/testdata/03302_any_enum_aggregation/ast.json create mode 100644 parser/testdata/03302_merge_table_structure_unification/ast.json create mode 100644 parser/testdata/03303_alias_inverse_order/ast.json create mode 100644 parser/testdata/03303_distributed_explain/ast.json create mode 100644 parser/testdata/03303_dynamic_in_not_xor/ast.json create mode 100644 parser/testdata/03303_pretty_multiline/ast.json create mode 100644 parser/testdata/03304_compare_substrings/ast.json create mode 100644 parser/testdata/03304_fill_virtual_columns/ast.json create mode 100644 parser/testdata/03304_pretty_fallback_to_vertical/ast.json create mode 100644 parser/testdata/03305_compressed_memory_eng_crash_reading_subcolumn/ast.json create mode 100644 parser/testdata/03305_fix_kafka_table_with_kw_arguments/ast.json create mode 100644 parser/testdata/03305_log_unsupported_types/ast.json create mode 100644 parser/testdata/03305_mergine_aggregated_filter_push_down/ast.json create mode 100644 parser/testdata/03306_materialized_vew_prewhere_supported_columns/ast.json create mode 100644 parser/testdata/03306_optimize_table_force_keyword/ast.json create mode 100644 parser/testdata/03307_forbid_loop_table_function_as_engine/ast.json create mode 100644 parser/testdata/03307_parallel_hash_max_joined_rows/ast.json create mode 100644 parser/testdata/03310_aggregate_projection_count_nullable/ast.json create mode 100644 parser/testdata/03310_index_hints_read_columns/ast.json create mode 100644 parser/testdata/03310_materialized_view_with_bad_select/ast.json create mode 100644 parser/testdata/03311_constantnode/ast.json create mode 100644 parser/testdata/03311_issue_72265/ast.json create mode 100644 parser/testdata/03311_min_max_count_projection_with_constant_partition_expr/ast.json create mode 100644 parser/testdata/03311_subcolumns_in_default_and_materialized_expressions/ast.json create mode 100644 parser/testdata/03312_analyzer_unused_projection_fix/ast.json create mode 100644 parser/testdata/03312_explain_syntax_analyzer/ast.json create mode 100644 parser/testdata/03312_issue_74299/ast.json create mode 100644 parser/testdata/03312_json_literal_remote/ast.json create mode 100644 parser/testdata/03312_sparse_column_tuple/ast.json create mode 100644 parser/testdata/03312_squashing_with_low_card_mem_usage/ast.json create mode 100644 parser/testdata/03312_system_errors_last_error/ast.json create mode 100644 parser/testdata/03313_h3togeo_result_order/ast.json create mode 100644 parser/testdata/03314_analyzer_resolve_in_parent_scope_2/ast.json create mode 100644 parser/testdata/03314_analyzer_resolve_in_parent_scope_3/ast.json create mode 100644 parser/testdata/03314_analyzer_resolve_in_parent_scope_4/ast.json create mode 100644 parser/testdata/03314_divide_decimal_short_circuit/ast.json create mode 100644 parser/testdata/03314_empty_tuple_in_protobuf_format/ast.json create mode 100644 parser/testdata/03314_grace_hash_join_buckets/ast.json create mode 100644 parser/testdata/03314_has_column_in_table_alias_column/ast.json create mode 100644 parser/testdata/03314_nullable_key_no_optimize_functions_to_subcolumns/ast.json create mode 100644 parser/testdata/03314_summing_merge_tree_final_not_found_column_in_block/ast.json create mode 100644 parser/testdata/03314_variant_rowbinary_file/ast.json create mode 100644 parser/testdata/03315_analyzer_correlated_subqueries/ast.json create mode 100644 parser/testdata/03315_join_on_optimize_pass_alias/ast.json create mode 100644 parser/testdata/03315_join_temporary_table_names/ast.json create mode 100644 parser/testdata/03315_quantile_bfloat16_ubsan/ast.json create mode 100644 parser/testdata/03315_trim_two_args/ast.json create mode 100644 parser/testdata/03316_analyzer_unique_table_aliases_dist/ast.json create mode 100644 parser/testdata/03317_index_hint_prewhere/ast.json create mode 100644 parser/testdata/03317_pretty_fallback_to_vertical_consistent/ast.json create mode 100644 parser/testdata/03318_ubsan_resample_arguments_count/ast.json create mode 100644 parser/testdata/03319_concurrent_hash_join_double_preallocation_bug/ast.json create mode 100644 parser/testdata/03321_functions_to_subcolumns_skip_index/ast.json create mode 100644 parser/testdata/03321_inner_materialized_view_nested/ast.json create mode 100644 parser/testdata/03321_join_on_is_null_lowcardinality/ast.json create mode 100644 parser/testdata/03321_system_tables_parametrized_view_params/ast.json create mode 100644 parser/testdata/03322_check_count_for_parquet_in_s3/ast.json create mode 100644 parser/testdata/03322_initial_query_start_time_check/ast.json create mode 100644 parser/testdata/03322_materialized_view_ignore_errors_url/ast.json create mode 100644 parser/testdata/03323_bfloat16_least_supertype/ast.json create mode 100644 parser/testdata/03324_aggregating_merge_tree_final_extremes/ast.json create mode 100644 parser/testdata/03325_alter_modify_projection_primary_key_column/ast.json create mode 100644 parser/testdata/03325_count_summing_merge_tree_order_by_tuple/ast.json create mode 100644 parser/testdata/03325_distributed_join_json_array_subcolumns/ast.json create mode 100644 parser/testdata/03326_parallel_replicas_out_of_range/ast.json create mode 100644 parser/testdata/03326_toStartOfNanosecond_ubsan/ast.json create mode 100644 parser/testdata/03327_alias_column_constant/ast.json create mode 100644 parser/testdata/03327_hypothesis_index_sanity/ast.json create mode 100644 parser/testdata/03328_formatting_assignment_expression/ast.json create mode 100644 parser/testdata/03333_merge_table_total_rows_no_database_system_tables_exception/ast.json create mode 100644 parser/testdata/03334_aliases_function_infinite_loop/ast.json create mode 100644 parser/testdata/03340_projections_formatting/ast.json create mode 100644 parser/testdata/03340_transform_logical_error_fix/ast.json create mode 100644 parser/testdata/03350_alter_table_fetch_partition_thread_pool/ast.json create mode 100644 parser/testdata/03352_allow_suspicious_ttl/ast.json create mode 100644 parser/testdata/03352_distinct_sorted_bug/ast.json create mode 100644 parser/testdata/03352_lazy_column_filter_by_uint8/ast.json create mode 100644 parser/testdata/03353_codec_zstd_doubledelta_data_corruption/ast.json create mode 100644 parser/testdata/03354_translate_crap/ast.json create mode 100644 parser/testdata/03355_array_join_subcolumns/ast.json create mode 100644 parser/testdata/03355_issue_31183/ast.json create mode 100644 parser/testdata/03355_issue_32743/ast.json create mode 100644 parser/testdata/03355_join_to_in_optimization/ast.json create mode 100644 parser/testdata/03355_mergetree_table_disk/ast.json create mode 100644 parser/testdata/03356_analyzer_qualified_matcher_error/ast.json create mode 100644 parser/testdata/03356_analyzer_unused_scalar_subquery/ast.json create mode 100644 parser/testdata/03356_array_join_subcolumns_indexes/ast.json create mode 100644 parser/testdata/03356_postgresql_mysql_endpoint_parsing/ast.json create mode 100644 parser/testdata/03356_pull_entry_before_detach_part/ast.json create mode 100644 parser/testdata/03356_tables_with_binary_identifiers_invalid_utf8/ast.json create mode 100644 parser/testdata/03356_threshold_for_parallel_hash/ast.json create mode 100644 parser/testdata/03357_analyzer_insert_view/ast.json create mode 100644 parser/testdata/03357_arraySymmetricDifference/ast.json create mode 100644 parser/testdata/03357_block_structure_union_step/ast.json create mode 100644 parser/testdata/03357_check_contraints_null_syntax/ast.json create mode 100644 parser/testdata/03357_jit_strikes_again/ast.json create mode 100644 parser/testdata/03357_join_pk_sharding/ast.json create mode 100644 parser/testdata/03357_recursive_cte_no_logical_error/ast.json create mode 100644 parser/testdata/03357_storage_join_mv_context/ast.json create mode 100644 parser/testdata/03357_with_cube_with_totals_assertion/ast.json create mode 100644 parser/testdata/03358_block_structure_match/ast.json create mode 100644 parser/testdata/03358_lambda_resolution_segfault_analyzer/ast.json create mode 100644 parser/testdata/03359_analyzer_rewrite_view_query/ast.json create mode 100644 parser/testdata/03359_point_in_polygon_index/ast.json create mode 100644 parser/testdata/03359_ub_merging_aggregated_transform/ast.json create mode 100644 parser/testdata/03360_any_join_parallel_hash_bug/ast.json create mode 100644 parser/testdata/03360_bool_remote/ast.json create mode 100644 parser/testdata/03362_filter_transform_profile_events/ast.json create mode 100644 parser/testdata/03362_iceberg_table_with_confusing_name/ast.json create mode 100644 parser/testdata/03362_join_on_filterpushdown/ast.json create mode 100644 parser/testdata/03362_join_where_false_76670/ast.json create mode 100644 parser/testdata/03362_optimize_using_constraints_type_mismatch/ast.json create mode 100644 parser/testdata/03362_reverse_sorting_key_explicit_primary_key/ast.json create mode 100644 parser/testdata/03363_constant_nullable_key/ast.json create mode 100644 parser/testdata/03363_estimate_compression_ratio_validation/ast.json create mode 100644 parser/testdata/03363_function_keccak256/ast.json create mode 100644 parser/testdata/03363_hive_style_partition/ast.json create mode 100644 parser/testdata/03363_qbit_create_insert_select/ast.json create mode 100644 parser/testdata/03363_read_json_and_subcolumns_from_view/ast.json create mode 100644 parser/testdata/03364_gorilla_codec_parameters/ast.json create mode 100644 parser/testdata/03364_pretty_json_bool/ast.json create mode 100644 parser/testdata/03364_qbit_negative/ast.json create mode 100644 parser/testdata/03364_s3_globbed_path_in_bucket_portion/ast.json create mode 100644 parser/testdata/03364_ttl_should_recalculate_minmax_index/ast.json create mode 100644 parser/testdata/03364_with_fill_select_from_cluster_view/ast.json create mode 100644 parser/testdata/03365_bind_host/ast.json create mode 100644 parser/testdata/03365_csv_time_deserialization_bug/ast.json create mode 100644 parser/testdata/03365_dynamic_column_datetime/ast.json create mode 100644 parser/testdata/03365_if_time_time64/ast.json create mode 100644 parser/testdata/03365_json_with_variant_subcolumn/ast.json create mode 100644 parser/testdata/03365_parsing_time_time64_short/ast.json create mode 100644 parser/testdata/03365_qbit_casts_as_from_array/ast.json create mode 100644 parser/testdata/03365_read_negative_time_implicitly/ast.json create mode 100644 parser/testdata/03365_time64_casts/ast.json create mode 100644 parser/testdata/03365_time64_from_datetime_timezone_respect/ast.json create mode 100644 parser/testdata/03365_time_implicit_conversion/ast.json create mode 100644 parser/testdata/03365_time_in_json/ast.json create mode 100644 parser/testdata/03365_time_parsing_msan_issue/ast.json create mode 100644 parser/testdata/03365_time_prewhere_supertype_bug/ast.json create mode 100644 parser/testdata/03365_time_time64_aggregate_functions/ast.json create mode 100644 parser/testdata/03365_time_time64_as_primary_key/ast.json create mode 100644 parser/testdata/03365_time_time64_best_effort_parsing/ast.json create mode 100644 parser/testdata/03365_time_time64_cap_max_time/ast.json create mode 100644 parser/testdata/03365_time_time64_comparison/ast.json create mode 100644 parser/testdata/03365_time_time64_conversions/ast.json create mode 100644 parser/testdata/03365_time_time64_extreme_values/ast.json create mode 100644 parser/testdata/03365_time_time64_insertion_bug/ast.json create mode 100644 parser/testdata/03365_time_time64_operations/ast.json create mode 100644 parser/testdata/03365_time_time64_parsing/ast.json create mode 100644 parser/testdata/03365_time_time64_supertype/ast.json create mode 100644 parser/testdata/03365_time_time64_without_timezone/ast.json create mode 100644 parser/testdata/03365_time_timezone_issue/ast.json create mode 100644 parser/testdata/03365_time_to_time64_conv_bug/ast.json create mode 100644 parser/testdata/03365_use_legacy_to_time/ast.json create mode 100644 parser/testdata/03365_variant_bool_parsing/ast.json create mode 100644 parser/testdata/03366_qbit_array_map_populate/ast.json create mode 100644 parser/testdata/03366_with_fill_dag/ast.json create mode 100644 parser/testdata/03367_bfloat16_tuple_final/ast.json create mode 100644 parser/testdata/03368_bfloat16_merge_join/ast.json create mode 100644 parser/testdata/03368_qbit_subcolumns/ast.json create mode 100644 parser/testdata/03369_bfloat16_map/ast.json create mode 100644 parser/testdata/03369_function_arrayLevenshtein/ast.json create mode 100644 parser/testdata/03369_l2_distance_transposed_variadic/ast.json create mode 100644 parser/testdata/03369_predicate_pushdown_enforce_literal_type/ast.json create mode 100644 parser/testdata/03369_values_template_types_mismatch/ast.json create mode 100644 parser/testdata/03369_variant_escape_filename_merge_tree/ast.json create mode 100644 parser/testdata/03370_join_identifiers/ast.json create mode 100644 parser/testdata/03370_rocks_db_engine_subcolumn_in_pk/ast.json create mode 100644 parser/testdata/03371_analyzer_filter_pushdown_distributed/ast.json create mode 100644 parser/testdata/03371_bfloat16_special_values/ast.json create mode 100644 parser/testdata/03371_constant_alias_columns/ast.json create mode 100644 parser/testdata/03371_nullable_tuple_string_comparison/ast.json create mode 100644 parser/testdata/03372_get_subcolumn_null/ast.json create mode 100644 parser/testdata/03372_qbit_mergetree_1/ast.json create mode 100644 parser/testdata/03372_qbit_mergetree_2/ast.json create mode 100644 parser/testdata/03373_qbit_dynamic/ast.json create mode 100644 parser/testdata/03374_date_trunc_with_negatives/ast.json create mode 100644 parser/testdata/03374_indexes_with_literals/ast.json create mode 100644 parser/testdata/03374_indexes_with_trivial_cast/ast.json create mode 100644 parser/testdata/03374_qbit_nullable/ast.json create mode 100644 parser/testdata/03375_bloom_filter_array_equals/ast.json create mode 100644 parser/testdata/03375_bloom_filter_has_hasAny_const_array/ast.json create mode 100644 parser/testdata/03375_bloom_filter_ngram_has_hasAny_const_array/ast.json create mode 100644 parser/testdata/03375_bloom_filter_token_has_hasAny_const_array/ast.json create mode 100644 parser/testdata/03375_bool_partition/ast.json create mode 100644 parser/testdata/03375_l2_distance_transposed_partial_reads_pass/ast.json create mode 100644 parser/testdata/03376_forbid_nan_inf_for_float_settings/ast.json create mode 100644 parser/testdata/03376_iceberg_truncate/ast.json create mode 100644 parser/testdata/03376_json_comparison/ast.json create mode 100644 parser/testdata/03376_l2_distance_transposed_type_mismatch/ast.json create mode 100644 parser/testdata/03377_json_order_by_bug/ast.json create mode 100644 parser/testdata/03377_qbit_parameters/ast.json create mode 100644 parser/testdata/03381_lazy_materialization_limit_offset/ast.json create mode 100644 parser/testdata/03381_remote_constants/ast.json create mode 100644 parser/testdata/03382_dynamic_serialization_default_settings/ast.json create mode 100644 parser/testdata/03390_non_constant_case/ast.json create mode 100644 parser/testdata/03391_logical_error_sort_column/ast.json create mode 100644 parser/testdata/03392_inconsistent_formatting_of_lambda/ast.json create mode 100644 parser/testdata/03393_ASTTableIdentifier_fuzzer/ast.json create mode 100644 parser/testdata/03393_join_bug_77848/ast.json create mode 100644 parser/testdata/03393_max_merge_delayed_streams_for_parallel_write/ast.json create mode 100644 parser/testdata/03393_max_read_buffer_size_non_zero/ast.json create mode 100644 parser/testdata/03393_non_constant_second_argument_for_in/ast.json create mode 100644 parser/testdata/03393_smallest_index_floating_point/ast.json create mode 100644 parser/testdata/03393_validate_storage_buffer_args/ast.json create mode 100644 parser/testdata/03394_fix_to_start_of_interval_for_zero_origin_argument/ast.json create mode 100644 parser/testdata/03394_naive_bayes_classifier_negative/ast.json create mode 100644 parser/testdata/03394_pr_insert_select/ast.json create mode 100644 parser/testdata/03394_pr_insert_select_local_pipeline/ast.json create mode 100644 parser/testdata/03394_pr_insert_select_threads/ast.json create mode 100644 parser/testdata/03395_global_join_supported_kind/ast.json create mode 100644 parser/testdata/03397_information_schema_tables_index_length/ast.json create mode 100644 parser/testdata/03398_group_array_zero_max_elements/ast.json create mode 100644 parser/testdata/03399_advanced_expr_contains_sharding_key/ast.json create mode 100644 parser/testdata/03399_analyzer_correlated_subquery/ast.json create mode 100644 parser/testdata/03399_divide_zero_or_null/ast.json create mode 100644 parser/testdata/03399_mapContains_functions/ast.json create mode 100644 parser/testdata/03399_sparse_grams/ast.json create mode 100644 parser/testdata/03400_analyzer_correlated_subquery_unused_column/ast.json create mode 100644 parser/testdata/03400_distributed_final/ast.json create mode 100644 parser/testdata/03400_explain_distributed_bug/ast.json create mode 100644 parser/testdata/03401_normal_projection_with_part_offset/ast.json create mode 100644 parser/testdata/03401_normal_projection_with_part_offset_no_sorting/ast.json create mode 100644 parser/testdata/03401_remote_bool/ast.json create mode 100644 parser/testdata/03401_several_iceberg_tables_in_one_dir/ast.json create mode 100644 parser/testdata/03402_adding_projection_to_temporary_table/ast.json create mode 100644 parser/testdata/03402_cluster_table_functions_settings_parsing/ast.json create mode 100644 parser/testdata/03402_concurrent_right_full_join/ast.json create mode 100644 parser/testdata/03402_cyclic_alter_dependencies/ast.json create mode 100644 parser/testdata/03402_join_using_alias/ast.json create mode 100644 parser/testdata/03402_materialized_tuple_element/ast.json create mode 100644 parser/testdata/03402_secondary_indexes_analyzer_bugs/ast.json create mode 100644 parser/testdata/03402_zero_streams_after_max_streams_to_max_threads_ratio/ast.json create mode 100644 parser/testdata/03403_distributed_merge_two_level_aggregation/ast.json create mode 100644 parser/testdata/03403_function_tokens/ast.json create mode 100644 parser/testdata/03403_parallel_blocks_marshalling_for_distributed/ast.json create mode 100644 parser/testdata/03403_read_in_order_streams_memory_usage/ast.json create mode 100644 parser/testdata/03403_toInterval/ast.json create mode 100644 parser/testdata/03403_truncate_all_tables_like/ast.json create mode 100644 parser/testdata/03404_bfloat16_insert_values/ast.json create mode 100644 parser/testdata/03404_geotoh3_input_order/ast.json create mode 100644 parser/testdata/03404_json_tables/ast.json create mode 100644 parser/testdata/03404_lazy_materialization_distributed/ast.json create mode 100644 parser/testdata/03404_ubsan_distinct_join_const_column/ast.json create mode 100644 parser/testdata/03405_bool_array_to_fixed_strings/ast.json create mode 100644 parser/testdata/03405_join_using_alias_constant/ast.json create mode 100644 parser/testdata/03405_merge_filter_into_join/ast.json create mode 100644 parser/testdata/03405_naive_bayes_classifier_token/ast.json create mode 100644 parser/testdata/03405_non_zero_batch_mode/ast.json create mode 100644 parser/testdata/03405_ssd_cache_incorrect_min_max_lifetimes_and_block_size/ast.json create mode 100644 parser/testdata/03407_csv_bad_date_time_parsing/ast.json create mode 100644 parser/testdata/03407_parse_date_time_best_effort_unix_timestamp_with_fraction/ast.json create mode 100644 parser/testdata/03408_analyzer_correlated_subquery_simple/ast.json create mode 100644 parser/testdata/03408_cte_self_reference/ast.json create mode 100644 parser/testdata/03408_current_database_on_cluster_constraint/ast.json create mode 100644 parser/testdata/03408_hash_functions_on_null/ast.json create mode 100644 parser/testdata/03408_implicit_table/ast.json create mode 100644 parser/testdata/03408_limit_by_rows_before_limit/ast.json create mode 100644 parser/testdata/03408_limit_by_rows_before_limit_dist/ast.json create mode 100644 parser/testdata/03408_limit_by_rows_before_limit_mem/ast.json create mode 100644 parser/testdata/03409_coalescing_merge_tree/ast.json create mode 100644 parser/testdata/03409_coalescing_replicated_merge_tree/ast.json create mode 100644 parser/testdata/03409_variant_type_values_format_field_conversion/ast.json create mode 100644 parser/testdata/03411_analyzer_scalar_correlated_subquery/ast.json create mode 100644 parser/testdata/03411_iceberg_bucket/ast.json create mode 100644 parser/testdata/03411_summing_merge_tree_dynamic_values/ast.json create mode 100644 parser/testdata/03411_variant_basic_discriminators_deserialization_bug/ast.json create mode 100644 parser/testdata/03412_analyzer_correlated_subquery_bug/ast.json create mode 100644 parser/testdata/03412_dynamic_in_arg_min_max/ast.json create mode 100644 parser/testdata/03412_materialized_view_to_distributed_different_headers/ast.json create mode 100644 parser/testdata/03412_merge_final_prewhere/ast.json create mode 100644 parser/testdata/03413_analyzer_correlated_subqueries_bug_2/ast.json create mode 100644 parser/testdata/03413_dynamic_in_in/ast.json create mode 100644 parser/testdata/03413_group_by_all_in_subquery/ast.json create mode 100644 parser/testdata/03414_analyzer_correlated_subqueries_in_function/ast.json create mode 100644 parser/testdata/03414_formatDateTime_compound_formatter_after_varsize_formatter/ast.json create mode 100644 parser/testdata/03415_dont_highlight_probable_hashes/ast.json create mode 100644 parser/testdata/03416_glue_chunks/ast.json create mode 100644 parser/testdata/03432_input_format_parquet_max_block_size_validation/ast.json create mode 100644 parser/testdata/03440_no_glue_totals/ast.json create mode 100644 parser/testdata/03441_deltalake_clickhouse_public_datasets/ast.json create mode 100644 parser/testdata/03441_deltalake_clickhouse_virtual_columns/ast.json create mode 100644 parser/testdata/03442_alter_delete_empty_part/ast.json create mode 100644 parser/testdata/03442_alter_delete_empty_part_rmt/ast.json create mode 100644 parser/testdata/03442_json_duplicate_path/ast.json create mode 100644 parser/testdata/03442_lightweight_deletes_on_fly/ast.json create mode 100644 parser/testdata/03442_string_bytes_functions/ast.json create mode 100644 parser/testdata/03443_alias_with_asterisk/ast.json create mode 100644 parser/testdata/03443_index_match_alternatives/ast.json create mode 100644 parser/testdata/03443_part_starting_offset/ast.json create mode 100644 parser/testdata/03443_pr_lazy_materialization/ast.json create mode 100644 parser/testdata/03443_projection_sparse/ast.json create mode 100644 parser/testdata/03444_case_with_expression_exception/ast.json create mode 100644 parser/testdata/03444_explain_asterisk/ast.json create mode 100644 parser/testdata/03444_flip_coordinates/ast.json create mode 100644 parser/testdata/03444_lm_block_mismatch/ast.json create mode 100644 parser/testdata/03445_subcolumns_prewhere_pushdown/ast.json create mode 100644 parser/testdata/03447_base32_encode_decode/ast.json create mode 100644 parser/testdata/03447_float_nan_order/ast.json create mode 100644 parser/testdata/03447_function_reverse_for_tuple/ast.json create mode 100644 parser/testdata/03447_grouping_sets_analyzer_const_columns/ast.json create mode 100644 parser/testdata/03447_order_by_json_and_other_column/ast.json create mode 100644 parser/testdata/03447_storage_join_unsupported_keys/ast.json create mode 100644 parser/testdata/03447_window_functions_distinct/ast.json create mode 100644 parser/testdata/03448_analyzer_array_join_alias_in_join_using_bug/ast.json create mode 100644 parser/testdata/03448_analyzer_correlated_subquery_in_projection/ast.json create mode 100644 parser/testdata/03448_analyzer_skip_index_and_lambdas/ast.json create mode 100644 parser/testdata/03448_in_select_tuple/ast.json create mode 100644 parser/testdata/03448_topk_merging/ast.json create mode 100644 parser/testdata/03448_trivial_count_single_threaded_merge/ast.json create mode 100644 parser/testdata/03448_window_functions_distinct_distributed/ast.json create mode 100644 parser/testdata/03449_join_using_allow_alias/ast.json create mode 100644 parser/testdata/03449_window_cannot_find_column/ast.json create mode 100644 parser/testdata/03450_parameterized_view_forward/ast.json create mode 100644 parser/testdata/03451_parameterized_views_without_alias/ast.json create mode 100644 parser/testdata/03453_group_by_all_grouping/ast.json create mode 100644 parser/testdata/03453_parameterized_view_array_of_points/ast.json create mode 100644 parser/testdata/03454_global_join_index_subqueries/ast.json create mode 100644 parser/testdata/03454_parameterized_view_constant_identifier/ast.json create mode 100644 parser/testdata/03454_parameterized_views_null/ast.json create mode 100644 parser/testdata/03455_direct_io_read_array_values/ast.json create mode 100644 parser/testdata/03456_match_index_prefix_extraction/ast.json create mode 100644 parser/testdata/03457_bitmapContains_nullable/ast.json create mode 100644 parser/testdata/03457_bug79403_marks_compress_block_is_zero/ast.json create mode 100644 parser/testdata/03457_inconsistent_formatting_except/ast.json create mode 100644 parser/testdata/03457_merge_engine_subcolumns/ast.json create mode 100644 parser/testdata/03457_move_global_in_to_prewhere/ast.json create mode 100644 parser/testdata/03457_numeric_indexed_vector_build/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_bit_promote/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_i8f64/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u16f64/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32f32/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32f64/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32i16/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32i32/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32i64/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32i8/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32u16/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32u32/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32u64/ast.json create mode 100644 parser/testdata/03458_numeric_indexed_vector_operations_u32u8/ast.json create mode 100644 parser/testdata/03458_wkb_function/ast.json create mode 100644 parser/testdata/03459-reverse-sorting-key-stable-result/ast.json create mode 100644 parser/testdata/03459_join_cannot_add_column/ast.json create mode 100644 parser/testdata/03459_numeric_indexed_vector_decode/ast.json create mode 100644 parser/testdata/03459_socket_asynchronous_metrics/ast.json create mode 100644 parser/testdata/03460_alter_materialized_view_on_cluster/ast.json create mode 100644 parser/testdata/03460_normal_projection_index/ast.json create mode 100644 parser/testdata/03460_normal_projection_index_bug_race_conditions/ast.json create mode 100644 parser/testdata/03460_numeric_indexed_vector_to_value_map/ast.json create mode 100644 parser/testdata/03460_projection_part_filtering_and_introspection/ast.json create mode 100644 parser/testdata/03460_query_condition_cache_with_projections/ast.json create mode 100644 parser/testdata/03461_pk_prefix_trivial_count/ast.json create mode 100644 parser/testdata/03461_string_to_date_time_cast_modes/ast.json create mode 100644 parser/testdata/03462_numeric_indexed_vector_serialization/ast.json create mode 100644 parser/testdata/03463_numeric_indexed_vector_overflow/ast.json create mode 100644 parser/testdata/03464_projections_with_subcolumns/ast.json create mode 100644 parser/testdata/03509_stripe_log_compatible_types/ast.json create mode 100644 parser/testdata/03511_formatDateTime_e_space_padding/ast.json create mode 100644 parser/testdata/03512_bech32_functions/ast.json create mode 100644 parser/testdata/03512_cast_logical_error/ast.json create mode 100644 parser/testdata/03512_settings_max_block_size/ast.json create mode 100644 parser/testdata/03513_filter_push_down_rand_bug/ast.json create mode 100644 parser/testdata/03513_fix_shard_num_column_to_function_pass_with_nulls/ast.json create mode 100644 parser/testdata/03513_lazy_materialization_projections_fix/ast.json create mode 100644 parser/testdata/03513_nullsafe_join_storage/ast.json create mode 100644 parser/testdata/03513_read_in_order_nullable/ast.json create mode 100644 parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_aggregating_merge_tree/ast.json create mode 100644 parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_summing_merge_tree/ast.json create mode 100644 parser/testdata/03514_grace_hash_join_logical_error/ast.json create mode 100644 parser/testdata/03515_array_join_different_sizes/ast.json create mode 100644 parser/testdata/03516_comparison_pk_bug/ast.json create mode 100644 parser/testdata/03516_int_exp2_join/ast.json create mode 100644 parser/testdata/03517_logical_join_predicate_push_down_with_pre_expression_bug/ast.json create mode 100644 parser/testdata/03517_s3_plain_rewritable_encrypted_empty_path/ast.json create mode 100644 parser/testdata/03518_left_to_cross_incorrect/ast.json create mode 100644 parser/testdata/03518_table_function_remote_no_replicas/ast.json create mode 100644 parser/testdata/03519_analyzer_tuple_cast/ast.json create mode 100644 parser/testdata/03519_left_to_cross_incorrect/ast.json create mode 100644 parser/testdata/03519_merge_engine_read_column_existing_in_subset_of_tables/ast.json create mode 100644 parser/testdata/03519_merge_tree_part_info_coverage/ast.json create mode 100644 parser/testdata/03519_merge_tree_part_info_unpack/ast.json create mode 100644 parser/testdata/03519_multiple_join_using/ast.json create mode 100644 parser/testdata/03519_ttl_extended_data_types/ast.json create mode 100644 parser/testdata/03519_zero_filesystem_prefetch_max_memory_usage/ast.json create mode 100644 parser/testdata/03520_analyzer_distributed_in_cte_bug/ast.json create mode 100644 parser/testdata/03520_left_to_cross_incorrect/ast.json create mode 100644 parser/testdata/03520_pr_distinct_in_order/ast.json create mode 100644 parser/testdata/03520_pr_read_in_order/ast.json create mode 100644 parser/testdata/03521_bitNot_String_NUL_terminated/ast.json create mode 100644 parser/testdata/03521_long_partition_column_name/ast.json create mode 100644 parser/testdata/03521_long_statistics_name/ast.json create mode 100644 parser/testdata/03521_system_unicode/ast.json create mode 100644 parser/testdata/03522_alter_modify_column_and_materialize_projection/ast.json create mode 100644 parser/testdata/03522_analyzer_check_correlated_columns/ast.json create mode 100644 parser/testdata/03522_function_first_non_default/ast.json create mode 100644 parser/testdata/03522_join_resolve_matcher_recursive_bug/ast.json create mode 100644 parser/testdata/03522_join_using_bug_78907/ast.json create mode 100644 parser/testdata/03522_nullable_partition_key/ast.json create mode 100644 parser/testdata/03522_window_table_arg/ast.json create mode 100644 parser/testdata/03524_nullable_extremes/ast.json create mode 100644 parser/testdata/03525_distributed_product_mode_local_IN_cross_replication_analyzer_bug/ast.json create mode 100644 parser/testdata/03525_json_extract_datetime64_from_numbers/ast.json create mode 100644 parser/testdata/03525_json_infer_array_of_dynamic_from_array_of_different_types/ast.json create mode 100644 parser/testdata/03525_timezoneof_illegal_type/ast.json create mode 100644 parser/testdata/03525_transform_null_in_subqeury_with_not_nullable_type/ast.json create mode 100644 parser/testdata/03526_columns_substreams_in_wide_parts/ast.json create mode 100644 parser/testdata/03529_quantile_deterministic_ubsan/ast.json create mode 100644 parser/testdata/03530_insert_into_distributed_different_types_sparseness/ast.json create mode 100644 parser/testdata/03531_check_count_for_parquet/ast.json create mode 100644 parser/testdata/03531_insert_removing_sparse_transform/ast.json create mode 100644 parser/testdata/03532_divideOrNull_jit_crash/ast.json create mode 100644 parser/testdata/03532_dynamic_flattened_serialization_bug/ast.json create mode 100644 parser/testdata/03532_json_dynamic_updates/ast.json create mode 100644 parser/testdata/03532_pr_unused_query_cancelling_with_limit/ast.json create mode 100644 parser/testdata/03532_use_database_syntax/ast.json create mode 100644 parser/testdata/03532_window_function_and_null_source_max_threads/ast.json create mode 100644 parser/testdata/03533_analyzer_correlated_column_check/ast.json create mode 100644 parser/testdata/03533_named_tuple_supertype/ast.json create mode 100644 parser/testdata/03533_skip_index_on_data_reading/ast.json create mode 100644 parser/testdata/03534_npy_output_to_url/ast.json create mode 100644 parser/testdata/03534_skip_index_bug89691/ast.json create mode 100644 parser/testdata/03535_system_formats/ast.json create mode 100644 parser/testdata/03537_kusto_ubsan/ast.json create mode 100644 parser/testdata/03538_analyzer_correlated_query_collect_columns_fix/ast.json create mode 100644 parser/testdata/03538_analyzer_filter_analysis_alias_columns/ast.json create mode 100644 parser/testdata/03538_analyzer_lag_lead_functions/ast.json create mode 100644 parser/testdata/03538_analyzer_scalar_correlated_subquery_fix/ast.json create mode 100644 parser/testdata/03538_array_except/ast.json create mode 100644 parser/testdata/03538_crash_in_parallel_hash_with_empty_using/ast.json create mode 100644 parser/testdata/03538_higher_order_functions_null_filter/ast.json create mode 100644 parser/testdata/03538_optimize_rewrite_regexp_functions/ast.json create mode 100644 parser/testdata/03538_validate_setting_merge_max_block_size/ast.json create mode 100644 parser/testdata/03539_kusto_output_format_trash/ast.json create mode 100644 parser/testdata/03540_date_trunc_old_behaviour/ast.json create mode 100644 parser/testdata/03542_TTL_dict/ast.json create mode 100644 parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes/ast.json create mode 100644 parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes_2/ast.json create mode 100644 parser/testdata/03545_analyzer_correlated_subquery_exists_asterisk/ast.json create mode 100644 parser/testdata/03545_array_join_index_set_bug/ast.json create mode 100644 parser/testdata/03545_map_contains_bloom_index_bug/ast.json create mode 100644 parser/testdata/03545_number_of_rows_in_ttltransform/ast.json create mode 100644 parser/testdata/03545_union_allow_column_with_no_common_type/ast.json create mode 100644 parser/testdata/03546_03545_analyzer_correlated_subquery_exists_asterisk_crash/ast.json create mode 100644 parser/testdata/03546_add_distinct_to_in_clause/ast.json create mode 100644 parser/testdata/03546_join_key_value_storage_with_casted_key/ast.json create mode 100644 parser/testdata/03546_merge_tree_projection_shared_snapshot/ast.json create mode 100644 parser/testdata/03546_multiple_join_use_nulls_matcher/ast.json create mode 100644 parser/testdata/03546_paimon_all_supported_type/ast.json create mode 100644 parser/testdata/03546_part_granule_offset/ast.json create mode 100644 parser/testdata/03547_analyzer_correlated_columns_check_bug/ast.json create mode 100644 parser/testdata/03547_analyzer_correlated_subqueries/ast.json create mode 100644 parser/testdata/03547_equals_optimizer_lowcardinality/ast.json create mode 100644 parser/testdata/03547_reinterpret_to_array/ast.json create mode 100644 parser/testdata/03548_analyzer_indentifier_resolution_invariant/ast.json create mode 100644 parser/testdata/03548_array_group_last_serialization/ast.json create mode 100644 parser/testdata/03548_optimize_syntax_fuse_functions_clash/ast.json create mode 100644 parser/testdata/03549_aggregate_arithmetic_logical_error/ast.json create mode 100644 parser/testdata/03549_analyzer_fix_filter_removal/ast.json create mode 100644 parser/testdata/03549_conv_function/ast.json create mode 100644 parser/testdata/03549_keeper_map_column_comments/ast.json create mode 100644 parser/testdata/03549_system_dimensional_metrics/ast.json create mode 100644 parser/testdata/03549_window_collation/ast.json create mode 100644 parser/testdata/03549_wkb_function/ast.json create mode 100644 parser/testdata/03550_analyzer_remote_view_columns/ast.json create mode 100644 parser/testdata/03550_projection_with_part_offset_ttl/ast.json create mode 100644 parser/testdata/03550_s3queue_no_settings/ast.json create mode 100644 parser/testdata/03550_variant_extend_union/ast.json create mode 100644 parser/testdata/03551_cast_decimal_to_float/ast.json create mode 100644 parser/testdata/03551_no_alter_for_columns_to_sum/ast.json create mode 100644 parser/testdata/03552_inconsistent_formatting_operator_as_table_function/ast.json create mode 100644 parser/testdata/03553_json_shared_data_advanced_serialization/ast.json create mode 100644 parser/testdata/03553_json_shared_data_map_serialization/ast.json create mode 100644 parser/testdata/03553_json_shared_data_map_with_buckets_serialization/ast.json create mode 100644 parser/testdata/03554_json_shared_data_advanced_serialization_compact_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_advanced_serialization_wide_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_map_serialization_compact_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_map_serialization_wide_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_map_with_buckets_serialization_compact_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_map_with_buckets_serialization_wide_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_tuple_advanced_serialization_compact_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_tuple_advanced_serialization_wide_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_compact_part_big/ast.json create mode 100644 parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_wide_part_big/ast.json create mode 100644 parser/testdata/03555_inconsistent_formatting_ttl/ast.json create mode 100644 parser/testdata/03555_json_shared_data_advanced_paths_indexes_1/ast.json create mode 100644 parser/testdata/03555_json_shared_data_advanced_paths_indexes_2/ast.json create mode 100644 parser/testdata/03555_json_shared_data_advanced_paths_indexes_3/ast.json create mode 100644 parser/testdata/03559_explain_ast_in_subquery/ast.json create mode 100644 parser/testdata/03560_low_cardinality_keys_filter/ast.json create mode 100644 parser/testdata/03560_new_analyzer_default_expression/ast.json create mode 100644 parser/testdata/03560_parallel_replicas_external_aggregation/ast.json create mode 100644 parser/testdata/03560_parallel_replicas_memory_bound_merging_projection/ast.json create mode 100644 parser/testdata/03560_parallel_replicas_projection/ast.json create mode 100644 parser/testdata/03560_validate_max_insert_block_size/ast.json create mode 100644 parser/testdata/03561_analyzer_cte_cycle_resolve_bug/ast.json create mode 100644 parser/testdata/03561_colorSRGBToOKLCH/ast.json create mode 100644 parser/testdata/03561_materialized_subcolumns_materialized_view/ast.json create mode 100644 parser/testdata/03561_two_mvs_bad_select/ast.json create mode 100644 parser/testdata/03562_colorOKLCHToSRGB/ast.json create mode 100644 parser/testdata/03562_geometry_type/ast.json create mode 100644 parser/testdata/03562_json_date_as_integer/ast.json create mode 100644 parser/testdata/03562_parallel_replicas_remote_with_cluster/ast.json create mode 100644 parser/testdata/03562_parallel_replicas_subquery_has_final/ast.json create mode 100644 parser/testdata/03562_system_database_replicas/ast.json create mode 100644 parser/testdata/03563_coarser_minmax_indexes_first/ast.json create mode 100644 parser/testdata/03565_clickhouse_smaller_indexes_first/ast.json create mode 100644 parser/testdata/03565_iceberg_field_ids_table/ast.json create mode 100644 parser/testdata/03565_union_all_nullptr/ast.json create mode 100644 parser/testdata/03566_analyzer_single_with_scope/ast.json create mode 100644 parser/testdata/03566_inconsistent_formatting_functions_codecs/ast.json create mode 100644 parser/testdata/03566_low_cardinality_nan_unique/ast.json create mode 100644 parser/testdata/03566_one_row_summing_merge_tree/ast.json create mode 100644 parser/testdata/03566_system_completions_table/ast.json create mode 100644 parser/testdata/03567_analyzer_single_with_scope_cycle/ast.json create mode 100644 parser/testdata/03567_join_using_projection_distributed/ast.json create mode 100644 parser/testdata/03567_json_extract_case_insensitive_edge_cases/ast.json create mode 100644 parser/testdata/03567_nowInBlock64/ast.json create mode 100644 parser/testdata/03568_json_extract_case_insensitive/ast.json create mode 100644 parser/testdata/03568_mutation_affected_rows_counter/ast.json create mode 100644 parser/testdata/03568_udf_memory_tracking/ast.json create mode 100644 parser/testdata/03569_max_joined_block_size_rows_bug/ast.json create mode 100644 parser/testdata/03570_dateTimeToUUIDv7/ast.json create mode 100644 parser/testdata/03570_date_to_datetime64_overflow/ast.json create mode 100644 parser/testdata/03570_insert_into_simple_alias/ast.json create mode 100644 parser/testdata/03570_limit_by_all/ast.json create mode 100644 parser/testdata/03571_join_inequality_constants/ast.json create mode 100644 parser/testdata/03571_limit_by_all_old_planner/ast.json create mode 100644 parser/testdata/03571_lwd_and_projections/ast.json create mode 100644 parser/testdata/03571_nullable_format_digit_groups/ast.json create mode 100644 parser/testdata/03571_trying_to_get_name_of_not_a_column_asterisk/ast.json create mode 100644 parser/testdata/03572_empty_tuple_in_nested_type/ast.json create mode 100644 parser/testdata/03572_planner_merge_filter_into_join_bug/ast.json create mode 100644 parser/testdata/03572_pr_remote_in_subquery/ast.json create mode 100644 parser/testdata/03573_concurrent_hash_scatter_bug/ast.json create mode 100644 parser/testdata/03573_create_query_parameters_in_to_in_materialized_view/ast.json create mode 100644 parser/testdata/03573_json_keys_with_dots/ast.json create mode 100644 parser/testdata/03573_linear_regression_timeseries_functions/ast.json create mode 100644 parser/testdata/03573_linear_regression_timeseries_functions_various_arguments/ast.json create mode 100644 parser/testdata/03573_planner_merge_filter_into_join_bug_2/ast.json create mode 100644 parser/testdata/03574_analyzer_merge_filter_into_join_bug/ast.json create mode 100644 parser/testdata/03574_parallel_replicas_last_right_join/ast.json create mode 100644 parser/testdata/03575_analyzer_merge_filter_into_join_bug_2/ast.json create mode 100644 parser/testdata/03576_analyzer_distributed_correlated_subquery/ast.json create mode 100644 parser/testdata/03577_assert_on_estimated_block_size_bytes/ast.json create mode 100644 parser/testdata/03577_dynamic_json_update_issue/ast.json create mode 100644 parser/testdata/03577_hash_output_format/ast.json create mode 100644 parser/testdata/03577_server_constant_folding/ast.json create mode 100644 parser/testdata/03577_temporary_table_as/ast.json create mode 100644 parser/testdata/03577_ub_max_column_in_block_size_bytes/ast.json create mode 100644 parser/testdata/03577_vairant_lazy_materialization_bug/ast.json create mode 100644 parser/testdata/03578_distributed_kv_global_in/ast.json create mode 100644 parser/testdata/03578_kv_in_type_casts/ast.json create mode 100644 parser/testdata/03578_ttl_column_in_order_by_validation/ast.json create mode 100644 parser/testdata/03579_mergeTreeIndex_params/ast.json create mode 100644 parser/testdata/03579_system_columns_column_alias/ast.json create mode 100644 parser/testdata/03580_external_merge_sort_with_lazy_columns/ast.json create mode 100644 parser/testdata/03580_heredoc_ambiguity/ast.json create mode 100644 parser/testdata/03580_improve_prewhere/ast.json create mode 100644 parser/testdata/03580_join_runtime_filter/ast.json create mode 100644 parser/testdata/03580_join_runtime_filter_column_type/ast.json create mode 100644 parser/testdata/03580_join_runtime_filter_prewhere/ast.json create mode 100644 parser/testdata/03580_join_runtime_filter_pushdown/ast.json create mode 100644 parser/testdata/03580_s3queue_settings_store/ast.json create mode 100644 parser/testdata/03581_bool_literal_column_name/ast.json create mode 100644 parser/testdata/03581_iceberg_struct_fields_ids/ast.json create mode 100644 parser/testdata/03581_nested_storage_merge_distributed_order_by/ast.json create mode 100644 parser/testdata/03581_parallel_replicas_task_size/ast.json create mode 100644 parser/testdata/03581_read_in_order_use_virtual_row_WHERE/ast.json create mode 100644 parser/testdata/03582_initcap_fixedstring/ast.json create mode 100644 parser/testdata/03582_pr_read_in_order_hits/ast.json create mode 100644 parser/testdata/03583_rewrite_in_to_join/ast.json create mode 100644 parser/testdata/03591_optimize_prewhere_row_policy/ast.json create mode 100644 parser/testdata/03592_distributed_alter_check_sharding_key/ast.json create mode 100644 parser/testdata/03592_s3queue_large_settings/ast.json create mode 100644 parser/testdata/03593_allow_projection_with_parent_part_offset/ast.json create mode 100644 parser/testdata/03593_backup_with_broken_projection/ast.json create mode 100644 parser/testdata/03593_funcs_on_empty_string/ast.json create mode 100644 parser/testdata/03593_remote_map_in/ast.json create mode 100644 parser/testdata/03594_coalescing_merge_tree_segfault/ast.json create mode 100644 parser/testdata/03594_constraint_subqery_logical_error/ast.json create mode 100644 parser/testdata/03594_funcs_on_empty_arguments/ast.json create mode 100644 parser/testdata/03594_is_valid_ascii/ast.json create mode 100644 parser/testdata/03594_is_valid_ascii_errors/ast.json create mode 100644 parser/testdata/03594_json_extract_decimal_precision/ast.json create mode 100644 parser/testdata/03594_like_perfect_affix_rewrite_pass/ast.json create mode 100644 parser/testdata/03594_system_grants_parameters/ast.json create mode 100644 parser/testdata/03595_alter_drop_column_comment_if_exists/ast.json create mode 100644 parser/testdata/03595_alter_if_exists_mixed_commands/ast.json create mode 100644 parser/testdata/03595_alter_if_exists_runtime_check/ast.json create mode 100644 parser/testdata/03595_analyzer_lateral_join/ast.json create mode 100644 parser/testdata/03595_changes_timeseries_functions/ast.json create mode 100644 parser/testdata/03595_changes_timeseries_functions_various_arguments/ast.json create mode 100644 parser/testdata/03595_convert_any_join_to_semi_or_anti/ast.json create mode 100644 parser/testdata/03595_equality_deletes_simple/ast.json create mode 100644 parser/testdata/03595_exists_as_scalar_subquery/ast.json create mode 100644 parser/testdata/03595_extract_url_parameters/ast.json create mode 100644 parser/testdata/03595_funcs_on_zero/ast.json create mode 100644 parser/testdata/03595_parallel_replicas_join_remote/ast.json create mode 100644 parser/testdata/03595_pread_threadpool_direct_io/ast.json create mode 100644 parser/testdata/03595_set_query_no_eq_set_to_one/ast.json create mode 100644 parser/testdata/03596_alter_update_column_with_subcolumn_used_in_materialized_expression/ast.json create mode 100644 parser/testdata/03596_parquet_prewhere_page_skip_bug/ast.json create mode 100644 parser/testdata/03597_alter_column_with_subcolumn_in_key/ast.json create mode 100644 parser/testdata/03598_json_enum_default_value_in_typed_path/ast.json create mode 100644 parser/testdata/03599_bad_date_and_datetimes_inference/ast.json create mode 100644 parser/testdata/03599_lightweight_delete_vertical_merge/ast.json create mode 100644 parser/testdata/03600_analyzer_setting_bool/ast.json create mode 100644 parser/testdata/03600_replace_fixed_string_bug/ast.json create mode 100644 parser/testdata/03601_histogram_quantile/ast.json create mode 100644 parser/testdata/03601_inconsistent_table_names/ast.json create mode 100644 parser/testdata/03601_insert_squashing_remove_const/ast.json create mode 100644 parser/testdata/03601_json_from_string_accurate_cast_or_null/ast.json create mode 100644 parser/testdata/03602_alter_update_nullable_json/ast.json create mode 100644 parser/testdata/03602_embeddedrock_path/ast.json create mode 100644 parser/testdata/03602_query_system_tables_definer/ast.json create mode 100644 parser/testdata/03603_ip_binary_operators/ast.json create mode 100644 parser/testdata/03603_reading_s3_cluster_all_nodes_unavailable/ast.json create mode 100644 parser/testdata/03604_and_join_use_nulls_bug_83977/ast.json create mode 100644 parser/testdata/03604_dynamic_key_in_join/ast.json create mode 100644 parser/testdata/03604_functions_to_subcolumns_outer_join/ast.json create mode 100644 parser/testdata/03604_join_reorder_pinned_bug/ast.json create mode 100644 parser/testdata/03604_key_condition_set_tuple_bug/ast.json create mode 100644 parser/testdata/03604_parallel_with_query_lock/ast.json create mode 100644 parser/testdata/03604_plan_step_description_limit/ast.json create mode 100644 parser/testdata/03604_string_with_size_stream/ast.json create mode 100644 parser/testdata/03604_test_merge_tree_min_read_task_size_is_zero/ast.json create mode 100644 parser/testdata/03604_to_date_casts/ast.json create mode 100644 parser/testdata/03605_dynamic_to_nullable_low_cardinality_bug/ast.json create mode 100644 parser/testdata/03606_nullable_json_group_by/ast.json create mode 100644 parser/testdata/03610_disjunctions_pushdown_optimization/ast.json create mode 100644 parser/testdata/03610_remote_queries_with_describe_compact_output/ast.json create mode 100644 parser/testdata/03611_cte_deterministic/ast.json create mode 100644 parser/testdata/03611_null_safe_comparsion/ast.json create mode 100644 parser/testdata/03611_point_in_polygon_key_condition_bug/ast.json create mode 100644 parser/testdata/03611_pr_global_join/ast.json create mode 100644 parser/testdata/03611_uniqExact_bug/ast.json create mode 100644 parser/testdata/03611_verify_exception_in_iceberg_iterator/ast.json create mode 100644 parser/testdata/03611_window_definition_parsing/ast.json create mode 100644 parser/testdata/03612_explain_indexes_bugs/ast.json create mode 100644 parser/testdata/03612_storage_cluster_dynamic_subcolumns/ast.json create mode 100644 parser/testdata/03613_empty_tuple_permute_with_limit/ast.json create mode 100644 parser/testdata/03620_json_advanced_shared_data_seek_bug/ast.json create mode 100644 parser/testdata/03622_generic_aggregate_functions__state_compatibility/ast.json create mode 100644 parser/testdata/03622_ttl_infos_where/ast.json create mode 100644 parser/testdata/03623_convert_any_join_to_semi_or_anti_2/ast.json create mode 100644 parser/testdata/03623_datetime64_preepoch_fractional_precision/ast.json create mode 100644 parser/testdata/03623_lazy_materialization_array_sizes_bug/ast.json create mode 100644 parser/testdata/03623_parquet_bool/ast.json create mode 100644 parser/testdata/03623_pr_join_with_group_by_subquery/ast.json create mode 100644 parser/testdata/03624_csv_empty_array_from_empty_string/ast.json create mode 100644 parser/testdata/03624_parquet_row_number/ast.json create mode 100644 parser/testdata/03624_pr_lefl_right_joins_chain/ast.json create mode 100644 parser/testdata/03624_resource_exhaustion_window_function/ast.json create mode 100644 parser/testdata/03625_auto_statistics/ast.json create mode 100644 parser/testdata/03625_auto_statistics_alter/ast.json create mode 100644 parser/testdata/03625_auto_statistics_alter_rmt/ast.json create mode 100644 parser/testdata/03625_auto_statistics_rmt/ast.json create mode 100644 parser/testdata/03625_auto_statistics_validation/ast.json create mode 100644 parser/testdata/03625_case_without_condition_non_constant_branches/ast.json create mode 100644 parser/testdata/03625_prewhere-and-default-bug/ast.json create mode 100644 parser/testdata/03625_upper_lower_utf8_different_number_of_code_points/ast.json create mode 100644 parser/testdata/03626_case_function_with_dynamic_argument/ast.json create mode 100644 parser/testdata/03627_non_constant_replacement_in_replace_regexp/ast.json create mode 100644 parser/testdata/03628_named_tuple_element_in_order_by_key/ast.json create mode 100644 parser/testdata/03628_parse_date_time_short_circuit/ast.json create mode 100644 parser/testdata/03628_subcolumns_of_columns_with_dot_in_name/ast.json create mode 100644 parser/testdata/03629_duplicate_partition_keys_crash/ast.json create mode 100644 parser/testdata/03629_starts_endswith_caseinsensitive/ast.json create mode 100644 parser/testdata/03629_storage_s3_disallow_index_alter/ast.json create mode 100644 parser/testdata/03630_hash_join_max_block_size/ast.json create mode 100644 parser/testdata/03630_parquet_bool_bug/ast.json create mode 100644 parser/testdata/03631_array_of_empty_tuples/ast.json create mode 100644 parser/testdata/03631_select_replace_comprehensive/ast.json create mode 100644 parser/testdata/03632_default_minmax_indices_alter/ast.json create mode 100644 parser/testdata/03632_insert_select_cte_bug/ast.json create mode 100644 parser/testdata/03632_join_logical_assert_85403/ast.json create mode 100644 parser/testdata/03632_lowcard_join/ast.json create mode 100644 parser/testdata/03632_temporary_table_not_allowed_columns/ast.json create mode 100644 parser/testdata/03633_mv_squash_parallel_inserts/ast.json create mode 100644 parser/testdata/03633_set_index_bulk_filtering/ast.json create mode 100644 parser/testdata/03634_subcolumns_in_temporary_table_parallel_replicas/ast.json create mode 100644 parser/testdata/03635_in_function_different_types_many_columns/ast.json create mode 100644 parser/testdata/03636_empty_projection_block/ast.json create mode 100644 parser/testdata/03636_index_analysis_with_session_tz/ast.json create mode 100644 parser/testdata/03636_storage_alias_basic/ast.json create mode 100644 parser/testdata/03636_storage_alias_syntax/ast.json create mode 100644 parser/testdata/03638_merge_max_dynamic_subcolumns_in_wide_part/ast.json create mode 100644 parser/testdata/03639_hash_of_dynamic_column/ast.json create mode 100644 parser/testdata/03639_hash_of_json_column/ast.json create mode 100644 parser/testdata/03640_alter_table_rewrite_parts/ast.json create mode 100644 parser/testdata/03640_load_marks_synchronously/ast.json create mode 100644 parser/testdata/03640_multiple_mutations_with_error_with_rewrite_parts/ast.json create mode 100644 parser/testdata/03640_multiple_mutations_with_rewrite_parts/ast.json create mode 100644 parser/testdata/03640_skip_indexes_data_types_with_or/ast.json create mode 100644 parser/testdata/03640_skip_indexes_with_or/ast.json create mode 100644 parser/testdata/03640_variant_array_null_map_subcolumn/ast.json create mode 100644 parser/testdata/03641_analyzer_issue_85834/ast.json create mode 100644 parser/testdata/03641_group_by_injective_functoon_bad_arguments/ast.json create mode 100644 parser/testdata/03641_json_array_of_float_and_bool/ast.json create mode 100644 parser/testdata/03642_column_ttl_sparse/ast.json create mode 100644 parser/testdata/03642_system_instrument_symbols/ast.json create mode 100644 parser/testdata/03643_paste_join_disable_filter_pushdown/ast.json create mode 100644 parser/testdata/03644_join_order_mixed_comma_and_left/ast.json create mode 100644 parser/testdata/03644_min_level_for_wide_part/ast.json create mode 100644 parser/testdata/03644_object_storage_correlated_subqueries/ast.json create mode 100644 parser/testdata/03644_rows_before_aggregation_in_order/ast.json create mode 100644 parser/testdata/03646_array_join_empty/ast.json create mode 100644 parser/testdata/03647_morton_encode_empty_tuple/ast.json create mode 100644 parser/testdata/03651_merge_tree_compact_read_string_size_subcolumn/ast.json create mode 100644 parser/testdata/03651_positional_argument_agg_projection/ast.json create mode 100644 parser/testdata/03652_coalescing_merge_tree_fix_empty_tuple/ast.json create mode 100644 parser/testdata/03652_explain_input_header/ast.json create mode 100644 parser/testdata/03652_generate_serial_id_non_constant_zookeeper/ast.json create mode 100644 parser/testdata/03652_join_using_legacy_step/ast.json create mode 100644 parser/testdata/03653_keeper_histogram_metrics/ast.json create mode 100644 parser/testdata/03653_updating_minmax_idx_after_mutation/ast.json create mode 100644 parser/testdata/03654_case_non_constant_null/ast.json create mode 100644 parser/testdata/03654_grouping_sets_any_min_max/ast.json create mode 100644 parser/testdata/03655_keeper_map_alter_comment/ast.json create mode 100644 parser/testdata/03655_system_databases_is_external/ast.json create mode 100644 parser/testdata/03656_nan_comparison/ast.json create mode 100644 parser/testdata/03657_gby_overflow_any_sparse/ast.json create mode 100644 parser/testdata/03657_hash_vs_full_sorting_merge_join/ast.json create mode 100644 parser/testdata/03657_merge_tree_disk_support_transaction/ast.json create mode 100644 parser/testdata/03657_rollup_constant/ast.json create mode 100644 parser/testdata/03658_joined_block_split_single_row_bytes/ast.json create mode 100644 parser/testdata/03660_udf_subquery/ast.json create mode 100644 parser/testdata/03663_parameterized_views_formatting_of_substitutions_excessive_backticks/ast.json create mode 100644 parser/testdata/03664_parameterized_view_restart/ast.json create mode 100644 parser/testdata/03666_count_matches_complexity/ast.json create mode 100644 parser/testdata/03667_accurate_cast_datetime_overflow/ast.json create mode 100644 parser/testdata/03667_drop_inner_table_size_limits/ast.json create mode 100644 parser/testdata/03667_insert_columns_description/ast.json create mode 100644 parser/testdata/03667_pr_join_with_cross_join_on_left/ast.json create mode 100644 parser/testdata/03667_text_index_validation/ast.json create mode 100644 parser/testdata/03668_shard_join_in_reverse_order/ast.json create mode 100644 parser/testdata/03669_min_max_projection_with_reverse_order_key/ast.json create mode 100644 parser/testdata/03671_dict_in_subquery_in_index_analysis_context_expired/ast.json create mode 100644 parser/testdata/03671_pk_in_subquery_context_expired/ast.json create mode 100644 parser/testdata/03672_columns_same_as_subcolumns/ast.json create mode 100644 parser/testdata/03672_nested_array_nested_tuple/ast.json create mode 100644 parser/testdata/03673_columns_description_cache/ast.json create mode 100644 parser/testdata/03680_mergetree_shrink_const_from_prewhere/ast.json create mode 100644 parser/testdata/03681_lazy_materialization_with_read_in_order/ast.json create mode 100644 parser/testdata/03699_reverse_utf8/ast.json create mode 100644 parser/testdata/03700_vertical_format_pretty_print_json/ast.json create mode 100644 parser/testdata/03701_analyzer_correlated_subquery_plan_reference/ast.json create mode 100644 parser/testdata/03701_column_ttl_fully_expired/ast.json create mode 100644 parser/testdata/03701_distinct_but_no_group_by_projection_table_use_check/ast.json create mode 100644 parser/testdata/03701_json_duplicate_path_insert_select/ast.json create mode 100644 parser/testdata/03701_limit_by_in_order/ast.json create mode 100644 parser/testdata/03701_optimize_inverse_dictionary_lookup_basic/ast.json create mode 100644 parser/testdata/03701_parallel_replicas_in_shard_scope/ast.json create mode 100644 parser/testdata/03701_replicated_column_short_circuit_filter/ast.json create mode 100644 parser/testdata/03701_temporary_files_buffer_size/ast.json create mode 100644 parser/testdata/03702_alter_codec_index/ast.json create mode 100644 parser/testdata/03702_alter_codec_pk/ast.json create mode 100644 parser/testdata/03702_alter_column_modify_secondary_index_general/ast.json create mode 100644 parser/testdata/03702_alter_column_update_and_delete_secondary_index_general/ast.json create mode 100644 parser/testdata/03702_encode_decode_memory_usage/ast.json create mode 100644 parser/testdata/03702_function_dict_get_keys_basic/ast.json create mode 100644 parser/testdata/03702_geometry_functions/ast.json create mode 100644 parser/testdata/03702_inject_random_orderby_doesnt_change_limit/ast.json create mode 100644 parser/testdata/03702_json_datetime_format_settings/ast.json create mode 100644 parser/testdata/03702_optimize_inverse_dictionary_lookup_composite_and_layouts/ast.json create mode 100644 parser/testdata/03702_text_index_hint_basics/ast.json create mode 100644 parser/testdata/03702_text_index_hint_events/ast.json create mode 100644 parser/testdata/03702_text_index_hint_low_cardinality/ast.json create mode 100644 parser/testdata/03703_function_dict_get_keys_large/ast.json create mode 100644 parser/testdata/03703_optimize_inverse_dictionary_lookup_dictget_family/ast.json create mode 100644 parser/testdata/03703_statistics_low_cardinality/ast.json create mode 100644 parser/testdata/03704_default_empty_order_by/ast.json create mode 100644 parser/testdata/03704_fractional_limit_with_ties/ast.json create mode 100644 parser/testdata/03704_function_dict_get_keys_cache_type/ast.json create mode 100644 parser/testdata/03705_count_if_asterisk/ast.json create mode 100644 parser/testdata/03705_fix_compression_T64_unaligned/ast.json create mode 100644 parser/testdata/03705_function_dict_get_keys_multiple_dict_and_no_caching/ast.json create mode 100644 parser/testdata/03707_analyzer_convert_outer_any_to_inner/ast.json create mode 100644 parser/testdata/03707_empty_parts_with_non_empty_projections_merge/ast.json create mode 100644 parser/testdata/03707_function_array_remove/ast.json create mode 100644 parser/testdata/03707_statistics_cache/ast.json create mode 100644 parser/testdata/03708_analyzer_convert_any_outer_to_inner_2/ast.json create mode 100644 parser/testdata/03708_exact_rows_before_limit_in/ast.json create mode 100644 parser/testdata/03708_flush_async_insert_queue_for_table/ast.json create mode 100644 parser/testdata/03708_join_or_to_right_any_bug/ast.json create mode 100644 parser/testdata/03708_low_cardinality_aggregate_state_compatibility/ast.json create mode 100644 parser/testdata/03708_statistics_estimator_cast_type/ast.json create mode 100644 parser/testdata/03709_anti_join_runtime_filters/ast.json create mode 100644 parser/testdata/03709_coalescing_final/ast.json create mode 100644 parser/testdata/03709_parallel_replicas_right_join_with_distributed/ast.json create mode 100644 parser/testdata/03709_replicated_columns_right_join/ast.json create mode 100644 parser/testdata/03710_analyzer_limit_by_aggregate_validation/ast.json create mode 100644 parser/testdata/03710_argAndMinMax/ast.json create mode 100644 parser/testdata/03710_array_join_in_map_bug/ast.json create mode 100644 parser/testdata/03710_empty_tuple_lhs_in_function/ast.json create mode 100644 parser/testdata/03710_midpoint/ast.json create mode 100644 parser/testdata/03710_pr_insert_into_mv_with_join/ast.json create mode 100644 parser/testdata/03710_pr_join_with_mv/ast.json create mode 100644 parser/testdata/03711_deduplication_blocks_part_log/ast.json create mode 100644 parser/testdata/03711_json_skip_invalid_fields/ast.json create mode 100644 parser/testdata/03711_merge_tree_deduplication_with_disk_not_support_writing_with_append/ast.json create mode 100644 parser/testdata/03711_top_k_by_dynamic_filter/ast.json create mode 100644 parser/testdata/03711_top_k_by_skip_index/ast.json create mode 100644 parser/testdata/03711_top_k_by_skip_index_dynamic/ast.json create mode 100644 parser/testdata/03712_json_advanced_shared_data_bug/ast.json create mode 100644 parser/testdata/03713_optimize_inverse_dictionary_lookup_setting_rewrite_in_to_join/ast.json create mode 100644 parser/testdata/03713_replicated_columns_in_external_data_bug/ast.json create mode 100644 parser/testdata/03714_base32_base58_short_string/ast.json create mode 100644 parser/testdata/03714_empty_tuple_reverse_function/ast.json create mode 100644 parser/testdata/03714_queries_escaping_1/ast.json create mode 100644 parser/testdata/03714_queries_escaping_2/ast.json create mode 100644 parser/testdata/03715_empty_tuple_functions_conversion/ast.json create mode 100644 parser/testdata/03716_anti_join_runtime_filters_2/ast.json create mode 100644 parser/testdata/03716_bson_each_row_empty_tuple_column/ast.json create mode 100644 parser/testdata/03716_join_duplicate_columns_89411/ast.json create mode 100644 parser/testdata/03716_join_right_side_sorting/ast.json create mode 100644 parser/testdata/03716_multiple_joins_using_top_level_identifier/ast.json create mode 100644 parser/testdata/03716_text_index_drop_caches/ast.json create mode 100644 parser/testdata/03716_topk_bad_data/ast.json create mode 100644 parser/testdata/03717_msgpack_empty_tuple_column/ast.json create mode 100644 parser/testdata/03717_system_unicode_enums/ast.json create mode 100644 parser/testdata/03719_generic_hash_over_constant_and_non_constant/ast.json create mode 100644 parser/testdata/03719_ntile_no_partition_by_check/ast.json create mode 100644 parser/testdata/03720_const_limit_to_scalar/ast.json create mode 100644 parser/testdata/03720_datetime64_bad_inference/ast.json create mode 100644 parser/testdata/03720_numbers_table_function_with_step_edge_cases/ast.json create mode 100644 parser/testdata/03721_aggregate_projection_actions_dag/ast.json create mode 100644 parser/testdata/03721_concurrent_right_join_flags_per_row_bug/ast.json create mode 100644 parser/testdata/03721_insert_replicated_array_nested_sizes_check/ast.json create mode 100644 parser/testdata/03721_join_residual_condition_bug_88635/ast.json create mode 100644 parser/testdata/03721_right_join_logical_step/ast.json create mode 100644 parser/testdata/03721_statistics_alter_type_bug/ast.json create mode 100644 parser/testdata/03722_function_trim_ltrim_rtrim_alias/ast.json create mode 100644 parser/testdata/03722_json_compact_part_substreams_cache_bug/ast.json create mode 100644 parser/testdata/03722_random_utf8_bug/ast.json create mode 100644 parser/testdata/03723_incorrect_implicit_projection/ast.json create mode 100644 parser/testdata/03724_filter_assume_not_null_materialize/ast.json create mode 100644 parser/testdata/03724_parallel_replicas_duplicate_requests/ast.json create mode 100644 parser/testdata/03724_to_date_time_or_null_negative_arg_bug/ast.json create mode 100644 parser/testdata/03725_empty_tuple_some_limit_with_ties_distinct/ast.json create mode 100644 parser/testdata/03725_json_dynamic_subcolumn_prewhere_zero_index_granularity_bytes/ast.json create mode 100644 parser/testdata/03725_variant_element_null_map_subcolumn_prewhere_zero_index_granularity_bytes/ast.json create mode 100644 parser/testdata/03726_array_union_with_dynamic_argument/ast.json create mode 100644 parser/testdata/03727_alter_with_localhost_remote/ast.json create mode 100644 parser/testdata/03727_block_structure_mismatch_after_filter_push_down/ast.json create mode 100644 parser/testdata/03727_concat_with_separator_subquery/ast.json create mode 100644 parser/testdata/03727_ipv4_parsing_bug/ast.json create mode 100644 parser/testdata/03727_rename_nested_and_modify_in_one_later/ast.json create mode 100644 parser/testdata/03727_tolowcardinality_nullable_cast/ast.json create mode 100644 parser/testdata/03728_analyzer_identifier_resolution_join/ast.json create mode 100644 parser/testdata/03730_qbit_in_order_by_and_comparison_functions/ast.json create mode 100644 parser/testdata/03731_null_parts_in_storage_snapshot_with_only_analyze/ast.json create mode 100644 parser/testdata/03732_join_on_exists_bug/ast.json create mode 100644 parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_bug/ast.json create mode 100644 parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_compact_part_bug/ast.json create mode 100644 parser/testdata/03733_anti_join_runtime_filter_3/ast.json create mode 100644 parser/testdata/03733_base58_decode_bug/ast.json create mode 100644 parser/testdata/03733_join_order_dp/ast.json create mode 100644 parser/testdata/03733_summing_merge_tree_nested_low_cardinality/ast.json create mode 100644 parser/testdata/03735_excessive_buffer_flush/ast.json create mode 100644 parser/testdata/03740_alter_modify_query_dict_name_in_cse/ast.json create mode 100644 parser/testdata/03741_adaptive_write_buffer_initial_size_zero/ast.json create mode 100644 parser/testdata/03741_dict_get_in_cte_with_no_arguments_old_analyzer/ast.json create mode 100644 parser/testdata/03741_insert_select_subquery_from_file/ast.json create mode 100644 parser/testdata/03741_subcolumns_of_materialized_columns_in_mutation/ast.json create mode 100644 parser/testdata/03742_array_filter_is_null_empty_array/ast.json create mode 100644 parser/testdata/03742_array_join_empty_tuple/ast.json create mode 100644 parser/testdata/03742_lazy_materialization_of_array_after_alter_add_column/ast.json create mode 100644 parser/testdata/03742_test_flattened_crash/ast.json create mode 100644 parser/testdata/03743_fix_estimator_crash/ast.json create mode 100644 parser/testdata/03743_summing_and_aggregating_merge_tree_with_json_merge/ast.json create mode 100644 parser/testdata/03745_fix_dynamic_structure_in_compact_part/ast.json create mode 100644 parser/testdata/03747_optimize_functions_to_subcolumns_columns_as_substreams/ast.json create mode 100644 parser/testdata/03748_coalescing_merge_tree_tuple_low_cardinality_and_dynamic/ast.json create mode 100644 parser/testdata/03748_default_minmax_indices_alter/ast.json create mode 100644 parser/testdata/03748_tuple_of_sparse_elements_bug/ast.json create mode 100644 parser/testdata/03749_implicit_index_ephemeral_alias/ast.json create mode 100644 parser/testdata/03749_in_function_rewrite_lambda_lhs_non_const_rhs/ast.json create mode 100644 parser/testdata/03749_materialized_view_not_supports_parallel_write/ast.json create mode 100644 parser/testdata/03749_table_function_argument_asterisk/ast.json create mode 100644 parser/testdata/03751_summing_coalescing_merge_tree_sparse_columns_in_header/ast.json create mode 100644 parser/testdata/03752_constant_expression_with_untuple/ast.json create mode 100644 parser/testdata/03752_join_part/ast.json create mode 100644 parser/testdata/03753_merge_selector_amm/ast.json create mode 100644 parser/testdata/03753_replacing_empty_order_by/ast.json create mode 100644 parser/testdata/03753_segfault_with_empty_callback/ast.json create mode 100644 parser/testdata/03755_circular_dictionary/ast.json create mode 100644 parser/testdata/03755_enable_sparse_nullable_consistently/ast.json create mode 100644 parser/testdata/03755_final_prewhere_duplicate_columns/ast.json create mode 100644 parser/testdata/03755_nested_recursive_cte/ast.json create mode 100644 parser/testdata/03755_pr_join_with_view/ast.json create mode 100644 parser/testdata/03756_capn_proto_message_size_limit/ast.json create mode 100644 parser/testdata/03756_mongodb_secret_arguments/ast.json create mode 100644 parser/testdata/03757_optimize_skip_unused_shards_with_type_cast/ast.json create mode 100644 parser/testdata/03758_positional_argument_agg_projection/ast.json create mode 100644 parser/testdata/03759_marks_cache_events/ast.json diff --git a/cmd/generateast/main.go b/cmd/generateast/main.go new file mode 100644 index 0000000000..7e22d27a6b --- /dev/null +++ b/cmd/generateast/main.go @@ -0,0 +1,163 @@ +package main + +import ( + "context" + "encoding/json" + "fmt" + "os" + "path/filepath" + "strings" + "time" + + "github.com/kyleconroy/doubleclick/parser" +) + +type testMetadata struct { + Todo bool `json:"todo,omitempty"` + Source string `json:"source,omitempty"` + Explain *bool `json:"explain,omitempty"` + Skip bool `json:"skip,omitempty"` + ParseError bool `json:"parse_error,omitempty"` +} + +func main() { + testdataDir := "parser/testdata" + + entries, err := os.ReadDir(testdataDir) + if err != nil { + fmt.Fprintf(os.Stderr, "Failed to read testdata directory: %v\n", err) + os.Exit(1) + } + + var generated, skipped, failed int + + for _, entry := range entries { + if !entry.IsDir() { + continue + } + + testDir := filepath.Join(testdataDir, entry.Name()) + testName := entry.Name() + + // Read optional metadata + var metadata testMetadata + metadataPath := filepath.Join(testDir, "metadata.json") + if metadataBytes, err := os.ReadFile(metadataPath); err == nil { + if err := json.Unmarshal(metadataBytes, &metadata); err != nil { + fmt.Printf("SKIP %s: failed to parse metadata.json: %v\n", testName, err) + skipped++ + continue + } + } + + // Skip tests marked with skip: true + if metadata.Skip { + skipped++ + continue + } + + // Skip tests where explain is explicitly false + if metadata.Explain != nil && !*metadata.Explain { + skipped++ + continue + } + + // Skip tests marked as todo (they don't pass yet) + if metadata.Todo { + skipped++ + continue + } + + // Skip tests marked as parse_error (intentionally invalid SQL) + if metadata.ParseError { + skipped++ + continue + } + + // Check if explain.txt exists (we only generate ast.json for tests with explain.txt) + explainPath := filepath.Join(testDir, "explain.txt") + expectedBytes, err := os.ReadFile(explainPath) + if err != nil { + skipped++ + continue + } + + // Read the query + queryPath := filepath.Join(testDir, "query.sql") + queryBytes, err := os.ReadFile(queryPath) + if err != nil { + fmt.Printf("SKIP %s: failed to read query.sql: %v\n", testName, err) + skipped++ + continue + } + + // Build query from non-comment lines until we hit a line ending with semicolon + var queryParts []string + for _, line := range strings.Split(string(queryBytes), "\n") { + trimmed := strings.TrimSpace(line) + if trimmed == "" || strings.HasPrefix(trimmed, "--") { + continue + } + lineContent := trimmed + if idx := strings.Index(trimmed, " -- "); idx >= 0 { + lineContent = strings.TrimSpace(trimmed[:idx]) + } + if strings.HasSuffix(lineContent, ";") { + queryParts = append(queryParts, lineContent) + break + } + queryParts = append(queryParts, trimmed) + } + query := strings.Join(queryParts, " ") + + // Parse the query with timeout + ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) + stmts, err := parser.Parse(ctx, strings.NewReader(query)) + cancel() + + if err != nil { + fmt.Printf("FAIL %s: parse error: %v\n", testName, err) + failed++ + continue + } + + if len(stmts) == 0 { + fmt.Printf("FAIL %s: no statements returned\n", testName) + failed++ + continue + } + + // Compare explain output + expected := strings.TrimSpace(string(expectedBytes)) + // Strip server error messages from expected output + if idx := strings.Index(expected, "\nThe query succeeded but the server error"); idx != -1 { + expected = strings.TrimSpace(expected[:idx]) + } + actual := strings.TrimSpace(parser.Explain(stmts[0])) + + if actual != expected { + fmt.Printf("FAIL %s: explain mismatch\n", testName) + failed++ + continue + } + + // Generate ast.json + astBytes, err := json.MarshalIndent(stmts[0], "", " ") + if err != nil { + fmt.Printf("FAIL %s: JSON marshal error: %v\n", testName, err) + failed++ + continue + } + + astPath := filepath.Join(testDir, "ast.json") + if err := os.WriteFile(astPath, append(astBytes, '\n'), 0644); err != nil { + fmt.Printf("FAIL %s: failed to write ast.json: %v\n", testName, err) + failed++ + continue + } + + generated++ + } + + fmt.Printf("\nGenerated: %d, Skipped: %d, Failed: %d\n", generated, skipped, failed) +} diff --git a/parser/parser_test.go b/parser/parser_test.go index a08cda0df8..271643b318 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -156,6 +156,21 @@ func TestParser(t *testing.T) { t.Errorf("Explain output mismatch\nQuery: %s\nExpected:\n%s\n\nGot:\n%s", query, expected, actual) } } + + // Check AST JSON output if ast.json exists (golden file for AST regression testing) + astPath := filepath.Join(testDir, "ast.json") + if expectedASTBytes, err := os.ReadFile(astPath); err == nil { + actualASTBytes, _ := json.MarshalIndent(stmts[0], "", " ") + expectedAST := strings.TrimSpace(string(expectedASTBytes)) + actualAST := strings.TrimSpace(string(actualASTBytes)) + if actualAST != expectedAST { + if metadata.Todo { + t.Skipf("TODO: AST JSON mismatch\nQuery: %s\nExpected:\n%s\n\nGot:\n%s", query, expectedAST, actualAST) + return + } + t.Errorf("AST JSON mismatch\nQuery: %s\nExpected:\n%s\n\nGot:\n%s", query, expectedAST, actualAST) + } + } }) } } diff --git a/parser/testdata/00001_count_hits/ast.json b/parser/testdata/00001_count_hits/ast.json new file mode 100644 index 0000000000..fe2150e0e4 --- /dev/null +++ b/parser/testdata/00001_count_hits/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00001_select_1/ast.json b/parser/testdata/00001_select_1/ast.json new file mode 100644 index 0000000000..4cb6f0f6f9 --- /dev/null +++ b/parser/testdata/00001_select_1/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] +} diff --git a/parser/testdata/00002_count_visits/ast.json b/parser/testdata/00002_count_visits/ast.json new file mode 100644 index 0000000000..56069d8b22 --- /dev/null +++ b/parser/testdata/00002_count_visits/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "Sign" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00002_system_numbers/ast.json b/parser/testdata/00002_system_numbers/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00002_system_numbers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00003_reinterpret_as_string/ast.json b/parser/testdata/00003_reinterpret_as_string/ast.json new file mode 100644 index 0000000000..7930aa3fa1 --- /dev/null +++ b/parser/testdata/00003_reinterpret_as_string/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "where": { + "left": { + "name": "reinterpretAsString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "Ё" + } + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00004_shard_format_ast_and_remote_table/ast.json b/parser/testdata/00004_shard_format_ast_and_remote_table/ast.json new file mode 100644 index 0000000000..c3c2fc459f --- /dev/null +++ b/parser/testdata/00004_shard_format_ast_and_remote_table/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "parts": [ + "dummy" + ], + "alias": "x" + }, + "op": "-", + "right": { + "type": "Integer", + "value": 1 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00004_top_counters/ast.json b/parser/testdata/00004_top_counters/ast.json new file mode 100644 index 0000000000..66a13e3f74 --- /dev/null +++ b/parser/testdata/00004_top_counters/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "CounterID" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00005_filtering/ast.json b/parser/testdata/00005_filtering/ast.json new file mode 100644 index 0000000000..8323c9b5b7 --- /dev/null +++ b/parser/testdata/00005_filtering/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "AdvEngineID" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/00005_shard_format_ast_and_remote_table_lambda/ast.json b/parser/testdata/00005_shard_format_ast_and_remote_table_lambda/ast.json new file mode 100644 index 0000000000..7d291ece14 --- /dev/null +++ b/parser/testdata/00005_shard_format_ast_and_remote_table_lambda/ast.json @@ -0,0 +1,77 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + }, + "where": { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "x" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + } + ] +} diff --git a/parser/testdata/00006_agregates/ast.json b/parser/testdata/00006_agregates/ast.json new file mode 100644 index 0000000000..e24f588566 --- /dev/null +++ b/parser/testdata/00006_agregates/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "AdvEngineID" + ] + } + ] + }, + { + "name": "count" + }, + { + "name": "avg", + "arguments": [ + { + "parts": [ + "ResolutionWidth" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00006_extremes_and_subquery_from/ast.json b/parser/testdata/00006_extremes_and_subquery_from/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00006_extremes_and_subquery_from/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00007_array/ast.json b/parser/testdata/00007_array/ast.json new file mode 100644 index 0000000000..5f2fec6ac4 --- /dev/null +++ b/parser/testdata/00007_array/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "Goodbye" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00007_uniq/ast.json b/parser/testdata/00007_uniq/ast.json new file mode 100644 index 0000000000..708aec20cc --- /dev/null +++ b/parser/testdata/00007_uniq/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "RegionID" + ] + }, + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ], + "alias": "u" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 800784 + } + }, + "group_by": [ + { + "parts": [ + "RegionID" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "u" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "RegionID" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00008_array_join/ast.json b/parser/testdata/00008_array_join/ast.json new file mode 100644 index 0000000000..44561fc24b --- /dev/null +++ b/parser/testdata/00008_array_join/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "Goodbye" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00008_uniq/ast.json b/parser/testdata/00008_uniq/ast.json new file mode 100644 index 0000000000..89d0bf63cc --- /dev/null +++ b/parser/testdata/00008_uniq/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ] + }, + { + "name": "uniqIf", + "arguments": [ + { + "parts": [ + "UserID" + ] + }, + { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 800784 + } + } + ] + }, + { + "name": "uniqIf", + "arguments": [ + { + "parts": [ + "FUniqID" + ] + }, + { + "left": { + "parts": [ + "RegionID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 213 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00009_array_join_subquery/ast.json b/parser/testdata/00009_array_join_subquery/ast.json new file mode 100644 index 0000000000..a1b883c393 --- /dev/null +++ b/parser/testdata/00009_array_join_subquery/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "Goodbye" + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00009_uniq_distributed/ast.json b/parser/testdata/00009_uniq_distributed/ast.json new file mode 100644 index 0000000000..64096ca4ed --- /dev/null +++ b/parser/testdata/00009_uniq_distributed/ast.json @@ -0,0 +1,89 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ] + }, + { + "name": "uniqIf", + "arguments": [ + { + "parts": [ + "UserID" + ] + }, + { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 800784 + } + } + ] + }, + { + "name": "uniqIf", + "arguments": [ + { + "parts": [ + "FUniqID" + ] + }, + { + "left": { + "parts": [ + "RegionID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 213 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "test" + ] + }, + { + "parts": [ + "hits" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00010_big_array_join/ast.json b/parser/testdata/00010_big_array_join/ast.json new file mode 100644 index 0000000000..7b60af99f8 --- /dev/null +++ b/parser/testdata/00010_big_array_join/ast.json @@ -0,0 +1,79 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "Goodbye" + } + ] + } + ], + "alias": "x" + }, + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "arr" + } + ] + } + ] + } + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "arr" + ] + } + ] + } + } + ] +} diff --git a/parser/testdata/00010_quantiles_segfault/ast.json b/parser/testdata/00010_quantiles_segfault/ast.json new file mode 100644 index 0000000000..f8582a0421 --- /dev/null +++ b/parser/testdata/00010_quantiles_segfault/ast.json @@ -0,0 +1,284 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "URL" + ], + "alias": "ym:ah:URL" + }, + { + "name": "sum", + "arguments": [ + { + "left": { + "op": "NOT", + "operand": { + "parts": [ + "DontCountHits" + ] + } + }, + "op": "AND", + "right": { + "op": "NOT", + "operand": { + "parts": [ + "Refresh" + ] + } + } + } + ] + }, + { + "name": "quantilesTimingIf", + "parameters": [ + { + "type": "Float", + "value": 0.1 + }, + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 0.9 + } + ], + "arguments": [ + { + "left": { + "parts": [ + "DOMCompleteTiming" + ] + }, + "op": "+", + "right": { + "parts": [ + "LoadEventEndTiming" + ] + } + }, + { + "left": { + "left": { + "parts": [ + "DOMCompleteTiming" + ] + }, + "op": "!=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "LoadEventEndTiming" + ] + }, + "op": "!=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + } + } + ], + "alias": "t" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "test" + ] + }, + { + "parts": [ + "hits" + ] + } + ] + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 800784 + } + }, + "op": "AND", + "right": { + "left": { + "left": { + "left": { + "parts": [ + "DontCountHits" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "IsNotBounce" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "URL" + ] + }, + "op": "!=", + "right": { + "type": "String", + "value": "" + } + } + } + }, + "group_by": [ + { + "parts": [ + "ym:ah:URL" + ] + } + ], + "with_totals": true, + "having": { + "left": { + "left": { + "name": "sum", + "arguments": [ + { + "left": { + "op": "NOT", + "operand": { + "parts": [ + "DontCountHits" + ] + } + }, + "op": "AND", + "right": { + "op": "NOT", + "operand": { + "parts": [ + "Refresh" + ] + } + } + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "op": "AND", + "right": { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + }, + "order_by": [ + { + "expression": { + "name": "sum", + "arguments": [ + { + "left": { + "op": "NOT", + "operand": { + "parts": [ + "DontCountHits" + ] + } + }, + "op": "AND", + "right": { + "op": "NOT", + "operand": { + "parts": [ + "Refresh" + ] + } + } + } + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "URL" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + }, + "offset": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00011_array_join_alias/ast.json b/parser/testdata/00011_array_join_alias/ast.json new file mode 100644 index 0000000000..f013bd2b12 --- /dev/null +++ b/parser/testdata/00011_array_join_alias/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "Goodbye" + } + ] + } + ], + "alias": "x" + }, + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "arr" + } + ] + } + ] + } + } + } + } + ] + }, + "array_join": { + "columns": null + } + } + ] +} diff --git a/parser/testdata/00011_sorting/ast.json b/parser/testdata/00011_sorting/ast.json new file mode 100644 index 0000000000..9f47daeced --- /dev/null +++ b/parser/testdata/00011_sorting/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "parts": [ + "EventTime" + ] + }, + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "Asia/Dubai" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "EventTime" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00012_array_join_alias_2/ast.json b/parser/testdata/00012_array_join_alias_2/ast.json new file mode 100644 index 0000000000..099fb18f1a --- /dev/null +++ b/parser/testdata/00012_array_join_alias_2/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "arr" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "Goodbye" + } + ] + } + ], + "alias": "x" + }, + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "arr" + } + ] + } + ] + } + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "arr" + ], + "alias": "a" + } + ] + } + } + ] +} diff --git a/parser/testdata/00012_sorting_distributed/ast.json b/parser/testdata/00012_sorting_distributed/ast.json new file mode 100644 index 0000000000..3f8067f46b --- /dev/null +++ b/parser/testdata/00012_sorting_distributed/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "parts": [ + "EventTime" + ] + }, + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "Asia/Dubai" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "test" + ] + }, + { + "parts": [ + "hits" + ] + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "EventTime" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00013_create_table_with_arrays/ast.json b/parser/testdata/00013_create_table_with_arrays/ast.json new file mode 100644 index 0000000000..8595d495ff --- /dev/null +++ b/parser/testdata/00013_create_table_with_arrays/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "arrays_test", + "tables": [ + { + "table": "arrays_test" + } + ] +} diff --git a/parser/testdata/00013_sorting_of_nested/ast.json b/parser/testdata/00013_sorting_of_nested/ast.json new file mode 100644 index 0000000000..15f344f581 --- /dev/null +++ b/parser/testdata/00013_sorting_of_nested/ast.json @@ -0,0 +1,66 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "ParsedParams", + "Key1" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + }, + "final": true + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "VisitID" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "op": "AND", + "right": { + "name": "notEmpty", + "arguments": [ + { + "parts": [ + "ParsedParams", + "Key1" + ] + } + ] + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "VisitID" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00014_filtering_arrays/ast.json b/parser/testdata/00014_filtering_arrays/ast.json new file mode 100644 index 0000000000..53ea42b0e1 --- /dev/null +++ b/parser/testdata/00014_filtering_arrays/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "GeneralInterests" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "AdvEngineID" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "GeneralInterests" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00014_select_from_table_with_nested/ast.json b/parser/testdata/00014_select_from_table_with_nested/ast.json new file mode 100644 index 0000000000..b6c833a814 --- /dev/null +++ b/parser/testdata/00014_select_from_table_with_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested_test", + "tables": [ + { + "table": "nested_test" + } + ] +} diff --git a/parser/testdata/00015_totals_and_no_aggregate_functions/ast.json b/parser/testdata/00015_totals_and_no_aggregate_functions/ast.json new file mode 100644 index 0000000000..92bddaf3aa --- /dev/null +++ b/parser/testdata/00015_totals_and_no_aggregate_functions/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "AdvEngineID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "AdvEngineID" + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "parts": [ + "AdvEngineID" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00015_totals_having_constants/ast.json b/parser/testdata/00015_totals_having_constants/ast.json new file mode 100644 index 0000000000..c45821277f --- /dev/null +++ b/parser/testdata/00015_totals_having_constants/ast.json @@ -0,0 +1,89 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "name": "count" + }, + "op": "/", + "right": { + "type": "Float", + "value": 0.1 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true, + "having": { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0.1 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00016_any_if_distributed_cond_always_false/ast.json b/parser/testdata/00016_any_if_distributed_cond_always_false/ast.json new file mode 100644 index 0000000000..619a70d53d --- /dev/null +++ b/parser/testdata/00016_any_if_distributed_cond_always_false/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "anyIf", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + }, + { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}:9000" + }, + { + "parts": [ + "test" + ] + }, + { + "parts": [ + "hits" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00016_totals_having_constants/ast.json b/parser/testdata/00016_totals_having_constants/ast.json new file mode 100644 index 0000000000..6f2b5b3732 --- /dev/null +++ b/parser/testdata/00016_totals_having_constants/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "dummy" + ] + }, + { + "left": { + "name": "count" + }, + "op": "/", + "right": { + "type": "Float", + "value": 0.1 + } + } + ], + "group_by": [ + { + "parts": [ + "dummy" + ] + } + ], + "with_totals": true, + "having": { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0.1 + } + } + } + ] +} diff --git a/parser/testdata/00017_in_subquery_with_empty_result/ast.json b/parser/testdata/00017_in_subquery_with_empty_result/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00017_in_subquery_with_empty_result/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00018_distinct_in_subquery/ast.json b/parser/testdata/00018_distinct_in_subquery/ast.json new file mode 100644 index 0000000000..b0655f7251 --- /dev/null +++ b/parser/testdata/00018_distinct_in_subquery/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "alias": "y" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00019_shard_quantiles_totals_distributed/ast.json b/parser/testdata/00019_shard_quantiles_totals_distributed/ast.json new file mode 100644 index 0000000000..898837bdf6 --- /dev/null +++ b/parser/testdata/00019_shard_quantiles_totals_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_positional_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00020_distinct_order_by_distributed/ast.json b/parser/testdata/00020_distinct_order_by_distributed/ast.json new file mode 100644 index 0000000000..f8a82f93c3 --- /dev/null +++ b/parser/testdata/00020_distinct_order_by_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_sort", + "value": { + "type": "Integer", + "value": 10000 + } + } + ] +} diff --git a/parser/testdata/00021_1_select_with_in/ast.json b/parser/testdata/00021_1_select_with_in/ast.json new file mode 100644 index 0000000000..f04215e725 --- /dev/null +++ b/parser/testdata/00021_1_select_with_in/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "Sign" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "CounterID" + ] + }, + "list": [ + { + "type": "Integer", + "value": 942285 + } + ] + } + } + ] +} diff --git a/parser/testdata/00022_func_higher_order_and_constants/ast.json b/parser/testdata/00022_func_higher_order_and_constants/ast.json new file mode 100644 index 0000000000..b832f79699 --- /dev/null +++ b/parser/testdata/00022_func_higher_order_and_constants/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "name": "position", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "String", + "value": "a" + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00022_merge_prewhere/ast.json b/parser/testdata/00022_merge_prewhere/ast.json new file mode 100644 index 0000000000..ef7eb1d720 --- /dev/null +++ b/parser/testdata/00022_merge_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_hits", + "tables": [ + { + "table": "merge_hits" + } + ] +} diff --git a/parser/testdata/00023_agg_select_agg_subquery/ast.json b/parser/testdata/00023_agg_select_agg_subquery/ast.json new file mode 100644 index 0000000000..0436307e2e --- /dev/null +++ b/parser/testdata/00023_agg_select_agg_subquery/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "name": "sum", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00023_totals_limit/ast.json b/parser/testdata/00023_totals_limit/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00023_totals_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00024_random_counters/ast.json b/parser/testdata/00024_random_counters/ast.json new file mode 100644 index 0000000000..7a7c137f28 --- /dev/null +++ b/parser/testdata/00024_random_counters/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ] + }, + { + "name": "sum", + "arguments": [ + { + "parts": [ + "Sign" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 32152608 + } + } + } + ] +} diff --git a/parser/testdata/00024_unused_array_join_in_subquery/ast.json b/parser/testdata/00024_unused_array_join_in_subquery/ast.json new file mode 100644 index 0000000000..43fe751cba --- /dev/null +++ b/parser/testdata/00024_unused_array_join_in_subquery/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00025_implicitly_used_subquery_column/ast.json b/parser/testdata/00025_implicitly_used_subquery_column/ast.json new file mode 100644 index 0000000000..4b666552bf --- /dev/null +++ b/parser/testdata/00025_implicitly_used_subquery_column/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "y" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "x" + }, + { + "parts": [ + "x" + ], + "alias": "y" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00026_shard_something_distributed/ast.json b/parser/testdata/00026_shard_something_distributed/ast.json new file mode 100644 index 0000000000..143d76812a --- /dev/null +++ b/parser/testdata/00026_shard_something_distributed/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "op": "NOT", + "operand": { + "parts": [ + "dummy" + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + }, + "where": { + "op": "NOT", + "operand": { + "parts": [ + "dummy" + ] + } + } + } + ] +} diff --git a/parser/testdata/00027_argMinMax/ast.json b/parser/testdata/00027_argMinMax/ast.json new file mode 100644 index 0000000000..20aff0b155 --- /dev/null +++ b/parser/testdata/00027_argMinMax/ast.json @@ -0,0 +1,122 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "argMin", + "arguments": [ + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ] + }, + { + "name": "argMax", + "arguments": [ + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00027_distinct_and_order_by/ast.json b/parser/testdata/00027_distinct_and_order_by/ast.json new file mode 100644 index 0000000000..a534ea790f --- /dev/null +++ b/parser/testdata/00027_distinct_and_order_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_sort", + "value": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/00028_shard_big_agg_aj_distributed/ast.json b/parser/testdata/00028_shard_big_agg_aj_distributed/ast.json new file mode 100644 index 0000000000..a52a278d7d --- /dev/null +++ b/parser/testdata/00028_shard_big_agg_aj_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "big_array", + "tables": [ + { + "table": "big_array" + } + ] +} diff --git a/parser/testdata/00030_alter_table/ast.json b/parser/testdata/00030_alter_table/ast.json new file mode 100644 index 0000000000..8a154714d2 --- /dev/null +++ b/parser/testdata/00030_alter_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_test", + "tables": [ + { + "table": "alter_test" + } + ] +} diff --git a/parser/testdata/00030_array_enumerate_uniq/ast.json b/parser/testdata/00030_array_enumerate_uniq/ast.json new file mode 100644 index 0000000000..b86a18a729 --- /dev/null +++ b/parser/testdata/00030_array_enumerate_uniq/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "max", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "arrayEnumerateUniq", + "arguments": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 10 + } + ] + } + }, + { + "parts": [ + "URLCategories" + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00031_array_enumerate_uniq/ast.json b/parser/testdata/00031_array_enumerate_uniq/ast.json new file mode 100644 index 0000000000..f4cd825eae --- /dev/null +++ b/parser/testdata/00031_array_enumerate_uniq/ast.json @@ -0,0 +1,221 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "UserID" + ] + }, + { + "name": "arrayEnumerateUniq", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + } + ] + } + ], + "alias": "arr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "UserID" + ] + }, + { + "parts": [ + "SearchPhrase" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1704509 + } + }, + "op": "AND", + "right": { + "expr": { + "parts": [ + "UserID" + ] + }, + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "UserID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "name": "notEmpty", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + } + ] + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1704509 + } + } + }, + "group_by": [ + { + "parts": [ + "UserID" + ] + } + ], + "having": { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 1 + } + } + } + ] + } + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "UserID" + ] + } + }, + { + "expression": { + "parts": [ + "WatchID" + ] + } + } + ] + } + ] + } + } + } + } + ] + }, + "where": { + "name": "notEmpty", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + } + ] + }, + "group_by": [ + { + "parts": [ + "UserID" + ] + } + ], + "having": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 1 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "UserID" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 20 + } + } + ] +} diff --git a/parser/testdata/00032_aggregate_key64/ast.json b/parser/testdata/00032_aggregate_key64/ast.json new file mode 100644 index 0000000000..830c5cbaee --- /dev/null +++ b/parser/testdata/00032_aggregate_key64/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "SearchEngineID" + ], + "alias": "k1" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k1" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "k1" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00032_fixed_string_to_string/ast.json b/parser/testdata/00032_fixed_string_to_string/ast.json new file mode 100644 index 0000000000..addd53dea4 --- /dev/null +++ b/parser/testdata/00032_fixed_string_to_string/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 111 + } + } + ] +} diff --git a/parser/testdata/00033_aggregate_key_string/ast.json b/parser/testdata/00033_aggregate_key_string/ast.json new file mode 100644 index 0000000000..080b32be60 --- /dev/null +++ b/parser/testdata/00033_aggregate_key_string/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "SearchPhrase" + ], + "alias": "k1" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k1" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "k1" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00033_fixed_string_to_string/ast.json b/parser/testdata/00033_fixed_string_to_string/ast.json new file mode 100644 index 0000000000..b200f02f7c --- /dev/null +++ b/parser/testdata/00033_fixed_string_to_string/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00034_aggregate_key_fixed_string/ast.json b/parser/testdata/00034_aggregate_key_fixed_string/ast.json new file mode 100644 index 0000000000..bfc62d5662 --- /dev/null +++ b/parser/testdata/00034_aggregate_key_fixed_string/ast.json @@ -0,0 +1,80 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toFixedString", + "arguments": [ + { + "name": "substring", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 17 + } + ] + }, + { + "type": "Integer", + "value": 17 + } + ], + "alias": "k1" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k1" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "k1" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00034_fixed_string_to_number/ast.json b/parser/testdata/00034_fixed_string_to_number/ast.json new file mode 100644 index 0000000000..d5bf0ae5dd --- /dev/null +++ b/parser/testdata/00034_fixed_string_to_number/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt16", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 111 + } + } + ] +} diff --git a/parser/testdata/00035_aggregate_keys128/ast.json b/parser/testdata/00035_aggregate_keys128/ast.json new file mode 100644 index 0000000000..619e7c4fe2 --- /dev/null +++ b/parser/testdata/00035_aggregate_keys128/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "SearchEngineID" + ], + "alias": "k1" + }, + { + "parts": [ + "AdvEngineID" + ], + "alias": "k2" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k1" + ] + }, + { + "parts": [ + "k2" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "k1" + ] + } + }, + { + "expression": { + "parts": [ + "k2" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00035_function_array_return_type/ast.json b/parser/testdata/00035_function_array_return_type/ast.json new file mode 100644 index 0000000000..2f9feff9aa --- /dev/null +++ b/parser/testdata/00035_function_array_return_type/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00036_aggregate_hashed/ast.json b/parser/testdata/00036_aggregate_hashed/ast.json new file mode 100644 index 0000000000..be559eda42 --- /dev/null +++ b/parser/testdata/00036_aggregate_hashed/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "SearchEngineID" + ], + "alias": "k1" + }, + { + "parts": [ + "SearchPhrase" + ], + "alias": "k2" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k1" + ] + }, + { + "parts": [ + "k2" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "k1" + ] + } + }, + { + "expression": { + "parts": [ + "k2" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00036_array_element/ast.json b/parser/testdata/00036_array_element/ast.json new file mode 100644 index 0000000000..16e12af777 --- /dev/null +++ b/parser/testdata/00036_array_element/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "array_element_test", + "tables": [ + { + "table": "array_element_test" + } + ] +} diff --git a/parser/testdata/00037_totals_limit/ast.json b/parser/testdata/00037_totals_limit/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00037_totals_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00037_uniq_state_merge1/ast.json b/parser/testdata/00037_uniq_state_merge1/ast.json new file mode 100644 index 0000000000..9f55910776 --- /dev/null +++ b/parser/testdata/00037_uniq_state_merge1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "String", + "value": "1G" + } + } + ] +} diff --git a/parser/testdata/00038_totals_limit/ast.json b/parser/testdata/00038_totals_limit/ast.json new file mode 100644 index 0000000000..898837bdf6 --- /dev/null +++ b/parser/testdata/00038_totals_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_positional_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00038_uniq_state_merge2/ast.json b/parser/testdata/00038_uniq_state_merge2/ast.json new file mode 100644 index 0000000000..9f55910776 --- /dev/null +++ b/parser/testdata/00038_uniq_state_merge2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "String", + "value": "1G" + } + } + ] +} diff --git a/parser/testdata/00039_primary_key/ast.json b/parser/testdata/00039_primary_key/ast.json new file mode 100644 index 0000000000..99e2474da4 --- /dev/null +++ b/parser/testdata/00039_primary_key/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10000 + } + } + } + ] +} diff --git a/parser/testdata/00040_aggregating_materialized_view/ast.json b/parser/testdata/00040_aggregating_materialized_view/ast.json new file mode 100644 index 0000000000..a868bafa1b --- /dev/null +++ b/parser/testdata/00040_aggregating_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "basic_00040", + "tables": [ + { + "table": "basic_00040" + } + ] +} diff --git a/parser/testdata/00040_array_enumerate_uniq/ast.json b/parser/testdata/00040_array_enumerate_uniq/ast.json new file mode 100644 index 0000000000..936eba4828 --- /dev/null +++ b/parser/testdata/00040_array_enumerate_uniq/ast.json @@ -0,0 +1,149 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "max", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayEnumerateUniq", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 54321 + } + ] + } + ], + "alias": "nums" + }, + { + "name": "groupArray", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 98765 + } + ] + } + ] + } + ] + } + ], + "alias": "arr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "left": { + "name": "intHash32", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 100000 + } + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00041_aggregating_materialized_view/ast.json b/parser/testdata/00041_aggregating_materialized_view/ast.json new file mode 100644 index 0000000000..cc346f3987 --- /dev/null +++ b/parser/testdata/00041_aggregating_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "basic", + "tables": [ + { + "table": "basic" + } + ] +} diff --git a/parser/testdata/00041_aggregation_remap/ast.json b/parser/testdata/00041_aggregation_remap/ast.json new file mode 100644 index 0000000000..4a006ecef6 --- /dev/null +++ b/parser/testdata/00041_aggregation_remap/ast.json @@ -0,0 +1,80 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 200000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "order_by": [ + { + "expression": { + "name": "count" + } + }, + { + "expression": { + "parts": [ + "number" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00041_big_array_join/ast.json b/parser/testdata/00041_big_array_join/ast.json new file mode 100644 index 0000000000..a52a278d7d --- /dev/null +++ b/parser/testdata/00041_big_array_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "big_array", + "tables": [ + { + "table": "big_array" + } + ] +} diff --git a/parser/testdata/00042_set/ast.json b/parser/testdata/00042_set/ast.json new file mode 100644 index 0000000000..cee681690b --- /dev/null +++ b/parser/testdata/00042_set/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1100000 + } + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00043_summing_empty_part/ast.json b/parser/testdata/00043_summing_empty_part/ast.json new file mode 100644 index 0000000000..5384600b7d --- /dev/null +++ b/parser/testdata/00043_summing_empty_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "empty_summing", + "tables": [ + { + "table": "empty_summing" + } + ] +} diff --git a/parser/testdata/00044_sorting_by_string_descending/ast.json b/parser/testdata/00044_sorting_by_string_descending/ast.json new file mode 100644 index 0000000000..e3ceaf457f --- /dev/null +++ b/parser/testdata/00044_sorting_by_string_descending/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "s" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "abc" + } + ], + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "s" + ] + }, + "descending": true + } + ] + } + ] +} diff --git a/parser/testdata/00045_sorting_by_fixed_string_descending/ast.json b/parser/testdata/00045_sorting_by_fixed_string_descending/ast.json new file mode 100644 index 0000000000..25a3f2f465 --- /dev/null +++ b/parser/testdata/00045_sorting_by_fixed_string_descending/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "s" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toFixedString", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "abc" + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ], + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "s" + ] + }, + "descending": true + } + ] + } + ] +} diff --git a/parser/testdata/00045_uniq_upto/ast.json b/parser/testdata/00045_uniq_upto/ast.json new file mode 100644 index 0000000000..b6bdf9caa3 --- /dev/null +++ b/parser/testdata/00045_uniq_upto/ast.json @@ -0,0 +1,88 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "RegionID" + ] + }, + { + "name": "uniqExact", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ], + "alias": "u1" + }, + { + "name": "uniqUpTo", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ], + "alias": "u2" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "RegionID" + ] + } + ], + "having": { + "left": { + "left": { + "parts": [ + "u1" + ] + }, + "op": "\u003c=", + "right": { + "type": "Integer", + "value": 11 + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "u1" + ] + }, + "op": "!=", + "right": { + "parts": [ + "u2" + ] + } + } + } + } + ] +} diff --git a/parser/testdata/00046_stored_aggregates_simple/ast.json b/parser/testdata/00046_stored_aggregates_simple/ast.json new file mode 100644 index 0000000000..2bd2d84b46 --- /dev/null +++ b/parser/testdata/00046_stored_aggregates_simple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "stored_aggregates", + "tables": [ + { + "table": "stored_aggregates" + } + ] +} diff --git a/parser/testdata/00046_uniq_upto_distributed/ast.json b/parser/testdata/00046_uniq_upto_distributed/ast.json new file mode 100644 index 0000000000..d1a7115696 --- /dev/null +++ b/parser/testdata/00046_uniq_upto_distributed/ast.json @@ -0,0 +1,103 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "RegionID" + ] + }, + { + "name": "uniqExact", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ], + "alias": "u1" + }, + { + "name": "uniqUpTo", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ], + "alias": "u2" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "test" + ] + }, + { + "parts": [ + "visits" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "RegionID" + ] + } + ], + "having": { + "left": { + "left": { + "parts": [ + "u1" + ] + }, + "op": "\u003c=", + "right": { + "type": "Integer", + "value": 11 + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "u1" + ] + }, + "op": "!=", + "right": { + "parts": [ + "u2" + ] + } + } + } + } + ] +} diff --git a/parser/testdata/00047_bar/ast.json b/parser/testdata/00047_bar/ast.json new file mode 100644 index 0000000000..861c0b9b1b --- /dev/null +++ b/parser/testdata/00047_bar/ast.json @@ -0,0 +1,75 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + }, + { + "name": "count", + "alias": "c" + }, + { + "name": "bar", + "arguments": [ + { + "parts": [ + "c" + ] + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 523264 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "CounterID" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "CounterID" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/00047_stored_aggregates_complex/ast.json b/parser/testdata/00047_stored_aggregates_complex/ast.json new file mode 100644 index 0000000000..2bd2d84b46 --- /dev/null +++ b/parser/testdata/00047_stored_aggregates_complex/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "stored_aggregates", + "tables": [ + { + "table": "stored_aggregates" + } + ] +} diff --git a/parser/testdata/00048_a_stored_aggregates_merge/ast.json b/parser/testdata/00048_a_stored_aggregates_merge/ast.json new file mode 100644 index 0000000000..2bd2d84b46 --- /dev/null +++ b/parser/testdata/00048_a_stored_aggregates_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "stored_aggregates", + "tables": [ + { + "table": "stored_aggregates" + } + ] +} diff --git a/parser/testdata/00048_b_stored_aggregates_merge/ast.json b/parser/testdata/00048_b_stored_aggregates_merge/ast.json new file mode 100644 index 0000000000..2bd2d84b46 --- /dev/null +++ b/parser/testdata/00048_b_stored_aggregates_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "stored_aggregates", + "tables": [ + { + "table": "stored_aggregates" + } + ] +} diff --git a/parser/testdata/00048_min_max/ast.json b/parser/testdata/00048_min_max/ast.json new file mode 100644 index 0000000000..8832c61bba --- /dev/null +++ b/parser/testdata/00048_min_max/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "min", + "arguments": [ + { + "parts": [ + "EventDate" + ] + } + ] + }, + { + "name": "max", + "arguments": [ + { + "parts": [ + "EventDate" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00049_max_string_if/ast.json b/parser/testdata/00049_max_string_if/ast.json new file mode 100644 index 0000000000..957619e3ab --- /dev/null +++ b/parser/testdata/00049_max_string_if/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + }, + { + "name": "count" + }, + { + "name": "maxIf", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + }, + { + "name": "notEmpty", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "CounterID" + ] + } + ], + "order_by": [ + { + "expression": { + "name": "count" + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 20 + } + } + ] +} diff --git a/parser/testdata/00050_min_max/ast.json b/parser/testdata/00050_min_max/ast.json new file mode 100644 index 0000000000..bc80a73701 --- /dev/null +++ b/parser/testdata/00050_min_max/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + }, + { + "name": "min", + "arguments": [ + { + "parts": [ + "WatchID" + ] + } + ] + }, + { + "name": "max", + "arguments": [ + { + "parts": [ + "WatchID" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "CounterID" + ] + } + ], + "order_by": [ + { + "expression": { + "name": "count" + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 20 + } + } + ] +} diff --git a/parser/testdata/00051_any_inner_join/ast.json b/parser/testdata/00051_any_inner_join/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00051_any_inner_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00051_min_max_array/ast.json b/parser/testdata/00051_min_max_array/ast.json new file mode 100644 index 0000000000..67f06c3e06 --- /dev/null +++ b/parser/testdata/00051_min_max_array/ast.json @@ -0,0 +1,87 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + }, + { + "name": "count" + }, + { + "name": "max", + "arguments": [ + { + "parts": [ + "GoalsReached" + ] + } + ] + }, + { + "name": "min", + "arguments": [ + { + "parts": [ + "GoalsReached" + ] + } + ] + }, + { + "name": "minIf", + "arguments": [ + { + "parts": [ + "GoalsReached" + ] + }, + { + "name": "notEmpty", + "arguments": [ + { + "parts": [ + "GoalsReached" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "CounterID" + ] + } + ], + "order_by": [ + { + "expression": { + "name": "count" + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 20 + } + } + ] +} diff --git a/parser/testdata/00053_replicate_segfault/ast.json b/parser/testdata/00053_replicate_segfault/ast.json new file mode 100644 index 0000000000..62d8234a71 --- /dev/null +++ b/parser/testdata/00053_replicate_segfault/ast.json @@ -0,0 +1,98 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "ParsedParams", + "Key1" + ], + "alias": "p" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "where": { + "name": "arrayAll", + "arguments": [ + { + "parameters": [ + "y" + ], + "body": { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "y" + ] + }, + "op": "!=", + "right": { + "parts": [ + "x" + ] + } + } + }, + { + "parts": [ + "p" + ] + } + ] + } + }, + { + "parts": [ + "p" + ] + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00054_merge_tree_partitions/ast.json b/parser/testdata/00054_merge_tree_partitions/ast.json new file mode 100644 index 0000000000..0f931c8731 --- /dev/null +++ b/parser/testdata/00054_merge_tree_partitions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "partitions", + "tables": [ + { + "table": "partitions" + } + ] +} diff --git a/parser/testdata/00055_index_and_not/ast.json b/parser/testdata/00055_index_and_not/ast.json new file mode 100644 index 0000000000..001f2472db --- /dev/null +++ b/parser/testdata/00055_index_and_not/ast.json @@ -0,0 +1,63 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "op": "NOT", + "operand": { + "left": { + "left": { + "parts": [ + "EventDate" + ] + }, + "op": "\u003e=", + "right": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2015-01-01" + } + ] + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "EventDate" + ] + }, + "op": "\u003c", + "right": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2015-02-01" + } + ] + } + } + } + } + } + ] +} diff --git a/parser/testdata/00056_view/ast.json b/parser/testdata/00056_view/ast.json new file mode 100644 index 0000000000..4eb064c82b --- /dev/null +++ b/parser/testdata/00056_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "view", + "tables": [ + { + "table": "view" + } + ] +} diff --git a/parser/testdata/00057_join_aliases/ast.json b/parser/testdata/00057_join_aliases/ast.json new file mode 100644 index 0000000000..9f6e44ed97 --- /dev/null +++ b/parser/testdata/00057_join_aliases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_join_swap_table", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00059_merge_sorting_empty_array_joined/ast.json b/parser/testdata/00059_merge_sorting_empty_array_joined/ast.json new file mode 100644 index 0000000000..afbd060360 --- /dev/null +++ b/parser/testdata/00059_merge_sorting_empty_array_joined/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "Goals", + "ID" + ] + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 942285 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "CounterID" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00059_shard_global_in/ast.json b/parser/testdata/00059_shard_global_in/ast.json new file mode 100644 index 0000000000..9bfee5ce61 --- /dev/null +++ b/parser/testdata/00059_shard_global_in/ast.json @@ -0,0 +1,115 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "numbers" + ] + } + ] + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "number" + ] + }, + "global": true, + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "numbers" + ] + } + ] + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00059_shard_global_in_mergetree/ast.json b/parser/testdata/00059_shard_global_in_mergetree/ast.json new file mode 100644 index 0000000000..006c394edc --- /dev/null +++ b/parser/testdata/00059_shard_global_in_mergetree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_local", + "tables": [ + { + "table": "test_local" + } + ] +} diff --git a/parser/testdata/00060_date_lut/ast.json b/parser/testdata/00060_date_lut/ast.json new file mode 100644 index 0000000000..17da8a14ad --- /dev/null +++ b/parser/testdata/00060_date_lut/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "1970-01-01 14:25:36" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00060_move_to_prewhere_and_sets/ast.json b/parser/testdata/00060_move_to_prewhere_and_sets/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/00060_move_to_prewhere_and_sets/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00061_merge_tree_alter/ast.json b/parser/testdata/00061_merge_tree_alter/ast.json new file mode 100644 index 0000000000..116dfb4758 --- /dev/null +++ b/parser/testdata/00061_merge_tree_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_00061", + "tables": [ + { + "table": "alter_00061" + } + ] +} diff --git a/parser/testdata/00061_storage_buffer/ast.json b/parser/testdata/00061_storage_buffer/ast.json new file mode 100644 index 0000000000..687cf50920 --- /dev/null +++ b/parser/testdata/00061_storage_buffer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "hits_dst", + "tables": [ + { + "table": "hits_dst" + } + ] +} diff --git a/parser/testdata/00062_loyalty/ast.json b/parser/testdata/00062_loyalty/ast.json new file mode 100644 index 0000000000..639302c841 --- /dev/null +++ b/parser/testdata/00062_loyalty/ast.json @@ -0,0 +1,307 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "loyalty" + ] + }, + { + "name": "count", + "alias": "c" + }, + { + "name": "bar", + "arguments": [ + { + "left": { + "name": "log", + "arguments": [ + { + "left": { + "parts": [ + "c" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 1000 + } + }, + { + "type": "Integer", + "value": 0 + }, + { + "left": { + "name": "log", + "arguments": [ + { + "type": "Integer", + "value": 6000 + } + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 1000 + } + }, + { + "type": "Integer", + "value": 80 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "UserID" + ] + }, + { + "name": "toInt8", + "arguments": [ + { + "left": { + "condition": { + "left": { + "parts": [ + "yandex" + ] + }, + "op": "\u003e", + "right": { + "parts": [ + "google" + ] + } + }, + "then": { + "left": { + "parts": [ + "yandex" + ] + }, + "op": "/", + "right": { + "left": { + "parts": [ + "yandex" + ] + }, + "op": "+", + "right": { + "parts": [ + "google" + ] + } + } + }, + "else": { + "left": { + "op": "-", + "operand": { + "parts": [ + "google" + ] + } + }, + "op": "/", + "right": { + "left": { + "parts": [ + "yandex" + ] + }, + "op": "+", + "right": { + "parts": [ + "google" + ] + } + } + } + }, + "op": "*", + "right": { + "type": "Integer", + "value": 10 + } + } + ], + "alias": "loyalty" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "UserID" + ] + }, + { + "name": "sum", + "arguments": [ + { + "left": { + "parts": [ + "SearchEngineID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + } + ], + "alias": "yandex" + }, + { + "name": "sum", + "arguments": [ + { + "left": { + "parts": [ + "SearchEngineID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 3 + } + } + ], + "alias": "google" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "SearchEngineID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "SearchEngineID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 3 + } + } + }, + "group_by": [ + { + "parts": [ + "UserID" + ] + } + ], + "having": { + "left": { + "left": { + "parts": [ + "yandex" + ] + }, + "op": "+", + "right": { + "parts": [ + "google" + ] + } + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 10 + } + } + } + ] + } + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "loyalty" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "loyalty" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00062_replicated_merge_tree_alter_zookeeper_long/ast.json b/parser/testdata/00062_replicated_merge_tree_alter_zookeeper_long/ast.json new file mode 100644 index 0000000000..605f73f665 --- /dev/null +++ b/parser/testdata/00062_replicated_merge_tree_alter_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replicated_alter1", + "tables": [ + { + "table": "replicated_alter1" + } + ] +} diff --git a/parser/testdata/00063_check_query/ast.json b/parser/testdata/00063_check_query/ast.json new file mode 100644 index 0000000000..b1cb771363 --- /dev/null +++ b/parser/testdata/00063_check_query/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "check_query_single_value_result", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00063_loyalty_joins/ast.json b/parser/testdata/00063_loyalty_joins/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00063_loyalty_joins/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00064_negate_bug/ast.json b/parser/testdata/00064_negate_bug/ast.json new file mode 100644 index 0000000000..695d4ee10c --- /dev/null +++ b/parser/testdata/00064_negate_bug/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "op": "-", + "operand": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ], + "alias": "t" + } + ] + } + ] +} diff --git a/parser/testdata/00065_loyalty_with_storage_join/ast.json b/parser/testdata/00065_loyalty_with_storage_join/ast.json new file mode 100644 index 0000000000..a0704c201f --- /dev/null +++ b/parser/testdata/00065_loyalty_with_storage_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join", + "tables": [ + { + "table": "join" + } + ] +} diff --git a/parser/testdata/00065_shard_float_literals_formatting/ast.json b/parser/testdata/00065_shard_float_literals_formatting/ast.json new file mode 100644 index 0000000000..8844079b00 --- /dev/null +++ b/parser/testdata/00065_shard_float_literals_formatting/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "type": "Float", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00066_sorting_distributed_many_replicas/ast.json b/parser/testdata/00066_sorting_distributed_many_replicas/ast.json new file mode 100644 index 0000000000..853810df50 --- /dev/null +++ b/parser/testdata/00066_sorting_distributed_many_replicas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_parallel_replicas", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/00067_replicate_segfault/ast.json b/parser/testdata/00067_replicate_segfault/ast.json new file mode 100644 index 0000000000..436bf8fffc --- /dev/null +++ b/parser/testdata/00067_replicate_segfault/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFilter", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ], + "alias": "p" + }, + { + "name": "arrayAll", + "arguments": [ + { + "parameters": [ + "y" + ], + "body": { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "y" + ] + }, + "op": "!=", + "right": { + "parts": [ + "x" + ] + } + } + }, + { + "parts": [ + "p" + ] + } + ] + } + }, + { + "parts": [ + "p" + ] + } + ], + "alias": "test" + } + ] + } + ] +} diff --git a/parser/testdata/00068_empty_tiny_log/ast.json b/parser/testdata/00068_empty_tiny_log/ast.json new file mode 100644 index 0000000000..1e5c0274f0 --- /dev/null +++ b/parser/testdata/00068_empty_tiny_log/ast.json @@ -0,0 +1,15 @@ +{ + "if_not_exists": true, + "table": "empty_tiny_log", + "columns": [ + { + "name": "A", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "TinyLog" + } +} diff --git a/parser/testdata/00068_subquery_in_prewhere/ast.json b/parser/testdata/00068_subquery_in_prewhere/ast.json new file mode 100644 index 0000000000..6319e0de58 --- /dev/null +++ b/parser/testdata/00068_subquery_in_prewhere/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "prewhere": { + "expr": { + "parts": [ + "UserID" + ] + }, + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "UserID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 800784 + } + } + } + ] + } + } + } + ] +} diff --git a/parser/testdata/00069_date_arithmetic/ast.json b/parser/testdata/00069_date_arithmetic/ast.json new file mode 100644 index 0000000000..d87fbda91b --- /dev/null +++ b/parser/testdata/00069_date_arithmetic/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toTypeName", + "arguments": [ + { + "left": { + "name": "now" + }, + "op": "-", + "right": { + "name": "now" + } + } + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "Int32" + } + } + ] + } + ] +} diff --git a/parser/testdata/00069_duplicate_aggregation_keys/ast.json b/parser/testdata/00069_duplicate_aggregation_keys/ast.json new file mode 100644 index 0000000000..0c3c69c50c --- /dev/null +++ b/parser/testdata/00069_duplicate_aggregation_keys/ast.json @@ -0,0 +1,100 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "URL" + ] + }, + { + "parts": [ + "EventDate" + ] + }, + { + "name": "max", + "arguments": [ + { + "parts": [ + "URL" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1704509 + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "UserID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 4322253409885123546 + } + } + }, + "group_by": [ + { + "parts": [ + "URL" + ] + }, + { + "parts": [ + "EventDate" + ] + }, + { + "parts": [ + "EventDate" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "URL" + ] + } + }, + { + "expression": { + "parts": [ + "EventDate" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00071_insert_fewer_columns/ast.json b/parser/testdata/00071_insert_fewer_columns/ast.json new file mode 100644 index 0000000000..34b78ba4e9 --- /dev/null +++ b/parser/testdata/00071_insert_fewer_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "insert_fewer_columns", + "tables": [ + { + "table": "insert_fewer_columns" + } + ] +} diff --git a/parser/testdata/00071_merge_tree_optimize_aio/ast.json b/parser/testdata/00071_merge_tree_optimize_aio/ast.json new file mode 100644 index 0000000000..d60bc068b1 --- /dev/null +++ b/parser/testdata/00071_merge_tree_optimize_aio/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "hits_snippet", + "tables": [ + { + "table": "hits_snippet" + } + ] +} diff --git a/parser/testdata/00072_compare_date_and_string_index/ast.json b/parser/testdata/00072_compare_date_and_string_index/ast.json new file mode 100644 index 0000000000..4d8e3d5eed --- /dev/null +++ b/parser/testdata/00072_compare_date_and_string_index/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "EventDate" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "2014-03-18" + } + } + } + ] +} diff --git a/parser/testdata/00073_merge_sorting_empty_array_joined/ast.json b/parser/testdata/00073_merge_sorting_empty_array_joined/ast.json new file mode 100644 index 0000000000..e6749a0a7b --- /dev/null +++ b/parser/testdata/00073_merge_sorting_empty_array_joined/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00073_uniq_array/ast.json b/parser/testdata/00073_uniq_array/ast.json new file mode 100644 index 0000000000..ebc1892439 --- /dev/null +++ b/parser/testdata/00073_uniq_array/ast.json @@ -0,0 +1,93 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "EventDate" + ] + }, + { + "name": "uniqExact", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ] + }, + { + "name": "length", + "arguments": [ + { + "name": "groupUniqArray", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ] + } + ] + }, + { + "name": "arrayUniq", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "UserID" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1704509 + } + }, + "group_by": [ + { + "parts": [ + "EventDate" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "EventDate" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00074_full_join/ast.json b/parser/testdata/00074_full_join/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00074_full_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00075_left_array_join/ast.json b/parser/testdata/00075_left_array_join/ast.json new file mode 100644 index 0000000000..f084dc86ce --- /dev/null +++ b/parser/testdata/00075_left_array_join/ast.json @@ -0,0 +1,119 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "UserID" + ] + }, + { + "expr": { + "parts": [ + "EventTime" + ] + }, + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "Asia/Dubai" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + { + "parts": [ + "pp", + "Key1" + ] + }, + { + "parts": [ + "pp", + "Key2" + ] + }, + { + "parts": [ + "ParsedParams", + "Key1" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "ParsedParams" + ], + "alias": "pp" + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1704509 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "UserID" + ] + } + }, + { + "expression": { + "parts": [ + "EventTime" + ] + } + }, + { + "expression": { + "parts": [ + "pp", + "Key1" + ] + } + }, + { + "expression": { + "parts": [ + "pp", + "Key2" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/00075_shard_formatting_negate_of_negative_literal/ast.json b/parser/testdata/00075_shard_formatting_negate_of_negative_literal/ast.json new file mode 100644 index 0000000000..b408d2e50c --- /dev/null +++ b/parser/testdata/00075_shard_formatting_negate_of_negative_literal/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "op": "-", + "operand": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00076_ip_coding_functions/ast.json b/parser/testdata/00076_ip_coding_functions/ast.json new file mode 100644 index 0000000000..e93967b09a --- /dev/null +++ b/parser/testdata/00076_ip_coding_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cast_ipv4_ipv6_default_on_conversion_error", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00077_log_tinylog_stripelog/ast.json b/parser/testdata/00077_log_tinylog_stripelog/ast.json new file mode 100644 index 0000000000..b1cb771363 --- /dev/null +++ b/parser/testdata/00077_log_tinylog_stripelog/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "check_query_single_value_result", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00077_set_keys_fit_128_bits_many_blocks/ast.json b/parser/testdata/00077_set_keys_fit_128_bits_many_blocks/ast.json new file mode 100644 index 0000000000..de44ee467c --- /dev/null +++ b/parser/testdata/00077_set_keys_fit_128_bits_many_blocks/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1000 + } + } + ] +} diff --git a/parser/testdata/00078_group_by_arrays/ast.json b/parser/testdata/00078_group_by_arrays/ast.json new file mode 100644 index 0000000000..19b1514156 --- /dev/null +++ b/parser/testdata/00078_group_by_arrays/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "GoalsReached" + ], + "alias": "k" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00078_string_concat/ast.json b/parser/testdata/00078_string_concat/ast.json new file mode 100644 index 0000000000..c16cde19df --- /dev/null +++ b/parser/testdata/00078_string_concat/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "String", + "value": "{ key: fn, value: concat }" + }, + "op": "==", + "right": { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "{ key: " + }, + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "fn" + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "String", + "value": ", value: " + }, + { + "type": "String", + "value": "concat" + }, + { + "type": "String", + "value": " }" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00079_array_join_not_used_joined_column/ast.json b/parser/testdata/00079_array_join_not_used_joined_column/ast.json new file mode 100644 index 0000000000..699a4b4cef --- /dev/null +++ b/parser/testdata/00079_array_join_not_used_joined_column/ast.json @@ -0,0 +1,115 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "PP", + "Key1" + ], + "alias": "ym:s:paramsLevel1" + }, + { + "name": "sum", + "arguments": [ + { + "name": "arrayAll", + "arguments": [ + { + "parameters": [ + "x_1" + ], + "body": { + "left": { + "parts": [ + "x_1" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "" + } + } + }, + { + "parts": [ + "ParsedParams", + "Key2" + ] + } + ] + } + ], + "alias": "ym:s:visits" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "ParsedParams" + ], + "alias": "PP" + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1704509 + } + }, + "group_by": [ + { + "parts": [ + "ym:s:paramsLevel1" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "PP", + "Key1" + ] + } + }, + { + "expression": { + "parts": [ + "ym:s:visits" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 100 + }, + "offset": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00079_defaulted_columns/ast.json b/parser/testdata/00079_defaulted_columns/ast.json new file mode 100644 index 0000000000..99aea68c0f --- /dev/null +++ b/parser/testdata/00079_defaulted_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaulted", + "tables": [ + { + "table": "defaulted" + } + ] +} diff --git a/parser/testdata/00080_array_join_and_union/ast.json b/parser/testdata/00080_array_join_and_union/ast.json new file mode 100644 index 0000000000..371eaef1a0 --- /dev/null +++ b/parser/testdata/00080_array_join_and_union/ast.json @@ -0,0 +1,123 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "Goals", + "ID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "Goals" + ] + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 842440 + } + }, + "limit": { + "type": "Integer", + "value": 10 + } + }, + { + "columns": [ + { + "parts": [ + "Goals", + "ID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "Goals" + ] + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 842440 + } + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00081_group_by_without_key_and_totals/ast.json b/parser/testdata/00081_group_by_without_key_and_totals/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00081_group_by_without_key_and_totals/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00081_int_div_or_zero/ast.json b/parser/testdata/00081_int_div_or_zero/ast.json new file mode 100644 index 0000000000..39e5f0e928 --- /dev/null +++ b/parser/testdata/00081_int_div_or_zero/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "intDivOrZero", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/00082_append_trailing_char_if_absent/ast.json b/parser/testdata/00082_append_trailing_char_if_absent/ast.json new file mode 100644 index 0000000000..0d60ff1775 --- /dev/null +++ b/parser/testdata/00082_append_trailing_char_if_absent/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "appendTrailingCharIfAbsent", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "type": "String", + "value": "a" + } + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "" + } + } + ] + } + ] +} diff --git a/parser/testdata/00082_quantiles/ast.json b/parser/testdata/00082_quantiles/ast.json new file mode 100644 index 0000000000..5dd0e1cc44 --- /dev/null +++ b/parser/testdata/00082_quantiles/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00083_array_filter/ast.json b/parser/testdata/00083_array_filter/ast.json new file mode 100644 index 0000000000..82978d2e71 --- /dev/null +++ b/parser/testdata/00083_array_filter/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "name": "length", + "arguments": [ + { + "parts": [ + "ParsedParams", + "Key1" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "name": "notEmpty", + "arguments": [ + { + "parts": [ + "ParsedParams", + "Key1" + ] + } + ] + } + } + ] +} diff --git a/parser/testdata/00083_create_merge_tree_zookeeper_long/ast.json b/parser/testdata/00083_create_merge_tree_zookeeper_long/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/00083_create_merge_tree_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00084_external_aggregation/ast.json b/parser/testdata/00084_external_aggregation/ast.json new file mode 100644 index 0000000000..f9d8ffd29c --- /dev/null +++ b/parser/testdata/00084_external_aggregation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 200000000 + } + } + ] +} diff --git a/parser/testdata/00084_summing_merge_tree/ast.json b/parser/testdata/00084_summing_merge_tree/ast.json new file mode 100644 index 0000000000..61179e7887 --- /dev/null +++ b/parser/testdata/00084_summing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "summing_merge_tree", + "tables": [ + { + "table": "summing_merge_tree" + } + ] +} diff --git a/parser/testdata/00085_monotonic_evaluation_segfault/ast.json b/parser/testdata/00085_monotonic_evaluation_segfault/ast.json new file mode 100644 index 0000000000..d1ba52935d --- /dev/null +++ b/parser/testdata/00085_monotonic_evaluation_segfault/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "any", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "visits" + } + } + } + ] + }, + "where": { + "left": { + "name": "toInt32", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "parts": [ + "StartDate" + ] + } + ] + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 1000000000 + } + } + } + ] +} diff --git a/parser/testdata/00085_visible_width_of_tuple_of_dates/ast.json b/parser/testdata/00085_visible_width_of_tuple_of_dates/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/00085_visible_width_of_tuple_of_dates/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00086_array_reduce/ast.json b/parser/testdata/00086_array_reduce/ast.json new file mode 100644 index 0000000000..5a2b88f1b0 --- /dev/null +++ b/parser/testdata/00086_array_reduce/ast.json @@ -0,0 +1,103 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFilter", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "x" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 1 + } + } + }, + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "a", + "b" + ], + "body": { + "left": { + "parts": [ + "a" + ] + }, + "op": "=", + "right": { + "parts": [ + "b" + ] + } + } + }, + { + "parts": [ + "GeneralInterests" + ] + }, + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "groupArray" + }, + { + "parts": [ + "GeneralInterests" + ] + } + ] + } + ] + } + ], + "alias": "res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "res" + ] + } + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/00086_concat_nary_const_with_nonconst_segfault/ast.json b/parser/testdata/00086_concat_nary_const_with_nonconst_segfault/ast.json new file mode 100644 index 0000000000..9ad295c323 --- /dev/null +++ b/parser/testdata/00086_concat_nary_const_with_nonconst_segfault/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extract", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "type": "String", + "value": "10000000" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers_mt" + } + } + } + ] + }, + "where": { + "expr": { + "name": "concat", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "1" + } + ] + }, + { + "type": "String", + "value": "..." + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + }, + "pattern": { + "type": "String", + "value": "%10000000%" + } + }, + "limit": { + "type": "Integer", + "value": 1 + }, + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/00087_distinct_of_empty_arrays/ast.json b/parser/testdata/00087_distinct_of_empty_arrays/ast.json new file mode 100644 index 0000000000..395600f8a2 --- /dev/null +++ b/parser/testdata/00087_distinct_of_empty_arrays/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "name": "emptyArrayString", + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00087_math_functions/ast.json b/parser/testdata/00087_math_functions/ast.json new file mode 100644 index 0000000000..d45d041744 --- /dev/null +++ b/parser/testdata/00087_math_functions/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "abs", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/00087_where_0/ast.json b/parser/testdata/00087_where_0/ast.json new file mode 100644 index 0000000000..945e7201e8 --- /dev/null +++ b/parser/testdata/00087_where_0/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 1000 + } + } + ] +} diff --git a/parser/testdata/00088_global_in_one_shard_and_rows_before_limit/ast.json b/parser/testdata/00088_global_in_one_shard_and_rows_before_limit/ast.json new file mode 100644 index 0000000000..8ebe91f0db --- /dev/null +++ b/parser/testdata/00088_global_in_one_shard_and_rows_before_limit/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 50000000 + } + } + ] +} diff --git a/parser/testdata/00089_group_by_arrays_of_fixed/ast.json b/parser/testdata/00089_group_by_arrays_of_fixed/ast.json new file mode 100644 index 0000000000..5d5538404a --- /dev/null +++ b/parser/testdata/00089_group_by_arrays_of_fixed/ast.json @@ -0,0 +1,172 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "arr" + ] + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "x" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + }, + { + "name": "arraySort", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "alias": "arr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "left": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 12379813738877118345 + } + }, + "op": "%", + "right": { + "type": "Integer", + "value": 1234 + } + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "arr" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "arr" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00089_position_functions_with_non_constant_arg/ast.json b/parser/testdata/00089_position_functions_with_non_constant_arg/ast.json new file mode 100644 index 0000000000..25f6700092 --- /dev/null +++ b/parser/testdata/00089_position_functions_with_non_constant_arg/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00091_prewhere_two_conditions/ast.json b/parser/testdata/00091_prewhere_two_conditions/ast.json new file mode 100644 index 0000000000..639c528708 --- /dev/null +++ b/parser/testdata/00091_prewhere_two_conditions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_to_read", + "value": { + "type": "Integer", + "value": 600000000 + } + } + ] +} diff --git a/parser/testdata/00093_prewhere_array_join/ast.json b/parser/testdata/00093_prewhere_array_join/ast.json new file mode 100644 index 0000000000..8cdc0b59b8 --- /dev/null +++ b/parser/testdata/00093_prewhere_array_join/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "parts": [ + "SearchEngineID" + ] + } + ] + } + ], + "alias": "search_engine" + }, + { + "parts": [ + "URL" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "SearchEngineID" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "search_engine" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + } + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/00094_order_by_array_join_limit/ast.json b/parser/testdata/00094_order_by_array_join_limit/ast.json new file mode 100644 index 0000000000..a36079fcf6 --- /dev/null +++ b/parser/testdata/00094_order_by_array_join_limit/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "ParsedParams.Key2" + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "ParsedParams" + ], + "alias": "PP" + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/00095_hyperscan_profiler/ast.json b/parser/testdata/00095_hyperscan_profiler/ast.json new file mode 100644 index 0000000000..fc6bf3a059 --- /dev/null +++ b/parser/testdata/00095_hyperscan_profiler/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_profiler_cpu_time_period_ns", + "value": { + "type": "Integer", + "value": 1000000 + } + } + ] +} diff --git a/parser/testdata/00096_aggregation_min_if/ast.json b/parser/testdata/00096_aggregation_min_if/ast.json new file mode 100644 index 0000000000..2979d9b49d --- /dev/null +++ b/parser/testdata/00096_aggregation_min_if/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "min_if", + "tables": [ + { + "table": "min_if" + } + ] +} diff --git a/parser/testdata/00097_constexpr_in_index/ast.json b/parser/testdata/00097_constexpr_in_index/ast.json new file mode 100644 index 0000000000..6508ea1025 --- /dev/null +++ b/parser/testdata/00097_constexpr_in_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_index_analysis_only_on_coordinator", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00098_1_union_all/ast.json b/parser/testdata/00098_1_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_1_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_2_union_all/ast.json b/parser/testdata/00098_2_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_2_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_3_union_all/ast.json b/parser/testdata/00098_3_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_3_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_4_union_all/ast.json b/parser/testdata/00098_4_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_4_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_5_union_all/ast.json b/parser/testdata/00098_5_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_5_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_6_union_all/ast.json b/parser/testdata/00098_6_union_all/ast.json new file mode 100644 index 0000000000..2c9979eb7d --- /dev/null +++ b/parser/testdata/00098_6_union_all/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "X" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "X" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "X" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "X" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL", + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "X" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_7_union_all/ast.json b/parser/testdata/00098_7_union_all/ast.json new file mode 100644 index 0000000000..83476971dd --- /dev/null +++ b/parser/testdata/00098_7_union_all/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "DomainID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "DomainID" + }, + { + "expr": { + "type": "String", + "value": "abc" + }, + "alias": "Domain" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "DomainID" + }, + { + "expr": { + "type": "String", + "value": "def" + }, + "alias": "Domain" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "DomainID" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_8_union_all/ast.json b/parser/testdata/00098_8_union_all/ast.json new file mode 100644 index 0000000000..6181468c3e --- /dev/null +++ b/parser/testdata/00098_8_union_all/ast.json @@ -0,0 +1,77 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "DomainID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "DomainID" + }, + { + "expr": { + "type": "String", + "value": "abc" + }, + "alias": "Domain" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "DomainID" + }, + { + "expr": { + "type": "String", + "value": "def" + }, + "alias": "Domain" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "DomainID" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_9_union_all/ast.json b/parser/testdata/00098_9_union_all/ast.json new file mode 100644 index 0000000000..f16a21f8a7 --- /dev/null +++ b/parser/testdata/00098_9_union_all/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_a_union_all/ast.json b/parser/testdata/00098_a_union_all/ast.json new file mode 100644 index 0000000000..2b58a4d8ce --- /dev/null +++ b/parser/testdata/00098_a_union_all/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "X" + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "X" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_b_union_all/ast.json b/parser/testdata/00098_b_union_all/ast.json new file mode 100644 index 0000000000..0afc1df178 --- /dev/null +++ b/parser/testdata/00098_b_union_all/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "X" + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "X" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL", + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "X" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_c_union_all/ast.json b/parser/testdata/00098_c_union_all/ast.json new file mode 100644 index 0000000000..293aaad206 --- /dev/null +++ b/parser/testdata/00098_c_union_all/ast.json @@ -0,0 +1,83 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "parts": [ + "X" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 12345678901 + }, + "alias": "X" + } + ] + }, + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "X" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_d_union_all/ast.json b/parser/testdata/00098_d_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_d_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_e_union_all/ast.json b/parser/testdata/00098_e_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_e_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_f_union_all/ast.json b/parser/testdata/00098_f_union_all/ast.json new file mode 100644 index 0000000000..b45fd51875 --- /dev/null +++ b/parser/testdata/00098_f_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data2013", + "tables": [ + { + "table": "data2013" + } + ] +} diff --git a/parser/testdata/00098_g_union_all/ast.json b/parser/testdata/00098_g_union_all/ast.json new file mode 100644 index 0000000000..9476000898 --- /dev/null +++ b/parser/testdata/00098_g_union_all/ast.json @@ -0,0 +1,89 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "X" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "X" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "Y" + } + ] + } + ] + } + } + } + } + ] + } + }, + { + "columns": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "X" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_h_union_all/ast.json b/parser/testdata/00098_h_union_all/ast.json new file mode 100644 index 0000000000..f7a1feb16b --- /dev/null +++ b/parser/testdata/00098_h_union_all/ast.json @@ -0,0 +1,89 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "X" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "X" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "Y" + } + ] + }, + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + } + } + } + } + ] + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "X" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00098_k_union_all/ast.json b/parser/testdata/00098_k_union_all/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/00098_k_union_all/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00098_l_union_all/ast.json b/parser/testdata/00098_l_union_all/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00098_l_union_all/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00098_primary_key_memory_allocated/ast.json b/parser/testdata/00098_primary_key_memory_allocated/ast.json new file mode 100644 index 0000000000..8c1d1813f4 --- /dev/null +++ b/parser/testdata/00098_primary_key_memory_allocated/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "CounterID" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "limit": { + "type": "Integer", + "value": 1 + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/00098_shard_i_union_all/ast.json b/parser/testdata/00098_shard_i_union_all/ast.json new file mode 100644 index 0000000000..b47155afdb --- /dev/null +++ b/parser/testdata/00098_shard_i_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "report1", + "tables": [ + { + "table": "report1" + } + ] +} diff --git a/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/ast.json b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/00101_materialized_views_and_insert_without_explicit_database/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/00102_insert_into_temporary_table/ast.json b/parser/testdata/00102_insert_into_temporary_table/ast.json new file mode 100644 index 0000000000..e613275132 --- /dev/null +++ b/parser/testdata/00102_insert_into_temporary_table/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "t", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/00103_ipv4_num_to_string_class_c/ast.json b/parser/testdata/00103_ipv4_num_to_string_class_c/ast.json new file mode 100644 index 0000000000..3c0b73d276 --- /dev/null +++ b/parser/testdata/00103_ipv4_num_to_string_class_c/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "IPv4NumToStringClassC", + "arguments": [ + { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "0.0.0.xxx" + } + } + ] + } + ] +} diff --git a/parser/testdata/00104_totals_having_mode/ast.json b/parser/testdata/00104_totals_having_mode/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/00104_totals_having_mode/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00105_shard_collations/ast.json b/parser/testdata/00105_shard_collations/ast.json new file mode 100644 index 0000000000..3a8ed9b390 --- /dev/null +++ b/parser/testdata/00105_shard_collations/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Русский (default)" + } + ] + } + ] +} diff --git a/parser/testdata/00106_totals_after_having/ast.json b/parser/testdata/00106_totals_after_having/ast.json new file mode 100644 index 0000000000..f56aac04ed --- /dev/null +++ b/parser/testdata/00106_totals_after_having/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_group_by", + "value": { + "type": "Integer", + "value": 100000 + } + } + ] +} diff --git a/parser/testdata/00107_totals_after_having/ast.json b/parser/testdata/00107_totals_after_having/ast.json new file mode 100644 index 0000000000..359f4fd6a3 --- /dev/null +++ b/parser/testdata/00107_totals_after_having/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "*** In-memory aggregation." + } + ] + } + ] +} diff --git a/parser/testdata/00108_shard_totals_after_having/ast.json b/parser/testdata/00108_shard_totals_after_having/ast.json new file mode 100644 index 0000000000..f56aac04ed --- /dev/null +++ b/parser/testdata/00108_shard_totals_after_having/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_group_by", + "value": { + "type": "Integer", + "value": 100000 + } + } + ] +} diff --git a/parser/testdata/00109_shard_totals_after_having/ast.json b/parser/testdata/00109_shard_totals_after_having/ast.json new file mode 100644 index 0000000000..f56aac04ed --- /dev/null +++ b/parser/testdata/00109_shard_totals_after_having/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_group_by", + "value": { + "type": "Integer", + "value": 100000 + } + } + ] +} diff --git a/parser/testdata/00110_external_sort/ast.json b/parser/testdata/00110_external_sort/ast.json new file mode 100644 index 0000000000..0a398fe254 --- /dev/null +++ b/parser/testdata/00110_external_sort/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_ratio_before_external_sort", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00111_shard_external_sort_distributed/ast.json b/parser/testdata/00111_shard_external_sort_distributed/ast.json new file mode 100644 index 0000000000..8af31aa077 --- /dev/null +++ b/parser/testdata/00111_shard_external_sort_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 150000000 + } + } + ] +} diff --git a/parser/testdata/00112_shard_totals_after_having/ast.json b/parser/testdata/00112_shard_totals_after_having/ast.json new file mode 100644 index 0000000000..72f7a0a305 --- /dev/null +++ b/parser/testdata/00112_shard_totals_after_having/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "totals_mode", + "value": { + "type": "String", + "value": "after_having_auto" + } + } + ] +} diff --git a/parser/testdata/00113_shard_group_array/ast.json b/parser/testdata/00113_shard_group_array/ast.json new file mode 100644 index 0000000000..19ccd92922 --- /dev/null +++ b/parser/testdata/00113_shard_group_array/ast.json @@ -0,0 +1,94 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 100 + } + ], + "alias": "k" + }, + { + "name": "length", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00114_float_type_result_of_division/ast.json b/parser/testdata/00114_float_type_result_of_division/ast.json new file mode 100644 index 0000000000..c0ed5265a0 --- /dev/null +++ b/parser/testdata/00114_float_type_result_of_division/ast.json @@ -0,0 +1,19 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "/", + "right": { + "type": "Integer", + "value": 10 + } + } + ] + } + ] +} diff --git a/parser/testdata/00116_storage_set/ast.json b/parser/testdata/00116_storage_set/ast.json new file mode 100644 index 0000000000..9c2f169222 --- /dev/null +++ b/parser/testdata/00116_storage_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "set", + "tables": [ + { + "table": "set" + } + ] +} diff --git a/parser/testdata/00117_parsing_arrays/ast.json b/parser/testdata/00117_parsing_arrays/ast.json new file mode 100644 index 0000000000..026a6ca4a8 --- /dev/null +++ b/parser/testdata/00117_parsing_arrays/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_00117", + "tables": [ + { + "table": "null_00117" + } + ] +} diff --git a/parser/testdata/00118_storage_join/ast.json b/parser/testdata/00118_storage_join/ast.json new file mode 100644 index 0000000000..3e13596f87 --- /dev/null +++ b/parser/testdata/00118_storage_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t2", + "tables": [ + { + "table": "t2" + } + ] +} diff --git a/parser/testdata/00119_storage_join/ast.json b/parser/testdata/00119_storage_join/ast.json new file mode 100644 index 0000000000..3e13596f87 --- /dev/null +++ b/parser/testdata/00119_storage_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t2", + "tables": [ + { + "table": "t2" + } + ] +} diff --git a/parser/testdata/00120_join_and_group_by/ast.json b/parser/testdata/00120_join_and_group_by/ast.json new file mode 100644 index 0000000000..69947277b7 --- /dev/null +++ b/parser/testdata/00120_join_and_group_by/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "value" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "dummy" + ] + }, + { + "parts": [ + "dummy" + ], + "alias": "value" + } + ] + } + ] + } + }, + "alias": "js2" + }, + "join": { + "type": "LEFT", + "strictness": "ANY", + "using": [ + { + "parts": [ + "dummy" + ] + } + ] + } + } + ] + }, + "group_by": [ + { + "parts": [ + "value" + ] + } + ] + } + ] +} diff --git a/parser/testdata/00121_drop_column_zookeeper/ast.json b/parser/testdata/00121_drop_column_zookeeper/ast.json new file mode 100644 index 0000000000..cbf6d79505 --- /dev/null +++ b/parser/testdata/00121_drop_column_zookeeper/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "alter_00121", + "tables": [ + { + "table": "alter_00121" + } + ], + "sync": true +} diff --git a/parser/testdata/00122_join_with_subquery_with_subquery/ast.json b/parser/testdata/00122_join_with_subquery_with_subquery/ast.json new file mode 100644 index 0000000000..f92c866dcf --- /dev/null +++ b/parser/testdata/00122_join_with_subquery_with_subquery/ast.json @@ -0,0 +1,114 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + } + } + ] + } + }, + "alias": "js1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "k" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] + } + }, + "alias": "js2" + }, + "join": { + "type": "LEFT", + "strictness": "ANY", + "using": [ + { + "parts": [ + "k" + ] + } + ] + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00123_shard_unmerged_result_when_max_distributed_connections_is_one/ast.json b/parser/testdata/00123_shard_unmerged_result_when_max_distributed_connections_is_one/ast.json new file mode 100644 index 0000000000..a6019873a8 --- /dev/null +++ b/parser/testdata/00123_shard_unmerged_result_when_max_distributed_connections_is_one/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_distributed_connections", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00124_shard_distributed_with_many_replicas/ast.json b/parser/testdata/00124_shard_distributed_with_many_replicas/ast.json new file mode 100644 index 0000000000..956e503a99 --- /dev/null +++ b/parser/testdata/00124_shard_distributed_with_many_replicas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00125_array_element_of_array_of_tuple/ast.json b/parser/testdata/00125_array_element_of_array_of_tuple/ast.json new file mode 100644 index 0000000000..88dca8aa10 --- /dev/null +++ b/parser/testdata/00125_array_element_of_array_of_tuple/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "a" + ] + } + ], + "alias": "b" + }, + { + "array": { + "parts": [ + "b" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "alias": "a" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00126_buffer/ast.json b/parser/testdata/00126_buffer/ast.json new file mode 100644 index 0000000000..8e9eb89b63 --- /dev/null +++ b/parser/testdata/00126_buffer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "buffer_00126", + "tables": [ + { + "table": "buffer_00126" + } + ] +} diff --git a/parser/testdata/00127_group_by_concat/ast.json b/parser/testdata/00127_group_by_concat/ast.json new file mode 100644 index 0000000000..7106539438 --- /dev/null +++ b/parser/testdata/00127_group_by_concat/ast.json @@ -0,0 +1,100 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "" + } + ], + "alias": "k1" + }, + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 123 + } + }, + "alias": "k2" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k1" + ] + }, + { + "parts": [ + "k2" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "k1" + ] + } + }, + { + "expression": { + "parts": [ + "k2" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00128_group_by_number_and_fixed_string/ast.json b/parser/testdata/00128_group_by_number_and_fixed_string/ast.json new file mode 100644 index 0000000000..d6517b4394 --- /dev/null +++ b/parser/testdata/00128_group_by_number_and_fixed_string/ast.json @@ -0,0 +1,110 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "n" + ] + }, + { + "parts": [ + "k" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "n" + }, + { + "name": "toFixedString", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": " " + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ], + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "n" + ] + }, + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "n" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "k" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00134_aggregation_by_fixed_string_of_size_1_2_4_8/ast.json b/parser/testdata/00134_aggregation_by_fixed_string_of_size_1_2_4_8/ast.json new file mode 100644 index 0000000000..5809e2749d --- /dev/null +++ b/parser/testdata/00134_aggregation_by_fixed_string_of_size_1_2_4_8/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "x" + ] + } + ] + } + ] +} diff --git a/parser/testdata/00135_duplicate_group_by_keys_segfault/ast.json b/parser/testdata/00135_duplicate_group_by_keys_segfault/ast.json new file mode 100644 index 0000000000..d5478976b9 --- /dev/null +++ b/parser/testdata/00135_duplicate_group_by_keys_segfault/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 1000000 + } + } + ] +} diff --git a/parser/testdata/00136_duplicate_order_by_elems/ast.json b/parser/testdata/00136_duplicate_order_by_elems/ast.json new file mode 100644 index 0000000000..515d72c6fd --- /dev/null +++ b/parser/testdata/00136_duplicate_order_by_elems/ast.json @@ -0,0 +1,133 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "n" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "n" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + }, + { + "expression": { + "parts": [ + "n" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + }, + "offset": { + "type": "Integer", + "value": 1000000 + } + } + ] +} diff --git a/parser/testdata/00137_in_constants/ast.json b/parser/testdata/00137_in_constants/ast.json new file mode 100644 index 0000000000..1d51fc87d2 --- /dev/null +++ b/parser/testdata/00137_in_constants/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00138_table_aliases/ast.json b/parser/testdata/00138_table_aliases/ast.json new file mode 100644 index 0000000000..e00dec54a8 --- /dev/null +++ b/parser/testdata/00138_table_aliases/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + }, + "alias": "xxx" + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00140_parse_unix_timestamp_as_datetime/ast.json b/parser/testdata/00140_parse_unix_timestamp_as_datetime/ast.json new file mode 100644 index 0000000000..626941fc1a --- /dev/null +++ b/parser/testdata/00140_parse_unix_timestamp_as_datetime/ast.json @@ -0,0 +1,97 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "min", + "arguments": [ + { + "left": { + "parts": [ + "ts" + ] + }, + "op": "=", + "right": { + "name": "toUInt32", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "ts" + ] + } + ] + } + ] + } + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "type": "Integer", + "value": 1000000000 + }, + "op": "+", + "right": { + "left": { + "type": "Integer", + "value": 1234 + }, + "op": "*", + "right": { + "parts": [ + "number" + ] + } + } + }, + "alias": "ts" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00140_prewhere_column_order/ast.json b/parser/testdata/00140_prewhere_column_order/ast.json new file mode 100644 index 0000000000..c47292d4dc --- /dev/null +++ b/parser/testdata/00140_prewhere_column_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere", + "tables": [ + { + "table": "prewhere" + } + ] +} diff --git a/parser/testdata/00141_parse_timestamp_as_datetime/ast.json b/parser/testdata/00141_parse_timestamp_as_datetime/ast.json new file mode 100644 index 0000000000..9c1192c826 --- /dev/null +++ b/parser/testdata/00141_parse_timestamp_as_datetime/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "default", + "tables": [ + { + "table": "default" + } + ] +} diff --git a/parser/testdata/00141_transform/ast.json b/parser/testdata/00141_transform/ast.json new file mode 100644 index 0000000000..4232630e5c --- /dev/null +++ b/parser/testdata/00141_transform/ast.json @@ -0,0 +1,110 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "parts": [ + "SearchEngineID" + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Яндекс" + }, + { + "type": "String", + "value": "Google" + } + ] + }, + { + "type": "String", + "value": "Остальные" + } + ], + "alias": "title" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "SearchEngineID" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "group_by": [ + { + "parts": [ + "title" + ] + } + ], + "having": { + "left": { + "parts": [ + "c" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00142_parse_timestamp_as_datetime/ast.json b/parser/testdata/00142_parse_timestamp_as_datetime/ast.json new file mode 100644 index 0000000000..626941fc1a --- /dev/null +++ b/parser/testdata/00142_parse_timestamp_as_datetime/ast.json @@ -0,0 +1,97 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "min", + "arguments": [ + { + "left": { + "parts": [ + "ts" + ] + }, + "op": "=", + "right": { + "name": "toUInt32", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "ts" + ] + } + ] + } + ] + } + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "type": "Integer", + "value": 1000000000 + }, + "op": "+", + "right": { + "left": { + "type": "Integer", + "value": 1234 + }, + "op": "*", + "right": { + "parts": [ + "number" + ] + } + } + }, + "alias": "ts" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00142_system_columns/ast.json b/parser/testdata/00142_system_columns/ast.json new file mode 100644 index 0000000000..321e1dc1e4 --- /dev/null +++ b/parser/testdata/00142_system_columns/ast.json @@ -0,0 +1,72 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "table" + ] + }, + { + "parts": [ + "name" + ] + }, + { + "parts": [ + "type" + ] + }, + { + "parts": [ + "default_kind" + ] + }, + { + "parts": [ + "default_expression" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "columns" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "test" + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "table" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "hits" + } + } + } + } + ] +} diff --git a/parser/testdata/00143_number_classification_functions/ast.json b/parser/testdata/00143_number_classification_functions/ast.json new file mode 100644 index 0000000000..004acabda0 --- /dev/null +++ b/parser/testdata/00143_number_classification_functions/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "isFinite", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/00143_transform_non_const_default/ast.json b/parser/testdata/00143_transform_non_const_default/ast.json new file mode 100644 index 0000000000..4f63f537f7 --- /dev/null +++ b/parser/testdata/00143_transform_non_const_default/ast.json @@ -0,0 +1,111 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "parts": [ + "SearchEngineID" + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Яндекс" + }, + { + "type": "String", + "value": "Google" + } + ] + }, + { + "parts": [ + "PageCharset" + ] + } + ], + "alias": "title" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "SearchEngineID" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "group_by": [ + { + "parts": [ + "title" + ] + } + ], + "having": { + "left": { + "parts": [ + "c" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00144_empty_regexp/ast.json b/parser/testdata/00144_empty_regexp/ast.json new file mode 100644 index 0000000000..3a8749b43b --- /dev/null +++ b/parser/testdata/00144_empty_regexp/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "match", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "Hello" + } + ] + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00144_functions_of_aggregation_states/ast.json b/parser/testdata/00144_functions_of_aggregation_states/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/00144_functions_of_aggregation_states/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00145_aggregate_functions_statistics/ast.json b/parser/testdata/00145_aggregate_functions_statistics/ast.json new file mode 100644 index 0000000000..0ed01cb6db --- /dev/null +++ b/parser/testdata/00145_aggregate_functions_statistics/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "varSamp", + "arguments": [ + { + "parts": [ + "ResolutionWidth" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "ResolutionWidth" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 0 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00145_empty_likes/ast.json b/parser/testdata/00145_empty_likes/ast.json new file mode 100644 index 0000000000..248527428a --- /dev/null +++ b/parser/testdata/00145_empty_likes/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "Hello" + } + ] + }, + "pattern": { + "type": "String", + "value": "" + } + } + ] + } + ] +} diff --git a/parser/testdata/00146_aggregate_function_uniq/ast.json b/parser/testdata/00146_aggregate_function_uniq/ast.json new file mode 100644 index 0000000000..06c3126af6 --- /dev/null +++ b/parser/testdata/00146_aggregate_function_uniq/ast.json @@ -0,0 +1,79 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "RegionID" + ] + }, + { + "name": "uniqHLL12", + "arguments": [ + { + "parts": [ + "WatchID" + ] + } + ], + "alias": "X" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "test" + ] + }, + { + "parts": [ + "hits" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "RegionID" + ] + } + ], + "having": { + "left": { + "parts": [ + "X" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 100000 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "RegionID" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00146_summing_merge_tree_nested_map/ast.json b/parser/testdata/00146_summing_merge_tree_nested_map/ast.json new file mode 100644 index 0000000000..8852d9c5b0 --- /dev/null +++ b/parser/testdata/00146_summing_merge_tree_nested_map/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested_map", + "tables": [ + { + "table": "nested_map" + } + ] +} diff --git a/parser/testdata/00147_alter_nested_default/ast.json b/parser/testdata/00147_alter_nested_default/ast.json new file mode 100644 index 0000000000..31ea66c5bf --- /dev/null +++ b/parser/testdata/00147_alter_nested_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_00147", + "tables": [ + { + "table": "alter_00147" + } + ] +} diff --git a/parser/testdata/00147_global_in_aggregate_function/ast.json b/parser/testdata/00147_global_in_aggregate_function/ast.json new file mode 100644 index 0000000000..0b20f3576b --- /dev/null +++ b/parser/testdata/00147_global_in_aggregate_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 100000000 + } + } + ] +} diff --git a/parser/testdata/00148_monotonic_functions_and_index/ast.json b/parser/testdata/00148_monotonic_functions_and_index/ast.json new file mode 100644 index 0000000000..09abc4959f --- /dev/null +++ b/parser/testdata/00148_monotonic_functions_and_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 60000 + } + } + ] +} diff --git a/parser/testdata/00148_summing_merge_tree_aggregate_function/ast.json b/parser/testdata/00148_summing_merge_tree_aggregate_function/ast.json new file mode 100644 index 0000000000..dfab46ab9b --- /dev/null +++ b/parser/testdata/00148_summing_merge_tree_aggregate_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "summing_merge_tree_aggregate_function", + "tables": [ + { + "table": "summing_merge_tree_aggregate_function" + } + ] +} diff --git a/parser/testdata/00148_summing_merge_tree_nested_map_multiple_values/ast.json b/parser/testdata/00148_summing_merge_tree_nested_map_multiple_values/ast.json new file mode 100644 index 0000000000..80c59623f2 --- /dev/null +++ b/parser/testdata/00148_summing_merge_tree_nested_map_multiple_values/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested_map_multiple_values", + "tables": [ + { + "table": "nested_map_multiple_values" + } + ] +} diff --git a/parser/testdata/00149_function_url_hash/ast.json b/parser/testdata/00149_function_url_hash/ast.json new file mode 100644 index 0000000000..f000a56a97 --- /dev/null +++ b/parser/testdata/00149_function_url_hash/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "URLHash", + "arguments": [ + { + "expr": { + "type": "String", + "value": "" + }, + "alias": "url" + } + ] + }, + "op": "=", + "right": { + "name": "URLHash", + "arguments": [ + { + "name": "appendTrailingCharIfAbsent", + "arguments": [ + { + "parts": [ + "url" + ] + }, + { + "type": "String", + "value": "/" + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00149_quantiles_timing_distributed/ast.json b/parser/testdata/00149_quantiles_timing_distributed/ast.json new file mode 100644 index 0000000000..0b20f3576b --- /dev/null +++ b/parser/testdata/00149_quantiles_timing_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 100000000 + } + } + ] +} diff --git a/parser/testdata/00150_quantiles_timing_precision/ast.json b/parser/testdata/00150_quantiles_timing_precision/ast.json new file mode 100644 index 0000000000..4238a3344b --- /dev/null +++ b/parser/testdata/00150_quantiles_timing_precision/ast.json @@ -0,0 +1,165 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ] + }, + { + "name": "quantileTiming", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "SendTiming" + ] + } + ], + "alias": "qt" + }, + { + "name": "least", + "arguments": [ + { + "type": "Integer", + "value": 30000 + }, + { + "name": "quantileExact", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "SendTiming" + ] + } + ] + } + ], + "alias": "qe" + }, + { + "name": "count", + "alias": "c" + }, + { + "name": "round", + "arguments": [ + { + "expr": { + "left": { + "name": "abs", + "arguments": [ + { + "left": { + "parts": [ + "qt" + ] + }, + "op": "-", + "right": { + "parts": [ + "qe" + ] + } + } + ] + }, + "op": "/", + "right": { + "name": "greatest", + "arguments": [ + { + "parts": [ + "qt" + ] + }, + { + "parts": [ + "qe" + ] + } + ] + } + }, + "alias": "diff" + }, + { + "type": "Integer", + "value": 3 + } + ], + "alias": "rounded_diff" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "SendTiming" + ] + }, + "op": "!=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + }, + "group_by": [ + { + "parts": [ + "CounterID" + ] + } + ], + "having": { + "left": { + "parts": [ + "diff" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "diff" + ] + }, + "descending": true + } + ] + } + ] +} diff --git a/parser/testdata/00150_with_totals_and_join/ast.json b/parser/testdata/00150_with_totals_and_join/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00150_with_totals_and_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00151_order_by_read_in_order/ast.json b/parser/testdata/00151_order_by_read_in_order/ast.json new file mode 100644 index 0000000000..d121fc848a --- /dev/null +++ b/parser/testdata/00151_order_by_read_in_order/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00151_tuple_with_array/ast.json b/parser/testdata/00151_tuple_with_array/ast.json new file mode 100644 index 0000000000..19f7c5bec7 --- /dev/null +++ b/parser/testdata/00151_tuple_with_array/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00152_insert_different_granularity/ast.json b/parser/testdata/00152_insert_different_granularity/ast.json new file mode 100644 index 0000000000..888958e1b4 --- /dev/null +++ b/parser/testdata/00152_insert_different_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "fixed_granularity_table", + "tables": [ + { + "table": "fixed_granularity_table" + } + ] +} diff --git a/parser/testdata/00152_totals_in_subquery/ast.json b/parser/testdata/00152_totals_in_subquery/ast.json new file mode 100644 index 0000000000..2667769a8f --- /dev/null +++ b/parser/testdata/00152_totals_in_subquery/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "dummy" + ] + }, + { + "name": "sum", + "arguments": [ + { + "parts": [ + "dummy" + ] + } + ] + } + ], + "group_by": [ + { + "parts": [ + "dummy" + ] + } + ], + "with_totals": true + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00153_aggregate_arena_race/ast.json b/parser/testdata/00153_aggregate_arena_race/ast.json new file mode 100644 index 0000000000..8a3429ed6d --- /dev/null +++ b/parser/testdata/00153_aggregate_arena_race/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dest00153", + "tables": [ + { + "table": "dest00153" + } + ] +} diff --git a/parser/testdata/00153_transform/ast.json b/parser/testdata/00153_transform/ast.json new file mode 100644 index 0000000000..6a68ffdfb2 --- /dev/null +++ b/parser/testdata/00153_transform/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 7 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 111 + }, + { + "type": "Integer", + "value": 222 + }, + { + "type": "Integer", + "value": 333 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00154_avro/ast.json b/parser/testdata/00154_avro/ast.json new file mode 100644 index 0000000000..5e8983f657 --- /dev/null +++ b/parser/testdata/00154_avro/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "avro", + "tables": [ + { + "table": "avro" + } + ] +} diff --git a/parser/testdata/00154_shard_distributed_with_distinct/ast.json b/parser/testdata/00154_shard_distributed_with_distinct/ast.json new file mode 100644 index 0000000000..6f430c2c7a --- /dev/null +++ b/parser/testdata/00154_shard_distributed_with_distinct/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system", + "numbers" + ] + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00156_array_map_to_constant/ast.json b/parser/testdata/00156_array_map_to_constant/ast.json new file mode 100644 index 0000000000..5c4d51e989 --- /dev/null +++ b/parser/testdata/00156_array_map_to_constant/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "expr": { + "type": "Integer", + "value": 123 + }, + "alias": "y" + } + ] + } + ] +} diff --git a/parser/testdata/00156_max_execution_speed_sample_merge/ast.json b/parser/testdata/00156_max_execution_speed_sample_merge/ast.json new file mode 100644 index 0000000000..884f0b3c0f --- /dev/null +++ b/parser/testdata/00156_max_execution_speed_sample_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_execution_speed", + "value": { + "type": "Integer", + "value": 8000000 + } + } + ] +} diff --git a/parser/testdata/00157_aliases_and_lambda_formal_parameters/ast.json b/parser/testdata/00157_aliases_and_lambda_formal_parameters/ast.json new file mode 100644 index 0000000000..1d4ec84f89 --- /dev/null +++ b/parser/testdata/00157_aliases_and_lambda_formal_parameters/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "expr": { + "type": "Integer", + "value": 123 + }, + "alias": "x" + }, + { + "left": { + "parts": [ + "x" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/00158_cache_dictionary_has/ast.json b/parser/testdata/00158_cache_dictionary_has/ast.json new file mode 100644 index 0000000000..4d46663417 --- /dev/null +++ b/parser/testdata/00158_cache_dictionary_has/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cache_hits", + "tables": [ + { + "table": "cache_hits" + } + ] +} diff --git a/parser/testdata/00159_whitespace_in_columns_list/ast.json b/parser/testdata/00159_whitespace_in_columns_list/ast.json new file mode 100644 index 0000000000..0d85fdfc25 --- /dev/null +++ b/parser/testdata/00159_whitespace_in_columns_list/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "memory", + "tables": [ + { + "table": "memory" + } + ] +} diff --git a/parser/testdata/00160_merge_and_index_in_in/ast.json b/parser/testdata/00160_merge_and_index_in_in/ast.json new file mode 100644 index 0000000000..a28eca8d23 --- /dev/null +++ b/parser/testdata/00160_merge_and_index_in_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt_00160", + "tables": [ + { + "table": "mt_00160" + } + ] +} diff --git a/parser/testdata/00162_mmap_compression_none/ast.json b/parser/testdata/00162_mmap_compression_none/ast.json new file mode 100644 index 0000000000..529ba0b2da --- /dev/null +++ b/parser/testdata/00162_mmap_compression_none/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "hits_none", + "tables": [ + { + "table": "hits_none" + } + ] +} diff --git a/parser/testdata/00163_shard_join_with_empty_table/ast.json b/parser/testdata/00163_shard_join_with_empty_table/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00163_shard_join_with_empty_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00164_not_chain/ast.json b/parser/testdata/00164_not_chain/ast.json new file mode 100644 index 0000000000..aaa927b6a4 --- /dev/null +++ b/parser/testdata/00164_not_chain/ast.json @@ -0,0 +1,15 @@ +{ + "selects": [ + { + "columns": [ + { + "op": "NOT", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/00164_quantileBfloat16/ast.json b/parser/testdata/00164_quantileBfloat16/ast.json new file mode 100644 index 0000000000..6f569677eb --- /dev/null +++ b/parser/testdata/00164_quantileBfloat16/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ], + "alias": "k" + }, + { + "name": "quantileBFloat16", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "ResolutionWidth" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "name": "count" + }, + "descending": true + }, + { + "expression": { + "parts": [ + "CounterID" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00165_jit_aggregate_functions/ast.json b/parser/testdata/00165_jit_aggregate_functions/ast.json new file mode 100644 index 0000000000..37157a9426 --- /dev/null +++ b/parser/testdata/00165_jit_aggregate_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "min_count_to_compile_aggregate_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00165_transform_non_const_default/ast.json b/parser/testdata/00165_transform_non_const_default/ast.json new file mode 100644 index 0000000000..f4d48e988d --- /dev/null +++ b/parser/testdata/00165_transform_non_const_default/ast.json @@ -0,0 +1,77 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 7 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 111 + }, + { + "type": "Integer", + "value": 222 + }, + { + "type": "Integer", + "value": 333 + } + ] + }, + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 9999 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00166_explain_estimate/ast.json b/parser/testdata/00166_explain_estimate/ast.json new file mode 100644 index 0000000000..1afbd85315 --- /dev/null +++ b/parser/testdata/00166_explain_estimate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_use_implicit_projections", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00166_functions_of_aggregation_states/ast.json b/parser/testdata/00166_functions_of_aggregation_states/ast.json new file mode 100644 index 0000000000..5dd0e1cc44 --- /dev/null +++ b/parser/testdata/00166_functions_of_aggregation_states/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00167_read_bytes_from_fs/ast.json b/parser/testdata/00167_read_bytes_from_fs/ast.json new file mode 100644 index 0000000000..c803f8b99f --- /dev/null +++ b/parser/testdata/00167_read_bytes_from_fs/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "String", + "value": "10G" + } + } + ] +} diff --git a/parser/testdata/00167_settings_inside_query/ast.json b/parser/testdata/00167_settings_inside_query/ast.json new file mode 100644 index 0000000000..712b9061c6 --- /dev/null +++ b/parser/testdata/00167_settings_inside_query/ast.json @@ -0,0 +1,112 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "min", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "where": { + "expr": { + "name": "toUInt64", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 1000 + } + } + ] + }, + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + { + "name": "blockSize" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 123 + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 1000 + } + }, + { + "name": "read_overflow_mode", + "value": { + "type": "String", + "value": "break" + } + } + ] + } + ] + } + }, + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 1000000 + } + }, + { + "name": "read_overflow_mode", + "value": { + "type": "String", + "value": "break" + } + } + ] + } + ] +} diff --git a/parser/testdata/00168_buffer_defaults/ast.json b/parser/testdata/00168_buffer_defaults/ast.json new file mode 100644 index 0000000000..b284201301 --- /dev/null +++ b/parser/testdata/00168_buffer_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt_00168", + "tables": [ + { + "table": "mt_00168" + } + ] +} diff --git a/parser/testdata/00170_lower_upper_utf8/ast.json b/parser/testdata/00170_lower_upper_utf8/ast.json new file mode 100644 index 0000000000..642ce6aa1f --- /dev/null +++ b/parser/testdata/00170_lower_upper_utf8/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "lower", + "arguments": [ + { + "expr": { + "type": "String", + "value": "aaaaaaaaaaaaaaa012345789,.!aaaa" + }, + "alias": "str" + } + ] + }, + "op": "=", + "right": { + "parts": [ + "str" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00170_s3_cache/ast.json b/parser/testdata/00170_s3_cache/ast.json new file mode 100644 index 0000000000..8afe5a73f5 --- /dev/null +++ b/parser/testdata/00170_s3_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_prefetched_read_pool_for_remote_filesystem", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00171_grouping_aggregated_transform_bug/ast.json b/parser/testdata/00171_grouping_aggregated_transform_bug/ast.json new file mode 100644 index 0000000000..3b3f999e4e --- /dev/null +++ b/parser/testdata/00171_grouping_aggregated_transform_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "100M" + } + } + ] +} diff --git a/parser/testdata/00171_shard_array_of_tuple_remote/ast.json b/parser/testdata/00171_shard_array_of_tuple_remote/ast.json new file mode 100644 index 0000000000..a1ecd540f8 --- /dev/null +++ b/parser/testdata/00171_shard_array_of_tuple_remote/ast.json @@ -0,0 +1,98 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x", + "y" + ], + "body": { + "type": "Tuple", + "value": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "name": "rand" + } + } + ] + } + ] +} diff --git a/parser/testdata/00172_early_constant_folding/ast.json b/parser/testdata/00172_early_constant_folding/ast.json new file mode 100644 index 0000000000..e18d6c0c33 --- /dev/null +++ b/parser/testdata/00172_early_constant_folding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00173_compare_date_time_with_constant_string/ast.json b/parser/testdata/00173_compare_date_time_with_constant_string/ast.json new file mode 100644 index 0000000000..cada524577 --- /dev/null +++ b/parser/testdata/00173_compare_date_time_with_constant_string/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2015-02-03" + } + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "2015-02-03" + } + } + ] + } + ] +} diff --git a/parser/testdata/00174_distinct_in_order/ast.json b/parser/testdata/00174_distinct_in_order/ast.json new file mode 100644 index 0000000000..b13676db45 --- /dev/null +++ b/parser/testdata/00174_distinct_in_order/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- check that distinct with and w/o optimization produce the same result" + } + ] + } + ] +} diff --git a/parser/testdata/00175_counting_resources_in_subqueries/ast.json b/parser/testdata/00175_counting_resources_in_subqueries/ast.json new file mode 100644 index 0000000000..1afbd85315 --- /dev/null +++ b/parser/testdata/00175_counting_resources_in_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_use_implicit_projections", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00175_partition_by_ignore/ast.json b/parser/testdata/00175_partition_by_ignore/ast.json new file mode 100644 index 0000000000..75f1ae1e1d --- /dev/null +++ b/parser/testdata/00175_partition_by_ignore/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- check that partition key with ignore works correctly" + } + ] + } + ] +} diff --git a/parser/testdata/00176_distinct_limit_by_limit_bug_43377/ast.json b/parser/testdata/00176_distinct_limit_by_limit_bug_43377/ast.json new file mode 100644 index 0000000000..837bc3eaa7 --- /dev/null +++ b/parser/testdata/00176_distinct_limit_by_limit_bug_43377/ast.json @@ -0,0 +1,108 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + { + "parts": [ + "Title" + ] + }, + { + "parts": [ + "SearchPhrase" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "left": { + "parts": [ + "SearchPhrase" + ] + }, + "op": "!=", + "right": { + "type": "String", + "value": "" + } + }, + "op": "AND", + "right": { + "op": "NOT", + "operand": { + "name": "match", + "arguments": [ + { + "parts": [ + "Title" + ] + }, + { + "type": "String", + "value": "[а-яА-ЯёЁ]" + } + ] + } + } + }, + "op": "AND", + "right": { + "op": "NOT", + "operand": { + "name": "match", + "arguments": [ + { + "parts": [ + "SearchPhrase" + ] + }, + { + "type": "String", + "value": "[а-яА-ЯёЁ]" + } + ] + } + } + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00176_if_string_arrays/ast.json b/parser/testdata/00176_if_string_arrays/ast.json new file mode 100644 index 0000000000..32a057aecb --- /dev/null +++ b/parser/testdata/00176_if_string_arrays/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "World" + } + ] + }, + "else": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "abc" + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00178_quantile_ddsketch/ast.json b/parser/testdata/00178_quantile_ddsketch/ast.json new file mode 100644 index 0000000000..9fd9377869 --- /dev/null +++ b/parser/testdata/00178_quantile_ddsketch/ast.json @@ -0,0 +1,81 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "CounterID" + ], + "alias": "k" + }, + { + "name": "round", + "arguments": [ + { + "name": "quantileDD", + "parameters": [ + { + "type": "Float", + "value": 0.01 + }, + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "ResolutionWidth" + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "name": "count" + }, + "descending": true + }, + { + "expression": { + "parts": [ + "CounterID" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00178_query_datetime64_index/ast.json b/parser/testdata/00178_query_datetime64_index/ast.json new file mode 100644 index 0000000000..d5c1078fc8 --- /dev/null +++ b/parser/testdata/00178_query_datetime64_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "datetime64_index_tbl", + "tables": [ + { + "table": "datetime64_index_tbl" + } + ] +} diff --git a/parser/testdata/00179_lambdas_with_common_expressions_and_filter/ast.json b/parser/testdata/00179_lambdas_with_common_expressions_and_filter/ast.json new file mode 100644 index 0000000000..9c6294caa6 --- /dev/null +++ b/parser/testdata/00179_lambdas_with_common_expressions_and_filter/ast.json @@ -0,0 +1,151 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "!=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + }, + "then": { + "parts": [ + "x" + ] + }, + "else": { + "type": "Integer", + "value": 0 + } + } + }, + { + "parts": [ + "arr" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "arr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + "op": "AND", + "right": { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "number" + ] + }, + "op": "!=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + } + }, + { + "parts": [ + "arr" + ] + } + ] + } + } + } + ] +} diff --git a/parser/testdata/00180_attach_materialized_view/ast.json b/parser/testdata/00180_attach_materialized_view/ast.json new file mode 100644 index 0000000000..baa8bc361b --- /dev/null +++ b/parser/testdata/00180_attach_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00180", + "tables": [ + { + "table": "t_00180" + } + ] +} diff --git a/parser/testdata/00181_aggregate_functions_statistics/ast.json b/parser/testdata/00181_aggregate_functions_statistics/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00181_aggregate_functions_statistics/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00181_aggregate_functions_statistics_stable/ast.json b/parser/testdata/00181_aggregate_functions_statistics_stable/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00181_aggregate_functions_statistics_stable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00181_cross_join_compression/ast.json b/parser/testdata/00181_cross_join_compression/ast.json new file mode 100644 index 0000000000..d9327c3eda --- /dev/null +++ b/parser/testdata/00181_cross_join_compression/ast.json @@ -0,0 +1,15 @@ +{ + "view": "unit", + "as_select": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } +} diff --git a/parser/testdata/00182_functions_higher_order_and_consts/ast.json b/parser/testdata/00182_functions_higher_order_and_consts/ast.json new file mode 100644 index 0000000000..1c64698e93 --- /dev/null +++ b/parser/testdata/00182_functions_higher_order_and_consts/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "---map--" + } + ] + } + ] +} diff --git a/parser/testdata/00182_simple_squashing_transform_bug/ast.json b/parser/testdata/00182_simple_squashing_transform_bug/ast.json new file mode 100644 index 0000000000..e547c9f131 --- /dev/null +++ b/parser/testdata/00182_simple_squashing_transform_bug/ast.json @@ -0,0 +1,32 @@ +{ + "settings": [ + { + "name": "allow_prefetched_read_pool_for_remote_filesystem", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 2 + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 65387 + } + } + ] +} diff --git a/parser/testdata/00183_prewhere_conditions_order/ast.json b/parser/testdata/00183_prewhere_conditions_order/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/00183_prewhere_conditions_order/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00183_skip_unavailable_shards/ast.json b/parser/testdata/00183_skip_unavailable_shards/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00183_skip_unavailable_shards/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00184_shard_distributed_group_by_no_merge/ast.json b/parser/testdata/00184_shard_distributed_group_by_no_merge/ast.json new file mode 100644 index 0000000000..12292c77db --- /dev/null +++ b/parser/testdata/00184_shard_distributed_group_by_no_merge/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "distributed_group_by_no_merge=1" + } + ] + } + ] +} diff --git a/parser/testdata/00185_array_literals/ast.json b/parser/testdata/00185_array_literals/ast.json new file mode 100644 index 0000000000..baec78cdb5 --- /dev/null +++ b/parser/testdata/00185_array_literals/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00187_like_regexp_prefix/ast.json b/parser/testdata/00187_like_regexp_prefix/ast.json new file mode 100644 index 0000000000..f4583f7739 --- /dev/null +++ b/parser/testdata/00187_like_regexp_prefix/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "prepre_f" + } + ] + }, + "pattern": { + "type": "String", + "value": "%pre_f%" + } + } + ] + } + ] +} diff --git a/parser/testdata/00188_constants_as_arguments_of_aggregate_functions/ast.json b/parser/testdata/00188_constants_as_arguments_of_aggregate_functions/ast.json new file mode 100644 index 0000000000..c2eda21319 --- /dev/null +++ b/parser/testdata/00188_constants_as_arguments_of_aggregate_functions/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + }, + { + "name": "sum", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "uniq", + "arguments": [ + { + "type": "Integer", + "value": 123 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00190_non_constant_array_of_constant_data/ast.json b/parser/testdata/00190_non_constant_array_of_constant_data/ast.json new file mode 100644 index 0000000000..d8254eadb3 --- /dev/null +++ b/parser/testdata/00190_non_constant_array_of_constant_data/ast.json @@ -0,0 +1,121 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFilter", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "notEmpty", + "arguments": [ + { + "name": "concat", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "String", + "value": "hello" + } + ] + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "alias": "elem" + }, + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "concat", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "String", + "value": "hello" + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "" + } + ] + } + ], + "alias": "unused" + } + ] + }, + "where": { + "op": "NOT", + "operand": { + "name": "ignore", + "arguments": [ + { + "parts": [ + "elem" + ] + } + ] + } + } + } + ] +} diff --git a/parser/testdata/00191_aggregating_merge_tree_and_final/ast.json b/parser/testdata/00191_aggregating_merge_tree_and_final/ast.json new file mode 100644 index 0000000000..f94eba77ce --- /dev/null +++ b/parser/testdata/00191_aggregating_merge_tree_and_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "aggregating_00191", + "tables": [ + { + "table": "aggregating_00191" + } + ] +} diff --git a/parser/testdata/00192_least_greatest/ast.json b/parser/testdata/00192_least_greatest/ast.json new file mode 100644 index 0000000000..d5907c1066 --- /dev/null +++ b/parser/testdata/00192_least_greatest/ast.json @@ -0,0 +1,137 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "y" + }, + { + "name": "least", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ] + }, + { + "name": "greatest", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ] + }, + { + "name": "least", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + } + ] + }, + { + "name": "greatest", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "parts": [ + "y" + ] + } + ] + }, + { + "name": "greatest", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "least", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00193_parallel_replicas/ast.json b/parser/testdata/00193_parallel_replicas/ast.json new file mode 100644 index 0000000000..ef8deb8839 --- /dev/null +++ b/parser/testdata/00193_parallel_replicas/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "parallel_replicas", + "tables": [ + { + "table": "parallel_replicas" + } + ] +} diff --git a/parser/testdata/00194_identity/ast.json b/parser/testdata/00194_identity/ast.json new file mode 100644 index 0000000000..328fbeee3b --- /dev/null +++ b/parser/testdata/00194_identity/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "identity", + "arguments": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + } + ], + "alias": "b" + }, + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ] +} diff --git a/parser/testdata/00195_shard_union_all_and_global_in/ast.json b/parser/testdata/00195_shard_union_all_and_global_in/ast.json new file mode 100644 index 0000000000..9653ce3f6f --- /dev/null +++ b/parser/testdata/00195_shard_union_all_and_global_in/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "where": { + "expr": { + "parts": [ + "dummy" + ] + }, + "global": true, + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00196_float32_formatting/ast.json b/parser/testdata/00196_float32_formatting/ast.json new file mode 100644 index 0000000000..295bb515ba --- /dev/null +++ b/parser/testdata/00196_float32_formatting/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Float", + "value": 21.99 + } + ] + } + ] +} diff --git a/parser/testdata/00197_if_fixed_string/ast.json b/parser/testdata/00197_if_fixed_string/ast.json new file mode 100644 index 0000000000..dbae680676 --- /dev/null +++ b/parser/testdata/00197_if_fixed_string/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "else": { + "name": "toString", + "arguments": [ + { + "op": "-", + "operand": { + "parts": [ + "number" + ] + } + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00199_ternary_operator_type_check/ast.json b/parser/testdata/00199_ternary_operator_type_check/ast.json new file mode 100644 index 0000000000..31538f2df0 --- /dev/null +++ b/parser/testdata/00199_ternary_operator_type_check/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "condition": { + "type": "Integer", + "value": 1 + }, + "then": { + "expr": { + "type": "String", + "value": "abc" + }, + "alias": "s" + }, + "else": { + "type": "String", + "value": "def" + } + }, + "op": "=", + "right": { + "parts": [ + "s" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00200_shard_distinct_order_by_limit_distributed/ast.json b/parser/testdata/00200_shard_distinct_order_by_limit_distributed/ast.json new file mode 100644 index 0000000000..546f6a0311 --- /dev/null +++ b/parser/testdata/00200_shard_distinct_order_by_limit_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_memory", + "tables": [ + { + "table": "numbers_memory" + } + ] +} diff --git a/parser/testdata/00201_array_uniq/ast.json b/parser/testdata/00201_array_uniq/ast.json new file mode 100644 index 0000000000..90524597ef --- /dev/null +++ b/parser/testdata/00201_array_uniq/ast.json @@ -0,0 +1,208 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqExact", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "length", + "arguments": [ + { + "name": "groupUniqArray", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + }, + { + "name": "arrayUniq", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + }, + { + "name": "uniqExact", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + }, + { + "name": "arrayUniq", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + } + ] + }, + { + "name": "uniqExact", + "arguments": [ + { + "name": "concat", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "type": "String", + "value": "_" + }, + { + "parts": [ + "y" + ] + } + ] + } + ] + }, + { + "name": "arrayUniq", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "log", + "arguments": [ + { + "name": "intHash32", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "alias": "x" + }, + { + "name": "toString", + "arguments": [ + { + "name": "round", + "arguments": [ + { + "name": "cbrt", + "arguments": [ + { + "name": "intHash32", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + ], + "alias": "y" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00202_cross_join/ast.json b/parser/testdata/00202_cross_join/ast.json new file mode 100644 index 0000000000..569f1b48dd --- /dev/null +++ b/parser/testdata/00202_cross_join/ast.json @@ -0,0 +1,115 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 3 + } + } + ] + } + }, + "alias": "js1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "y" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 5 + } + } + ] + } + }, + "alias": "js2" + }, + "join": { + "type": "CROSS" + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + }, + { + "expression": { + "parts": [ + "y" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00203_full_join/ast.json b/parser/testdata/00203_full_join/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00203_full_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00204_extract_url_parameter/ast.json b/parser/testdata/00204_extract_url_parameter/ast.json new file mode 100644 index 0000000000..91f8564ce2 --- /dev/null +++ b/parser/testdata/00204_extract_url_parameter/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractURLParameter", + "arguments": [ + { + "type": "String", + "value": "http://com/?testq=aaa\u0026q=111" + }, + { + "type": "String", + "value": "q" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00205_scalar_subqueries/ast.json b/parser/testdata/00205_scalar_subqueries/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00205_scalar_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00207_left_array_join/ast.json b/parser/testdata/00207_left_array_join/ast.json new file mode 100644 index 0000000000..3bd9f3569c --- /dev/null +++ b/parser/testdata/00207_left_array_join/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "array_join": { + "left": true, + "columns": [ + { + "name": "range", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ], + "alias": "arr" + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00208_agg_state_merge/ast.json b/parser/testdata/00208_agg_state_merge/ast.json new file mode 100644 index 0000000000..a5fe74cd45 --- /dev/null +++ b/parser/testdata/00208_agg_state_merge/ast.json @@ -0,0 +1,169 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "k" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 7 + } + }, + "alias": "k2" + }, + { + "name": "finalizeAggregation", + "arguments": [ + { + "name": "uniqMergeState", + "arguments": [ + { + "parts": [ + "state" + ] + } + ] + } + ] + }, + { + "name": "uniqMerge", + "arguments": [ + { + "parts": [ + "state" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + }, + { + "name": "uniqState", + "arguments": [ + { + "parts": [ + "x" + ] + } + ], + "alias": "state" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 11 + } + }, + "alias": "k" + }, + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 7 + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k2" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "k2" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00209_insert_select_extremes/ast.json b/parser/testdata/00209_insert_select_extremes/ast.json new file mode 100644 index 0000000000..6226d72c50 --- /dev/null +++ b/parser/testdata/00209_insert_select_extremes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00209", + "tables": [ + { + "table": "test_00209" + } + ] +} diff --git a/parser/testdata/00212_long_shard_aggregate_function_uniq/ast.json b/parser/testdata/00212_long_shard_aggregate_function_uniq/ast.json new file mode 100644 index 0000000000..db7f9f7cd1 --- /dev/null +++ b/parser/testdata/00212_long_shard_aggregate_function_uniq/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "uniqHLL12" + } + ] + } + ] +} diff --git a/parser/testdata/00213_multiple_global_in/ast.json b/parser/testdata/00213_multiple_global_in/ast.json new file mode 100644 index 0000000000..295a316c20 --- /dev/null +++ b/parser/testdata/00213_multiple_global_in/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "global": true, + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "global": true, + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "localhost" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00214_primary_key_order/ast.json b/parser/testdata/00214_primary_key_order/ast.json new file mode 100644 index 0000000000..5d9a14e4f3 --- /dev/null +++ b/parser/testdata/00214_primary_key_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "primary_key", + "tables": [ + { + "table": "primary_key" + } + ] +} diff --git a/parser/testdata/00215_primary_key_order_zookeeper_long/ast.json b/parser/testdata/00215_primary_key_order_zookeeper_long/ast.json new file mode 100644 index 0000000000..5d9a14e4f3 --- /dev/null +++ b/parser/testdata/00215_primary_key_order_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "primary_key", + "tables": [ + { + "table": "primary_key" + } + ] +} diff --git a/parser/testdata/00217_shard_global_subquery_columns_with_same_name/ast.json b/parser/testdata/00217_shard_global_subquery_columns_with_same_name/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00217_shard_global_subquery_columns_with_same_name/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00218_like_regexp_newline/ast.json b/parser/testdata/00218_like_regexp_newline/ast.json new file mode 100644 index 0000000000..bd447443b0 --- /dev/null +++ b/parser/testdata/00218_like_regexp_newline/ast.json @@ -0,0 +1,18 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "abcdef" + }, + "pattern": { + "type": "String", + "value": "%abc%def%" + } + } + ] + } + ] +} diff --git a/parser/testdata/00219_full_right_join_column_order/ast.json b/parser/testdata/00219_full_right_join_column_order/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00219_full_right_join_column_order/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00220_shard_with_totals_in_subquery_remote_and_limit/ast.json b/parser/testdata/00220_shard_with_totals_in_subquery_remote_and_limit/ast.json new file mode 100644 index 0000000000..11cce75eab --- /dev/null +++ b/parser/testdata/00220_shard_with_totals_in_subquery_remote_and_limit/ast.json @@ -0,0 +1,63 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "count", + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.2" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "with_totals": true + } + ] + } + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00222_sequence_aggregate_function_family/ast.json b/parser/testdata/00222_sequence_aggregate_function_family/ast.json new file mode 100644 index 0000000000..5da1119cd8 --- /dev/null +++ b/parser/testdata/00222_sequence_aggregate_function_family/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sequence_test", + "tables": [ + { + "table": "sequence_test" + } + ] +} diff --git a/parser/testdata/00223_shard_distributed_aggregation_memory_efficient/ast.json b/parser/testdata/00223_shard_distributed_aggregation_memory_efficient/ast.json new file mode 100644 index 0000000000..de44ee467c --- /dev/null +++ b/parser/testdata/00223_shard_distributed_aggregation_memory_efficient/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1000 + } + } + ] +} diff --git a/parser/testdata/00224_shard_distributed_aggregation_memory_efficient_and_overflows/ast.json b/parser/testdata/00224_shard_distributed_aggregation_memory_efficient_and_overflows/ast.json new file mode 100644 index 0000000000..8253a72b8e --- /dev/null +++ b/parser/testdata/00224_shard_distributed_aggregation_memory_efficient_and_overflows/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_100k_log", + "tables": [ + { + "table": "numbers_100k_log" + } + ] +} diff --git a/parser/testdata/00225_join_duplicate_columns/ast.json b/parser/testdata/00225_join_duplicate_columns/ast.json new file mode 100644 index 0000000000..929cff13af --- /dev/null +++ b/parser/testdata/00225_join_duplicate_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "hash,grace_hash,partial_merge,full_sorting_merge" + } + } + ] +} diff --git a/parser/testdata/00226_zookeeper_deduplication_and_unexpected_parts_long/ast.json b/parser/testdata/00226_zookeeper_deduplication_and_unexpected_parts_long/ast.json new file mode 100644 index 0000000000..9a5a6b105e --- /dev/null +++ b/parser/testdata/00226_zookeeper_deduplication_and_unexpected_parts_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "deduplication", + "tables": [ + { + "table": "deduplication" + } + ] +} diff --git a/parser/testdata/00227_quantiles_timing_arbitrary_order/ast.json b/parser/testdata/00227_quantiles_timing_arbitrary_order/ast.json new file mode 100644 index 0000000000..bdb1f77848 --- /dev/null +++ b/parser/testdata/00227_quantiles_timing_arbitrary_order/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantilesTiming", + "parameters": [ + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 0.9 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00228_shard_quantiles_deterministic_merge_overflow/ast.json b/parser/testdata/00228_shard_quantiles_deterministic_merge_overflow/ast.json new file mode 100644 index 0000000000..97985e112b --- /dev/null +++ b/parser/testdata/00228_shard_quantiles_deterministic_merge_overflow/ast.json @@ -0,0 +1,72 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantilesDeterministic", + "parameters": [ + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 0.9 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 101 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00229_prewhere_column_missing/ast.json b/parser/testdata/00229_prewhere_column_missing/ast.json new file mode 100644 index 0000000000..a3d2d4cee9 --- /dev/null +++ b/parser/testdata/00229_prewhere_column_missing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere_column_missing", + "tables": [ + { + "table": "prewhere_column_missing" + } + ] +} diff --git a/parser/testdata/00230_array_functions_has_count_equal_index_of_non_const_second_arg/ast.json b/parser/testdata/00230_array_functions_has_count_equal_index_of_non_const_second_arg/ast.json new file mode 100644 index 0000000000..1771378218 --- /dev/null +++ b/parser/testdata/00230_array_functions_has_count_equal_index_of_non_const_second_arg/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "has", + "arguments": [ + { + "type": "Array", + "value": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "x" + } + ] + }, + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00231_format_vertical_raw/ast.json b/parser/testdata/00231_format_vertical_raw/ast.json new file mode 100644 index 0000000000..a5b3f695b2 --- /dev/null +++ b/parser/testdata/00231_format_vertical_raw/ast.json @@ -0,0 +1,20 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "a\tb\nc\td" + }, + "alias": "x" + } + ], + "format": { + "parts": [ + "Vertical" + ] + } + } + ] +} diff --git a/parser/testdata/00233_position_function_family/ast.json b/parser/testdata/00233_position_function_family/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00233_position_function_family/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00233_position_function_sql_comparibilty/ast.json b/parser/testdata/00233_position_function_sql_comparibilty/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00233_position_function_sql_comparibilty/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00234_disjunctive_equality_chains_optimization/ast.json b/parser/testdata/00234_disjunctive_equality_chains_optimization/ast.json new file mode 100644 index 0000000000..2a9c79c811 --- /dev/null +++ b/parser/testdata/00234_disjunctive_equality_chains_optimization/ast.json @@ -0,0 +1,20 @@ +{ + "if_not_exists": true, + "table": "foo_00234", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/00235_create_temporary_table_as/ast.json b/parser/testdata/00235_create_temporary_table_as/ast.json new file mode 100644 index 0000000000..770e80b9e6 --- /dev/null +++ b/parser/testdata/00235_create_temporary_table_as/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "one_0023", + "tables": [ + { + "table": "one_0023" + } + ], + "temporary": true +} diff --git a/parser/testdata/00236_replicated_drop_on_non_leader_zookeeper_long/ast.json b/parser/testdata/00236_replicated_drop_on_non_leader_zookeeper_long/ast.json new file mode 100644 index 0000000000..96ff9c3589 --- /dev/null +++ b/parser/testdata/00236_replicated_drop_on_non_leader_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "replication_alter_partitions_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/00237_group_by_arrays/ast.json b/parser/testdata/00237_group_by_arrays/ast.json new file mode 100644 index 0000000000..eaa54b21a7 --- /dev/null +++ b/parser/testdata/00237_group_by_arrays/ast.json @@ -0,0 +1,112 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "arr1" + ] + }, + { + "parts": [ + "arr2" + ] + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "emptyArrayUInt8", + "alias": "arr1" + }, + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "alias": "arr2" + } + ] + }, + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "emptyArrayUInt8" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "arr1" + ] + }, + { + "parts": [ + "arr2" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "c" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "arr1" + ] + } + }, + { + "expression": { + "parts": [ + "arr2" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00238_removal_of_temporary_columns/ast.json b/parser/testdata/00238_removal_of_temporary_columns/ast.json new file mode 100644 index 0000000000..ab72206a06 --- /dev/null +++ b/parser/testdata/00238_removal_of_temporary_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_temporary_non_const_columns", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00240_replace_substring_loop/ast.json b/parser/testdata/00240_replace_substring_loop/ast.json new file mode 100644 index 0000000000..08e8397a0e --- /dev/null +++ b/parser/testdata/00240_replace_substring_loop/ast.json @@ -0,0 +1,101 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "s" + ] + }, + { + "name": "replaceAll", + "arguments": [ + { + "parts": [ + "s" + ] + }, + { + "type": "String", + "value": "_" + }, + { + "type": "String", + "value": "o" + } + ], + "alias": "a" + }, + { + "name": "replaceRegexpAll", + "arguments": [ + { + "parts": [ + "s" + ] + }, + { + "type": "String", + "value": "_" + }, + { + "type": "String", + "value": "o" + } + ], + "alias": "b" + }, + { + "left": { + "parts": [ + "a" + ] + }, + "op": "=", + "right": { + "parts": [ + "b" + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "." + }, + { + "type": "String", + "value": "." + } + ] + } + ], + "alias": "s" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00251_has_types/ast.json b/parser/testdata/00251_has_types/ast.json new file mode 100644 index 0000000000..4b2ab4569a --- /dev/null +++ b/parser/testdata/00251_has_types/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "has", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Float", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00252_shard_global_in_aggregate_function/ast.json b/parser/testdata/00252_shard_global_in_aggregate_function/ast.json new file mode 100644 index 0000000000..2241cd3026 --- /dev/null +++ b/parser/testdata/00252_shard_global_in_aggregate_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "storage", + "tables": [ + { + "table": "storage" + } + ] +} diff --git a/parser/testdata/00253_insert_recursive_defaults/ast.json b/parser/testdata/00253_insert_recursive_defaults/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/00253_insert_recursive_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/00254_tuple_extremes/ast.json b/parser/testdata/00254_tuple_extremes/ast.json new file mode 100644 index 0000000000..92be8621fc --- /dev/null +++ b/parser/testdata/00254_tuple_extremes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_10", + "tables": [ + { + "table": "numbers_10" + } + ] +} diff --git a/parser/testdata/00255_array_concat_string/ast.json b/parser/testdata/00255_array_concat_string/ast.json new file mode 100644 index 0000000000..7d24939cc2 --- /dev/null +++ b/parser/testdata/00255_array_concat_string/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayStringConcat", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "World" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00256_reverse/ast.json b/parser/testdata/00256_reverse/ast.json new file mode 100644 index 0000000000..151e1d5ebd --- /dev/null +++ b/parser/testdata/00256_reverse/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "reverse", + "arguments": [ + { + "type": "String", + "value": "Hello" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00257_shard_no_aggregates_and_constant_keys/ast.json b/parser/testdata/00257_shard_no_aggregates_and_constant_keys/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00257_shard_no_aggregates_and_constant_keys/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00258_materializing_tuples/ast.json b/parser/testdata/00258_materializing_tuples/ast.json new file mode 100644 index 0000000000..4ce8884c30 --- /dev/null +++ b/parser/testdata/00258_materializing_tuples/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "a" + } + ] + }, + { + "columns": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "a" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "a" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00259_hashing_tuples/ast.json b/parser/testdata/00259_hashing_tuples/ast.json new file mode 100644 index 0000000000..1c77d8cf4f --- /dev/null +++ b/parser/testdata/00259_hashing_tuples/ast.json @@ -0,0 +1,95 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "cityHash64", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "String", + "value": "" + } + ], + "alias": "x1" + }, + { + "name": "cityHash64", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "String", + "value": "" + } + ], + "alias": "x2" + }, + { + "name": "cityHash64", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "String", + "value": "" + } + ] + } + ], + "alias": "x3" + }, + { + "name": "cityHash64", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "String", + "value": "" + } + ] + } + ], + "alias": "x4" + } + ] + } + ] +} diff --git a/parser/testdata/00260_like_and_curly_braces/ast.json b/parser/testdata/00260_like_and_curly_braces/ast.json new file mode 100644 index 0000000000..c96e4cbf3a --- /dev/null +++ b/parser/testdata/00260_like_and_curly_braces/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "a}a" + }, + "alias": "x" + }, + { + "expr": { + "parts": [ + "x" + ] + }, + "pattern": { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "%" + }, + { + "parts": [ + "x" + ] + }, + { + "type": "String", + "value": "%" + } + ], + "alias": "pat" + } + }, + { + "expr": { + "name": "materialize", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + "pattern": { + "parts": [ + "pat" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00261_storage_aliases_and_array_join/ast.json b/parser/testdata/00261_storage_aliases_and_array_join/ast.json new file mode 100644 index 0000000000..67db496c62 --- /dev/null +++ b/parser/testdata/00261_storage_aliases_and_array_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "aliases_test", + "tables": [ + { + "table": "aliases_test" + } + ] +} diff --git a/parser/testdata/00262_alter_alias/ast.json b/parser/testdata/00262_alter_alias/ast.json new file mode 100644 index 0000000000..67db496c62 --- /dev/null +++ b/parser/testdata/00262_alter_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "aliases_test", + "tables": [ + { + "table": "aliases_test" + } + ] +} diff --git a/parser/testdata/00263_merge_aggregates_and_overflow/ast.json b/parser/testdata/00263_merge_aggregates_and_overflow/ast.json new file mode 100644 index 0000000000..83308e07d1 --- /dev/null +++ b/parser/testdata/00263_merge_aggregates_and_overflow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_10k_log", + "tables": [ + { + "table": "numbers_10k_log" + } + ] +} diff --git a/parser/testdata/00266_read_overflow_mode/ast.json b/parser/testdata/00266_read_overflow_mode/ast.json new file mode 100644 index 0000000000..da921d6380 --- /dev/null +++ b/parser/testdata/00266_read_overflow_mode/ast.json @@ -0,0 +1,98 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 110000 + }, + "settings": [ + { + "name": "max_result_rows", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10 + }, + "settings": [ + { + "name": "max_result_rows", + "value": { + "type": "Integer", + "value": 100000 + } + }, + { + "name": "result_overflow_mode", + "value": { + "type": "String", + "value": "break" + } + } + ] + } + ] +} diff --git a/parser/testdata/00268_aliases_without_as_keyword/ast.json b/parser/testdata/00268_aliases_without_as_keyword/ast.json new file mode 100644 index 0000000000..93e4d7bb7b --- /dev/null +++ b/parser/testdata/00268_aliases_without_as_keyword/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00269_database_table_whitespace/ast.json b/parser/testdata/00269_database_table_whitespace/ast.json new file mode 100644 index 0000000000..7ee882f259 --- /dev/null +++ b/parser/testdata/00269_database_table_whitespace/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00270_views_query_processing_stage/ast.json b/parser/testdata/00270_views_query_processing_stage/ast.json new file mode 100644 index 0000000000..911fe97f9e --- /dev/null +++ b/parser/testdata/00270_views_query_processing_stage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "view1_00270", + "tables": [ + { + "table": "view1_00270" + } + ] +} diff --git a/parser/testdata/00271_agg_state_and_totals/ast.json b/parser/testdata/00271_agg_state_and_totals/ast.json new file mode 100644 index 0000000000..3f05148446 --- /dev/null +++ b/parser/testdata/00271_agg_state_and_totals/ast.json @@ -0,0 +1,119 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + }, + { + "name": "finalizeAggregation", + "arguments": [ + { + "name": "quantilesTimingState", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "expr": { + "type": "Integer", + "value": 30000 + }, + "alias": "d" + } + ], + "alias": "k" + }, + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "parts": [ + "d" + ] + } + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00272_union_all_and_in_subquery/ast.json b/parser/testdata/00272_union_all_and_in_subquery/ast.json new file mode 100644 index 0000000000..3ee95f063f --- /dev/null +++ b/parser/testdata/00272_union_all_and_in_subquery/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "where": { + "expr": { + "type": "Integer", + "value": 1 + }, + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "where": { + "type": "Integer", + "value": 0 + } + } + ] + } + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL", + "UNION ALL" + ] +} diff --git a/parser/testdata/00273_quantiles/ast.json b/parser/testdata/00273_quantiles/ast.json new file mode 100644 index 0000000000..ef3ddf552f --- /dev/null +++ b/parser/testdata/00273_quantiles/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantiles", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1001 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00274_shard_group_array/ast.json b/parser/testdata/00274_shard_group_array/ast.json new file mode 100644 index 0000000000..1e231a7590 --- /dev/null +++ b/parser/testdata/00274_shard_group_array/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "length", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers_mt" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00275_shard_quantiles_weighted/ast.json b/parser/testdata/00275_shard_quantiles_weighted/ast.json new file mode 100644 index 0000000000..84270ee211 --- /dev/null +++ b/parser/testdata/00275_shard_quantiles_weighted/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileExactWeighted", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1001 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00276_sample/ast.json b/parser/testdata/00276_sample/ast.json new file mode 100644 index 0000000000..ed2944248a --- /dev/null +++ b/parser/testdata/00276_sample/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sample_00276", + "tables": [ + { + "table": "sample_00276" + } + ] +} diff --git a/parser/testdata/00277_array_filter/ast.json b/parser/testdata/00277_array_filter/ast.json new file mode 100644 index 0000000000..abc49f8338 --- /dev/null +++ b/parser/testdata/00277_array_filter/ast.json @@ -0,0 +1,138 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "name": "length", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "toString", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + }, + { + "name": "range", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + } + ] + } + ], + "alias": "arr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00278_insert_already_sorted/ast.json b/parser/testdata/00278_insert_already_sorted/ast.json new file mode 100644 index 0000000000..5cdcb53f3b --- /dev/null +++ b/parser/testdata/00278_insert_already_sorted/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sorted", + "tables": [ + { + "table": "sorted" + } + ] +} diff --git a/parser/testdata/00279_quantiles_permuted_args/ast.json b/parser/testdata/00279_quantiles_permuted_args/ast.json new file mode 100644 index 0000000000..96b6a8e518 --- /dev/null +++ b/parser/testdata/00279_quantiles_permuted_args/ast.json @@ -0,0 +1,140 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantilesExact", + "parameters": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Float", + "value": 0.001 + }, + { + "type": "Float", + "value": 0.01 + }, + { + "type": "Float", + "value": 0.05 + }, + { + "type": "Float", + "value": 0.9 + }, + { + "type": "Float", + "value": 0.2 + }, + { + "type": "Float", + "value": 0.3 + }, + { + "type": "Float", + "value": 0.6 + }, + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 0.4 + }, + { + "type": "Float", + "value": 0.7 + }, + { + "type": "Float", + "value": 0.8 + }, + { + "type": "Float", + "value": 0.1 + }, + { + "type": "Float", + "value": 0.95 + }, + { + "type": "Float", + "value": 0.99 + }, + { + "type": "Float", + "value": 0.999 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 0.3 + }, + { + "type": "Float", + "value": 0.4 + } + ], + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1001 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00280_hex_escape_sequence/ast.json b/parser/testdata/00280_hex_escape_sequence/ast.json new file mode 100644 index 0000000000..e9879db2ec --- /dev/null +++ b/parser/testdata/00280_hex_escape_sequence/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "0 Р" + } + ] + } + ] +} diff --git a/parser/testdata/00282_merging/ast.json b/parser/testdata/00282_merging/ast.json new file mode 100644 index 0000000000..615a4c2c01 --- /dev/null +++ b/parser/testdata/00282_merging/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge", + "tables": [ + { + "table": "merge" + } + ] +} diff --git a/parser/testdata/00284_external_aggregation/ast.json b/parser/testdata/00284_external_aggregation/ast.json new file mode 100644 index 0000000000..2cc3a6d605 --- /dev/null +++ b/parser/testdata/00284_external_aggregation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 100000000 + } + } + ] +} diff --git a/parser/testdata/00284_external_aggregation_2/ast.json b/parser/testdata/00284_external_aggregation_2/ast.json new file mode 100644 index 0000000000..f5df802348 --- /dev/null +++ b/parser/testdata/00284_external_aggregation_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "group_by_two_level_threshold_bytes", + "value": { + "type": "Integer", + "value": 50000000 + } + } + ] +} diff --git a/parser/testdata/00285_not_all_data_in_totals/ast.json b/parser/testdata/00285_not_all_data_in_totals/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00285_not_all_data_in_totals/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00286_format_long_negative_float/ast.json b/parser/testdata/00286_format_long_negative_float/ast.json new file mode 100644 index 0000000000..01b8f5d06b --- /dev/null +++ b/parser/testdata/00286_format_long_negative_float/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "reinterpretAsFloat64", + "arguments": [ + { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "875635ffffffbfbe" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00288_empty_stripelog/ast.json b/parser/testdata/00288_empty_stripelog/ast.json new file mode 100644 index 0000000000..b2bbe84fe3 --- /dev/null +++ b/parser/testdata/00288_empty_stripelog/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "stripelog", + "tables": [ + { + "table": "stripelog" + } + ] +} diff --git a/parser/testdata/00290_shard_aggregation_memory_efficient/ast.json b/parser/testdata/00290_shard_aggregation_memory_efficient/ast.json new file mode 100644 index 0000000000..6b6c037f8b --- /dev/null +++ b/parser/testdata/00290_shard_aggregation_memory_efficient/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_10_00290", + "tables": [ + { + "table": "numbers_10_00290" + } + ] +} diff --git a/parser/testdata/00292_parser_tuple_element/ast.json b/parser/testdata/00292_parser_tuple_element/ast.json new file mode 100644 index 0000000000..db8e4bdebb --- /dev/null +++ b/parser/testdata/00292_parser_tuple_element/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "tuple": { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + } + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] +} diff --git a/parser/testdata/00293_shard_max_subquery_depth/ast.json b/parser/testdata/00293_shard_max_subquery_depth/ast.json new file mode 100644 index 0000000000..f443e78fa4 --- /dev/null +++ b/parser/testdata/00293_shard_max_subquery_depth/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_subquery_depth", + "value": { + "type": "Integer", + "value": 3 + } + } + ] +} diff --git a/parser/testdata/00294_shard_enums/ast.json b/parser/testdata/00294_shard_enums/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/00294_shard_enums/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00295_global_in_one_shard_rows_before_limit/ast.json b/parser/testdata/00295_global_in_one_shard_rows_before_limit/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00295_global_in_one_shard_rows_before_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00298_enum_width_and_cast/ast.json b/parser/testdata/00298_enum_width_and_cast/ast.json new file mode 100644 index 0000000000..9d83278d30 --- /dev/null +++ b/parser/testdata/00298_enum_width_and_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum", + "tables": [ + { + "table": "enum" + } + ] +} diff --git a/parser/testdata/00299_stripe_log_multiple_inserts/ast.json b/parser/testdata/00299_stripe_log_multiple_inserts/ast.json new file mode 100644 index 0000000000..923c5bdad8 --- /dev/null +++ b/parser/testdata/00299_stripe_log_multiple_inserts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "log", + "tables": [ + { + "table": "log" + } + ] +} diff --git a/parser/testdata/00306_insert_values_and_expressions/ast.json b/parser/testdata/00306_insert_values_and_expressions/ast.json new file mode 100644 index 0000000000..d17637805c --- /dev/null +++ b/parser/testdata/00306_insert_values_and_expressions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "insert", + "tables": [ + { + "table": "insert" + } + ] +} diff --git a/parser/testdata/00307_format_xml/ast.json b/parser/testdata/00307_format_xml/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00307_format_xml/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00308_write_buffer_valid_utf8/ast.json b/parser/testdata/00308_write_buffer_valid_utf8/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00308_write_buffer_valid_utf8/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00309_formats/ast.json b/parser/testdata/00309_formats/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00309_formats/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00311_array_primary_key/ast.json b/parser/testdata/00311_array_primary_key/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/00311_array_primary_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00312_position_case_insensitive_utf8/ast.json b/parser/testdata/00312_position_case_insensitive_utf8/ast.json new file mode 100644 index 0000000000..62d66a32de --- /dev/null +++ b/parser/testdata/00312_position_case_insensitive_utf8/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "positionCaseInsensitiveUTF8", + "arguments": [ + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "иголка.ру" + }, + { + "name": "arrayStringConcat", + "arguments": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "String", + "value": " " + } + }, + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 20000 + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "String", + "value": "иголка.ру" + } + ], + "alias": "res" + } + ] + } + ] +} diff --git a/parser/testdata/00314_sample_factor_virtual_column/ast.json b/parser/testdata/00314_sample_factor_virtual_column/ast.json new file mode 100644 index 0000000000..361afa6067 --- /dev/null +++ b/parser/testdata/00314_sample_factor_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sample_00314_1", + "tables": [ + { + "table": "sample_00314_1" + } + ] +} diff --git a/parser/testdata/00315_quantile_off_by_one/ast.json b/parser/testdata/00315_quantile_off_by_one/ast.json new file mode 100644 index 0000000000..6165e5fe07 --- /dev/null +++ b/parser/testdata/00315_quantile_off_by_one/ast.json @@ -0,0 +1,159 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileExactWeighted", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 1 + } + ], + "alias": "q5" + }, + { + "name": "quantilesExactWeighted", + "parameters": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Float", + "value": 0.1 + }, + { + "type": "Float", + "value": 0.2 + }, + { + "type": "Float", + "value": 0.3 + }, + { + "type": "Float", + "value": 0.4 + }, + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 0.6 + }, + { + "type": "Float", + "value": 0.7 + }, + { + "type": "Float", + "value": 0.8 + }, + { + "type": "Float", + "value": 0.9 + }, + { + "type": "Integer", + "value": 1 + } + ], + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 1 + } + ], + "alias": "qs" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00316_rounding_functions_and_empty_block/ast.json b/parser/testdata/00316_rounding_functions_and_empty_block/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00316_rounding_functions_and_empty_block/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00318_pk_tuple_order/ast.json b/parser/testdata/00318_pk_tuple_order/ast.json new file mode 100644 index 0000000000..c08cf9ed47 --- /dev/null +++ b/parser/testdata/00318_pk_tuple_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk", + "tables": [ + { + "table": "pk" + } + ] +} diff --git a/parser/testdata/00319_index_for_like/ast.json b/parser/testdata/00319_index_for_like/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/00319_index_for_like/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00321_pk_set/ast.json b/parser/testdata/00321_pk_set/ast.json new file mode 100644 index 0000000000..d174dc54d7 --- /dev/null +++ b/parser/testdata/00321_pk_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk_set", + "tables": [ + { + "table": "pk_set" + } + ] +} diff --git a/parser/testdata/00323_quantiles_timing_bug/ast.json b/parser/testdata/00323_quantiles_timing_bug/ast.json new file mode 100644 index 0000000000..3e47027a36 --- /dev/null +++ b/parser/testdata/00323_quantiles_timing_bug/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantilesTiming", + "parameters": [ + { + "type": "Float", + "value": 0.99 + } + ], + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 100000 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00326_long_function_multi_if/ast.json b/parser/testdata/00326_long_function_multi_if/ast.json new file mode 100644 index 0000000000..9d63c9115d --- /dev/null +++ b/parser/testdata/00326_long_function_multi_if/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Trivial case" + } + ] + } + ] +} diff --git a/parser/testdata/00327_summing_composite_nested/ast.json b/parser/testdata/00327_summing_composite_nested/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/00327_summing_composite_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00330_view_subqueries/ast.json b/parser/testdata/00330_view_subqueries/ast.json new file mode 100644 index 0000000000..63c5650dac --- /dev/null +++ b/parser/testdata/00330_view_subqueries/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "v1", + "tables": [ + { + "table": "v1" + } + ] +} diff --git a/parser/testdata/00331_final_and_prewhere/ast.json b/parser/testdata/00331_final_and_prewhere/ast.json new file mode 100644 index 0000000000..4254a34c7b --- /dev/null +++ b/parser/testdata/00331_final_and_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replace", + "tables": [ + { + "table": "replace" + } + ] +} diff --git a/parser/testdata/00331_final_and_prewhere_condition_ver_column/ast.json b/parser/testdata/00331_final_and_prewhere_condition_ver_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00331_final_and_prewhere_condition_ver_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00332_quantile_timing_memory_leak/ast.json b/parser/testdata/00332_quantile_timing_memory_leak/ast.json new file mode 100644 index 0000000000..0b9a3f17d0 --- /dev/null +++ b/parser/testdata/00332_quantile_timing_memory_leak/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileTiming", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00333_parser_number_bug/ast.json b/parser/testdata/00333_parser_number_bug/ast.json new file mode 100644 index 0000000000..976a98da3b --- /dev/null +++ b/parser/testdata/00333_parser_number_bug/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "info" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "info" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00334_column_aggregate_function_limit/ast.json b/parser/testdata/00334_column_aggregate_function_limit/ast.json new file mode 100644 index 0000000000..8d5cd653ff --- /dev/null +++ b/parser/testdata/00334_column_aggregate_function_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ontime", + "tables": [ + { + "table": "ontime" + } + ] +} diff --git a/parser/testdata/00338_replicate_array_of_strings/ast.json b/parser/testdata/00338_replicate_array_of_strings/ast.json new file mode 100644 index 0000000000..003fc8bff5 --- /dev/null +++ b/parser/testdata/00338_replicate_array_of_strings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bad_arrays", + "tables": [ + { + "table": "bad_arrays" + } + ] +} diff --git a/parser/testdata/00340_squashing_insert_select/ast.json b/parser/testdata/00340_squashing_insert_select/ast.json new file mode 100644 index 0000000000..64dc80a449 --- /dev/null +++ b/parser/testdata/00340_squashing_insert_select/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_squashed", + "tables": [ + { + "table": "numbers_squashed" + } + ] +} diff --git a/parser/testdata/00341_squashing_insert_select2/ast.json b/parser/testdata/00341_squashing_insert_select2/ast.json new file mode 100644 index 0000000000..64dc80a449 --- /dev/null +++ b/parser/testdata/00341_squashing_insert_select2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_squashed", + "tables": [ + { + "table": "numbers_squashed" + } + ] +} diff --git a/parser/testdata/00343_array_element_generic/ast.json b/parser/testdata/00343_array_element_generic/ast.json new file mode 100644 index 0000000000..cee520477f --- /dev/null +++ b/parser/testdata/00343_array_element_generic/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + }, + "op": "==", + "right": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + }, + "op": "AND", + "right": { + "left": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 100 + } + ] + }, + "op": "==", + "right": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + ] +} diff --git a/parser/testdata/00344_row_number_in_all_blocks/ast.json b/parser/testdata/00344_row_number_in_all_blocks/ast.json new file mode 100644 index 0000000000..de44ee467c --- /dev/null +++ b/parser/testdata/00344_row_number_in_all_blocks/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1000 + } + } + ] +} diff --git a/parser/testdata/00345_index_accurate_comparison/ast.json b/parser/testdata/00345_index_accurate_comparison/ast.json new file mode 100644 index 0000000000..848f767c94 --- /dev/null +++ b/parser/testdata/00345_index_accurate_comparison/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "index", + "tables": [ + { + "table": "index" + } + ] +} diff --git a/parser/testdata/00346_if_tuple/ast.json b/parser/testdata/00346_if_tuple/ast.json new file mode 100644 index 0000000000..36b281bd1f --- /dev/null +++ b/parser/testdata/00346_if_tuple/ast.json @@ -0,0 +1,101 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + }, + "else": { + "type": "Tuple", + "value": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "! " + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00347_has_tuple/ast.json b/parser/testdata/00347_has_tuple/ast.json new file mode 100644 index 0000000000..de9921bb6f --- /dev/null +++ b/parser/testdata/00347_has_tuple/ast.json @@ -0,0 +1,109 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "has", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "parts": [ + "c" + ] + }, + { + "parts": [ + "d" + ] + } + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "b" + }, + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "c" + }, + { + "expr": { + "type": "Integer", + "value": 4 + }, + "alias": "d" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00348_tuples/ast.json b/parser/testdata/00348_tuples/ast.json new file mode 100644 index 0000000000..d3b82f8ade --- /dev/null +++ b/parser/testdata/00348_tuples/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "1" + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "alias": "t" + }, + { + "tuple": { + "parts": [ + "t" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "tuple": { + "parts": [ + "t" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] +} diff --git a/parser/testdata/00349_visible_width/ast.json b/parser/testdata/00349_visible_width/ast.json new file mode 100644 index 0000000000..938193d76f --- /dev/null +++ b/parser/testdata/00349_visible_width/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "visibleWidth", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "name": "visibleWidth", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + }, + { + "name": "visibleWidth", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00350_count_distinct/ast.json b/parser/testdata/00350_count_distinct/ast.json new file mode 100644 index 0000000000..cac43b33fd --- /dev/null +++ b/parser/testdata/00350_count_distinct/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "count_distinct_implementation", + "value": { + "type": "String", + "value": "uniq" + } + } + ] +} diff --git a/parser/testdata/00351_select_distinct_arrays_tuples/ast.json b/parser/testdata/00351_select_distinct_arrays_tuples/ast.json new file mode 100644 index 0000000000..ab1aa0a9bb --- /dev/null +++ b/parser/testdata/00351_select_distinct_arrays_tuples/ast.json @@ -0,0 +1,126 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + }, + { + "type": "Tuple", + "value": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + } + ] + }, + { + "type": "Array", + "value": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00352_external_sorting_and_constants/ast.json b/parser/testdata/00352_external_sorting_and_constants/ast.json new file mode 100644 index 0000000000..952bea201e --- /dev/null +++ b/parser/testdata/00352_external_sorting_and_constants/ast.json @@ -0,0 +1,92 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "expr": { + "type": "String", + "value": "Hello" + }, + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 100 + }, + "offset": { + "type": "Integer", + "value": 999990 + }, + "settings": [ + { + "name": "max_bytes_before_external_sort", + "value": { + "type": "Integer", + "value": 1000000 + } + }, + { + "name": "max_bytes_ratio_before_external_sort", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/00353_join_by_tuple/ast.json b/parser/testdata/00353_join_by_tuple/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00353_join_by_tuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00355_array_of_non_const_convertible_types/ast.json b/parser/testdata/00355_array_of_non_const_convertible_types/ast.json new file mode 100644 index 0000000000..c150008b09 --- /dev/null +++ b/parser/testdata/00355_array_of_non_const_convertible_types/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "name": "toUInt8", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 3 + } + } + ] +} diff --git a/parser/testdata/00356_analyze_aggregations_and_union_all/ast.json b/parser/testdata/00356_analyze_aggregations_and_union_all/ast.json new file mode 100644 index 0000000000..b84ff681ee --- /dev/null +++ b/parser/testdata/00356_analyze_aggregations_and_union_all/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + } + ] + } + ] + } + } + } + } + ] + } + }, + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "b" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "b" + } + ] + } + ] + } + } + } + } + ] + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] +} diff --git a/parser/testdata/00357_to_string_complex_types/ast.json b/parser/testdata/00357_to_string_complex_types/ast.json new file mode 100644 index 0000000000..77b00d999e --- /dev/null +++ b/parser/testdata/00357_to_string_complex_types/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "Hello" + }, + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2016-01-01" + } + ] + } + ] + } + ] + }, + { + "name": "toString", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00358_from_string_complex_types/ast.json b/parser/testdata/00358_from_string_complex_types/ast.json new file mode 100644 index 0000000000..7ff6aee240 --- /dev/null +++ b/parser/testdata/00358_from_string_complex_types/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "[1, 2, 3]" + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/00359_convert_or_zero_functions/ast.json b/parser/testdata/00359_convert_or_zero_functions/ast.json new file mode 100644 index 0000000000..cf868ecf2a --- /dev/null +++ b/parser/testdata/00359_convert_or_zero_functions/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt32OrZero", + "arguments": [ + { + "type": "String", + "value": "123a" + } + ] + }, + { + "name": "toUInt32OrZero", + "arguments": [ + { + "type": "String", + "value": "456" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00360_to_date_from_string_with_datetime/ast.json b/parser/testdata/00360_to_date_from_string_with_datetime/ast.json new file mode 100644 index 0000000000..3c06332469 --- /dev/null +++ b/parser/testdata/00360_to_date_from_string_with_datetime/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2016-08-02 12:34:19" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00361_shared_array_offsets_and_squash_blocks/ast.json b/parser/testdata/00361_shared_array_offsets_and_squash_blocks/ast.json new file mode 100644 index 0000000000..01810847ce --- /dev/null +++ b/parser/testdata/00361_shared_array_offsets_and_squash_blocks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested1", + "tables": [ + { + "table": "nested1" + } + ] +} diff --git a/parser/testdata/00362_great_circle_distance/ast.json b/parser/testdata/00362_great_circle_distance/ast.json new file mode 100644 index 0000000000..5d8f6c70e9 --- /dev/null +++ b/parser/testdata/00362_great_circle_distance/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "floor", + "arguments": [ + { + "name": "greatCircleDistance", + "arguments": [ + { + "type": "Float", + "value": 33.3 + }, + { + "type": "Float", + "value": 55.3 + }, + { + "type": "Float", + "value": 33.3 + }, + { + "type": "Float", + "value": 55.3 + } + ] + } + ], + "alias": "distance" + } + ] + } + ] +} diff --git a/parser/testdata/00363_defaults/ast.json b/parser/testdata/00363_defaults/ast.json new file mode 100644 index 0000000000..dbb82f92b3 --- /dev/null +++ b/parser/testdata/00363_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere_defaults", + "tables": [ + { + "table": "prewhere_defaults" + } + ] +} diff --git a/parser/testdata/00369_int_div_of_float/ast.json b/parser/testdata/00369_int_div_of_float/ast.json new file mode 100644 index 0000000000..1f7a07cda9 --- /dev/null +++ b/parser/testdata/00369_int_div_of_float/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00370_duplicate_columns_in_subqueries/ast.json b/parser/testdata/00370_duplicate_columns_in_subqueries/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00370_duplicate_columns_in_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00371_union_all/ast.json b/parser/testdata/00371_union_all/ast.json new file mode 100644 index 0000000000..01008bf567 --- /dev/null +++ b/parser/testdata/00371_union_all/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "columns": [ + { + "name": "countIf", + "arguments": [ + { + "left": { + "parts": [ + "n" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "n" + } + ] + } + ] + } + } + } + } + ] + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] +} diff --git a/parser/testdata/00373_group_by_tuple/ast.json b/parser/testdata/00373_group_by_tuple/ast.json new file mode 100644 index 0000000000..b83985a8b3 --- /dev/null +++ b/parser/testdata/00373_group_by_tuple/ast.json @@ -0,0 +1,110 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "Hello" + } + ] + }, + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "World" + } + ] + } + ], + "alias": "x" + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "x" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00374_any_last_if_merge/ast.json b/parser/testdata/00374_any_last_if_merge/ast.json new file mode 100644 index 0000000000..72ad7bbbf6 --- /dev/null +++ b/parser/testdata/00374_any_last_if_merge/ast.json @@ -0,0 +1,116 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10000 + } + }, + "alias": "k" + }, + { + "name": "anyLastIf", + "arguments": [ + { + "type": "Float", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + }, + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "having": { + "left": { + "parts": [ + "x" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/00375_shard_group_uniq_array_of_string/ast.json b/parser/testdata/00375_shard_group_uniq_array_of_string/ast.json new file mode 100644 index 0000000000..574500c539 --- /dev/null +++ b/parser/testdata/00375_shard_group_uniq_array_of_string/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "group_uniq_str", + "tables": [ + { + "table": "group_uniq_str" + } + ] +} diff --git a/parser/testdata/00376_shard_group_uniq_array_of_int_array/ast.json b/parser/testdata/00376_shard_group_uniq_array_of_int_array/ast.json new file mode 100644 index 0000000000..71e089ac13 --- /dev/null +++ b/parser/testdata/00376_shard_group_uniq_array_of_int_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "55M" + } + } + ] +} diff --git a/parser/testdata/00377_shard_group_uniq_array_of_string_array/ast.json b/parser/testdata/00377_shard_group_uniq_array_of_string_array/ast.json new file mode 100644 index 0000000000..71e089ac13 --- /dev/null +++ b/parser/testdata/00377_shard_group_uniq_array_of_string_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "55M" + } + } + ] +} diff --git a/parser/testdata/00378_json_quote_64bit_integers/ast.json b/parser/testdata/00378_json_quote_64bit_integers/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00378_json_quote_64bit_integers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00383_utf8_validation/ast.json b/parser/testdata/00383_utf8_validation/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00383_utf8_validation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00384_column_aggregate_function_insert_from/ast.json b/parser/testdata/00384_column_aggregate_function_insert_from/ast.json new file mode 100644 index 0000000000..32a436bc55 --- /dev/null +++ b/parser/testdata/00384_column_aggregate_function_insert_from/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "aggregates", + "tables": [ + { + "table": "aggregates" + } + ] +} diff --git a/parser/testdata/00386_enum_in_pk/ast.json b/parser/testdata/00386_enum_in_pk/ast.json new file mode 100644 index 0000000000..637ba27051 --- /dev/null +++ b/parser/testdata/00386_enum_in_pk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum_pk", + "tables": [ + { + "table": "enum_pk" + } + ] +} diff --git a/parser/testdata/00386_has_column_in_table/ast.json b/parser/testdata/00386_has_column_in_table/ast.json new file mode 100644 index 0000000000..0c6dd7129a --- /dev/null +++ b/parser/testdata/00386_has_column_in_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "has_column_in_table", + "tables": [ + { + "table": "has_column_in_table" + } + ] +} diff --git a/parser/testdata/00388_enum_with_totals/ast.json b/parser/testdata/00388_enum_with_totals/ast.json new file mode 100644 index 0000000000..121bfbfae4 --- /dev/null +++ b/parser/testdata/00388_enum_with_totals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum_totals", + "tables": [ + { + "table": "enum_totals" + } + ] +} diff --git a/parser/testdata/00389_concat_operator/ast.json b/parser/testdata/00389_concat_operator/ast.json new file mode 100644 index 0000000000..c52f1ebd3e --- /dev/null +++ b/parser/testdata/00389_concat_operator/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "type": "String", + "value": "Hello" + }, + "op": "||", + "right": { + "type": "String", + "value": ", " + } + }, + "op": "||", + "right": { + "type": "String", + "value": "World" + } + } + ] + } + ] +} diff --git a/parser/testdata/00390_array_sort/ast.json b/parser/testdata/00390_array_sort/ast.json new file mode 100644 index 0000000000..5d35d015f2 --- /dev/null +++ b/parser/testdata/00390_array_sort/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "arr" + }, + { + "name": "arraySort", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + }, + { + "name": "arrayReverseSort", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + }, + { + "name": "arraySort", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "op": "-", + "operand": { + "parts": [ + "x" + ] + } + } + }, + { + "parts": [ + "arr" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00392_enum_nested_alter/ast.json b/parser/testdata/00392_enum_nested_alter/ast.json new file mode 100644 index 0000000000..c906941ded --- /dev/null +++ b/parser/testdata/00392_enum_nested_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum_nested_alter", + "tables": [ + { + "table": "enum_nested_alter" + } + ] +} diff --git a/parser/testdata/00393_if_with_constant_condition/ast.json b/parser/testdata/00393_if_with_constant_condition/ast.json new file mode 100644 index 0000000000..47f1be70ae --- /dev/null +++ b/parser/testdata/00393_if_with_constant_condition/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "type": "Integer", + "value": 1 + }, + "then": { + "type": "Integer", + "value": 1 + }, + "else": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/00394_new_nested_column_keeps_offsets/ast.json b/parser/testdata/00394_new_nested_column_keeps_offsets/ast.json new file mode 100644 index 0000000000..fe9ed2197a --- /dev/null +++ b/parser/testdata/00394_new_nested_column_keeps_offsets/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_00394", + "tables": [ + { + "table": "alter_00394" + } + ] +} diff --git a/parser/testdata/00394_replaceall_vector_fixed/ast.json b/parser/testdata/00394_replaceall_vector_fixed/ast.json new file mode 100644 index 0000000000..292b2de25e --- /dev/null +++ b/parser/testdata/00394_replaceall_vector_fixed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replaceall", + "tables": [ + { + "table": "replaceall" + } + ] +} diff --git a/parser/testdata/00395_nullable/ast.json b/parser/testdata/00395_nullable/ast.json new file mode 100644 index 0000000000..174735f31f --- /dev/null +++ b/parser/testdata/00395_nullable/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "----- NULL value -----" + } + ] + } + ] +} diff --git a/parser/testdata/00396_uuid/ast.json b/parser/testdata/00396_uuid/ast.json new file mode 100644 index 0000000000..e0fe5ee559 --- /dev/null +++ b/parser/testdata/00396_uuid/ast.json @@ -0,0 +1,84 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "UUIDNumToString", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "name": "unhex", + "arguments": [ + { + "expr": { + "type": "String", + "value": "0123456789ABCDEF0123456789ABCDEF" + }, + "alias": "hex" + } + ], + "alias": "bytes" + }, + { + "type": "Integer", + "value": 16 + } + ], + "alias": "uuid_binary" + } + ], + "alias": "uuid_string" + }, + { + "expr": { + "left": { + "name": "hex", + "arguments": [ + { + "name": "UUIDStringToNum", + "arguments": [ + { + "parts": [ + "uuid_string" + ] + } + ] + } + ] + }, + "op": "=", + "right": { + "parts": [ + "hex" + ] + } + }, + "alias": "test1" + }, + { + "expr": { + "left": { + "name": "UUIDStringToNum", + "arguments": [ + { + "parts": [ + "uuid_string" + ] + } + ] + }, + "op": "=", + "right": { + "parts": [ + "bytes" + ] + } + }, + "alias": "test2" + } + ] + } + ] +} diff --git a/parser/testdata/00396_uuid_v7/ast.json b/parser/testdata/00396_uuid_v7/ast.json new file mode 100644 index 0000000000..1579869ea8 --- /dev/null +++ b/parser/testdata/00396_uuid_v7/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- UUIDToNum --" + } + ] + } + ] +} diff --git a/parser/testdata/00397_tsv_format_synonym/ast.json b/parser/testdata/00397_tsv_format_synonym/ast.json new file mode 100644 index 0000000000..18adf8ee80 --- /dev/null +++ b/parser/testdata/00397_tsv_format_synonym/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ], + "alias": "arr" + }, + { + "expr": { + "type": "String", + "value": "hello" + }, + "alias": "s1" + }, + { + "expr": { + "type": "String", + "value": "world" + }, + "alias": "s2" + } + ], + "format": { + "parts": [ + "TabSeparated" + ] + } + } + ] +} diff --git a/parser/testdata/00399_group_uniq_array_date_datetime/ast.json b/parser/testdata/00399_group_uniq_array_date_datetime/ast.json new file mode 100644 index 0000000000..94267aea42 --- /dev/null +++ b/parser/testdata/00399_group_uniq_array_date_datetime/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "grop_uniq_array_date", + "tables": [ + { + "table": "grop_uniq_array_date" + } + ] +} diff --git a/parser/testdata/00401_merge_and_stripelog/ast.json b/parser/testdata/00401_merge_and_stripelog/ast.json new file mode 100644 index 0000000000..a37abbf568 --- /dev/null +++ b/parser/testdata/00401_merge_and_stripelog/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "stripe1", + "tables": [ + { + "table": "stripe1" + } + ] +} diff --git a/parser/testdata/00402_nan_and_extremes/ast.json b/parser/testdata/00402_nan_and_extremes/ast.json new file mode 100644 index 0000000000..280f34cf7b --- /dev/null +++ b/parser/testdata/00402_nan_and_extremes/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ], + "settings": [ + { + "name": "extremes", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/00403_to_start_of_day/ast.json b/parser/testdata/00403_to_start_of_day/ast.json new file mode 100644 index 0000000000..d12c16fd06 --- /dev/null +++ b/parser/testdata/00403_to_start_of_day/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toStartOfDay", + "arguments": [ + { + "name": "now" + } + ] + }, + "op": "=", + "right": { + "name": "toDateTime", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "name": "now" + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00404_null_literal/ast.json b/parser/testdata/00404_null_literal/ast.json new file mode 100644 index 0000000000..3e02bffa85 --- /dev/null +++ b/parser/testdata/00404_null_literal/ast.json @@ -0,0 +1,14 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Null", + "value": null + } + } + ] + } + ] +} diff --git a/parser/testdata/00405_output_format_pretty_color/ast.json b/parser/testdata/00405_output_format_pretty_color/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/00405_output_format_pretty_color/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00405_pretty_formats/ast.json b/parser/testdata/00405_pretty_formats/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/00405_pretty_formats/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00406_tuples_with_nulls/ast.json b/parser/testdata/00406_tuples_with_nulls/ast.json new file mode 100644 index 0000000000..f4ac66b680 --- /dev/null +++ b/parser/testdata/00406_tuples_with_nulls/ast.json @@ -0,0 +1,89 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "name": "nullIf", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "toString", + "arguments": [ + { + "name": "nullIf", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + }, + "alias": "tuple" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + }, + "format": { + "parts": [ + "PrettyCompactNoEscapes" + ] + } + } + ] +} diff --git a/parser/testdata/00409_shard_limit_by/ast.json b/parser/testdata/00409_shard_limit_by/ast.json new file mode 100644 index 0000000000..7968affd71 --- /dev/null +++ b/parser/testdata/00409_shard_limit_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "limit_by", + "tables": [ + { + "table": "limit_by" + } + ] +} diff --git a/parser/testdata/00410_aggregation_combinators_with_arenas/ast.json b/parser/testdata/00410_aggregation_combinators_with_arenas/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/00410_aggregation_combinators_with_arenas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00411_long_accurate_number_comparison_float/ast.json b/parser/testdata/00411_long_accurate_number_comparison_float/ast.json new file mode 100644 index 0000000000..0f5086fc09 --- /dev/null +++ b/parser/testdata/00411_long_accurate_number_comparison_float/ast.json @@ -0,0 +1,1684 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "0" + }, + { + "type": "String", + "value": "0.000000000" + }, + { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "!=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Float", + "value": 0 + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "=", + "right": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "!=", + "right": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c", + "right": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003c=", + "right": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e", + "right": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + }, + { + "left": { + "type": "Float", + "value": 0 + }, + "op": "\u003e=", + "right": { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00411_merge_tree_where_const_in_set/ast.json b/parser/testdata/00411_merge_tree_where_const_in_set/ast.json new file mode 100644 index 0000000000..411165539e --- /dev/null +++ b/parser/testdata/00411_merge_tree_where_const_in_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "const_in_const", + "tables": [ + { + "table": "const_in_const" + } + ] +} diff --git a/parser/testdata/00412_logical_expressions_optimizer/ast.json b/parser/testdata/00412_logical_expressions_optimizer/ast.json new file mode 100644 index 0000000000..1d5f9ced5f --- /dev/null +++ b/parser/testdata/00412_logical_expressions_optimizer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree", + "tables": [ + { + "table": "merge_tree" + } + ] +} diff --git a/parser/testdata/00413_distinct/ast.json b/parser/testdata/00413_distinct/ast.json new file mode 100644 index 0000000000..578616098f --- /dev/null +++ b/parser/testdata/00413_distinct/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "distinct", + "tables": [ + { + "table": "distinct" + } + ] +} diff --git a/parser/testdata/00413_least_greatest_new_behavior/ast.json b/parser/testdata/00413_least_greatest_new_behavior/ast.json new file mode 100644 index 0000000000..b9a0396e7c --- /dev/null +++ b/parser/testdata/00413_least_greatest_new_behavior/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "least", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "type": "Integer", + "value": 18446744073709551615 + } + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "greatest", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "type": "Integer", + "value": 18446744073709551615 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00414_time_zones_direct_conversion/ast.json b/parser/testdata/00414_time_zones_direct_conversion/ast.json new file mode 100644 index 0000000000..522a6a6a6b --- /dev/null +++ b/parser/testdata/00414_time_zones_direct_conversion/ast.json @@ -0,0 +1,66 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "type": "Integer", + "value": 1301146200 + }, + "op": "+", + "right": { + "left": { + "type": "Integer", + "value": 1800 + }, + "op": "*", + "right": { + "parts": [ + "number" + ] + } + } + }, + "alias": "ts" + }, + { + "name": "toString", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "parts": [ + "ts" + ] + } + ] + }, + { + "type": "String", + "value": "Australia/Sydney" + } + ], + "alias": "time_in_sydney" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 7 + } + } + ] +} diff --git a/parser/testdata/00420_null_in_scalar_subqueries/ast.json b/parser/testdata/00420_null_in_scalar_subqueries/ast.json new file mode 100644 index 0000000000..984c70957c --- /dev/null +++ b/parser/testdata/00420_null_in_scalar_subqueries/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "where": { + "type": "Integer", + "value": 0 + } + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00422_hash_function_constexpr/ast.json b/parser/testdata/00422_hash_function_constexpr/ast.json new file mode 100644 index 0000000000..652ab1811e --- /dev/null +++ b/parser/testdata/00422_hash_function_constexpr/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "cityHash64", + "arguments": [ + { + "type": "String", + "value": "abc" + } + ] + }, + "list": [ + { + "name": "cityHash64", + "arguments": [ + { + "type": "String", + "value": "abc" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00423_storage_log_single_thread/ast.json b/parser/testdata/00423_storage_log_single_thread/ast.json new file mode 100644 index 0000000000..923c5bdad8 --- /dev/null +++ b/parser/testdata/00423_storage_log_single_thread/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "log", + "tables": [ + { + "table": "log" + } + ] +} diff --git a/parser/testdata/00424_shard_aggregate_functions_of_nullable/ast.json b/parser/testdata/00424_shard_aggregate_functions_of_nullable/ast.json new file mode 100644 index 0000000000..7c919f0eea --- /dev/null +++ b/parser/testdata/00424_shard_aggregate_functions_of_nullable/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "avg", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00425_count_nullable/ast.json b/parser/testdata/00425_count_nullable/ast.json new file mode 100644 index 0000000000..cbf64453f6 --- /dev/null +++ b/parser/testdata/00425_count_nullable/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00426_nulls_sorting/ast.json b/parser/testdata/00426_nulls_sorting/ast.json new file mode 100644 index 0000000000..92d770cd0d --- /dev/null +++ b/parser/testdata/00426_nulls_sorting/ast.json @@ -0,0 +1,100 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 12 + }, + { + "type": "Null", + "value": null + } + ] + } + ], + "alias": "x" + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00429_point_in_ellipses/ast.json b/parser/testdata/00429_point_in_ellipses/ast.json new file mode 100644 index 0000000000..cc230a81d4 --- /dev/null +++ b/parser/testdata/00429_point_in_ellipses/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "pointInEllipses", + "arguments": [ + { + "type": "Float", + "value": 33.3 + }, + { + "type": "Float", + "value": 55.3 + }, + { + "type": "Float", + "value": 33.4 + }, + { + "type": "Float", + "value": 55.1 + }, + { + "type": "Float", + "value": 1 + }, + { + "type": "Float", + "value": 1 + } + ], + "alias": "distance" + } + ] + } + ] +} diff --git a/parser/testdata/00432_aggregate_function_scalars_and_constants/ast.json b/parser/testdata/00432_aggregate_function_scalars_and_constants/ast.json new file mode 100644 index 0000000000..5c880b65c1 --- /dev/null +++ b/parser/testdata/00432_aggregate_function_scalars_and_constants/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "agg_func_col", + "tables": [ + { + "table": "agg_func_col" + } + ] +} diff --git a/parser/testdata/00433_ifnull/ast.json b/parser/testdata/00433_ifnull/ast.json new file mode 100644 index 0000000000..6db6b76228 --- /dev/null +++ b/parser/testdata/00433_ifnull/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ifNull", + "arguments": [ + { + "type": "String", + "value": "x" + }, + { + "type": "String", + "value": "y" + } + ], + "alias": "res" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "res" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00435_coalesce/ast.json b/parser/testdata/00435_coalesce/ast.json new file mode 100644 index 0000000000..9b5cd16821 --- /dev/null +++ b/parser/testdata/00435_coalesce/ast.json @@ -0,0 +1,85 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "coalesce" + }, + { + "name": "coalesce", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + }, + { + "name": "coalesce", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "name": "coalesce", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "coalesce", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "name": "coalesce", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "coalesce", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00438_bit_rotate/ast.json b/parser/testdata/00438_bit_rotate/ast.json new file mode 100644 index 0000000000..628140a625 --- /dev/null +++ b/parser/testdata/00438_bit_rotate/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "bitRotateLeft", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775809 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00439_fixed_string_filter/ast.json b/parser/testdata/00439_fixed_string_filter/ast.json new file mode 100644 index 0000000000..8baf5351cf --- /dev/null +++ b/parser/testdata/00439_fixed_string_filter/ast.json @@ -0,0 +1,92 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toFixedString", + "arguments": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 20 + } + }, + "then": { + "type": "String", + "value": "" + }, + "else": { + "type": "String", + "value": "Hello" + } + }, + { + "type": "Integer", + "value": 5 + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 50 + } + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "x" + ] + }, + "op": "!=", + "right": { + "type": "String", + "value": "\u0000\u0000\u0000\u0000\u0000" + } + } + } + ] +} diff --git a/parser/testdata/00440_nulls_merge_tree/ast.json b/parser/testdata/00440_nulls_merge_tree/ast.json new file mode 100644 index 0000000000..3096c52963 --- /dev/null +++ b/parser/testdata/00440_nulls_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nulls", + "tables": [ + { + "table": "nulls" + } + ] +} diff --git a/parser/testdata/00442_filter_by_nullable/ast.json b/parser/testdata/00442_filter_by_nullable/ast.json new file mode 100644 index 0000000000..e8a7090ce9 --- /dev/null +++ b/parser/testdata/00442_filter_by_nullable/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + }, + "where": { + "parts": [ + "x" + ] + } + } + ] +} diff --git a/parser/testdata/00444_join_use_nulls/ast.json b/parser/testdata/00444_join_use_nulls/ast.json new file mode 100644 index 0000000000..9921233014 --- /dev/null +++ b/parser/testdata/00444_join_use_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00445_join_nullable_keys/ast.json b/parser/testdata/00445_join_nullable_keys/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00445_join_nullable_keys/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00446_clear_column_in_partition_zookeeper_long/ast.json b/parser/testdata/00446_clear_column_in_partition_zookeeper_long/ast.json new file mode 100644 index 0000000000..41bbbe9496 --- /dev/null +++ b/parser/testdata/00446_clear_column_in_partition_zookeeper_long/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "===Ordinary case===" + } + ] + } + ] +} diff --git a/parser/testdata/00447_foreach_modifier/ast.json b/parser/testdata/00447_foreach_modifier/ast.json new file mode 100644 index 0000000000..021523f49b --- /dev/null +++ b/parser/testdata/00447_foreach_modifier/ast.json @@ -0,0 +1,26 @@ +{ + "if_not_exists": true, + "table": "data", + "columns": [ + { + "name": "sketch", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Int8" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/00448_replicate_nullable_tuple_generic/ast.json b/parser/testdata/00448_replicate_nullable_tuple_generic/ast.json new file mode 100644 index 0000000000..6706d8b541 --- /dev/null +++ b/parser/testdata/00448_replicate_nullable_tuple_generic/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + }, + { + "name": "arrayJoin", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00448_to_string_cut_to_zero/ast.json b/parser/testdata/00448_to_string_cut_to_zero/ast.json new file mode 100644 index 0000000000..98a15f0067 --- /dev/null +++ b/parser/testdata/00448_to_string_cut_to_zero/ast.json @@ -0,0 +1,72 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "left": { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "op": "=", + "right": { + "name": "toStringCutToZero", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00449_filter_array_nullable_tuple/ast.json b/parser/testdata/00449_filter_array_nullable_tuple/ast.json new file mode 100644 index 0000000000..b733facf47 --- /dev/null +++ b/parser/testdata/00449_filter_array_nullable_tuple/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/00450_higher_order_and_nullable/ast.json b/parser/testdata/00450_higher_order_and_nullable/ast.json new file mode 100644 index 0000000000..0cd4880efa --- /dev/null +++ b/parser/testdata/00450_higher_order_and_nullable/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "condition": { + "left": { + "left": { + "parts": [ + "x" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "then": { + "type": "Null", + "value": null + }, + "else": { + "parts": [ + "x" + ] + } + } + }, + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00451_left_array_join_and_constants/ast.json b/parser/testdata/00451_left_array_join_and_constants/ast.json new file mode 100644 index 0000000000..a596c01bf2 --- /dev/null +++ b/parser/testdata/00451_left_array_join_and_constants/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "arr" + ] + }, + { + "parts": [ + "element" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "alias": "arr" + } + ] + } + ] + } + } + } + } + ] + }, + "array_join": { + "left": true, + "columns": [ + { + "parts": [ + "arr" + ], + "alias": "element" + } + ] + } + } + ] +} diff --git a/parser/testdata/00452_left_array_join_and_nullable/ast.json b/parser/testdata/00452_left_array_join_and_nullable/ast.json new file mode 100644 index 0000000000..f0940936c2 --- /dev/null +++ b/parser/testdata/00452_left_array_join_and_nullable/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "emptyArrayToSingle", + "arguments": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "nullIf", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + } + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "emptyArrayUInt8" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] + } + ], + "alias": "arr" + } + ] + } + ] +} diff --git a/parser/testdata/00453_cast_enum/ast.json b/parser/testdata/00453_cast_enum/ast.json new file mode 100644 index 0000000000..977f87a213 --- /dev/null +++ b/parser/testdata/00453_cast_enum/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cast_enums", + "tables": [ + { + "table": "cast_enums" + } + ] +} diff --git a/parser/testdata/00453_top_k/ast.json b/parser/testdata/00453_top_k/ast.json new file mode 100644 index 0000000000..57c9392287 --- /dev/null +++ b/parser/testdata/00453_top_k/ast.json @@ -0,0 +1,105 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySort", + "arguments": [ + { + "name": "topK", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "parts": [ + "n" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 100 + } + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "n" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00456_alter_nullable/ast.json b/parser/testdata/00456_alter_nullable/ast.json new file mode 100644 index 0000000000..54dea30eaa --- /dev/null +++ b/parser/testdata/00456_alter_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nullable_alter", + "tables": [ + { + "table": "nullable_alter" + } + ] +} diff --git a/parser/testdata/00457_log_tinylog_stripelog_nullable/ast.json b/parser/testdata/00457_log_tinylog_stripelog_nullable/ast.json new file mode 100644 index 0000000000..b5fb3528de --- /dev/null +++ b/parser/testdata/00457_log_tinylog_stripelog_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nullable_00457", + "tables": [ + { + "table": "nullable_00457" + } + ] +} diff --git a/parser/testdata/00458_merge_type_cast/ast.json b/parser/testdata/00458_merge_type_cast/ast.json new file mode 100644 index 0000000000..44b053c7f2 --- /dev/null +++ b/parser/testdata/00458_merge_type_cast/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": " UInt32 | UInt64 " + } + ] + } + ] +} diff --git a/parser/testdata/00459_group_array_insert_at/ast.json b/parser/testdata/00459_group_array_insert_at/ast.json new file mode 100644 index 0000000000..2615aed99f --- /dev/null +++ b/parser/testdata/00459_group_array_insert_at/ast.json @@ -0,0 +1,70 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArrayInsertAt", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00460_vertical_and_totals_extremes/ast.json b/parser/testdata/00460_vertical_and_totals_extremes/ast.json new file mode 100644 index 0000000000..6e127732b0 --- /dev/null +++ b/parser/testdata/00460_vertical_and_totals_extremes/ast.json @@ -0,0 +1,87 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + }, + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ], + "format": { + "parts": [ + "Vertical" + ] + } + } + ] +} diff --git a/parser/testdata/00462_json_true_false_literals/ast.json b/parser/testdata/00462_json_true_false_literals/ast.json new file mode 100644 index 0000000000..479ac9dd43 --- /dev/null +++ b/parser/testdata/00462_json_true_false_literals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "json", + "tables": [ + { + "table": "json" + } + ] +} diff --git a/parser/testdata/00464_array_element_out_of_range/ast.json b/parser/testdata/00464_array_element_out_of_range/ast.json new file mode 100644 index 0000000000..24857b1d27 --- /dev/null +++ b/parser/testdata/00464_array_element_out_of_range/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "index": { + "type": "Integer", + "value": 3 + } + }, + { + "array": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "index": { + "type": "Integer", + "value": 4 + } + }, + { + "array": { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "1" + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "2" + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + "index": { + "op": "-", + "operand": { + "type": "Integer", + "value": 3 + } + } + } + ] + } + ] +} diff --git a/parser/testdata/00464_sort_all_constant_columns/ast.json b/parser/testdata/00464_sort_all_constant_columns/ast.json new file mode 100644 index 0000000000..82c7904e9d --- /dev/null +++ b/parser/testdata/00464_sort_all_constant_columns/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "y" + } + ] + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00465_nullable_default/ast.json b/parser/testdata/00465_nullable_default/ast.json new file mode 100644 index 0000000000..fa00c5a2e0 --- /dev/null +++ b/parser/testdata/00465_nullable_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nullable_00465", + "tables": [ + { + "table": "nullable_00465" + } + ] +} diff --git a/parser/testdata/00466_comments_in_keyword/ast.json b/parser/testdata/00466_comments_in_keyword/ast.json new file mode 100644 index 0000000000..a3dc0e9565 --- /dev/null +++ b/parser/testdata/00466_comments_in_keyword/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00467_qualified_names/ast.json b/parser/testdata/00467_qualified_names/ast.json new file mode 100644 index 0000000000..a148fc1bc1 --- /dev/null +++ b/parser/testdata/00467_qualified_names/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "dummy" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00468_array_join_multiple_arrays_and_use_original_column/ast.json b/parser/testdata/00468_array_join_multiple_arrays_and_use_original_column/ast.json new file mode 100644 index 0000000000..c5d0ecd7c8 --- /dev/null +++ b/parser/testdata/00468_array_join_multiple_arrays_and_use_original_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested", + "tables": [ + { + "table": "nested" + } + ] +} diff --git a/parser/testdata/00469_comparison_of_strings_containing_null_char/ast.json b/parser/testdata/00469_comparison_of_strings_containing_null_char/ast.json new file mode 100644 index 0000000000..f3d49a4576 --- /dev/null +++ b/parser/testdata/00469_comparison_of_strings_containing_null_char/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "**** constant-constant comparisons ****" + } + ] + } + ] +} diff --git a/parser/testdata/00470_identifiers_in_double_quotes/ast.json b/parser/testdata/00470_identifiers_in_double_quotes/ast.json new file mode 100644 index 0000000000..bdf6da3fd2 --- /dev/null +++ b/parser/testdata/00470_identifiers_in_double_quotes/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "numbers", + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00472_compare_uuid_with_constant_string/ast.json b/parser/testdata/00472_compare_uuid_with_constant_string/ast.json new file mode 100644 index 0000000000..e1076af507 --- /dev/null +++ b/parser/testdata/00472_compare_uuid_with_constant_string/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "61f0c404-5cb3-11e7-907b-a6006ad3dba0" + } + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "61f0c404-5cb3-11e7-907b-a6006ad3dba0" + } + } + ] + } + ] +} diff --git a/parser/testdata/00472_create_view_if_not_exists/ast.json b/parser/testdata/00472_create_view_if_not_exists/ast.json new file mode 100644 index 0000000000..db12a278dc --- /dev/null +++ b/parser/testdata/00472_create_view_if_not_exists/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00472", + "tables": [ + { + "table": "t_00472" + } + ] +} diff --git a/parser/testdata/00475_in_join_db_table/ast.json b/parser/testdata/00475_in_join_db_table/ast.json new file mode 100644 index 0000000000..9c2f169222 --- /dev/null +++ b/parser/testdata/00475_in_join_db_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "set", + "tables": [ + { + "table": "set" + } + ] +} diff --git a/parser/testdata/00476_pretty_formats_and_widths/ast.json b/parser/testdata/00476_pretty_formats_and_widths/ast.json new file mode 100644 index 0000000000..b8e60f3744 --- /dev/null +++ b/parser/testdata/00476_pretty_formats_and_widths/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_pretty_highlight_digit_groups", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00477_parsing_data_types/ast.json b/parser/testdata/00477_parsing_data_types/ast.json new file mode 100644 index 0000000000..0cf8d5280d --- /dev/null +++ b/parser/testdata/00477_parsing_data_types/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_00477", + "tables": [ + { + "table": "t_00477" + } + ], + "temporary": true +} diff --git a/parser/testdata/00479_date_and_datetime_to_number/ast.json b/parser/testdata/00479_date_and_datetime_to_number/ast.json new file mode 100644 index 0000000000..15019fc762 --- /dev/null +++ b/parser/testdata/00479_date_and_datetime_to_number/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toYYYYMM", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2017-07-21" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00480_mac_addresses/ast.json b/parser/testdata/00480_mac_addresses/ast.json new file mode 100644 index 0000000000..e6e440be26 --- /dev/null +++ b/parser/testdata/00480_mac_addresses/ast.json @@ -0,0 +1,118 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "01:02:03:04:05:06" + }, + "alias": "mac_str" + }, + { + "name": "MACStringToNum", + "arguments": [ + { + "parts": [ + "mac_str" + ] + } + ], + "alias": "mac_num" + }, + { + "name": "hex", + "arguments": [ + { + "parts": [ + "mac_num" + ] + } + ] + }, + { + "name": "MACNumToString", + "arguments": [ + { + "parts": [ + "mac_num" + ] + } + ], + "alias": "mac_str2" + }, + { + "left": { + "parts": [ + "mac_str" + ] + }, + "op": "=", + "right": { + "parts": [ + "mac_str2" + ] + } + }, + { + "name": "MACStringToOUI", + "arguments": [ + { + "parts": [ + "mac_str" + ] + } + ], + "alias": "oui_num" + }, + { + "name": "hex", + "arguments": [ + { + "parts": [ + "oui_num" + ] + } + ] + }, + { + "name": "MACStringToOUI", + "arguments": [ + { + "name": "substring", + "arguments": [ + { + "parts": [ + "mac_str" + ] + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 8 + } + ] + } + ], + "alias": "oui_num2" + }, + { + "left": { + "parts": [ + "oui_num" + ] + }, + "op": "=", + "right": { + "parts": [ + "oui_num2" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00481_create_view_for_null/ast.json b/parser/testdata/00481_create_view_for_null/ast.json new file mode 100644 index 0000000000..bf66d00101 --- /dev/null +++ b/parser/testdata/00481_create_view_for_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_00481", + "tables": [ + { + "table": "null_00481" + } + ] +} diff --git a/parser/testdata/00481_reading_from_last_granula/ast.json b/parser/testdata/00481_reading_from_last_granula/ast.json new file mode 100644 index 0000000000..d394c5ca61 --- /dev/null +++ b/parser/testdata/00481_reading_from_last_granula/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00481", + "tables": [ + { + "table": "tab_00481" + } + ] +} diff --git a/parser/testdata/00482_subqueries_and_aliases/ast.json b/parser/testdata/00482_subqueries_and_aliases/ast.json new file mode 100644 index 0000000000..62627190c5 --- /dev/null +++ b/parser/testdata/00482_subqueries_and_aliases/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "where": { + "expr": { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "parts": [ + "x" + ] + } + ] + } + ] + } + } + } + ] +} diff --git a/parser/testdata/00483_cast_syntax/ast.json b/parser/testdata/00483_cast_syntax/ast.json new file mode 100644 index 0000000000..a8ef40a3f1 --- /dev/null +++ b/parser/testdata/00483_cast_syntax/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "type": { + "name": "Int8" + } + } + ] + } + ] +} diff --git a/parser/testdata/00483_reading_from_array_structure/ast.json b/parser/testdata/00483_reading_from_array_structure/ast.json new file mode 100644 index 0000000000..fae6bd7679 --- /dev/null +++ b/parser/testdata/00483_reading_from_array_structure/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_00483", + "tables": [ + { + "table": "table_00483" + } + ] +} diff --git a/parser/testdata/00484_preferred_max_column_in_block_size_bytes/ast.json b/parser/testdata/00484_preferred_max_column_in_block_size_bytes/ast.json new file mode 100644 index 0000000000..ab2e57dc4f --- /dev/null +++ b/parser/testdata/00484_preferred_max_column_in_block_size_bytes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00484", + "tables": [ + { + "table": "tab_00484" + } + ] +} diff --git a/parser/testdata/00486_if_fixed_string/ast.json b/parser/testdata/00486_if_fixed_string/ast.json new file mode 100644 index 0000000000..5dbd66f149 --- /dev/null +++ b/parser/testdata/00486_if_fixed_string/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "type": "String", + "value": "hello" + }, + "else": { + "type": "String", + "value": "world" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 5 + } + } + ] +} diff --git a/parser/testdata/00487_if_array_fixed_string/ast.json b/parser/testdata/00487_if_array_fixed_string/ast.json new file mode 100644 index 0000000000..fadff73eef --- /dev/null +++ b/parser/testdata/00487_if_array_fixed_string/ast.json @@ -0,0 +1,116 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "toFixedString", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 5 + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + } + ] + }, + "else": { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "toFixedString", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 5 + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + }, + { + "type": "String", + "value": "c" + } + ] + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 4 + } + } + ] +} diff --git a/parser/testdata/00488_column_name_primary/ast.json b/parser/testdata/00488_column_name_primary/ast.json new file mode 100644 index 0000000000..d0e38d174d --- /dev/null +++ b/parser/testdata/00488_column_name_primary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "primary", + "tables": [ + { + "table": "primary" + } + ] +} diff --git a/parser/testdata/00488_non_ascii_column_names/ast.json b/parser/testdata/00488_non_ascii_column_names/ast.json new file mode 100644 index 0000000000..60e8edef94 --- /dev/null +++ b/parser/testdata/00488_non_ascii_column_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "non_ascii", + "tables": [ + { + "table": "non_ascii" + } + ] +} diff --git a/parser/testdata/00489_pk_subexpression/ast.json b/parser/testdata/00489_pk_subexpression/ast.json new file mode 100644 index 0000000000..c08cf9ed47 --- /dev/null +++ b/parser/testdata/00489_pk_subexpression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk", + "tables": [ + { + "table": "pk" + } + ] +} diff --git a/parser/testdata/00490_special_line_separators_and_characters_outside_of_bmp/ast.json b/parser/testdata/00490_special_line_separators_and_characters_outside_of_bmp/ast.json new file mode 100644 index 0000000000..d63662b232 --- /dev/null +++ b/parser/testdata/00490_special_line_separators_and_characters_outside_of_bmp/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "visitParamExtractString", + "arguments": [ + { + "type": "String", + "value": "{\"x\":\"\\uD800\\udf38\"}" + }, + { + "type": "String", + "value": "x" + } + ], + "alias": "x" + }, + { + "name": "visitParamExtractString", + "arguments": [ + { + "type": "String", + "value": "{\"x\":\"Hello \\u2028 World \\u2029 !\"}" + }, + { + "type": "String", + "value": "x" + } + ], + "alias": "y" + } + ], + "format": { + "parts": [ + "JSONEachRow" + ] + } + } + ] +} diff --git a/parser/testdata/00490_with_select/ast.json b/parser/testdata/00490_with_select/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00490_with_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00491_shard_distributed_and_aliases_in_where_having/ast.json b/parser/testdata/00491_shard_distributed_and_aliases_in_where_having/ast.json new file mode 100644 index 0000000000..53f5c4bdbb --- /dev/null +++ b/parser/testdata/00491_shard_distributed_and_aliases_in_where_having/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "dummy" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "dummy" + ] + }, + { + "expr": { + "op": "NOT", + "operand": { + "parts": [ + "dummy" + ] + } + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "dummy" + ] + } + ], + "having": { + "parts": [ + "x" + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00492_drop_temporary_table/ast.json b/parser/testdata/00492_drop_temporary_table/ast.json new file mode 100644 index 0000000000..701f821ded --- /dev/null +++ b/parser/testdata/00492_drop_temporary_table/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "temp_tab", + "tables": [ + { + "table": "temp_tab" + } + ], + "temporary": true +} diff --git a/parser/testdata/00494_shard_alias_substitution_bug/ast.json b/parser/testdata/00494_shard_alias_substitution_bug/ast.json new file mode 100644 index 0000000000..c5d0ecd7c8 --- /dev/null +++ b/parser/testdata/00494_shard_alias_substitution_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested", + "tables": [ + { + "table": "nested" + } + ] +} diff --git a/parser/testdata/00495_reading_const_zero_column/ast.json b/parser/testdata/00495_reading_const_zero_column/ast.json new file mode 100644 index 0000000000..fd3045602e --- /dev/null +++ b/parser/testdata/00495_reading_const_zero_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "one_table", + "tables": [ + { + "table": "one_table" + } + ] +} diff --git a/parser/testdata/00498_array_functions_concat_slice_push_pop/ast.json b/parser/testdata/00498_array_functions_concat_slice_push_pop/ast.json new file mode 100644 index 0000000000..769bbc8174 --- /dev/null +++ b/parser/testdata/00498_array_functions_concat_slice_push_pop/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "const args" + } + ] + } + ] +} diff --git a/parser/testdata/00498_bitwise_aggregate_functions/ast.json b/parser/testdata/00498_bitwise_aggregate_functions/ast.json new file mode 100644 index 0000000000..7ddb439449 --- /dev/null +++ b/parser/testdata/00498_bitwise_aggregate_functions/ast.json @@ -0,0 +1,114 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 4 + } + }, + "alias": "k" + }, + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "name": "groupBitOr", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "name": "groupBitAnd", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "name": "groupBitXor", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 20 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00499_json_enum_insert/ast.json b/parser/testdata/00499_json_enum_insert/ast.json new file mode 100644 index 0000000000..479ac9dd43 --- /dev/null +++ b/parser/testdata/00499_json_enum_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "json", + "tables": [ + { + "table": "json" + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon/ast.json b/parser/testdata/00500_point_in_polygon/ast.json new file mode 100644 index 0000000000..30e0cfdadd --- /dev/null +++ b/parser/testdata/00500_point_in_polygon/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "inner" + } + ] + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon_2d_const/ast.json b/parser/testdata/00500_point_in_polygon_2d_const/ast.json new file mode 100644 index 0000000000..b12559290a --- /dev/null +++ b/parser/testdata/00500_point_in_polygon_2d_const/ast.json @@ -0,0 +1,88 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "pointInPolygon", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon_3d_const/ast.json b/parser/testdata/00500_point_in_polygon_3d_const/ast.json new file mode 100644 index 0000000000..ddcd63a257 --- /dev/null +++ b/parser/testdata/00500_point_in_polygon_3d_const/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "points_test", + "tables": [ + { + "table": "points_test" + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon_bug/ast.json b/parser/testdata/00500_point_in_polygon_bug/ast.json new file mode 100644 index 0000000000..8da7916ef4 --- /dev/null +++ b/parser/testdata/00500_point_in_polygon_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "coords", + "tables": [ + { + "table": "coords" + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon_bug_2/ast.json b/parser/testdata/00500_point_in_polygon_bug_2/ast.json new file mode 100644 index 0000000000..e658c06d88 --- /dev/null +++ b/parser/testdata/00500_point_in_polygon_bug_2/ast.json @@ -0,0 +1,174 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "pointInPolygon", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 35.45285 + }, + { + "type": "Float", + "value": 58.72587 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 32.947998 + }, + { + "type": "Float", + "value": 59.506455 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 34.222412 + }, + { + "type": "Float", + "value": 59.215312 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 33.343506 + }, + { + "type": "Float", + "value": 58.551061 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 34.859619 + }, + { + "type": "Float", + "value": 58.938673 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 36.463623 + }, + { + "type": "Float", + "value": 58.528125 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 35.397949 + }, + { + "type": "Float", + "value": 59.215312 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 36.804199 + }, + { + "type": "Float", + "value": 59.495303 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 35.2771 + }, + { + "type": "Float", + "value": 59.50088 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 34.892578 + }, + { + "type": "Float", + "value": 60.267066 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 34.343262 + }, + { + "type": "Float", + "value": 59.517603 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 32.947998 + }, + { + "type": "Float", + "value": 59.506455 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon_bug_3_linestring_rotation_precision/ast.json b/parser/testdata/00500_point_in_polygon_bug_3_linestring_rotation_precision/ast.json new file mode 100644 index 0000000000..75885b723c --- /dev/null +++ b/parser/testdata/00500_point_in_polygon_bug_3_linestring_rotation_precision/ast.json @@ -0,0 +1,4607 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "pointInPolygon", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.6671509 + }, + { + "type": "Float", + "value": 10.7674952 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667161868227 + }, + { + "type": "Float", + "value": 10.7674952 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667165727127 + }, + { + "type": "Float", + "value": 10.7675059912261 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667170817563 + }, + { + "type": "Float", + "value": 10.7674904752629 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667229225265 + }, + { + "type": "Float", + "value": 10.7672278502066 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667231193621 + }, + { + "type": "Float", + "value": 10.7672115129572 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667229912029 + }, + { + "type": "Float", + "value": 10.7671951075415 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667225430503 + }, + { + "type": "Float", + "value": 10.767179274157 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667217923927 + }, + { + "type": "Float", + "value": 10.7671646306786 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667207685234 + }, + { + "type": "Float", + "value": 10.7671517485471 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667195113975 + }, + { + "type": "Float", + "value": 10.7671411304688 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667180700725 + }, + { + "type": "Float", + "value": 10.7671331907989 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.66716500794 + }, + { + "type": "Float", + "value": 10.7671282393715 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666628232995 + }, + { + "type": "Float", + "value": 10.7670156787539 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666612233649 + }, + { + "type": "Float", + "value": 10.7670139127584 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666596193354 + }, + { + "type": "Float", + "value": 10.7670152569112 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666580711053 + }, + { + "type": "Float", + "value": 10.7670196610218 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666566364856 + }, + { + "type": "Float", + "value": 10.7670269606408 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666553690448 + }, + { + "type": "Float", + "value": 10.7670368832008 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666543161092 + }, + { + "type": "Float", + "value": 10.767049058194 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666535169952 + }, + { + "type": "Float", + "value": 10.7670630310067 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666530015418 + }, + { + "type": "Float", + "value": 10.7670782798948 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666482284259 + }, + { + "type": "Float", + "value": 10.7672828714379 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666480170141 + }, + { + "type": "Float", + "value": 10.7672985245675 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666481048788 + }, + { + "type": "Float", + "value": 10.7673142953614 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666484888609 + }, + { + "type": "Float", + "value": 10.7673296167758 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666491551541 + }, + { + "type": "Float", + "value": 10.7673439379244 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666500798017 + }, + { + "type": "Float", + "value": 10.7673567438858 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666512295576 + }, + { + "type": "Float", + "value": 10.7673675742178 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666525630821 + }, + { + "type": "Float", + "value": 10.7673760395122 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667032331859 + }, + { + "type": "Float", + "value": 10.7676338521733 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.6671413386 + }, + { + "type": "Float", + "value": 10.7676893154858 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667371048786 + }, + { + "type": "Float", + "value": 10.7678061934666 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667552760053 + }, + { + "type": "Float", + "value": 10.7678987010209 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667801848625 + }, + { + "type": "Float", + "value": 10.7680278028917 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667817742281 + }, + { + "type": "Float", + "value": 10.7680340673957 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667834579682 + }, + { + "type": "Float", + "value": 10.7680369577679 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.66785165264 + }, + { + "type": "Float", + "value": 10.7680363524383 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667868243061 + }, + { + "type": "Float", + "value": 10.7680322768672 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667878683314 + }, + { + "type": "Float", + "value": 10.7680285412847 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667885469819 + }, + { + "type": "Float", + "value": 10.7680268413536 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667892390269 + }, + { + "type": "Float", + "value": 10.7680258148018 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667899378015 + }, + { + "type": "Float", + "value": 10.7680254715159 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667906365761 + }, + { + "type": "Float", + "value": 10.7680258148018 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667913286211 + }, + { + "type": "Float", + "value": 10.7680268413536 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667920072716 + }, + { + "type": "Float", + "value": 10.7680285412847 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667926659921 + }, + { + "type": "Float", + "value": 10.7680308982244 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667932984386 + }, + { + "type": "Float", + "value": 10.7680338894736 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667938985204 + }, + { + "type": "Float", + "value": 10.7680374862253 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667944604583 + }, + { + "type": "Float", + "value": 10.7680416538412 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667949788405 + }, + { + "type": "Float", + "value": 10.7680463521828 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667954486747 + }, + { + "type": "Float", + "value": 10.7680515360051 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667958654362 + }, + { + "type": "Float", + "value": 10.7680571553826 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667962251113 + }, + { + "type": "Float", + "value": 10.7680631561994 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667965242363 + }, + { + "type": "Float", + "value": 10.7680694806664 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667967599303 + }, + { + "type": "Float", + "value": 10.7680760678724 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667969299234 + }, + { + "type": "Float", + "value": 10.7680828543774 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667970926246 + }, + { + "type": "Float", + "value": 10.7680938227996 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667974657027 + }, + { + "type": "Float", + "value": 10.7681089916695 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667981154238 + }, + { + "type": "Float", + "value": 10.7681231972879 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667990189396 + }, + { + "type": "Float", + "value": 10.7681359400994 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668001444773 + }, + { + "type": "Float", + "value": 10.7681467719897 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668014524559 + }, + { + "type": "Float", + "value": 10.7681553120441 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668198488147 + }, + { + "type": "Float", + "value": 10.7682521458591 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669562015793 + }, + { + "type": "Float", + "value": 10.7689901124345 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669614757162 + }, + { + "type": "Float", + "value": 10.7690820717448 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669623023723 + }, + { + "type": "Float", + "value": 10.7690939566151 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669633223154 + }, + { + "type": "Float", + "value": 10.7691042307472 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669645047385 + }, + { + "type": "Float", + "value": 10.7691125838155 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.670748051536 + }, + { + "type": "Float", + "value": 10.7697559307954 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.670751419717 + }, + { + "type": "Float", + "value": 10.7697577924329 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671035494073 + }, + { + "type": "Float", + "value": 10.7699063431327 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671270162713 + }, + { + "type": "Float", + "value": 10.7700364834325 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67127192876 + }, + { + "type": "Float", + "value": 10.7700374352053 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671437929267 + }, + { + "type": "Float", + "value": 10.7701243344783 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671665917937 + }, + { + "type": "Float", + "value": 10.7702517637461 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67166656035 + }, + { + "type": "Float", + "value": 10.7702521191025 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671943689514 + }, + { + "type": "Float", + "value": 10.7704038245574 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671943806749 + }, + { + "type": "Float", + "value": 10.7704038886117 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.6722776446 + }, + { + "type": "Float", + "value": 10.7705859421916 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.672278295949 + }, + { + "type": "Float", + "value": 10.7705862936499 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673020324076 + }, + { + "type": "Float", + "value": 10.7709824352208 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673433726727 + }, + { + "type": "Float", + "value": 10.7712057751884 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673694081332 + }, + { + "type": "Float", + "value": 10.7713489702214 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673977066657 + }, + { + "type": "Float", + "value": 10.7715146655761 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674254247937 + }, + { + "type": "Float", + "value": 10.7716778144336 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67440928634 + }, + { + "type": "Float", + "value": 10.7717698954974 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674658478275 + }, + { + "type": "Float", + "value": 10.7719268836667 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674658802254 + }, + { + "type": "Float", + "value": 10.7719270867325 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.6748919449 + }, + { + "type": "Float", + "value": 10.7720724734391 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675071660589 + }, + { + "type": "Float", + "value": 10.7721853602936 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675350447469 + }, + { + "type": "Float", + "value": 10.7723606751059 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675350748696 + }, + { + "type": "Float", + "value": 10.7723608636368 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.6756252856 + }, + { + "type": "Float", + "value": 10.7725318758852 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675888735092 + }, + { + "type": "Float", + "value": 10.7726957126602 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676114500069 + }, + { + "type": "Float", + "value": 10.7728361211927 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676379504941 + }, + { + "type": "Float", + "value": 10.7730007692002 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67661713771 + }, + { + "type": "Float", + "value": 10.7731502653527 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676617572241 + }, + { + "type": "Float", + "value": 10.773150536857 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676852995814 + }, + { + "type": "Float", + "value": 10.7732966297465 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677284352687 + }, + { + "type": "Float", + "value": 10.7735807849214 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677738143311 + }, + { + "type": "Float", + "value": 10.7738851794554 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677752655777 + }, + { + "type": "Float", + "value": 10.7738929549383 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677768414072 + }, + { + "type": "Float", + "value": 10.773897724206 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677784802596 + }, + { + "type": "Float", + "value": 10.7738993009456 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677801181124 + }, + { + "type": "Float", + "value": 10.7738976235612 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677816909825 + }, + { + "type": "Float", + "value": 10.7738927575805 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677831374252 + }, + { + "type": "Float", + "value": 10.7738848930944 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677844009349 + }, + { + "type": "Float", + "value": 10.7738743373313 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677920079221 + }, + { + "type": "Float", + "value": 10.7737967983562 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678239245717 + }, + { + "type": "Float", + "value": 10.7735243703649 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67839926068 + }, + { + "type": "Float", + "value": 10.7733892116467 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678400691571 + }, + { + "type": "Float", + "value": 10.7733879749217 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678515896101 + }, + { + "type": "Float", + "value": 10.7732860955802 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678557979259 + }, + { + "type": "Float", + "value": 10.7732504310319 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67855930664 + }, + { + "type": "Float", + "value": 10.7732492818517 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679033975331 + }, + { + "type": "Float", + "value": 10.7728295048433 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679053201911 + }, + { + "type": "Float", + "value": 10.772844898411 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679632133733 + }, + { + "type": "Float", + "value": 10.7733262832973 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679771732358 + }, + { + "type": "Float", + "value": 10.7734524450384 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679773325229 + }, + { + "type": "Float", + "value": 10.7734538481348 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680011463819 + }, + { + "type": "Float", + "value": 10.7736582857586 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680175801881 + }, + { + "type": "Float", + "value": 10.7738018862846 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680176891116 + }, + { + "type": "Float", + "value": 10.7738028216402 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680320149367 + }, + { + "type": "Float", + "value": 10.773923712053 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680672123374 + }, + { + "type": "Float", + "value": 10.7742204563391 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68094213423 + }, + { + "type": "Float", + "value": 10.7744504786771 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68094233625 + }, + { + "type": "Float", + "value": 10.7744506502241 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68124725775 + }, + { + "type": "Float", + "value": 10.7747087432576 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681247329066 + }, + { + "type": "Float", + "value": 10.7747088035527 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681470746982 + }, + { + "type": "Float", + "value": 10.7748974804345 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681471338135 + }, + { + "type": "Float", + "value": 10.7748979749973 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681840030697 + }, + { + "type": "Float", + "value": 10.7752035373868 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682304929691 + }, + { + "type": "Float", + "value": 10.7756040772245 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682308650112 + }, + { + "type": "Float", + "value": 10.7756071005185 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682312917236 + }, + { + "type": "Float", + "value": 10.7756103687835 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682359764439 + }, + { + "type": "Float", + "value": 10.7756490693986 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682640114944 + }, + { + "type": "Float", + "value": 10.7758996628849 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682644070655 + }, + { + "type": "Float", + "value": 10.7759029839554 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682711710544 + }, + { + "type": "Float", + "value": 10.7759562859055 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682806505954 + }, + { + "type": "Float", + "value": 10.7760368956153 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68280745353 + }, + { + "type": "Float", + "value": 10.776037689352 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683169164535 + }, + { + "type": "Float", + "value": 10.7763361378178 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68363265876 + }, + { + "type": "Float", + "value": 10.7767252395911 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683677875719 + }, + { + "type": "Float", + "value": 10.7767650291442 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683797775698 + }, + { + "type": "Float", + "value": 10.77688614766 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.684138558845 + }, + { + "type": "Float", + "value": 10.7772306328105 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68414063031 + }, + { + "type": "Float", + "value": 10.7772326552454 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.684827531639 + }, + { + "type": "Float", + "value": 10.777880369263 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.685228619785 + }, + { + "type": "Float", + "value": 10.7782605077038 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.685228896163 + }, + { + "type": "Float", + "value": 10.7782607684525 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.686025996525 + }, + { + "type": "Float", + "value": 10.7790093622583 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.686026813787 + }, + { + "type": "Float", + "value": 10.7790101368229 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68658269265 + }, + { + "type": "Float", + "value": 10.7795369738106 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.687194479537 + }, + { + "type": "Float", + "value": 10.7801158277128 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.688401155505 + }, + { + "type": "Float", + "value": 10.7812670656457 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.688401571342 + }, + { + "type": "Float", + "value": 10.7812674596561 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.689622367701 + }, + { + "type": "Float", + "value": 10.7824162362891 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690002723257 + }, + { + "type": "Float", + "value": 10.7827815572149 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690002908997 + }, + { + "type": "Float", + "value": 10.7827817350625 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690359062158 + }, + { + "type": "Float", + "value": 10.7831217027417 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690359638585 + }, + { + "type": "Float", + "value": 10.7831222477508 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690747557266 + }, + { + "type": "Float", + "value": 10.7834855403784 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.691628272565 + }, + { + "type": "Float", + "value": 10.7843952548301 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692179613338 + }, + { + "type": "Float", + "value": 10.7849709155958 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692179802225 + }, + { + "type": "Float", + "value": 10.7849711121697 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692743910048 + }, + { + "type": "Float", + "value": 10.7855562574979 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693288875836 + }, + { + "type": "Float", + "value": 10.7861225208133 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693601234729 + }, + { + "type": "Float", + "value": 10.7864484801726 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.69220838651 + }, + { + "type": "Float", + "value": 10.7875617536129 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692196691453 + }, + { + "type": "Float", + "value": 10.787573150248 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692187444486 + }, + { + "type": "Float", + "value": 10.7875866094924 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692181000965 + }, + { + "type": "Float", + "value": 10.7876016141149 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692177608512 + }, + { + "type": "Float", + "value": 10.7876175874962 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692177397496 + }, + { + "type": "Float", + "value": 10.7876339157883 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692180376026 + }, + { + "type": "Float", + "value": 10.7876499715041 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692186429639 + }, + { + "type": "Float", + "value": 10.7876651376314 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692195325699 + }, + { + "type": "Float", + "value": 10.7876788313445 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692206722334 + }, + { + "type": "Float", + "value": 10.7876905264015 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692220181578 + }, + { + "type": "Float", + "value": 10.7876997733682 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692235186201 + }, + { + "type": "Float", + "value": 10.7877062168886 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692251159582 + }, + { + "type": "Float", + "value": 10.787709609342 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692267487874 + }, + { + "type": "Float", + "value": 10.7877098203582 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.69228354359 + }, + { + "type": "Float", + "value": 10.7877068418281 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692298709717 + }, + { + "type": "Float", + "value": 10.7877007882148 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.69231240343 + }, + { + "type": "Float", + "value": 10.7876918921553 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693776442708 + }, + { + "type": "Float", + "value": 10.7865217172423 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693788736175 + }, + { + "type": "Float", + "value": 10.7865096022178 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693798269005 + }, + { + "type": "Float", + "value": 10.7864952137411 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693804631934 + }, + { + "type": "Float", + "value": 10.7864791695437 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693807551784 + }, + { + "type": "Float", + "value": 10.7864621584413 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693806903199 + }, + { + "type": "Float", + "value": 10.7864449107613 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693802714026 + }, + { + "type": "Float", + "value": 10.7864281669878 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693795164114 + }, + { + "type": "Float", + "value": 10.786412645971 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.693784577601 + }, + { + "type": "Float", + "value": 10.7863990140651 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.69340910087 + }, + { + "type": "Float", + "value": 10.7860071886444 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.69340897739 + }, + { + "type": "Float", + "value": 10.7860070600637 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.692863924954 + }, + { + "type": "Float", + "value": 10.7854407067139 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.69229983717 + }, + { + "type": "Float", + "value": 10.7848555821281 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.691748435669 + }, + { + "type": "Float", + "value": 10.7842798579551 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.691748124777 + }, + { + "type": "Float", + "value": 10.7842795350934 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690865834778 + }, + { + "type": "Float", + "value": 10.7833681940925 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690862927107 + }, + { + "type": "Float", + "value": 10.7833653342196 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690473809086 + }, + { + "type": "Float", + "value": 10.7830009183885 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.690118035849 + }, + { + "type": "Float", + "value": 10.7826613133679 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.689737465891 + }, + { + "type": "Float", + "value": 10.7822957865149 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.689736848623 + }, + { + "type": "Float", + "value": 10.7822951996834 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.688515950726 + }, + { + "type": "Float", + "value": 10.7811463275029 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.687309357068 + }, + { + "type": "Float", + "value": 10.7799951680976 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.687309106711 + }, + { + "type": "Float", + "value": 10.779994930232 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.686697270266 + }, + { + "type": "Float", + "value": 10.7794160294802 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.686141416688 + }, + { + "type": "Float", + "value": 10.7788892164565 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.686140461741 + }, + { + "type": "Float", + "value": 10.7788883114 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.686140185762 + }, + { + "type": "Float", + "value": 10.7788880510296 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.6853430856 + }, + { + "type": "Float", + "value": 10.7781394574112 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.684942058447 + }, + { + "type": "Float", + "value": 10.7777593767781 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.684941904463 + }, + { + "type": "Float", + "value": 10.7777592312084 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.684255979358 + }, + { + "type": "Float", + "value": 10.7771124377212 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683916204215 + }, + { + "type": "Float", + "value": 10.776768971525 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683794256559 + }, + { + "type": "Float", + "value": 10.7766457845149 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68379008676 + }, + { + "type": "Float", + "value": 10.7766418525893 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683741989497 + }, + { + "type": "Float", + "value": 10.7765995284558 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683740519326 + }, + { + "type": "Float", + "value": 10.7765982647987 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683276011394 + }, + { + "type": "Float", + "value": 10.7762083120217 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.683275466929 + }, + { + "type": "Float", + "value": 10.7762078588774 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68291395946 + }, + { + "type": "Float", + "value": 10.77590957835 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682818451152 + }, + { + "type": "Float", + "value": 10.775828362424 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682816046951 + }, + { + "type": "Float", + "value": 10.7758263940715 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682749215964 + }, + { + "type": "Float", + "value": 10.7757737295564 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682469581984 + }, + { + "type": "Float", + "value": 10.775523776542 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682467121137 + }, + { + "type": "Float", + "value": 10.7755216616573 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682417839663 + }, + { + "type": "Float", + "value": 10.775480950083 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.68241543796 + }, + { + "type": "Float", + "value": 10.7754790393628 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.682411856108 + }, + { + "type": "Float", + "value": 10.7754762959601 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681948170223 + }, + { + "type": "Float", + "value": 10.775076801292 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681946953215 + }, + { + "type": "Float", + "value": 10.7750757728772 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681577943952 + }, + { + "type": "Float", + "value": 10.7747699480145 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681354856141 + }, + { + "type": "Float", + "value": 10.7745815499075 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.681050071432 + }, + { + "type": "Float", + "value": 10.7743235726569 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680779998801 + }, + { + "type": "Float", + "value": 10.774093497693 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680779672798 + }, + { + "type": "Float", + "value": 10.7740932214111 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680427578845 + }, + { + "type": "Float", + "value": 10.7737963760106 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680284883706 + }, + { + "type": "Float", + "value": 10.7736759607876 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680120811518 + }, + { + "type": "Float", + "value": 10.7735325925854 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.680120259999 + }, + { + "type": "Float", + "value": 10.7735321149047 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679882649978 + }, + { + "type": "Float", + "value": 10.7733281310479 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679742564868 + }, + { + "type": "Float", + "value": 10.7732015296478 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67973997054 + }, + { + "type": "Float", + "value": 10.7731992804165 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679159125009 + }, + { + "type": "Float", + "value": 10.772716304271 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679157929246 + }, + { + "type": "Float", + "value": 10.7727153285815 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679083371982 + }, + { + "type": "Float", + "value": 10.7726556350576 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679069423592 + }, + { + "type": "Float", + "value": 10.7726465921904 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679053957365 + }, + { + "type": "Float", + "value": 10.7726404990091 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679037589221 + }, + { + "type": "Float", + "value": 10.7726375981655 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679020970997 + }, + { + "type": "Float", + "value": 10.7726380051815 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.679004764489 + }, + { + "type": "Float", + "value": 10.7726417038483 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678989615098 + }, + { + "type": "Float", + "value": 10.7726485468719 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678976126125 + }, + { + "type": "Float", + "value": 10.772658261739 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678449597495 + }, + { + "type": "Float", + "value": 10.7731239014943 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678407514754 + }, + { + "type": "Float", + "value": 10.773159565689 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678406188192 + }, + { + "type": "Float", + "value": 10.7731607141448 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678291034854 + }, + { + "type": "Float", + "value": 10.7732625482153 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678131577851 + }, + { + "type": "Float", + "value": 10.7733972356454 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.678131249559 + }, + { + "type": "Float", + "value": 10.7733975143985 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677809116892 + }, + { + "type": "Float", + "value": 10.7736724741964 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677803734254 + }, + { + "type": "Float", + "value": 10.7736774962862 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.67777351642 + }, + { + "type": "Float", + "value": 10.773708297704 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677376870851 + }, + { + "type": "Float", + "value": 10.7734422350384 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.677376291861 + }, + { + "type": "Float", + "value": 10.7734418501559 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676943701895 + }, + { + "type": "Float", + "value": 10.7731568826838 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676941799819 + }, + { + "type": "Float", + "value": 10.7731556663352 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676705634648 + }, + { + "type": "Float", + "value": 10.7730091132449 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676468020922 + }, + { + "type": "Float", + "value": 10.7728596290723 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676467624617 + }, + { + "type": "Float", + "value": 10.7728593813034 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.676202468827 + }, + { + "type": "Float", + "value": 10.7726946395397 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675976718772 + }, + { + "type": "Float", + "value": 10.7725542402878 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675713344944 + }, + { + "type": "Float", + "value": 10.7723904505946 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675438984881 + }, + { + "type": "Float", + "value": 10.7722195485022 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.675160330528 + }, + { + "type": "Float", + "value": 10.7720443170291 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674980445983 + }, + { + "type": "Float", + "value": 10.7719313240966 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674980215342 + }, + { + "type": "Float", + "value": 10.7719311797465 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674747119479 + }, + { + "type": "Float", + "value": 10.7717858222138 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674497164595 + }, + { + "type": "Float", + "value": 10.7716283533947 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674495300219 + }, + { + "type": "Float", + "value": 10.7716272127471 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674339180867 + }, + { + "type": "Float", + "value": 10.7715344896819 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674338897981 + }, + { + "type": "Float", + "value": 10.771534322423 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674061493048 + }, + { + "type": "Float", + "value": 10.7713710419232 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.674061328848 + }, + { + "type": "Float", + "value": 10.7713709455279 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673777295695 + }, + { + "type": "Float", + "value": 10.7712046366425 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673775349509 + }, + { + "type": "Float", + "value": 10.7712035319333 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673513740027 + }, + { + "type": "Float", + "value": 10.7710596467179 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673513190173 + }, + { + "type": "Float", + "value": 10.7710593469847 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673099330442 + }, + { + "type": "Float", + "value": 10.7708357600807 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.673098966779 + }, + { + "type": "Float", + "value": 10.7708355647753 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.672357083034 + }, + { + "type": "Float", + "value": 10.7704395002842 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.672023628724 + }, + { + "type": "Float", + "value": 10.7702576558632 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671746880137 + }, + { + "type": "Float", + "value": 10.7701061587426 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671518215262 + }, + { + "type": "Float", + "value": 10.7699783515251 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671516207112 + }, + { + "type": "Float", + "value": 10.7699772649622 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671350083838 + }, + { + "type": "Float", + "value": 10.7698903014222 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671115399209 + }, + { + "type": "Float", + "value": 10.7697601522552 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.671113600766 + }, + { + "type": "Float", + "value": 10.7697591835329 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.670830326847 + }, + { + "type": "Float", + "value": 10.7696110514048 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.66974820551 + }, + { + "type": "Float", + "value": 10.7689798847013 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.66969475177 + }, + { + "type": "Float", + "value": 10.7688866833063 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669685913661 + }, + { + "type": "Float", + "value": 10.7688741199651 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669674918986 + }, + { + "type": "Float", + "value": 10.7688633930448 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.669662141606 + }, + { + "type": "Float", + "value": 10.7688548673033 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668277363011 + }, + { + "type": "Float", + "value": 10.7681053993183 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668276514094 + }, + { + "type": "Float", + "value": 10.7681049461882 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668126503268 + }, + { + "type": "Float", + "value": 10.7680259842551 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668125839186 + }, + { + "type": "Float", + "value": 10.7680237950692 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.66812072496 + }, + { + "type": "Float", + "value": 10.7680095017658 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668117596648 + }, + { + "type": "Float", + "value": 10.7680019493532 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.66811110606 + }, + { + "type": "Float", + "value": 10.7679882261576 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668107252546 + }, + { + "type": "Float", + "value": 10.7679810167398 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668099448104 + }, + { + "type": "Float", + "value": 10.7679679958141 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668094906497 + }, + { + "type": "Float", + "value": 10.767961198818 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668085863361 + }, + { + "type": "Float", + "value": 10.7679490055608 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668080677403 + }, + { + "type": "Float", + "value": 10.7679426864524 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668070482664 + }, + { + "type": "Float", + "value": 10.7679314382913 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668064702296 + }, + { + "type": "Float", + "value": 10.7679256579236 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668053454135 + }, + { + "type": "Float", + "value": 10.7679154631847 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668047135024 + }, + { + "type": "Float", + "value": 10.7679102772246 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668034941766 + }, + { + "type": "Float", + "value": 10.7679012340887 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668028144776 + }, + { + "type": "Float", + "value": 10.7678966924853 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668015123851 + }, + { + "type": "Float", + "value": 10.7678888880428 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.668007914429 + }, + { + "type": "Float", + "value": 10.7678850345264 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667994191233 + }, + { + "type": "Float", + "value": 10.7678785439383 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667986638821 + }, + { + "type": "Float", + "value": 10.7678754156266 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667972345518 + }, + { + "type": "Float", + "value": 10.7678703014008 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667964522841 + }, + { + "type": "Float", + "value": 10.7678679284177 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667949797082 + }, + { + "type": "Float", + "value": 10.7678642398071 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667941779481 + }, + { + "type": "Float", + "value": 10.7678626450072 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667926763083 + }, + { + "type": "Float", + "value": 10.767860417535 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667918627772 + }, + { + "type": "Float", + "value": 10.7678596162768 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667903465352 + }, + { + "type": "Float", + "value": 10.7678588713949 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667895290678 + }, + { + "type": "Float", + "value": 10.7678588713949 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667880128258 + }, + { + "type": "Float", + "value": 10.7678596162768 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667871992947 + }, + { + "type": "Float", + "value": 10.767860417535 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667856976549 + }, + { + "type": "Float", + "value": 10.7678626450072 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667848958948 + }, + { + "type": "Float", + "value": 10.7678642398071 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667848526162 + }, + { + "type": "Float", + "value": 10.7678643482145 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667629153721 + }, + { + "type": "Float", + "value": 10.7677506481269 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667628614008 + }, + { + "type": "Float", + "value": 10.7677503708842 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.66744662399 + }, + { + "type": "Float", + "value": 10.7676577214203 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667216888626 + }, + { + "type": "Float", + "value": 10.7675408306262 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667161868227 + }, + { + "type": "Float", + "value": 10.7675128359024 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667012119458 + }, + { + "type": "Float", + "value": 10.7674366427911 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666659357657 + }, + { + "type": "Float", + "value": 10.7672571553777 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.666673753979 + }, + { + "type": "Float", + "value": 10.7671954479766 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.667048293768 + }, + { + "type": "Float", + "value": 10.7672739882109 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 106.6670141 + }, + { + "type": "Float", + "value": 10.7674274 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon_empty_bound/ast.json b/parser/testdata/00500_point_in_polygon_empty_bound/ast.json new file mode 100644 index 0000000000..98d4d8c6dc --- /dev/null +++ b/parser/testdata/00500_point_in_polygon_empty_bound/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "validate_polygons", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00500_point_in_polygon_non_const_poly/ast.json b/parser/testdata/00500_point_in_polygon_non_const_poly/ast.json new file mode 100644 index 0000000000..3168171448 --- /dev/null +++ b/parser/testdata/00500_point_in_polygon_non_const_poly/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "polygons", + "tables": [ + { + "table": "polygons" + } + ] +} diff --git a/parser/testdata/00502_custom_partitioning_local/ast.json b/parser/testdata/00502_custom_partitioning_local/ast.json new file mode 100644 index 0000000000..de0df7c229 --- /dev/null +++ b/parser/testdata/00502_custom_partitioning_local/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "*** Not partitioned ***" + } + ] + } + ] +} diff --git a/parser/testdata/00502_custom_partitioning_replicated_zookeeper_long/ast.json b/parser/testdata/00502_custom_partitioning_replicated_zookeeper_long/ast.json new file mode 100644 index 0000000000..96ff9c3589 --- /dev/null +++ b/parser/testdata/00502_custom_partitioning_replicated_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "replication_alter_partitions_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/00502_sum_map/ast.json b/parser/testdata/00502_sum_map/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00502_sum_map/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00504_mergetree_arrays_rw/ast.json b/parser/testdata/00504_mergetree_arrays_rw/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/00504_mergetree_arrays_rw/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00506_shard_global_in_union/ast.json b/parser/testdata/00506_shard_global_in_union/ast.json new file mode 100644 index 0000000000..9476000898 --- /dev/null +++ b/parser/testdata/00506_shard_global_in_union/ast.json @@ -0,0 +1,89 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "X" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "X" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "Y" + } + ] + } + ] + } + } + } + } + ] + } + }, + { + "columns": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "X" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00506_union_distributed/ast.json b/parser/testdata/00506_union_distributed/ast.json new file mode 100644 index 0000000000..54a88547c6 --- /dev/null +++ b/parser/testdata/00506_union_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_foreground_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00507_sumwithoverflow/ast.json b/parser/testdata/00507_sumwithoverflow/ast.json new file mode 100644 index 0000000000..a245d94a00 --- /dev/null +++ b/parser/testdata/00507_sumwithoverflow/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "n" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toUInt16", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "n" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00508_materialized_view_to/ast.json b/parser/testdata/00508_materialized_view_to/ast.json new file mode 100644 index 0000000000..f432c33938 --- /dev/null +++ b/parser/testdata/00508_materialized_view_to/ast.json @@ -0,0 +1,14 @@ +{ + "table": "src", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "Null" + } +} diff --git a/parser/testdata/00509_extended_storage_definition_syntax_zookeeper/ast.json b/parser/testdata/00509_extended_storage_definition_syntax_zookeeper/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/00509_extended_storage_definition_syntax_zookeeper/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00510_materizlized_view_and_deduplication_zookeeper/ast.json b/parser/testdata/00510_materizlized_view_and_deduplication_zookeeper/ast.json new file mode 100644 index 0000000000..81390327d8 --- /dev/null +++ b/parser/testdata/00510_materizlized_view_and_deduplication_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "with_deduplication", + "tables": [ + { + "table": "with_deduplication" + } + ] +} diff --git a/parser/testdata/00513_fractional_time_zones/ast.json b/parser/testdata/00513_fractional_time_zones/ast.json new file mode 100644 index 0000000000..d09341c8d6 --- /dev/null +++ b/parser/testdata/00513_fractional_time_zones/ast.json @@ -0,0 +1,92 @@ +{ + "selects": [ + { + "with": [ + { + "name": "t", + "query": { + "left": { + "name": "toDateTime", + "arguments": [ + { + "type": "Integer", + "value": 1509138000 + } + ] + }, + "op": "+", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 300 + } + } + } + } + ], + "columns": [ + { + "name": "toHour", + "arguments": [ + { + "parts": [ + "t" + ] + }, + { + "type": "String", + "value": "Asia/Kolkata" + } + ], + "alias": "h" + }, + { + "name": "toString", + "arguments": [ + { + "name": "toStartOfHour", + "arguments": [ + { + "parts": [ + "t" + ] + }, + { + "type": "String", + "value": "Asia/Kolkata" + } + ] + }, + { + "type": "String", + "value": "Asia/Kolkata" + } + ], + "alias": "h_start" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 12 + } + } + ] +} diff --git a/parser/testdata/00514_interval_operators/ast.json b/parser/testdata/00514_interval_operators/ast.json new file mode 100644 index 0000000000..9a04b5e1f7 --- /dev/null +++ b/parser/testdata/00514_interval_operators/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Etc/UTC" + } + } + ] +} diff --git a/parser/testdata/00515_enhanced_time_zones/ast.json b/parser/testdata/00515_enhanced_time_zones/ast.json new file mode 100644 index 0000000000..a623c965d4 --- /dev/null +++ b/parser/testdata/00515_enhanced_time_zones/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_snowflake_conversion_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00515_gcd_lcm/ast.json b/parser/testdata/00515_gcd_lcm/ast.json new file mode 100644 index 0000000000..61969f2354 --- /dev/null +++ b/parser/testdata/00515_gcd_lcm/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "gcd", + "arguments": [ + { + "type": "Integer", + "value": 1280 + }, + { + "type": "Integer", + "value": 1024 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00515_shard_desc_table_functions_and_subqueries/ast.json b/parser/testdata/00515_shard_desc_table_functions_and_subqueries/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/00515_shard_desc_table_functions_and_subqueries/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/00516_deduplication_after_drop_partition_zookeeper/ast.json b/parser/testdata/00516_deduplication_after_drop_partition_zookeeper/ast.json new file mode 100644 index 0000000000..6296792cda --- /dev/null +++ b/parser/testdata/00516_deduplication_after_drop_partition_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "deduplication_by_partition", + "tables": [ + { + "table": "deduplication_by_partition" + } + ] +} diff --git a/parser/testdata/00516_modulo/ast.json b/parser/testdata/00516_modulo/ast.json new file mode 100644 index 0000000000..9a05a37cea --- /dev/null +++ b/parser/testdata/00516_modulo/ast.json @@ -0,0 +1,19 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1000 + }, + "op": "%", + "right": { + "type": "Integer", + "value": 32 + } + } + ] + } + ] +} diff --git a/parser/testdata/00517_date_parsing/ast.json b/parser/testdata/00517_date_parsing/ast.json new file mode 100644 index 0000000000..e20beb6f68 --- /dev/null +++ b/parser/testdata/00517_date_parsing/ast.json @@ -0,0 +1,83 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDate", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "2017-01-02" + }, + { + "type": "String", + "value": "2017-1-02" + }, + { + "type": "String", + "value": "2017-01-2" + }, + { + "type": "String", + "value": "2017-1-2" + }, + { + "type": "String", + "value": "2017/01/02" + }, + { + "type": "String", + "value": "2017/1/02" + }, + { + "type": "String", + "value": "2017/01/2" + }, + { + "type": "String", + "value": "2017/1/2" + }, + { + "type": "String", + "value": "2017-11-12" + } + ] + } + ], + "alias": "s" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00519_create_as_select_from_temporary_table/ast.json b/parser/testdata/00519_create_as_select_from_temporary_table/ast.json new file mode 100644 index 0000000000..a48731fa4d --- /dev/null +++ b/parser/testdata/00519_create_as_select_from_temporary_table/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1_00519", + "tables": [ + { + "table": "t1_00519" + } + ], + "temporary": true +} diff --git a/parser/testdata/00520_tuple_values_interpreter/ast.json b/parser/testdata/00520_tuple_values_interpreter/ast.json new file mode 100644 index 0000000000..6be904fb03 --- /dev/null +++ b/parser/testdata/00520_tuple_values_interpreter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tuple", + "tables": [ + { + "table": "tuple" + } + ] +} diff --git a/parser/testdata/00521_multidimensional/ast.json b/parser/testdata/00521_multidimensional/ast.json new file mode 100644 index 0000000000..8dc186f738 --- /dev/null +++ b/parser/testdata/00521_multidimensional/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "multidimensional", + "tables": [ + { + "table": "multidimensional" + } + ] +} diff --git a/parser/testdata/00522_multidimensional/ast.json b/parser/testdata/00522_multidimensional/ast.json new file mode 100644 index 0000000000..8dc186f738 --- /dev/null +++ b/parser/testdata/00522_multidimensional/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "multidimensional", + "tables": [ + { + "table": "multidimensional" + } + ] +} diff --git a/parser/testdata/00523_aggregate_functions_in_group_array/ast.json b/parser/testdata/00523_aggregate_functions_in_group_array/ast.json new file mode 100644 index 0000000000..cf64e95d8b --- /dev/null +++ b/parser/testdata/00523_aggregate_functions_in_group_array/ast.json @@ -0,0 +1,173 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "key2" + ] + }, + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "uniqExactMerge" + }, + { + "parts": [ + "arr" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "key1" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + "alias": "key2" + }, + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "state" + ] + } + ], + "alias": "arr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + "alias": "key1" + }, + { + "name": "uniqExactState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "state" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "key1" + ] + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "key2" + ] + } + ] + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "key2" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00524_time_intervals_months_underflow/ast.json b/parser/testdata/00524_time_intervals_months_underflow/ast.json new file mode 100644 index 0000000000..3daa786898 --- /dev/null +++ b/parser/testdata/00524_time_intervals_months_underflow/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2017-01-01 00:00:00" + } + ] + }, + "op": "+", + "right": { + "value": { + "type": "Integer", + "value": 0 + }, + "unit": "MONTH" + } + }, + "alias": "x" + } + ] + } + ] +} diff --git a/parser/testdata/00527_totals_having_nullable/ast.json b/parser/testdata/00527_totals_having_nullable/ast.json new file mode 100644 index 0000000000..f675769e0e --- /dev/null +++ b/parser/testdata/00527_totals_having_nullable/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "alias": "x" + } + ], + "with_totals": true, + "having": { + "left": { + "parts": [ + "x" + ] + }, + "op": "!=", + "right": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + } + } + ] +} diff --git a/parser/testdata/00528_const_of_nullable/ast.json b/parser/testdata/00528_const_of_nullable/ast.json new file mode 100644 index 0000000000..8cff9c09db --- /dev/null +++ b/parser/testdata/00528_const_of_nullable/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "toColumnTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00529_orantius/ast.json b/parser/testdata/00529_orantius/ast.json new file mode 100644 index 0000000000..c7e16cb9fb --- /dev/null +++ b/parser/testdata/00529_orantius/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00530_arrays_of_nothing/ast.json b/parser/testdata/00530_arrays_of_nothing/ast.json new file mode 100644 index 0000000000..79a2d47d33 --- /dev/null +++ b/parser/testdata/00530_arrays_of_nothing/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00531_aggregate_over_nullable/ast.json b/parser/testdata/00531_aggregate_over_nullable/ast.json new file mode 100644 index 0000000000..95e3620f4f --- /dev/null +++ b/parser/testdata/00531_aggregate_over_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "agg_over_nullable", + "tables": [ + { + "table": "agg_over_nullable" + } + ] +} diff --git a/parser/testdata/00532_topk_generic/ast.json b/parser/testdata/00532_topk_generic/ast.json new file mode 100644 index 0000000000..34498a061a --- /dev/null +++ b/parser/testdata/00532_topk_generic/ast.json @@ -0,0 +1,171 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + }, + { + "name": "arraySort", + "arguments": [ + { + "name": "topK", + "arguments": [ + { + "parts": [ + "v" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + "alias": "k" + }, + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "condition": { + "left": { + "parts": [ + "x" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "then": { + "type": "Null", + "value": null + }, + "else": { + "name": "toString", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + } + }, + { + "name": "range", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + }, + { + "name": "range", + "arguments": [ + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 13 + } + ] + } + ] + } + ], + "alias": "v" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00533_uniq_array/ast.json b/parser/testdata/00533_uniq_array/ast.json new file mode 100644 index 0000000000..54b9f7f83d --- /dev/null +++ b/parser/testdata/00533_uniq_array/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqArray", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00534_exp10/ast.json b/parser/testdata/00534_exp10/ast.json new file mode 100644 index 0000000000..7d051b4e3c --- /dev/null +++ b/parser/testdata/00534_exp10/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "exp10", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "-", + "right": { + "type": "Integer", + "value": 500 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + } + ] +} diff --git a/parser/testdata/00535_parse_float_scientific/ast.json b/parser/testdata/00535_parse_float_scientific/ast.json new file mode 100644 index 0000000000..0695ea2f67 --- /dev/null +++ b/parser/testdata/00535_parse_float_scientific/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "float", + "tables": [ + { + "table": "float" + } + ] +} diff --git a/parser/testdata/00536_int_exp/ast.json b/parser/testdata/00536_int_exp/ast.json new file mode 100644 index 0000000000..3d82ff3b43 --- /dev/null +++ b/parser/testdata/00536_int_exp/ast.json @@ -0,0 +1,115 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "exp2", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "e2d" + }, + { + "name": "intExp2", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "e2i" + }, + { + "expr": { + "left": { + "name": "toUInt64", + "arguments": [ + { + "parts": [ + "e2d" + ] + } + ] + }, + "op": "=", + "right": { + "parts": [ + "e2i" + ] + } + }, + "alias": "e2eq" + }, + { + "name": "exp10", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "e10d" + }, + { + "name": "intExp10", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "e10i" + }, + { + "expr": { + "left": { + "name": "toString", + "arguments": [ + { + "parts": [ + "e10d" + ] + } + ] + }, + "op": "=", + "right": { + "name": "toString", + "arguments": [ + { + "parts": [ + "e10i" + ] + } + ] + } + }, + "alias": "e10eq" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 64 + } + } + ] +} diff --git a/parser/testdata/00536_int_exp_overflow/ast.json b/parser/testdata/00536_int_exp_overflow/ast.json new file mode 100644 index 0000000000..81e9b37fc1 --- /dev/null +++ b/parser/testdata/00536_int_exp_overflow/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "intExp2:" + } + ] + } + ] +} diff --git a/parser/testdata/00537_quarters/ast.json b/parser/testdata/00537_quarters/ast.json new file mode 100644 index 0000000000..8b5401f707 --- /dev/null +++ b/parser/testdata/00537_quarters/ast.json @@ -0,0 +1,159 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2017-01-01" + } + ], + "alias": "base" + }, + "op": "+", + "right": { + "value": { + "parts": [ + "number" + ] + }, + "unit": "MONTH" + } + }, + "alias": "d" + }, + { + "name": "toDateTime", + "arguments": [ + { + "parts": [ + "d" + ] + }, + { + "type": "String", + "value": "UTC" + } + ], + "alias": "t" + }, + { + "name": "toQuarter", + "arguments": [ + { + "parts": [ + "d" + ] + } + ], + "alias": "qd" + }, + { + "name": "toQuarter", + "arguments": [ + { + "parts": [ + "t" + ] + } + ], + "alias": "qt" + }, + { + "name": "toStartOfQuarter", + "arguments": [ + { + "parts": [ + "d" + ] + } + ], + "alias": "sqd" + }, + { + "name": "toStartOfQuarter", + "arguments": [ + { + "parts": [ + "t" + ] + } + ], + "alias": "sqt" + }, + { + "expr": { + "left": { + "name": "toRelativeQuarterNum", + "arguments": [ + { + "parts": [ + "d" + ] + } + ] + }, + "op": "-", + "right": { + "name": "toRelativeQuarterNum", + "arguments": [ + { + "parts": [ + "base" + ] + } + ] + } + }, + "alias": "qdiff_d" + }, + { + "expr": { + "left": { + "name": "toRelativeQuarterNum", + "arguments": [ + { + "parts": [ + "t" + ] + } + ] + }, + "op": "-", + "right": { + "name": "toRelativeQuarterNum", + "arguments": [ + { + "parts": [ + "base" + ] + } + ] + } + }, + "alias": "qdiff_t" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 24 + } + } + ] +} diff --git a/parser/testdata/00538_datediff/ast.json b/parser/testdata/00538_datediff/ast.json new file mode 100644 index 0000000000..bd8c8d97aa --- /dev/null +++ b/parser/testdata/00538_datediff/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Various intervals" + } + ] + } + ] +} diff --git a/parser/testdata/00538_datediff_plural_units/ast.json b/parser/testdata/00538_datediff_plural_units/ast.json new file mode 100644 index 0000000000..933c89c056 --- /dev/null +++ b/parser/testdata/00538_datediff_plural_units/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dateDiff", + "arguments": [ + { + "type": "String", + "value": "years" + }, + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2017-12-31" + } + ] + }, + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2016-01-01" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00539_functions_for_working_with_json/ast.json b/parser/testdata/00539_functions_for_working_with_json/ast.json new file mode 100644 index 0000000000..e0fca3f65b --- /dev/null +++ b/parser/testdata/00539_functions_for_working_with_json/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "visitParamExtractInt", + "arguments": [ + { + "type": "String", + "value": "{\"myparam\":-1}" + }, + { + "type": "String", + "value": "myparam" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00541_kahan_sum/ast.json b/parser/testdata/00541_kahan_sum/ast.json new file mode 100644 index 0000000000..1cc0111749 --- /dev/null +++ b/parser/testdata/00541_kahan_sum/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00542_access_to_temporary_table_in_readonly_mode/ast.json b/parser/testdata/00542_access_to_temporary_table_in_readonly_mode/ast.json new file mode 100644 index 0000000000..553ae23bf2 --- /dev/null +++ b/parser/testdata/00542_access_to_temporary_table_in_readonly_mode/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "readonly", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/00542_materialized_view_and_time_zone_tag/ast.json b/parser/testdata/00542_materialized_view_and_time_zone_tag/ast.json new file mode 100644 index 0000000000..da704cb3b3 --- /dev/null +++ b/parser/testdata/00542_materialized_view_and_time_zone_tag/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m3", + "tables": [ + { + "table": "m3" + } + ] +} diff --git a/parser/testdata/00543_null_and_prewhere/ast.json b/parser/testdata/00543_null_and_prewhere/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/00543_null_and_prewhere/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00544_insert_with_select/ast.json b/parser/testdata/00544_insert_with_select/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/00544_insert_with_select/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/00546_shard_tuple_element_formatting/ast.json b/parser/testdata/00546_shard_tuple_element_formatting/ast.json new file mode 100644 index 0000000000..2c0e4fac3d --- /dev/null +++ b/parser/testdata/00546_shard_tuple_element_formatting/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleElement", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "toUInt8", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "+", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00549_join_use_nulls/ast.json b/parser/testdata/00549_join_use_nulls/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/00549_join_use_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00553_buff_exists_materlized_column/ast.json b/parser/testdata/00553_buff_exists_materlized_column/ast.json new file mode 100644 index 0000000000..d0f54c39e3 --- /dev/null +++ b/parser/testdata/00553_buff_exists_materlized_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nums", + "tables": [ + { + "table": "nums" + } + ] +} diff --git a/parser/testdata/00553_invalid_nested_name/ast.json b/parser/testdata/00553_invalid_nested_name/ast.json new file mode 100644 index 0000000000..c1d48f8f61 --- /dev/null +++ b/parser/testdata/00553_invalid_nested_name/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 1.1 + }, + { + "type": "Float", + "value": 1.2 + } + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00554_nested_and_table_engines/ast.json b/parser/testdata/00554_nested_and_table_engines/ast.json new file mode 100644 index 0000000000..c5d0ecd7c8 --- /dev/null +++ b/parser/testdata/00554_nested_and_table_engines/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested", + "tables": [ + { + "table": "nested" + } + ] +} diff --git a/parser/testdata/00555_hasAll_hasAny/ast.json b/parser/testdata/00555_hasAll_hasAny/ast.json new file mode 100644 index 0000000000..2f42324e7a --- /dev/null +++ b/parser/testdata/00555_hasAll_hasAny/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hasAll", + "arguments": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00555_hasSubstr/ast.json b/parser/testdata/00555_hasSubstr/ast.json new file mode 100644 index 0000000000..439ba1191a --- /dev/null +++ b/parser/testdata/00555_hasSubstr/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hasSubstr", + "arguments": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00555_right_join_excessive_rows/ast.json b/parser/testdata/00555_right_join_excessive_rows/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00555_right_join_excessive_rows/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00556_array_intersect/ast.json b/parser/testdata/00556_array_intersect/ast.json new file mode 100644 index 0000000000..b97ae4cede --- /dev/null +++ b/parser/testdata/00556_array_intersect/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayIntersect", + "arguments": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00556_remove_columns_from_subquery/ast.json b/parser/testdata/00556_remove_columns_from_subquery/ast.json new file mode 100644 index 0000000000..bace2fbc74 --- /dev/null +++ b/parser/testdata/00556_remove_columns_from_subquery/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "b" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00557_alter_null_storage_tables/ast.json b/parser/testdata/00557_alter_null_storage_tables/ast.json new file mode 100644 index 0000000000..18777c0512 --- /dev/null +++ b/parser/testdata/00557_alter_null_storage_tables/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_00557", + "tables": [ + { + "table": "null_00557" + } + ] +} diff --git a/parser/testdata/00557_array_resize/ast.json b/parser/testdata/00557_array_resize/ast.json new file mode 100644 index 0000000000..539c664144 --- /dev/null +++ b/parser/testdata/00557_array_resize/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayResize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00558_aggregate_merge_totals_with_arenas/ast.json b/parser/testdata/00558_aggregate_merge_totals_with_arenas/ast.json new file mode 100644 index 0000000000..97ad9d2c32 --- /dev/null +++ b/parser/testdata/00558_aggregate_merge_totals_with_arenas/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "group_by_two_level_threshold", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00558_parse_floats/ast.json b/parser/testdata/00558_parse_floats/ast.json new file mode 100644 index 0000000000..358a55f836 --- /dev/null +++ b/parser/testdata/00558_parse_floats/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toFloat64", + "arguments": [ + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "0.00000" + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/00560_float_leading_plus_in_exponent/ast.json b/parser/testdata/00560_float_leading_plus_in_exponent/ast.json new file mode 100644 index 0000000000..581d3146e8 --- /dev/null +++ b/parser/testdata/00560_float_leading_plus_in_exponent/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "test_float", + "columns": [ + { + "name": "x", + "type": { + "name": "Float64" + } + } + ] +} diff --git a/parser/testdata/00561_storage_join/ast.json b/parser/testdata/00561_storage_join/ast.json new file mode 100644 index 0000000000..e4e5fe39d6 --- /dev/null +++ b/parser/testdata/00561_storage_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "joinbug", + "tables": [ + { + "table": "joinbug" + } + ] +} diff --git a/parser/testdata/00562_in_subquery_merge_tree/ast.json b/parser/testdata/00562_in_subquery_merge_tree/ast.json new file mode 100644 index 0000000000..23eabb889c --- /dev/null +++ b/parser/testdata/00562_in_subquery_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree_in_subqueries", + "tables": [ + { + "table": "merge_tree_in_subqueries" + } + ] +} diff --git a/parser/testdata/00562_rewrite_select_expression_with_union/ast.json b/parser/testdata/00562_rewrite_select_expression_with_union/ast.json new file mode 100644 index 0000000000..581ec71222 --- /dev/null +++ b/parser/testdata/00562_rewrite_select_expression_with_union/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00562", + "tables": [ + { + "table": "test_00562" + } + ] +} diff --git a/parser/testdata/00563_complex_in_expression/ast.json b/parser/testdata/00563_complex_in_expression/ast.json new file mode 100644 index 0000000000..19b95b7dfd --- /dev/null +++ b/parser/testdata/00563_complex_in_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00563", + "tables": [ + { + "table": "test_00563" + } + ] +} diff --git a/parser/testdata/00563_insert_into_remote_and_zookeeper_long/ast.json b/parser/testdata/00563_insert_into_remote_and_zookeeper_long/ast.json new file mode 100644 index 0000000000..ee7e3f6603 --- /dev/null +++ b/parser/testdata/00563_insert_into_remote_and_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple", + "tables": [ + { + "table": "simple" + } + ] +} diff --git a/parser/testdata/00563_shard_insert_into_remote/ast.json b/parser/testdata/00563_shard_insert_into_remote/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/00563_shard_insert_into_remote/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/00564_initial_column_values_with_default_expression/ast.json b/parser/testdata/00564_initial_column_values_with_default_expression/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/00564_initial_column_values_with_default_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/00564_temporary_table_management/ast.json b/parser/testdata/00564_temporary_table_management/ast.json new file mode 100644 index 0000000000..701f821ded --- /dev/null +++ b/parser/testdata/00564_temporary_table_management/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "temp_tab", + "tables": [ + { + "table": "temp_tab" + } + ], + "temporary": true +} diff --git a/parser/testdata/00564_versioned_collapsing_merge_tree/ast.json b/parser/testdata/00564_versioned_collapsing_merge_tree/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/00564_versioned_collapsing_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00567_parse_datetime_as_unix_timestamp/ast.json b/parser/testdata/00567_parse_datetime_as_unix_timestamp/ast.json new file mode 100644 index 0000000000..7621f2f63f --- /dev/null +++ b/parser/testdata/00567_parse_datetime_as_unix_timestamp/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_values_interpret_expressions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00568_empty_function_with_fixed_string/ast.json b/parser/testdata/00568_empty_function_with_fixed_string/ast.json new file mode 100644 index 0000000000..7481fa510e --- /dev/null +++ b/parser/testdata/00568_empty_function_with_fixed_string/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "type": "Integer", + "value": 4 + } + ], + "alias": "str" + }, + { + "name": "empty", + "arguments": [ + { + "parts": [ + "str" + ] + } + ], + "alias": "is_empty" + } + ] + } + ] +} diff --git a/parser/testdata/00569_parse_date_time_best_effort/ast.json b/parser/testdata/00569_parse_date_time_best_effort/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/00569_parse_date_time_best_effort/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00570_empty_array_is_const/ast.json b/parser/testdata/00570_empty_array_is_const/ast.json new file mode 100644 index 0000000000..7703dde058 --- /dev/null +++ b/parser/testdata/00570_empty_array_is_const/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dumpColumnStructure", + "arguments": [ + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00571_alter_nullable/ast.json b/parser/testdata/00571_alter_nullable/ast.json new file mode 100644 index 0000000000..4ad886dc07 --- /dev/null +++ b/parser/testdata/00571_alter_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nullable_00571", + "tables": [ + { + "table": "nullable_00571" + } + ] +} diff --git a/parser/testdata/00572_aggregation_by_empty_set/ast.json b/parser/testdata/00572_aggregation_by_empty_set/ast.json new file mode 100644 index 0000000000..d6c15d1a8f --- /dev/null +++ b/parser/testdata/00572_aggregation_by_empty_set/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "t", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/00573_shard_aggregation_by_empty_set/ast.json b/parser/testdata/00573_shard_aggregation_by_empty_set/ast.json new file mode 100644 index 0000000000..c8ef15e1eb --- /dev/null +++ b/parser/testdata/00573_shard_aggregation_by_empty_set/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "t_00573", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/00575_merge_and_index_with_function_in_in/ast.json b/parser/testdata/00575_merge_and_index_with_function_in_in/ast.json new file mode 100644 index 0000000000..6e092da14b --- /dev/null +++ b/parser/testdata/00575_merge_and_index_with_function_in_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00575", + "tables": [ + { + "table": "t_00575" + } + ] +} diff --git a/parser/testdata/00576_nested_and_prewhere/ast.json b/parser/testdata/00576_nested_and_prewhere/ast.json new file mode 100644 index 0000000000..c5d0ecd7c8 --- /dev/null +++ b/parser/testdata/00576_nested_and_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested", + "tables": [ + { + "table": "nested" + } + ] +} diff --git a/parser/testdata/00577_full_join_segfault/ast.json b/parser/testdata/00577_full_join_segfault/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00577_full_join_segfault/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00577_replacing_merge_tree_vertical_merge/ast.json b/parser/testdata/00577_replacing_merge_tree_vertical_merge/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/00577_replacing_merge_tree_vertical_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00578_merge_table_and_table_virtual_column/ast.json b/parser/testdata/00578_merge_table_and_table_virtual_column/ast.json new file mode 100644 index 0000000000..3011fb2f8b --- /dev/null +++ b/parser/testdata/00578_merge_table_and_table_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers1", + "tables": [ + { + "table": "numbers1" + } + ] +} diff --git a/parser/testdata/00578_merge_table_sampling/ast.json b/parser/testdata/00578_merge_table_sampling/ast.json new file mode 100644 index 0000000000..3011fb2f8b --- /dev/null +++ b/parser/testdata/00578_merge_table_sampling/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers1", + "tables": [ + { + "table": "numbers1" + } + ] +} diff --git a/parser/testdata/00578_merge_table_shadow_virtual_column/ast.json b/parser/testdata/00578_merge_table_shadow_virtual_column/ast.json new file mode 100644 index 0000000000..3011fb2f8b --- /dev/null +++ b/parser/testdata/00578_merge_table_shadow_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers1", + "tables": [ + { + "table": "numbers1" + } + ] +} diff --git a/parser/testdata/00578_merge_trees_without_primary_key/ast.json b/parser/testdata/00578_merge_trees_without_primary_key/ast.json new file mode 100644 index 0000000000..aadbcf9e1b --- /dev/null +++ b/parser/testdata/00578_merge_trees_without_primary_key/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "*** MergeTree ***" + } + ] + } + ] +} diff --git a/parser/testdata/00579_merge_tree_partition_and_primary_keys_using_same_expression/ast.json b/parser/testdata/00579_merge_tree_partition_and_primary_keys_using_same_expression/ast.json new file mode 100644 index 0000000000..892119e45e --- /dev/null +++ b/parser/testdata/00579_merge_tree_partition_and_primary_keys_using_same_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "partition_and_primary_keys_using_same_expression", + "tables": [ + { + "table": "partition_and_primary_keys_using_same_expression" + } + ] +} diff --git a/parser/testdata/00579_virtual_column_and_lazy/ast.json b/parser/testdata/00579_virtual_column_and_lazy/ast.json new file mode 100644 index 0000000000..e5487b8fab --- /dev/null +++ b/parser/testdata/00579_virtual_column_and_lazy/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sample_00579_1", + "tables": [ + { + "table": "sample_00579_1" + } + ] +} diff --git a/parser/testdata/00580_cast_nullable_to_non_nullable/ast.json b/parser/testdata/00580_cast_nullable_to_non_nullable/ast.json new file mode 100644 index 0000000000..e42c69cb48 --- /dev/null +++ b/parser/testdata/00580_cast_nullable_to_non_nullable/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 999999 + } + }, + "then": { + "type": "Null", + "value": null + }, + "else": { + "parts": [ + "number" + ] + } + }, + "type": { + "name": "UInt64" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00580_consistent_hashing_functions/ast.json b/parser/testdata/00580_consistent_hashing_functions/ast.json new file mode 100644 index 0000000000..3c8fa01a1a --- /dev/null +++ b/parser/testdata/00580_consistent_hashing_functions/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "jumpConsistentHash", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "jumpConsistentHash", + "arguments": [ + { + "type": "Integer", + "value": 42 + }, + { + "type": "Integer", + "value": 57 + } + ] + }, + { + "name": "jumpConsistentHash", + "arguments": [ + { + "type": "Integer", + "value": 256 + }, + { + "type": "Integer", + "value": 1024 + } + ] + }, + { + "name": "jumpConsistentHash", + "arguments": [ + { + "type": "Integer", + "value": 3735883980 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "jumpConsistentHash", + "arguments": [ + { + "type": "Integer", + "value": 3735883980 + }, + { + "type": "Integer", + "value": 666 + } + ] + }, + { + "name": "jumpConsistentHash", + "arguments": [ + { + "type": "Integer", + "value": 16045690984833335023 + }, + { + "type": "Integer", + "value": 255 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00581_limit_on_result_and_subquery_and_insert/ast.json b/parser/testdata/00581_limit_on_result_and_subquery_and_insert/ast.json new file mode 100644 index 0000000000..607f38a110 --- /dev/null +++ b/parser/testdata/00581_limit_on_result_and_subquery_and_insert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_result_rows", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00582_not_aliasing_functions/ast.json b/parser/testdata/00582_not_aliasing_functions/ast.json new file mode 100644 index 0000000000..0f6ab4ec45 --- /dev/null +++ b/parser/testdata/00582_not_aliasing_functions/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00584_view_union_all/ast.json b/parser/testdata/00584_view_union_all/ast.json new file mode 100644 index 0000000000..7f07708ac2 --- /dev/null +++ b/parser/testdata/00584_view_union_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Test_00584", + "tables": [ + { + "table": "Test_00584" + } + ] +} diff --git a/parser/testdata/00585_union_all_subquery_aggregation_column_removal/ast.json b/parser/testdata/00585_union_all_subquery_aggregation_column_removal/ast.json new file mode 100644 index 0000000000..68714a063e --- /dev/null +++ b/parser/testdata/00585_union_all_subquery_aggregation_column_removal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "clicks", + "tables": [ + { + "table": "clicks" + } + ] +} diff --git a/parser/testdata/00586_removing_unused_columns_from_subquery/ast.json b/parser/testdata/00586_removing_unused_columns_from_subquery/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00586_removing_unused_columns_from_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00587_union_all_type_conversions/ast.json b/parser/testdata/00587_union_all_type_conversions/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/00587_union_all_type_conversions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00588_shard_distributed_prewhere/ast.json b/parser/testdata/00588_shard_distributed_prewhere/ast.json new file mode 100644 index 0000000000..da6e2c2b74 --- /dev/null +++ b/parser/testdata/00588_shard_distributed_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mergetree_00588", + "tables": [ + { + "table": "mergetree_00588" + } + ] +} diff --git a/parser/testdata/00589_removal_unused_columns_aggregation/ast.json b/parser/testdata/00589_removal_unused_columns_aggregation/ast.json new file mode 100644 index 0000000000..51a04a8912 --- /dev/null +++ b/parser/testdata/00589_removal_unused_columns_aggregation/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "x" + ] + } + ], + "alias": "a" + }, + { + "name": "avg", + "arguments": [ + { + "parts": [ + "x" + ] + } + ], + "alias": "b" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00593_union_all_assert_columns_removed/ast.json b/parser/testdata/00593_union_all_assert_columns_removed/ast.json new file mode 100644 index 0000000000..d2cad93867 --- /dev/null +++ b/parser/testdata/00593_union_all_assert_columns_removed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "columns", + "tables": [ + { + "table": "columns" + } + ] +} diff --git a/parser/testdata/00594_alias_in_distributed/ast.json b/parser/testdata/00594_alias_in_distributed/ast.json new file mode 100644 index 0000000000..be135899ff --- /dev/null +++ b/parser/testdata/00594_alias_in_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alias_local10", + "tables": [ + { + "table": "alias_local10" + } + ] +} diff --git a/parser/testdata/00597_push_down_predicate_long/ast.json b/parser/testdata/00597_push_down_predicate_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00597_push_down_predicate_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00597_with_totals_on_empty_set/ast.json b/parser/testdata/00597_with_totals_on_empty_set/ast.json new file mode 100644 index 0000000000..b3f407467e --- /dev/null +++ b/parser/testdata/00597_with_totals_on_empty_set/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + }, + "with_totals": true, + "format": { + "parts": [ + "Vertical" + ] + } + } + ] +} diff --git a/parser/testdata/00599_create_view_with_subquery/ast.json b/parser/testdata/00599_create_view_with_subquery/ast.json new file mode 100644 index 0000000000..142addbe9b --- /dev/null +++ b/parser/testdata/00599_create_view_with_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00599", + "tables": [ + { + "table": "test_00599" + } + ] +} diff --git a/parser/testdata/00600_create_temporary_table_if_not_exists/ast.json b/parser/testdata/00600_create_temporary_table_if_not_exists/ast.json new file mode 100644 index 0000000000..383bffb447 --- /dev/null +++ b/parser/testdata/00600_create_temporary_table_if_not_exists/ast.json @@ -0,0 +1,16 @@ +{ + "if_not_exists": true, + "temporary": true, + "table": "temporary_table", + "columns": [ + { + "name": "column", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/00603_system_parts_nonexistent_database/ast.json b/parser/testdata/00603_system_parts_nonexistent_database/ast.json new file mode 100644 index 0000000000..8062ab5a55 --- /dev/null +++ b/parser/testdata/00603_system_parts_nonexistent_database/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "parts" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "T5yajf3DLcMjJJvpCeX5ajUy1P0VTk51zMEp1kDKXZAGr5EpleuIKbuY8cKaThkaBqllUm2EFxDX" + } + } + } + ] +} diff --git a/parser/testdata/00604_shard_remote_and_columns_with_defaults/ast.json b/parser/testdata/00604_shard_remote_and_columns_with_defaults/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/00604_shard_remote_and_columns_with_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/00605_intersections_aggregate_functions/ast.json b/parser/testdata/00605_intersections_aggregate_functions/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/00605_intersections_aggregate_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/00607_index_in_in/ast.json b/parser/testdata/00607_index_in_in/ast.json new file mode 100644 index 0000000000..1d5f9ced5f --- /dev/null +++ b/parser/testdata/00607_index_in_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree", + "tables": [ + { + "table": "merge_tree" + } + ] +} diff --git a/parser/testdata/00608_uniq_array/ast.json b/parser/testdata/00608_uniq_array/ast.json new file mode 100644 index 0000000000..ec3caea431 --- /dev/null +++ b/parser/testdata/00608_uniq_array/ast.json @@ -0,0 +1,94 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Array", + "value": null + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00609_distributed_with_case_when_then/ast.json b/parser/testdata/00609_distributed_with_case_when_then/ast.json new file mode 100644 index 0000000000..fb3d824f94 --- /dev/null +++ b/parser/testdata/00609_distributed_with_case_when_then/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mergetree_00609", + "tables": [ + { + "table": "mergetree_00609" + } + ] +} diff --git a/parser/testdata/00609_mv_index_in_in/ast.json b/parser/testdata/00609_mv_index_in_in/ast.json new file mode 100644 index 0000000000..acc63f345c --- /dev/null +++ b/parser/testdata/00609_mv_index_in_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00609", + "tables": [ + { + "table": "test_00609" + } + ] +} diff --git a/parser/testdata/00609_prewhere_and_default/ast.json b/parser/testdata/00609_prewhere_and_default/ast.json new file mode 100644 index 0000000000..30cd2df12c --- /dev/null +++ b/parser/testdata/00609_prewhere_and_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_00609", + "tables": [ + { + "table": "table_00609" + } + ] +} diff --git a/parser/testdata/00610_materialized_view_forward_alter_partition_statements/ast.json b/parser/testdata/00610_materialized_view_forward_alter_partition_statements/ast.json new file mode 100644 index 0000000000..57fbc4f3e2 --- /dev/null +++ b/parser/testdata/00610_materialized_view_forward_alter_partition_statements/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00610", + "tables": [ + { + "table": "tab_00610" + } + ] +} diff --git a/parser/testdata/00612_count/ast.json b/parser/testdata/00612_count/ast.json new file mode 100644 index 0000000000..dc219bebb4 --- /dev/null +++ b/parser/testdata/00612_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "count", + "tables": [ + { + "table": "count" + } + ] +} diff --git a/parser/testdata/00612_http_max_query_size_for_distributed/ast.json b/parser/testdata/00612_http_max_query_size_for_distributed/ast.json new file mode 100644 index 0000000000..f253843732 --- /dev/null +++ b/parser/testdata/00612_http_max_query_size_for_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_00612", + "tables": [ + { + "table": "data_00612" + } + ] +} diff --git a/parser/testdata/00612_pk_in_tuple/ast.json b/parser/testdata/00612_pk_in_tuple/ast.json new file mode 100644 index 0000000000..6f80093ca2 --- /dev/null +++ b/parser/testdata/00612_pk_in_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00612", + "tables": [ + { + "table": "tab_00612" + } + ] +} diff --git a/parser/testdata/00612_shard_count/ast.json b/parser/testdata/00612_shard_count/ast.json new file mode 100644 index 0000000000..dc219bebb4 --- /dev/null +++ b/parser/testdata/00612_shard_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "count", + "tables": [ + { + "table": "count" + } + ] +} diff --git a/parser/testdata/00612_union_query_with_subquery/ast.json b/parser/testdata/00612_union_query_with_subquery/ast.json new file mode 100644 index 0000000000..91ee1e2b7e --- /dev/null +++ b/parser/testdata/00612_union_query_with_subquery/ast.json @@ -0,0 +1,100 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + } + }, + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 2 + } + }, + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 3 + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL", + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00613_shard_distributed_max_execution_time/ast.json b/parser/testdata/00613_shard_distributed_max_execution_time/ast.json new file mode 100644 index 0000000000..711e19bbef --- /dev/null +++ b/parser/testdata/00613_shard_distributed_max_execution_time/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_execution_time", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "timeout_overflow_mode", + "value": { + "type": "String", + "value": "break" + } + } + ] +} diff --git a/parser/testdata/00614_array_nullable/ast.json b/parser/testdata/00614_array_nullable/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/00614_array_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/00614_shard_same_header_for_local_and_remote_node_in_distributed_query/ast.json b/parser/testdata/00614_shard_same_header_for_local_and_remote_node_in_distributed_query/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/00614_shard_same_header_for_local_and_remote_node_in_distributed_query/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/00615_nullable_alter_optimize/ast.json b/parser/testdata/00615_nullable_alter_optimize/ast.json new file mode 100644 index 0000000000..90926e43c1 --- /dev/null +++ b/parser/testdata/00615_nullable_alter_optimize/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00615", + "tables": [ + { + "table": "test_00615" + } + ] +} diff --git a/parser/testdata/00616_final_single_part/ast.json b/parser/testdata/00616_final_single_part/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/00616_final_single_part/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00617_array_in/ast.json b/parser/testdata/00617_array_in/ast.json new file mode 100644 index 0000000000..19c1111650 --- /dev/null +++ b/parser/testdata/00617_array_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_array_ops", + "tables": [ + { + "table": "test_array_ops" + } + ] +} diff --git a/parser/testdata/00618_nullable_in/ast.json b/parser/testdata/00618_nullable_in/ast.json new file mode 100644 index 0000000000..d10122fdf5 --- /dev/null +++ b/parser/testdata/00618_nullable_in/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "expr": { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "a" + } + ] + }, + "list": [ + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00619_union_highlite/ast.json b/parser/testdata/00619_union_highlite/ast.json new file mode 100644 index 0000000000..e0edfe79cf --- /dev/null +++ b/parser/testdata/00619_union_highlite/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "union", + "tables": [ + { + "table": "union" + } + ] +} diff --git a/parser/testdata/00620_optimize_on_nonleader_replica_zookeeper/ast.json b/parser/testdata/00620_optimize_on_nonleader_replica_zookeeper/ast.json new file mode 100644 index 0000000000..9cd227a28b --- /dev/null +++ b/parser/testdata/00620_optimize_on_nonleader_replica_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rename1", + "tables": [ + { + "table": "rename1" + } + ] +} diff --git a/parser/testdata/00621_regression_for_in_operator/ast.json b/parser/testdata/00621_regression_for_in_operator/ast.json new file mode 100644 index 0000000000..5ddf51e638 --- /dev/null +++ b/parser/testdata/00621_regression_for_in_operator/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "regression_for_in_operator_view", + "tables": [ + { + "table": "regression_for_in_operator_view" + } + ] +} diff --git a/parser/testdata/00622_select_in_parens/ast.json b/parser/testdata/00622_select_in_parens/ast.json new file mode 100644 index 0000000000..4cb6f0f6f9 --- /dev/null +++ b/parser/testdata/00622_select_in_parens/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] +} diff --git a/parser/testdata/00623_in_partition_key/ast.json b/parser/testdata/00623_in_partition_key/ast.json new file mode 100644 index 0000000000..fe63ed7182 --- /dev/null +++ b/parser/testdata/00623_in_partition_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test54378", + "tables": [ + { + "table": "test54378" + } + ] +} diff --git a/parser/testdata/00623_replicated_truncate_table_zookeeper_long/ast.json b/parser/testdata/00623_replicated_truncate_table_zookeeper_long/ast.json new file mode 100644 index 0000000000..5f5aa19c33 --- /dev/null +++ b/parser/testdata/00623_replicated_truncate_table_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replicated_truncate1", + "tables": [ + { + "table": "replicated_truncate1" + } + ] +} diff --git a/parser/testdata/00623_truncate_all_tables/ast.json b/parser/testdata/00623_truncate_all_tables/ast.json new file mode 100644 index 0000000000..7a1170a741 --- /dev/null +++ b/parser/testdata/00623_truncate_all_tables/ast.json @@ -0,0 +1,15 @@ +{ + "if_not_exists": true, + "table": "truncate_test_set", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Set" + } +} diff --git a/parser/testdata/00623_truncate_table/ast.json b/parser/testdata/00623_truncate_table/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/00623_truncate_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00624_length_utf8/ast.json b/parser/testdata/00624_length_utf8/ast.json new file mode 100644 index 0000000000..cb4ab5a106 --- /dev/null +++ b/parser/testdata/00624_length_utf8/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "привет пр" + }, + "alias": "x" + }, + { + "name": "lengthUTF8", + "arguments": [ + { + "parts": [ + "x" + ] + } + ], + "alias": "y" + } + ] + } + ] +} diff --git a/parser/testdata/00625_arrays_in_nested/ast.json b/parser/testdata/00625_arrays_in_nested/ast.json new file mode 100644 index 0000000000..c5d0ecd7c8 --- /dev/null +++ b/parser/testdata/00625_arrays_in_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested", + "tables": [ + { + "table": "nested" + } + ] +} diff --git a/parser/testdata/00625_summing_merge_tree_merge/ast.json b/parser/testdata/00625_summing_merge_tree_merge/ast.json new file mode 100644 index 0000000000..5bb0943d02 --- /dev/null +++ b/parser/testdata/00625_summing_merge_tree_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00625", + "tables": [ + { + "table": "tab_00625" + } + ] +} diff --git a/parser/testdata/00626_in_syntax/ast.json b/parser/testdata/00626_in_syntax/ast.json new file mode 100644 index 0000000000..924aaf2009 --- /dev/null +++ b/parser/testdata/00626_in_syntax/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "list": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00626_replace_partition_from_table/ast.json b/parser/testdata/00626_replace_partition_from_table/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/00626_replace_partition_from_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/00627_recursive_alias/ast.json b/parser/testdata/00627_recursive_alias/ast.json new file mode 100644 index 0000000000..3bbeea0097 --- /dev/null +++ b/parser/testdata/00627_recursive_alias/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "dummy" + ], + "alias": "x" + }, + { + "expr": { + "left": { + "parts": [ + "dummy" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "alias": "dummy" + } + ], + "order_by": [ + { + "expression": { + "name": "identity", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + } + ] + } + ] + } + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/00628_in_lambda_on_merge_table_bug/ast.json b/parser/testdata/00628_in_lambda_on_merge_table_bug/ast.json new file mode 100644 index 0000000000..46e1261550 --- /dev/null +++ b/parser/testdata/00628_in_lambda_on_merge_table_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_in_tuple_1", + "tables": [ + { + "table": "test_in_tuple_1" + } + ] +} diff --git a/parser/testdata/00632_aggregation_window_funnel/ast.json b/parser/testdata/00632_aggregation_window_funnel/ast.json new file mode 100644 index 0000000000..8eba431ef1 --- /dev/null +++ b/parser/testdata/00632_aggregation_window_funnel/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "funnel_test", + "tables": [ + { + "table": "funnel_test" + } + ] +} diff --git a/parser/testdata/00632_get_sample_block_cache/ast.json b/parser/testdata/00632_get_sample_block_cache/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00632_get_sample_block_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00633_func_or_in/ast.json b/parser/testdata/00633_func_or_in/ast.json new file mode 100644 index 0000000000..dab1d83767 --- /dev/null +++ b/parser/testdata/00633_func_or_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "orin_test", + "tables": [ + { + "table": "orin_test" + } + ] +} diff --git a/parser/testdata/00634_rename_view/ast.json b/parser/testdata/00634_rename_view/ast.json new file mode 100644 index 0000000000..464618f4b4 --- /dev/null +++ b/parser/testdata/00634_rename_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1_00634", + "tables": [ + { + "table": "test1_00634" + } + ] +} diff --git a/parser/testdata/00635_shard_distinct_order_by/ast.json b/parser/testdata/00635_shard_distinct_order_by/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/00635_shard_distinct_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/00639_startsWith/ast.json b/parser/testdata/00639_startsWith/ast.json new file mode 100644 index 0000000000..603b125f72 --- /dev/null +++ b/parser/testdata/00639_startsWith/ast.json @@ -0,0 +1,75 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "startsWith", + "arguments": [ + { + "parts": [ + "s" + ] + }, + { + "type": "String", + "value": "He" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "" + }, + { + "type": "String", + "value": "H" + }, + { + "type": "String", + "value": "He" + }, + { + "type": "String", + "value": "Hellow" + }, + { + "type": "String", + "value": "3434" + }, + { + "type": "String", + "value": "fffffffffdHe" + } + ] + } + ], + "alias": "s" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00640_endsWith/ast.json b/parser/testdata/00640_endsWith/ast.json new file mode 100644 index 0000000000..825dd772aa --- /dev/null +++ b/parser/testdata/00640_endsWith/ast.json @@ -0,0 +1,75 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "endsWith", + "arguments": [ + { + "parts": [ + "s" + ] + }, + { + "type": "String", + "value": "ow" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "" + }, + { + "type": "String", + "value": "o" + }, + { + "type": "String", + "value": "ow" + }, + { + "type": "String", + "value": "Hellow" + }, + { + "type": "String", + "value": "3434" + }, + { + "type": "String", + "value": "owfffffffdHe" + } + ] + } + ], + "alias": "s" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00643_cast_zookeeper_long/ast.json b/parser/testdata/00643_cast_zookeeper_long/ast.json new file mode 100644 index 0000000000..162d3742f3 --- /dev/null +++ b/parser/testdata/00643_cast_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "database_atomic_wait_for_drop_and_detach_synchronously", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00645_date_time_input_format/ast.json b/parser/testdata/00645_date_time_input_format/ast.json new file mode 100644 index 0000000000..60f11c4021 --- /dev/null +++ b/parser/testdata/00645_date_time_input_format/ast.json @@ -0,0 +1,15 @@ +{ + "temporary": true, + "table": "test_00645", + "columns": [ + { + "name": "d", + "type": { + "name": "DateTime" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/00646_weird_mmx/ast.json b/parser/testdata/00646_weird_mmx/ast.json new file mode 100644 index 0000000000..e105e02839 --- /dev/null +++ b/parser/testdata/00646_weird_mmx/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "weird_mmx", + "tables": [ + { + "table": "weird_mmx" + } + ] +} diff --git a/parser/testdata/00647_histogram/ast.json b/parser/testdata/00647_histogram/ast.json new file mode 100644 index 0000000000..d0b0eddb70 --- /dev/null +++ b/parser/testdata/00647_histogram/ast.json @@ -0,0 +1,66 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "histogram", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "-", + "right": { + "type": "Integer", + "value": 10 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 20 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00647_histogram_negative/ast.json b/parser/testdata/00647_histogram_negative/ast.json new file mode 100644 index 0000000000..580c760673 --- /dev/null +++ b/parser/testdata/00647_histogram_negative/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "histogram", + "tables": [ + { + "table": "histogram" + } + ] +} diff --git a/parser/testdata/00647_multiply_aggregation_state/ast.json b/parser/testdata/00647_multiply_aggregation_state/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00647_multiply_aggregation_state/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00647_select_numbers_with_offset/ast.json b/parser/testdata/00647_select_numbers_with_offset/ast.json new file mode 100644 index 0000000000..514a1b98e4 --- /dev/null +++ b/parser/testdata/00647_select_numbers_with_offset/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00648_replacing_empty_set_from_prewhere/ast.json b/parser/testdata/00648_replacing_empty_set_from_prewhere/ast.json new file mode 100644 index 0000000000..1538a0ddbb --- /dev/null +++ b/parser/testdata/00648_replacing_empty_set_from_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "final_test", + "tables": [ + { + "table": "final_test" + } + ] +} diff --git a/parser/testdata/00650_array_enumerate_uniq_with_tuples/ast.json b/parser/testdata/00650_array_enumerate_uniq_with_tuples/ast.json new file mode 100644 index 0000000000..73947e531b --- /dev/null +++ b/parser/testdata/00650_array_enumerate_uniq_with_tuples/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00650", + "tables": [ + { + "table": "tab_00650" + } + ] +} diff --git a/parser/testdata/00653_monotonic_integer_cast/ast.json b/parser/testdata/00653_monotonic_integer_cast/ast.json new file mode 100644 index 0000000000..ef680bac6b --- /dev/null +++ b/parser/testdata/00653_monotonic_integer_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_00653", + "tables": [ + { + "table": "table_00653" + } + ] +} diff --git a/parser/testdata/00653_running_difference/ast.json b/parser/testdata/00653_running_difference/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/00653_running_difference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00660_optimize_final_without_partition/ast.json b/parser/testdata/00660_optimize_final_without_partition/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/00660_optimize_final_without_partition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00661_array_has_silviucpp/ast.json b/parser/testdata/00661_array_has_silviucpp/ast.json new file mode 100644 index 0000000000..8aea184ea0 --- /dev/null +++ b/parser/testdata/00661_array_has_silviucpp/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "has_function", + "tables": [ + { + "table": "has_function" + } + ] +} diff --git a/parser/testdata/00661_optimize_final_replicated_without_partition_zookeeper/ast.json b/parser/testdata/00661_optimize_final_replicated_without_partition_zookeeper/ast.json new file mode 100644 index 0000000000..540be6d2e3 --- /dev/null +++ b/parser/testdata/00661_optimize_final_replicated_without_partition_zookeeper/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_warmed_unmerged_parts_seconds", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00662_array_has_nullable/ast.json b/parser/testdata/00662_array_has_nullable/ast.json new file mode 100644 index 0000000000..e9d4b82aef --- /dev/null +++ b/parser/testdata/00662_array_has_nullable/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "has", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + } + ] + }, + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00662_has_nullable/ast.json b/parser/testdata/00662_has_nullable/ast.json new file mode 100644 index 0000000000..c494c5e6e8 --- /dev/null +++ b/parser/testdata/00662_has_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "00662_has_nullable", + "tables": [ + { + "table": "00662_has_nullable" + } + ] +} diff --git a/parser/testdata/00663_tiny_log_empty_insert/ast.json b/parser/testdata/00663_tiny_log_empty_insert/ast.json new file mode 100644 index 0000000000..da2348874a --- /dev/null +++ b/parser/testdata/00663_tiny_log_empty_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "empty", + "tables": [ + { + "table": "empty" + } + ] +} diff --git a/parser/testdata/00664_cast_from_string_to_nullable/ast.json b/parser/testdata/00664_cast_from_string_to_nullable/ast.json new file mode 100644 index 0000000000..4446ac8c78 --- /dev/null +++ b/parser/testdata/00664_cast_from_string_to_nullable/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "" + }, + { + "type": "String", + "value": "abc" + }, + { + "type": "String", + "value": "123" + }, + { + "type": "String", + "value": "123a" + }, + { + "type": "String", + "value": "-123" + } + ] + } + ] + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/00665_alter_nullable_string_to_nullable_uint8/ast.json b/parser/testdata/00665_alter_nullable_string_to_nullable_uint8/ast.json new file mode 100644 index 0000000000..2627f0de31 --- /dev/null +++ b/parser/testdata/00665_alter_nullable_string_to_nullable_uint8/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_00665", + "tables": [ + { + "table": "alter_00665" + } + ] +} diff --git a/parser/testdata/00666_uniq_complex_types/ast.json b/parser/testdata/00666_uniq_complex_types/ast.json new file mode 100644 index 0000000000..a4c42b783d --- /dev/null +++ b/parser/testdata/00666_uniq_complex_types/ast.json @@ -0,0 +1,77 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + } + ] + }, + { + "type": "Array", + "value": null + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00668_compare_arrays_silviucpp/ast.json b/parser/testdata/00668_compare_arrays_silviucpp/ast.json new file mode 100644 index 0000000000..57087968a9 --- /dev/null +++ b/parser/testdata/00668_compare_arrays_silviucpp/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "array", + "tables": [ + { + "table": "array" + } + ] +} diff --git a/parser/testdata/00670_truncate_temporary_table/ast.json b/parser/testdata/00670_truncate_temporary_table/ast.json new file mode 100644 index 0000000000..63f60b8220 --- /dev/null +++ b/parser/testdata/00670_truncate_temporary_table/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test_00670", + "tables": [ + { + "table": "test_00670" + } + ], + "temporary": true +} diff --git a/parser/testdata/00671_max_intersections/ast.json b/parser/testdata/00671_max_intersections/ast.json new file mode 100644 index 0000000000..f11583da95 --- /dev/null +++ b/parser/testdata/00671_max_intersections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1_00671", + "tables": [ + { + "table": "test1_00671" + } + ] +} diff --git a/parser/testdata/00672_arrayDistinct/ast.json b/parser/testdata/00672_arrayDistinct/ast.json new file mode 100644 index 0000000000..f9f23f0079 --- /dev/null +++ b/parser/testdata/00672_arrayDistinct/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayDistinct", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00673_subquery_prepared_set_performance/ast.json b/parser/testdata/00673_subquery_prepared_set_performance/ast.json new file mode 100644 index 0000000000..36d56fcdf8 --- /dev/null +++ b/parser/testdata/00673_subquery_prepared_set_performance/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mergetree_00673", + "tables": [ + { + "table": "mergetree_00673" + } + ] +} diff --git a/parser/testdata/00674_join_on_syntax/ast.json b/parser/testdata/00674_join_on_syntax/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00674_join_on_syntax/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00675_shard_remote_with_table_function/ast.json b/parser/testdata/00675_shard_remote_with_table_function/ast.json new file mode 100644 index 0000000000..3fedd761ac --- /dev/null +++ b/parser/testdata/00675_shard_remote_with_table_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "remote_test", + "tables": [ + { + "table": "remote_test" + } + ] +} diff --git a/parser/testdata/00677_shard_any_heavy_merge/ast.json b/parser/testdata/00677_shard_any_heavy_merge/ast.json new file mode 100644 index 0000000000..22fd639df5 --- /dev/null +++ b/parser/testdata/00677_shard_any_heavy_merge/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "with": [ + { + "name": "s", + "query": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + } + ] + } + } + ], + "columns": [ + { + "name": "count" + }, + { + "name": "arraySort", + "arguments": [ + { + "name": "groupUniqArray", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + ] + }, + { + "name": "anyHeavy", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00678_murmurhash/ast.json b/parser/testdata/00678_murmurhash/ast.json new file mode 100644 index 0000000000..0313547d0e --- /dev/null +++ b/parser/testdata/00678_murmurhash/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "murmurHash2_32", + "arguments": [ + { + "type": "Integer", + "value": 123456 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00678_shard_funnel_window/ast.json b/parser/testdata/00678_shard_funnel_window/ast.json new file mode 100644 index 0000000000..3fedd761ac --- /dev/null +++ b/parser/testdata/00678_shard_funnel_window/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "remote_test", + "tables": [ + { + "table": "remote_test" + } + ] +} diff --git a/parser/testdata/00679_replace_asterisk/ast.json b/parser/testdata/00679_replace_asterisk/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00679_replace_asterisk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00679_uuid_in_key/ast.json b/parser/testdata/00679_uuid_in_key/ast.json new file mode 100644 index 0000000000..6b5057f35a --- /dev/null +++ b/parser/testdata/00679_uuid_in_key/ast.json @@ -0,0 +1,48 @@ +{ + "if_not_exists": true, + "table": "uuid", + "columns": [ + { + "name": "created_at", + "type": { + "name": "DateTime" + } + }, + { + "name": "id", + "type": { + "name": "UUID" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "created_at" + ] + }, + { + "parts": [ + "id" + ] + } + ] + } + ], + "partition_by": { + "name": "toDate", + "arguments": [ + { + "parts": [ + "created_at" + ] + } + ] + } +} diff --git a/parser/testdata/00680_duplicate_columns_inside_union_all/ast.json b/parser/testdata/00680_duplicate_columns_inside_union_all/ast.json new file mode 100644 index 0000000000..811335380d --- /dev/null +++ b/parser/testdata/00680_duplicate_columns_inside_union_all/ast.json @@ -0,0 +1,144 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "y" + } + ] + } + ] + } + } + } + } + ] + } + }, + { + "columns": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 4 + }, + "alias": "y" + } + ] + } + ] + } + } + } + } + ] + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + }, + { + "expression": { + "parts": [ + "y" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00681_duplicate_columns_inside_union_all_stas_sviridov/ast.json b/parser/testdata/00681_duplicate_columns_inside_union_all_stas_sviridov/ast.json new file mode 100644 index 0000000000..5e2c25e5dc --- /dev/null +++ b/parser/testdata/00681_duplicate_columns_inside_union_all_stas_sviridov/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00681", + "tables": [ + { + "table": "test_00681" + } + ] +} diff --git a/parser/testdata/00685_output_format_json_escape_forward_slashes/ast.json b/parser/testdata/00685_output_format_json_escape_forward_slashes/ast.json new file mode 100644 index 0000000000..e254d31776 --- /dev/null +++ b/parser/testdata/00685_output_format_json_escape_forward_slashes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_escape_forward_slashes", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00687_insert_into_mv/ast.json b/parser/testdata/00687_insert_into_mv/ast.json new file mode 100644 index 0000000000..b9551c0839 --- /dev/null +++ b/parser/testdata/00687_insert_into_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00687", + "tables": [ + { + "table": "test_00687" + } + ] +} diff --git a/parser/testdata/00688_aggregation_retention/ast.json b/parser/testdata/00688_aggregation_retention/ast.json new file mode 100644 index 0000000000..3003a733fb --- /dev/null +++ b/parser/testdata/00688_aggregation_retention/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "retention_test", + "tables": [ + { + "table": "retention_test" + } + ] +} diff --git a/parser/testdata/00688_case_without_else/ast.json b/parser/testdata/00688_case_without_else/ast.json new file mode 100644 index 0000000000..01b8212573 --- /dev/null +++ b/parser/testdata/00688_case_without_else/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00688", + "tables": [ + { + "table": "test_00688" + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_alter_add_column/ast.json b/parser/testdata/00688_low_cardinality_alter_add_column/ast.json new file mode 100644 index 0000000000..983b61e0ef --- /dev/null +++ b/parser/testdata/00688_low_cardinality_alter_add_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cardinality", + "tables": [ + { + "table": "cardinality" + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_defaults/ast.json b/parser/testdata/00688_low_cardinality_defaults/ast.json new file mode 100644 index 0000000000..7c9e329fb0 --- /dev/null +++ b/parser/testdata/00688_low_cardinality_defaults/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "toLowCardinality", + "arguments": [ + { + "parts": [ + "val" + ] + } + ] + }, + "type": { + "name": "UInt64" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "1" + } + ] + } + ], + "alias": "val" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_dictionary_deserialization/ast.json b/parser/testdata/00688_low_cardinality_dictionary_deserialization/ast.json new file mode 100644 index 0000000000..f3a3f19808 --- /dev/null +++ b/parser/testdata/00688_low_cardinality_dictionary_deserialization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_dict_reading", + "tables": [ + { + "table": "lc_dict_reading" + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_in/ast.json b/parser/testdata/00688_low_cardinality_in/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00688_low_cardinality_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_nullable_cast/ast.json b/parser/testdata/00688_low_cardinality_nullable_cast/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00688_low_cardinality_nullable_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_prewhere/ast.json b/parser/testdata/00688_low_cardinality_prewhere/ast.json new file mode 100644 index 0000000000..4bf6536486 --- /dev/null +++ b/parser/testdata/00688_low_cardinality_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_prewhere", + "tables": [ + { + "table": "lc_prewhere" + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_serialization/ast.json b/parser/testdata/00688_low_cardinality_serialization/ast.json new file mode 100644 index 0000000000..e41cd3ba15 --- /dev/null +++ b/parser/testdata/00688_low_cardinality_serialization/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "NativeReader" + } + ] + } + ] +} diff --git a/parser/testdata/00688_low_cardinality_syntax/ast.json b/parser/testdata/00688_low_cardinality_syntax/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00688_low_cardinality_syntax/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00689_join_table_function/ast.json b/parser/testdata/00689_join_table_function/ast.json new file mode 100644 index 0000000000..96fd7dfe8d --- /dev/null +++ b/parser/testdata/00689_join_table_function/ast.json @@ -0,0 +1,70 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "a" + } + }, + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "b" + }, + "join": { + "type": "LEFT", + "strictness": "ANY", + "on": { + "left": { + "parts": [ + "a", + "number" + ] + }, + "op": "=", + "right": { + "parts": [ + "b", + "number" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "a", + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00691_array_distinct/ast.json b/parser/testdata/00691_array_distinct/ast.json new file mode 100644 index 0000000000..5fdd503927 --- /dev/null +++ b/parser/testdata/00691_array_distinct/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayDistinct", + "arguments": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00692_if_exception_code/ast.json b/parser/testdata/00692_if_exception_code/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00692_if_exception_code/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00693_max_block_size_system_tables_columns/ast.json b/parser/testdata/00693_max_block_size_system_tables_columns/ast.json new file mode 100644 index 0000000000..e072e3bfaa --- /dev/null +++ b/parser/testdata/00693_max_block_size_system_tables_columns/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "avg", + "arguments": [ + { + "name": "blockSize" + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Integer", + "value": 10 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "tables" + } + } + } + ] + }, + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10 + } + } + ] + } + ] +} diff --git a/parser/testdata/00695_pretty_max_column_pad_width/ast.json b/parser/testdata/00695_pretty_max_column_pad_width/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/00695_pretty_max_column_pad_width/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00696_system_columns_limit/ast.json b/parser/testdata/00696_system_columns_limit/ast.json new file mode 100644 index 0000000000..de67909407 --- /dev/null +++ b/parser/testdata/00696_system_columns_limit/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "columns" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 0 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00697_in_subquery_shard/ast.json b/parser/testdata/00697_in_subquery_shard/ast.json new file mode 100644 index 0000000000..a6160acde3 --- /dev/null +++ b/parser/testdata/00697_in_subquery_shard/ast.json @@ -0,0 +1,20 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "list": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00698_validate_array_sizes_for_nested/ast.json b/parser/testdata/00698_validate_array_sizes_for_nested/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00698_validate_array_sizes_for_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00698_validate_array_sizes_for_nested_kshvakov/ast.json b/parser/testdata/00698_validate_array_sizes_for_nested_kshvakov/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00698_validate_array_sizes_for_nested_kshvakov/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00700_decimal_aggregates/ast.json b/parser/testdata/00700_decimal_aggregates/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_aggregates/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_arithm/ast.json b/parser/testdata/00700_decimal_arithm/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_arithm/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_array_functions/ast.json b/parser/testdata/00700_decimal_array_functions/ast.json new file mode 100644 index 0000000000..88990d15ce --- /dev/null +++ b/parser/testdata/00700_decimal_array_functions/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayDifference", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Float", + "value": 0 + }, + { + "type": "Integer", + "value": 4 + } + ] + }, + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Float", + "value": 1 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + } + ], + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00700_decimal_bounds/ast.json b/parser/testdata/00700_decimal_bounds/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_bounds/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_casts/ast.json b/parser/testdata/00700_decimal_casts/ast.json new file mode 100644 index 0000000000..20257c6ea8 --- /dev/null +++ b/parser/testdata/00700_decimal_casts/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "String", + "value": "1.1" + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toDecimal32", + "arguments": [ + { + "type": "String", + "value": "1.1" + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "toDecimal32", + "arguments": [ + { + "type": "String", + "value": "1.1" + }, + { + "type": "Integer", + "value": 8 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00700_decimal_casts_2/ast.json b/parser/testdata/00700_decimal_casts_2/ast.json new file mode 100644 index 0000000000..eeafb6d4ef --- /dev/null +++ b/parser/testdata/00700_decimal_casts_2/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "String", + "value": "1234567890" + }, + { + "type": "Integer", + "value": 28 + } + ], + "alias": "x" + }, + { + "name": "toDecimal128", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 29 + } + ] + }, + { + "name": "toDecimal128", + "arguments": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "String", + "value": "1234567890" + }, + { + "type": "Integer", + "value": 28 + } + ] + }, + { + "type": "Integer", + "value": 29 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00700_decimal_compare/ast.json b/parser/testdata/00700_decimal_compare/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_compare/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_complex_types/ast.json b/parser/testdata/00700_decimal_complex_types/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_complex_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_defaults/ast.json b/parser/testdata/00700_decimal_defaults/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_empty_aggregates/ast.json b/parser/testdata/00700_decimal_empty_aggregates/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_empty_aggregates/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_formats/ast.json b/parser/testdata/00700_decimal_formats/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_formats/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_gathers/ast.json b/parser/testdata/00700_decimal_gathers/ast.json new file mode 100644 index 0000000000..6d5c8bdc90 --- /dev/null +++ b/parser/testdata/00700_decimal_gathers/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": [ + { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "Float", + "value": 2 + } + ] + }, + "type": { + "name": "Decimal(9,3)" + } + } + ] + }, + { + "type": "Array", + "value": [ + { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "Float", + "value": 1 + } + ] + }, + "type": { + "name": "Decimal(9,3)" + } + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00700_decimal_in_keys/ast.json b/parser/testdata/00700_decimal_in_keys/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_in_keys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_math/ast.json b/parser/testdata/00700_decimal_math/ast.json new file mode 100644 index 0000000000..edb47a0184 --- /dev/null +++ b/parser/testdata/00700_decimal_math/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "String", + "value": "42.42" + }, + { + "type": "Integer", + "value": 4 + } + ], + "alias": "x" + }, + { + "name": "toDecimal32", + "arguments": [ + { + "name": "log", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "type": "Integer", + "value": 4 + } + ], + "alias": "y" + }, + { + "name": "round", + "arguments": [ + { + "name": "exp", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00700_decimal_null/ast.json b/parser/testdata/00700_decimal_null/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_decimal_round/ast.json b/parser/testdata/00700_decimal_round/ast.json new file mode 100644 index 0000000000..5433c23339 --- /dev/null +++ b/parser/testdata/00700_decimal_round/ast.json @@ -0,0 +1,102 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Float", + "value": 12345.6789 + }, + { + "type": "Integer", + "value": 4 + } + ], + "alias": "x" + }, + { + "name": "round", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "round", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 4 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00700_decimal_with_default_precision_and_scale/ast.json b/parser/testdata/00700_decimal_with_default_precision_and_scale/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/00700_decimal_with_default_precision_and_scale/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/00700_to_decimal_or_something/ast.json b/parser/testdata/00700_to_decimal_or_something/ast.json new file mode 100644 index 0000000000..414792d165 --- /dev/null +++ b/parser/testdata/00700_to_decimal_or_something/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32OrZero", + "arguments": [ + { + "type": "String", + "value": "1.1" + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toDecimal32OrZero", + "arguments": [ + { + "type": "String", + "value": "1.1" + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "toDecimal32OrZero", + "arguments": [ + { + "type": "String", + "value": "1.1" + }, + { + "type": "Integer", + "value": 8 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00701_context_use_after_free/ast.json b/parser/testdata/00701_context_use_after_free/ast.json new file mode 100644 index 0000000000..0ed1bfdc95 --- /dev/null +++ b/parser/testdata/00701_context_use_after_free/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Tuple", + "value": [ + { + "name": "toDecimal128", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "1" + } + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "toDecimal128", + "arguments": [ + { + "type": "String", + "value": "2" + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + "op": "\u003c", + "right": { + "type": "Tuple", + "value": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "String", + "value": "1" + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "toDecimal128", + "arguments": [ + { + "type": "String", + "value": "2" + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00701_join_default_strictness/ast.json b/parser/testdata/00701_join_default_strictness/ast.json new file mode 100644 index 0000000000..12b642f900 --- /dev/null +++ b/parser/testdata/00701_join_default_strictness/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a1", + "tables": [ + { + "table": "a1" + } + ] +} diff --git a/parser/testdata/00701_rollup/ast.json b/parser/testdata/00701_rollup/ast.json new file mode 100644 index 0000000000..9ff7d6f7a8 --- /dev/null +++ b/parser/testdata/00701_rollup/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rollup", + "tables": [ + { + "table": "rollup" + } + ] +} diff --git a/parser/testdata/00702_join_on_dups/ast.json b/parser/testdata/00702_join_on_dups/ast.json new file mode 100644 index 0000000000..26e34cc2e5 --- /dev/null +++ b/parser/testdata/00702_join_on_dups/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "X", + "tables": [ + { + "table": "X" + } + ] +} diff --git a/parser/testdata/00702_join_with_using/ast.json b/parser/testdata/00702_join_with_using/ast.json new file mode 100644 index 0000000000..b00c7a9f5d --- /dev/null +++ b/parser/testdata/00702_join_with_using/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "using1", + "tables": [ + { + "table": "using1" + } + ] +} diff --git a/parser/testdata/00702_join_with_using_dups/ast.json b/parser/testdata/00702_join_with_using_dups/ast.json new file mode 100644 index 0000000000..26e34cc2e5 --- /dev/null +++ b/parser/testdata/00702_join_with_using_dups/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "X", + "tables": [ + { + "table": "X" + } + ] +} diff --git a/parser/testdata/00702_where_with_quailified_names/ast.json b/parser/testdata/00702_where_with_quailified_names/ast.json new file mode 100644 index 0000000000..d74289b5d8 --- /dev/null +++ b/parser/testdata/00702_where_with_quailified_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "where_qualified", + "tables": [ + { + "table": "where_qualified" + } + ] +} diff --git a/parser/testdata/00703_join_crash/ast.json b/parser/testdata/00703_join_crash/ast.json new file mode 100644 index 0000000000..d7104b4726 --- /dev/null +++ b/parser/testdata/00703_join_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab1", + "tables": [ + { + "table": "tab1" + } + ] +} diff --git a/parser/testdata/00704_arrayCumSumLimited_arrayDifference/ast.json b/parser/testdata/00704_arrayCumSumLimited_arrayDifference/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/00704_arrayCumSumLimited_arrayDifference/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/00705_aggregate_states_addition/ast.json b/parser/testdata/00705_aggregate_states_addition/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00705_aggregate_states_addition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00706_iso_week_and_day_of_year/ast.json b/parser/testdata/00706_iso_week_and_day_of_year/ast.json new file mode 100644 index 0000000000..9eb6633261 --- /dev/null +++ b/parser/testdata/00706_iso_week_and_day_of_year/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDayOfYear", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2018-09-13" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00707_float_csv_delimiter/ast.json b/parser/testdata/00707_float_csv_delimiter/ast.json new file mode 100644 index 0000000000..8d0f7c8c25 --- /dev/null +++ b/parser/testdata/00707_float_csv_delimiter/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test_00707", + "tables": [ + { + "table": "test_00707" + } + ], + "temporary": true +} diff --git a/parser/testdata/00709_virtual_column_partition_id/ast.json b/parser/testdata/00709_virtual_column_partition_id/ast.json new file mode 100644 index 0000000000..6a8043aa63 --- /dev/null +++ b/parser/testdata/00709_virtual_column_partition_id/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "partition_id", + "tables": [ + { + "table": "partition_id" + } + ] +} diff --git a/parser/testdata/00710_array_enumerate_dense/ast.json b/parser/testdata/00710_array_enumerate_dense/ast.json new file mode 100644 index 0000000000..a15b9bb22c --- /dev/null +++ b/parser/testdata/00710_array_enumerate_dense/ast.json @@ -0,0 +1,155 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "arguments": [ + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 54321 + } + ] + } + ], + "alias": "a" + }, + { + "name": "arrayUniq", + "arguments": [ + { + "parts": [ + "a" + ] + } + ], + "alias": "u" + }, + { + "name": "arrayEnumerateDense", + "arguments": [ + { + "parts": [ + "a" + ] + } + ], + "alias": "arr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000000 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "left": { + "name": "intHash32", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 100000 + } + } + ] + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "u" + ] + }, + "op": "\u003c\u003e", + "right": { + "array": { + "name": "arrayReverseSort", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + } + } + } + ] +} diff --git a/parser/testdata/00711_array_enumerate_variants/ast.json b/parser/testdata/00711_array_enumerate_variants/ast.json new file mode 100644 index 0000000000..5d725b31c4 --- /dev/null +++ b/parser/testdata/00711_array_enumerate_variants/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayEnumerateUniq", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "name": "arrayEnumerateDense", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_alias/ast.json b/parser/testdata/00712_prewhere_with_alias/ast.json new file mode 100644 index 0000000000..1a97fe8170 --- /dev/null +++ b/parser/testdata/00712_prewhere_with_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere_alias", + "tables": [ + { + "table": "prewhere_alias" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_alias_and_virtual_column/ast.json b/parser/testdata/00712_prewhere_with_alias_and_virtual_column/ast.json new file mode 100644 index 0000000000..c7e2836046 --- /dev/null +++ b/parser/testdata/00712_prewhere_with_alias_and_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00712_1", + "tables": [ + { + "table": "tab_00712_1" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_alias_bug/ast.json b/parser/testdata/00712_prewhere_with_alias_bug/ast.json new file mode 100644 index 0000000000..1a97fe8170 --- /dev/null +++ b/parser/testdata/00712_prewhere_with_alias_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere_alias", + "tables": [ + { + "table": "prewhere_alias" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_alias_bug_2/ast.json b/parser/testdata/00712_prewhere_with_alias_bug_2/ast.json new file mode 100644 index 0000000000..e6e111e024 --- /dev/null +++ b/parser/testdata/00712_prewhere_with_alias_bug_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table", + "tables": [ + { + "table": "table" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_final/ast.json b/parser/testdata/00712_prewhere_with_final/ast.json new file mode 100644 index 0000000000..b0d8267f0c --- /dev/null +++ b/parser/testdata/00712_prewhere_with_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "trepl", + "tables": [ + { + "table": "trepl" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_missing_columns/ast.json b/parser/testdata/00712_prewhere_with_missing_columns/ast.json new file mode 100644 index 0000000000..7fb83010ba --- /dev/null +++ b/parser/testdata/00712_prewhere_with_missing_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mergetree_00712", + "tables": [ + { + "table": "mergetree_00712" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_missing_columns_2/ast.json b/parser/testdata/00712_prewhere_with_missing_columns_2/ast.json new file mode 100644 index 0000000000..6da8bc949b --- /dev/null +++ b/parser/testdata/00712_prewhere_with_missing_columns_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00712_1", + "tables": [ + { + "table": "t_00712_1" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_sampling/ast.json b/parser/testdata/00712_prewhere_with_sampling/ast.json new file mode 100644 index 0000000000..1a87f54071 --- /dev/null +++ b/parser/testdata/00712_prewhere_with_sampling/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00712_2", + "tables": [ + { + "table": "tab_00712_2" + } + ] +} diff --git a/parser/testdata/00712_prewhere_with_sampling_and_alias/ast.json b/parser/testdata/00712_prewhere_with_sampling_and_alias/ast.json new file mode 100644 index 0000000000..3710f9c19f --- /dev/null +++ b/parser/testdata/00712_prewhere_with_sampling_and_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00712_2", + "tables": [ + { + "table": "t_00712_2" + } + ] +} diff --git a/parser/testdata/00713_collapsing_merge_tree/ast.json b/parser/testdata/00713_collapsing_merge_tree/ast.json new file mode 100644 index 0000000000..8ea9e90907 --- /dev/null +++ b/parser/testdata/00713_collapsing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "collapsing", + "tables": [ + { + "table": "collapsing" + } + ] +} diff --git a/parser/testdata/00714_alter_uuid/ast.json b/parser/testdata/00714_alter_uuid/ast.json new file mode 100644 index 0000000000..711e8a2df5 --- /dev/null +++ b/parser/testdata/00714_alter_uuid/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "00000000-0000-01f8-9cb8-cb1b82fb3900" + }, + "alias": "str" + }, + { + "name": "toUUID", + "arguments": [ + { + "parts": [ + "str" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00714_create_temporary_table_with_in_clause/ast.json b/parser/testdata/00714_create_temporary_table_with_in_clause/ast.json new file mode 100644 index 0000000000..fa6ac46390 --- /dev/null +++ b/parser/testdata/00714_create_temporary_table_with_in_clause/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "temporary_table", + "tables": [ + { + "table": "temporary_table" + } + ], + "temporary": true +} diff --git a/parser/testdata/00715_bounding_ratio/ast.json b/parser/testdata/00715_bounding_ratio/ast.json new file mode 100644 index 0000000000..eeeeec1f35 --- /dev/null +++ b/parser/testdata/00715_bounding_ratio/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rate_test", + "tables": [ + { + "table": "rate_test" + } + ] +} diff --git a/parser/testdata/00715_bounding_ratio_merge_empty/ast.json b/parser/testdata/00715_bounding_ratio_merge_empty/ast.json new file mode 100644 index 0000000000..eeeeec1f35 --- /dev/null +++ b/parser/testdata/00715_bounding_ratio_merge_empty/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rate_test", + "tables": [ + { + "table": "rate_test" + } + ] +} diff --git a/parser/testdata/00716_allow_ddl/ast.json b/parser/testdata/00716_allow_ddl/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00716_allow_ddl/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00717_default_join_type/ast.json b/parser/testdata/00717_default_join_type/ast.json new file mode 100644 index 0000000000..943aaa0488 --- /dev/null +++ b/parser/testdata/00717_default_join_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "default_join1", + "tables": [ + { + "table": "default_join1" + } + ] +} diff --git a/parser/testdata/00717_low_cardinaliry_distributed_group_by/ast.json b/parser/testdata/00717_low_cardinaliry_distributed_group_by/ast.json new file mode 100644 index 0000000000..54a88547c6 --- /dev/null +++ b/parser/testdata/00717_low_cardinaliry_distributed_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_foreground_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00717_low_cardinaliry_group_by/ast.json b/parser/testdata/00717_low_cardinaliry_group_by/ast.json new file mode 100644 index 0000000000..80cf2979c2 --- /dev/null +++ b/parser/testdata/00717_low_cardinaliry_group_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_00717", + "tables": [ + { + "table": "tab_00717" + } + ] +} diff --git a/parser/testdata/00717_merge_and_distributed/ast.json b/parser/testdata/00717_merge_and_distributed/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00717_merge_and_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00718_format_datetime/ast.json b/parser/testdata/00718_format_datetime/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00718_format_datetime/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00718_format_datetime_1/ast.json b/parser/testdata/00718_format_datetime_1/ast.json new file mode 100644 index 0000000000..11f33f1837 --- /dev/null +++ b/parser/testdata/00718_format_datetime_1/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1900-01-01 00:00:00.000" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "type": "String", + "value": "%F %T.%f" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00718_low_cardinaliry_alter/ast.json b/parser/testdata/00718_low_cardinaliry_alter/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00718_low_cardinaliry_alter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00719_format_datetime_f_varsize_bug/ast.json b/parser/testdata/00719_format_datetime_f_varsize_bug/ast.json new file mode 100644 index 0000000000..797bc8097d --- /dev/null +++ b/parser/testdata/00719_format_datetime_f_varsize_bug/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "Date", + "arguments": [ + { + "type": "String", + "value": "2026-01-02" + } + ] + }, + { + "type": "String", + "value": "%h:%M:%s.%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00719_format_datetime_rand/ast.json b/parser/testdata/00719_format_datetime_rand/ast.json new file mode 100644 index 0000000000..8e0a4cf2e4 --- /dev/null +++ b/parser/testdata/00719_format_datetime_rand/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "with": [ + { + "name": "t", + "query": { + "name": "toDateTime", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "+", + "right": { + "left": { + "name": "rand" + }, + "op": "%", + "right": { + "type": "Integer", + "value": 4294967295 + } + } + } + ] + } + } + ], + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000000 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "name": "formatDateTime", + "arguments": [ + { + "parts": [ + "t" + ] + }, + { + "type": "String", + "value": "%F %T" + } + ] + }, + "op": "!=", + "right": { + "name": "toString", + "arguments": [ + { + "parts": [ + "t" + ] + } + ] + } + } + } + ] +} diff --git a/parser/testdata/00720_with_cube/ast.json b/parser/testdata/00720_with_cube/ast.json new file mode 100644 index 0000000000..ece561a349 --- /dev/null +++ b/parser/testdata/00720_with_cube/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cube", + "tables": [ + { + "table": "cube" + } + ] +} diff --git a/parser/testdata/00721_force_by_identical_result_after_merge_zookeeper_long/ast.json b/parser/testdata/00721_force_by_identical_result_after_merge_zookeeper_long/ast.json new file mode 100644 index 0000000000..540be6d2e3 --- /dev/null +++ b/parser/testdata/00721_force_by_identical_result_after_merge_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_warmed_unmerged_parts_seconds", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00722_inner_join/ast.json b/parser/testdata/00722_inner_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00722_inner_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00723_remerge_sort/ast.json b/parser/testdata/00723_remerge_sort/ast.json new file mode 100644 index 0000000000..5bcb269421 --- /dev/null +++ b/parser/testdata/00723_remerge_sort/ast.json @@ -0,0 +1,94 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 2000000 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10000 + } + } + ] + } + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00724_insert_values_datetime_conversion/ast.json b/parser/testdata/00724_insert_values_datetime_conversion/ast.json new file mode 100644 index 0000000000..bd9b7a7e1a --- /dev/null +++ b/parser/testdata/00724_insert_values_datetime_conversion/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test_00724", + "tables": [ + { + "table": "test_00724" + } + ], + "temporary": true +} diff --git a/parser/testdata/00725_comment_columns_long/ast.json b/parser/testdata/00725_comment_columns_long/ast.json new file mode 100644 index 0000000000..09c747e116 --- /dev/null +++ b/parser/testdata/00725_comment_columns_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_row_numbers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00725_ipv4_ipv6_domains/ast.json b/parser/testdata/00725_ipv4_ipv6_domains/ast.json new file mode 100644 index 0000000000..991cc9f855 --- /dev/null +++ b/parser/testdata/00725_ipv4_ipv6_domains/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ipv4_test", + "tables": [ + { + "table": "ipv4_test" + } + ] +} diff --git a/parser/testdata/00725_join_on_bug_1/ast.json b/parser/testdata/00725_join_on_bug_1/ast.json new file mode 100644 index 0000000000..12b642f900 --- /dev/null +++ b/parser/testdata/00725_join_on_bug_1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a1", + "tables": [ + { + "table": "a1" + } + ] +} diff --git a/parser/testdata/00725_join_on_bug_2/ast.json b/parser/testdata/00725_join_on_bug_2/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00725_join_on_bug_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00725_join_on_bug_3/ast.json b/parser/testdata/00725_join_on_bug_3/ast.json new file mode 100644 index 0000000000..96961942c1 --- /dev/null +++ b/parser/testdata/00725_join_on_bug_3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00725_3", + "tables": [ + { + "table": "t_00725_3" + } + ] +} diff --git a/parser/testdata/00725_join_on_bug_4/ast.json b/parser/testdata/00725_join_on_bug_4/ast.json new file mode 100644 index 0000000000..ab3cebcd46 --- /dev/null +++ b/parser/testdata/00725_join_on_bug_4/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00725_4", + "tables": [ + { + "table": "t_00725_4" + } + ] +} diff --git a/parser/testdata/00725_memory_tracking/ast.json b/parser/testdata/00725_memory_tracking/ast.json new file mode 100644 index 0000000000..907d408abe --- /dev/null +++ b/parser/testdata/00725_memory_tracking/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "least", + "arguments": [ + { + "parts": [ + "value" + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "metrics" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "metric" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "MemoryTracking" + } + } + } + ] +} diff --git a/parser/testdata/00725_quantiles_shard/ast.json b/parser/testdata/00725_quantiles_shard/ast.json new file mode 100644 index 0000000000..a588843211 --- /dev/null +++ b/parser/testdata/00725_quantiles_shard/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantiles", + "parameters": [ + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 0.9 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00726_materialized_view_concurrent/ast.json b/parser/testdata/00726_materialized_view_concurrent/ast.json new file mode 100644 index 0000000000..b4f8cdeaa3 --- /dev/null +++ b/parser/testdata/00726_materialized_view_concurrent/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src_00726", + "tables": [ + { + "table": "src_00726" + } + ] +} diff --git a/parser/testdata/00726_modulo_for_date/ast.json b/parser/testdata/00726_modulo_for_date/ast.json new file mode 100644 index 0000000000..8decc7592c --- /dev/null +++ b/parser/testdata/00726_modulo_for_date/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2018-06-21" + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 234 + } + }, + "op": "=", + "right": { + "left": { + "name": "toUInt16", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2018-06-21" + } + ] + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 234 + } + } + } + ] + } + ] +} diff --git a/parser/testdata/00727_concat/ast.json b/parser/testdata/00727_concat/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/00727_concat/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00729_prewhere_array_join/ast.json b/parser/testdata/00729_prewhere_array_join/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00729_prewhere_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00730_unicode_terminal_format/ast.json b/parser/testdata/00730_unicode_terminal_format/ast.json new file mode 100644 index 0000000000..8afc62267a --- /dev/null +++ b/parser/testdata/00730_unicode_terminal_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_squash_consecutive_ms", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00732_base64_functions/ast.json b/parser/testdata/00732_base64_functions/ast.json new file mode 100644 index 0000000000..3d246d50e2 --- /dev/null +++ b/parser/testdata/00732_base64_functions/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "base64Encode" + } + ] + } + ] +} diff --git a/parser/testdata/00732_decimal_summing_merge_tree/ast.json b/parser/testdata/00732_decimal_summing_merge_tree/ast.json new file mode 100644 index 0000000000..ce45549d3b --- /dev/null +++ b/parser/testdata/00732_decimal_summing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal_sum", + "tables": [ + { + "table": "decimal_sum" + } + ] +} diff --git a/parser/testdata/00732_quorum_insert_have_data_before_quorum_zookeeper_long/ast.json b/parser/testdata/00732_quorum_insert_have_data_before_quorum_zookeeper_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00732_quorum_insert_have_data_before_quorum_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00732_quorum_insert_lost_part_and_alive_part_zookeeper_long/ast.json b/parser/testdata/00732_quorum_insert_lost_part_and_alive_part_zookeeper_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00732_quorum_insert_lost_part_and_alive_part_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00732_quorum_insert_lost_part_zookeeper_long/ast.json b/parser/testdata/00732_quorum_insert_lost_part_zookeeper_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00732_quorum_insert_lost_part_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper_long/ast.json b/parser/testdata/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00732_quorum_insert_simple_test_1_parts_zookeeper_long/ast.json b/parser/testdata/00732_quorum_insert_simple_test_1_parts_zookeeper_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00732_quorum_insert_simple_test_1_parts_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00732_quorum_insert_simple_test_2_parts_zookeeper_long/ast.json b/parser/testdata/00732_quorum_insert_simple_test_2_parts_zookeeper_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00732_quorum_insert_simple_test_2_parts_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00733_if_datetime/ast.json b/parser/testdata/00733_if_datetime/ast.json new file mode 100644 index 0000000000..16d87a100b --- /dev/null +++ b/parser/testdata/00733_if_datetime/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2000-01-01 00:00:00" + } + ] + }, + "else": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2001-02-03 04:05:06" + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00734_timeslot/ast.json b/parser/testdata/00734_timeslot/ast.json new file mode 100644 index 0000000000..577a060b36 --- /dev/null +++ b/parser/testdata/00734_timeslot/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "timeSlot", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2000-01-02 03:04:05" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00735_long_conditional/ast.json b/parser/testdata/00735_long_conditional/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00735_long_conditional/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00735_or_expr_optimize_bug/ast.json b/parser/testdata/00735_or_expr_optimize_bug/ast.json new file mode 100644 index 0000000000..2b118858df --- /dev/null +++ b/parser/testdata/00735_or_expr_optimize_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "or_expr_bug", + "tables": [ + { + "table": "or_expr_bug" + } + ] +} diff --git a/parser/testdata/00736_disjunction_optimisation/ast.json b/parser/testdata/00736_disjunction_optimisation/ast.json new file mode 100644 index 0000000000..62aed85c1f --- /dev/null +++ b/parser/testdata/00736_disjunction_optimisation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bug", + "tables": [ + { + "table": "bug" + } + ] +} diff --git a/parser/testdata/00737_decimal_group_by/ast.json b/parser/testdata/00737_decimal_group_by/ast.json new file mode 100644 index 0000000000..28d537f50b --- /dev/null +++ b/parser/testdata/00737_decimal_group_by/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Float", + "value": 1.1 + }, + { + "type": "Integer", + "value": 2 + } + ], + "alias": "x" + } + ], + "group_by": [ + { + "parts": [ + "x" + ] + } + ] + } + ] +} diff --git a/parser/testdata/00738_nested_merge_multidimensional_array/ast.json b/parser/testdata/00738_nested_merge_multidimensional_array/ast.json new file mode 100644 index 0000000000..0151b6a6a3 --- /dev/null +++ b/parser/testdata/00738_nested_merge_multidimensional_array/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sites", + "tables": [ + { + "table": "sites" + } + ] +} diff --git a/parser/testdata/00739_array_element_nullable_string_mattrobenolt/ast.json b/parser/testdata/00739_array_element_nullable_string_mattrobenolt/ast.json new file mode 100644 index 0000000000..ef5bfda66f --- /dev/null +++ b/parser/testdata/00739_array_element_nullable_string_mattrobenolt/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "wups", + "tables": [ + { + "table": "wups" + } + ], + "temporary": true +} diff --git a/parser/testdata/00740_optimize_predicate_expression/ast.json b/parser/testdata/00740_optimize_predicate_expression/ast.json new file mode 100644 index 0000000000..3fb70ad0c8 --- /dev/null +++ b/parser/testdata/00740_optimize_predicate_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "perf", + "tables": [ + { + "table": "perf" + } + ] +} diff --git a/parser/testdata/00741_client_comment_multiline/ast.json b/parser/testdata/00741_client_comment_multiline/ast.json new file mode 100644 index 0000000000..e83b1c707a --- /dev/null +++ b/parser/testdata/00741_client_comment_multiline/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "test_00741", + "create_database": true +} diff --git a/parser/testdata/00742_require_join_strictness/ast.json b/parser/testdata/00742_require_join_strictness/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00742_require_join_strictness/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00743_limit_by_not_found_column/ast.json b/parser/testdata/00743_limit_by_not_found_column/ast.json new file mode 100644 index 0000000000..2fc2bf8792 --- /dev/null +++ b/parser/testdata/00743_limit_by_not_found_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "installation_stats", + "tables": [ + { + "table": "installation_stats" + } + ] +} diff --git a/parser/testdata/00744_join_not_found_column/ast.json b/parser/testdata/00744_join_not_found_column/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00744_join_not_found_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00745_compile_scalar_subquery/ast.json b/parser/testdata/00745_compile_scalar_subquery/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/00745_compile_scalar_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00746_compile_non_deterministic_function/ast.json b/parser/testdata/00746_compile_non_deterministic_function/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/00746_compile_non_deterministic_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00746_hashing_tuples/ast.json b/parser/testdata/00746_hashing_tuples/ast.json new file mode 100644 index 0000000000..05cfa44b67 --- /dev/null +++ b/parser/testdata/00746_hashing_tuples/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sipHash64", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00747_contributors/ast.json b/parser/testdata/00747_contributors/ast.json new file mode 100644 index 0000000000..af3c61c9d6 --- /dev/null +++ b/parser/testdata/00747_contributors/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "contributors" + } + } + } + ] + } + } + ] + } + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 200 + } + }, + { + "type": "String", + "value": "ok" + }, + { + "type": "String", + "value": "fail" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00748_insert_array_with_null/ast.json b/parser/testdata/00748_insert_array_with_null/ast.json new file mode 100644 index 0000000000..be72270ead --- /dev/null +++ b/parser/testdata/00748_insert_array_with_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "arraytest", + "tables": [ + { + "table": "arraytest" + } + ] +} diff --git a/parser/testdata/00749_inner_join_of_unnamed_subqueries/ast.json b/parser/testdata/00749_inner_join_of_unnamed_subqueries/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00749_inner_join_of_unnamed_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00750_merge_tree_merge_with_o_direct/ast.json b/parser/testdata/00750_merge_tree_merge_with_o_direct/ast.json new file mode 100644 index 0000000000..95b232258c --- /dev/null +++ b/parser/testdata/00750_merge_tree_merge_with_o_direct/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sample_merge_tree", + "tables": [ + { + "table": "sample_merge_tree" + } + ] +} diff --git a/parser/testdata/00751_default_databasename_for_view/ast.json b/parser/testdata/00751_default_databasename_for_view/ast.json new file mode 100644 index 0000000000..ed7291bbca --- /dev/null +++ b/parser/testdata/00751_default_databasename_for_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00751", + "tables": [ + { + "table": "t_00751" + } + ] +} diff --git a/parser/testdata/00751_hashing_ints/ast.json b/parser/testdata/00751_hashing_ints/ast.json new file mode 100644 index 0000000000..b8a6965b81 --- /dev/null +++ b/parser/testdata/00751_hashing_ints/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "halfMD5", + "arguments": [ + { + "type": "Integer", + "value": 123456 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00751_low_cardinality_nullable_group_by/ast.json b/parser/testdata/00751_low_cardinality_nullable_group_by/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00751_low_cardinality_nullable_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00752_low_cardinality_array_result/ast.json b/parser/testdata/00752_low_cardinality_array_result/ast.json new file mode 100644 index 0000000000..dbeb53db5b --- /dev/null +++ b/parser/testdata/00752_low_cardinality_array_result/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "splitByChar", + "arguments": [ + { + "type": "String", + "value": "," + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "a,b,c" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00752_low_cardinality_lambda_argument/ast.json b/parser/testdata/00752_low_cardinality_lambda_argument/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00752_low_cardinality_lambda_argument/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00752_low_cardinality_left_array_join/ast.json b/parser/testdata/00752_low_cardinality_left_array_join/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00752_low_cardinality_left_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00752_low_cardinality_mv_1/ast.json b/parser/testdata/00752_low_cardinality_mv_1/ast.json new file mode 100644 index 0000000000..5dc8c1a416 --- /dev/null +++ b/parser/testdata/00752_low_cardinality_mv_1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_00752", + "tables": [ + { + "table": "lc_00752" + } + ] +} diff --git a/parser/testdata/00752_low_cardinality_mv_2/ast.json b/parser/testdata/00752_low_cardinality_mv_2/ast.json new file mode 100644 index 0000000000..dfd3f07df1 --- /dev/null +++ b/parser/testdata/00752_low_cardinality_mv_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "radacct", + "tables": [ + { + "table": "radacct" + } + ] +} diff --git a/parser/testdata/00752_low_cardinality_permute/ast.json b/parser/testdata/00752_low_cardinality_permute/ast.json new file mode 100644 index 0000000000..0e6aa60931 --- /dev/null +++ b/parser/testdata/00752_low_cardinality_permute/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_perm", + "tables": [ + { + "table": "lc_perm" + } + ] +} diff --git a/parser/testdata/00753_alter_attach/ast.json b/parser/testdata/00753_alter_attach/ast.json new file mode 100644 index 0000000000..0b52efeaa3 --- /dev/null +++ b/parser/testdata/00753_alter_attach/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_attach", + "tables": [ + { + "table": "alter_attach" + } + ] +} diff --git a/parser/testdata/00753_alter_destination_for_storage_buffer/ast.json b/parser/testdata/00753_alter_destination_for_storage_buffer/ast.json new file mode 100644 index 0000000000..41f20fe578 --- /dev/null +++ b/parser/testdata/00753_alter_destination_for_storage_buffer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dst_00753", + "tables": [ + { + "table": "dst_00753" + } + ] +} diff --git a/parser/testdata/00753_comment_columns_zookeeper/ast.json b/parser/testdata/00753_comment_columns_zookeeper/ast.json new file mode 100644 index 0000000000..f5a507fc86 --- /dev/null +++ b/parser/testdata/00753_comment_columns_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "check_comments", + "tables": [ + { + "table": "check_comments" + } + ] +} diff --git a/parser/testdata/00753_distributed_system_columns_and_system_tables/ast.json b/parser/testdata/00753_distributed_system_columns_and_system_tables/ast.json new file mode 100644 index 0000000000..79d851998d --- /dev/null +++ b/parser/testdata/00753_distributed_system_columns_and_system_tables/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Check total_bytes/total_rows for Distributed" + } + ] + } + ] +} diff --git a/parser/testdata/00753_quantile_format/ast.json b/parser/testdata/00753_quantile_format/ast.json new file mode 100644 index 0000000000..fefe321e89 --- /dev/null +++ b/parser/testdata/00753_quantile_format/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "datetime", + "tables": [ + { + "table": "datetime" + } + ] +} diff --git a/parser/testdata/00753_system_columns_and_system_tables_long/ast.json b/parser/testdata/00753_system_columns_and_system_tables_long/ast.json new file mode 100644 index 0000000000..09c747e116 --- /dev/null +++ b/parser/testdata/00753_system_columns_and_system_tables_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_row_numbers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00753_with_with_single_alias/ast.json b/parser/testdata/00753_with_with_single_alias/ast.json new file mode 100644 index 0000000000..618b4fd4b6 --- /dev/null +++ b/parser/testdata/00753_with_with_single_alias/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "with": [ + { + "name": "myName", + "query": { + "parts": [ + "dummy" + ] + } + } + ], + "columns": [ + { + "parts": [ + "myName" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00754_alter_modify_column_partitions/ast.json b/parser/testdata/00754_alter_modify_column_partitions/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00754_alter_modify_column_partitions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00754_alter_modify_order_by/ast.json b/parser/testdata/00754_alter_modify_order_by/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00754_alter_modify_order_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00754_alter_modify_order_by_replicated_zookeeper_long/ast.json b/parser/testdata/00754_alter_modify_order_by_replicated_zookeeper_long/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/00754_alter_modify_order_by_replicated_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00754_first_significant_subdomain_more/ast.json b/parser/testdata/00754_first_significant_subdomain_more/ast.json new file mode 100644 index 0000000000..34011f68f7 --- /dev/null +++ b/parser/testdata/00754_first_significant_subdomain_more/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "firstSignificantSubdomain", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "http://usa.gov.com/cgi-bin/yabb.pl?password=qwerty" + }, + { + "type": "String", + "value": "https://www2.pentagon.mil.net/index.phtml" + }, + { + "type": "String", + "value": "ftp://stanford.edu.org/~ivanov/phd-thesis.SHTM" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00755_avg_value_size_hint_passing/ast.json b/parser/testdata/00755_avg_value_size_hint_passing/ast.json new file mode 100644 index 0000000000..598a763ebc --- /dev/null +++ b/parser/testdata/00755_avg_value_size_hint_passing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "size_hint", + "tables": [ + { + "table": "size_hint" + } + ] +} diff --git a/parser/testdata/00757_enum_defaults/ast.json b/parser/testdata/00757_enum_defaults/ast.json new file mode 100644 index 0000000000..baf5345b44 --- /dev/null +++ b/parser/testdata/00757_enum_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "auto_assign_enum", + "tables": [ + { + "table": "auto_assign_enum" + } + ] +} diff --git a/parser/testdata/00757_enum_defaults_const_analyzer/ast.json b/parser/testdata/00757_enum_defaults_const_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00757_enum_defaults_const_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00758_array_reverse/ast.json b/parser/testdata/00758_array_reverse/ast.json new file mode 100644 index 0000000000..c8353aa2df --- /dev/null +++ b/parser/testdata/00758_array_reverse/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "reverse", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Null", + "value": null + }, + { + "type": "String", + "value": "\u0000" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00760_insert_json_with_defaults/ast.json b/parser/testdata/00760_insert_json_with_defaults/ast.json new file mode 100644 index 0000000000..00b12f5607 --- /dev/null +++ b/parser/testdata/00760_insert_json_with_defaults/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_defaults_for_omitted_fields", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00760_url_functions_overflow/ast.json b/parser/testdata/00760_url_functions_overflow/ast.json new file mode 100644 index 0000000000..36e2ee067b --- /dev/null +++ b/parser/testdata/00760_url_functions_overflow/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractURLParameter", + "arguments": [ + { + "type": "String", + "value": "?_" + }, + { + "type": "String", + "value": "\u0000_________________________________" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00762_date_comparsion/ast.json b/parser/testdata/00762_date_comparsion/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00762_date_comparsion/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00763_create_query_as_table_engine_bug/ast.json b/parser/testdata/00763_create_query_as_table_engine_bug/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00763_create_query_as_table_engine_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00765_locate/ast.json b/parser/testdata/00765_locate/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00765_locate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00765_sql_compatibility_aliases/ast.json b/parser/testdata/00765_sql_compatibility_aliases/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00765_sql_compatibility_aliases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00779_all_right_join_max_block_size/ast.json b/parser/testdata/00779_all_right_join_max_block_size/ast.json new file mode 100644 index 0000000000..1191a4f56c --- /dev/null +++ b/parser/testdata/00779_all_right_join_max_block_size/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "min_joined_block_size_bytes", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00780_unaligned_array_join/ast.json b/parser/testdata/00780_unaligned_array_join/ast.json new file mode 100644 index 0000000000..8f2625d2f7 --- /dev/null +++ b/parser/testdata/00780_unaligned_array_join/ast.json @@ -0,0 +1,133 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "arr1" + ] + }, + { + "parts": [ + "arr2" + ] + }, + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "range", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ], + "alias": "arr1" + }, + { + "name": "range", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ], + "alias": "arr2" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] + } + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "parts": [ + "arr1" + ], + "alias": "x" + }, + { + "parts": [ + "arr2" + ], + "alias": "y" + } + ] + }, + "settings": [ + { + "name": "enable_unaligned_array_join", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/00794_materialized_view_with_column_defaults/ast.json b/parser/testdata/00794_materialized_view_with_column_defaults/ast.json new file mode 100644 index 0000000000..575f9c6839 --- /dev/null +++ b/parser/testdata/00794_materialized_view_with_column_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_view", + "tables": [ + { + "table": "table_view" + } + ] +} diff --git a/parser/testdata/00799_function_dry_run/ast.json b/parser/testdata/00799_function_dry_run/ast.json new file mode 100644 index 0000000000..3fea70f0ea --- /dev/null +++ b/parser/testdata/00799_function_dry_run/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bm", + "tables": [ + { + "table": "bm" + } + ] +} diff --git a/parser/testdata/00800_function_java_hash/ast.json b/parser/testdata/00800_function_java_hash/ast.json new file mode 100644 index 0000000000..cbd0699b9f --- /dev/null +++ b/parser/testdata/00800_function_java_hash/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "javaHash", + "arguments": [ + { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 123 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00800_low_cardinality_array_group_by_arg/ast.json b/parser/testdata/00800_low_cardinality_array_group_by_arg/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/00800_low_cardinality_array_group_by_arg/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/00800_low_cardinality_distinct_numeric/ast.json b/parser/testdata/00800_low_cardinality_distinct_numeric/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00800_low_cardinality_distinct_numeric/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00800_low_cardinality_distributed_insert/ast.json b/parser/testdata/00800_low_cardinality_distributed_insert/ast.json new file mode 100644 index 0000000000..54a88547c6 --- /dev/null +++ b/parser/testdata/00800_low_cardinality_distributed_insert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_foreground_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00800_low_cardinality_empty_array/ast.json b/parser/testdata/00800_low_cardinality_empty_array/ast.json new file mode 100644 index 0000000000..9340f0672f --- /dev/null +++ b/parser/testdata/00800_low_cardinality_empty_array/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_00800_1", + "tables": [ + { + "table": "lc_00800_1" + } + ] +} diff --git a/parser/testdata/00800_low_cardinality_join/ast.json b/parser/testdata/00800_low_cardinality_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00800_low_cardinality_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00800_versatile_storage_join/ast.json b/parser/testdata/00800_versatile_storage_join/ast.json new file mode 100644 index 0000000000..8d32beb3ff --- /dev/null +++ b/parser/testdata/00800_versatile_storage_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join_any_inner", + "tables": [ + { + "table": "join_any_inner" + } + ] +} diff --git a/parser/testdata/00802_daylight_saving_time_shift_backwards_at_midnight/ast.json b/parser/testdata/00802_daylight_saving_time_shift_backwards_at_midnight/ast.json new file mode 100644 index 0000000000..036c24178b --- /dev/null +++ b/parser/testdata/00802_daylight_saving_time_shift_backwards_at_midnight/ast.json @@ -0,0 +1,97 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "name": "toString", + "arguments": [ + { + "left": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "1981-09-29 00:00:00" + }, + { + "type": "String", + "value": "Europe/Moscow" + } + ] + }, + "op": "+", + "right": { + "value": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 300 + } + }, + "unit": "SECOND" + } + } + ] + } + ], + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10000 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "having": { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 1 + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00802_system_parts_with_datetime_partition/ast.json b/parser/testdata/00802_system_parts_with_datetime_partition/ast.json new file mode 100644 index 0000000000..25f05b93ed --- /dev/null +++ b/parser/testdata/00802_system_parts_with_datetime_partition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "datetime_table", + "tables": [ + { + "table": "datetime_table" + } + ] +} diff --git a/parser/testdata/00803_odbc_driver_2_format/ast.json b/parser/testdata/00803_odbc_driver_2_format/ast.json new file mode 100644 index 0000000000..a584df45e9 --- /dev/null +++ b/parser/testdata/00803_odbc_driver_2_format/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "y" + }, + { + "expr": { + "type": "String", + "value": "Hello" + }, + "alias": "z" + }, + { + "expr": { + "type": "Null", + "value": null + }, + "alias": "a" + } + ], + "format": { + "parts": [ + "ODBCDriver2" + ] + } + } + ] +} diff --git a/parser/testdata/00803_xxhash/ast.json b/parser/testdata/00803_xxhash/ast.json new file mode 100644 index 0000000000..80875897ba --- /dev/null +++ b/parser/testdata/00803_xxhash/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "hex", + "arguments": [ + { + "name": "xxHash64", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + }, + "op": "=", + "right": { + "name": "upper", + "arguments": [ + { + "type": "String", + "value": "ef46db3751d8e999" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00804_rollup_with_having/ast.json b/parser/testdata/00804_rollup_with_having/ast.json new file mode 100644 index 0000000000..f3baf7e07e --- /dev/null +++ b/parser/testdata/00804_rollup_with_having/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rollup_having", + "tables": [ + { + "table": "rollup_having" + } + ] +} diff --git a/parser/testdata/00804_test_alter_compression_codecs/ast.json b/parser/testdata/00804_test_alter_compression_codecs/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00804_test_alter_compression_codecs/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00804_test_custom_compression_codecs/ast.json b/parser/testdata/00804_test_custom_compression_codecs/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00804_test_custom_compression_codecs/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00804_test_custom_compression_codes_log_storages/ast.json b/parser/testdata/00804_test_custom_compression_codes_log_storages/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00804_test_custom_compression_codes_log_storages/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00804_test_deflate_qpl_codec_compression/ast.json b/parser/testdata/00804_test_deflate_qpl_codec_compression/ast.json new file mode 100644 index 0000000000..14aa8fd407 --- /dev/null +++ b/parser/testdata/00804_test_deflate_qpl_codec_compression/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_deflate_qpl_codec", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00804_test_delta_codec_compression/ast.json b/parser/testdata/00804_test_delta_codec_compression/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00804_test_delta_codec_compression/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00804_test_delta_codec_no_type_alter/ast.json b/parser/testdata/00804_test_delta_codec_no_type_alter/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00804_test_delta_codec_no_type_alter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00804_test_zstd_qat_codec_compression/ast.json b/parser/testdata/00804_test_zstd_qat_codec_compression/ast.json new file mode 100644 index 0000000000..a4ef5edcf3 --- /dev/null +++ b/parser/testdata/00804_test_zstd_qat_codec_compression/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_zstd_qat_codec", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00805_round_down/ast.json b/parser/testdata/00805_round_down/ast.json new file mode 100644 index 0000000000..3f6297216f --- /dev/null +++ b/parser/testdata/00805_round_down/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + }, + { + "name": "roundDown", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00806_alter_update/ast.json b/parser/testdata/00806_alter_update/ast.json new file mode 100644 index 0000000000..f4700bac35 --- /dev/null +++ b/parser/testdata/00806_alter_update/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_update_00806", + "tables": [ + { + "table": "alter_update_00806" + } + ] +} diff --git a/parser/testdata/00807_regexp_quote_meta/ast.json b/parser/testdata/00807_regexp_quote_meta/ast.json new file mode 100644 index 0000000000..8d8f92d996 --- /dev/null +++ b/parser/testdata/00807_regexp_quote_meta/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "regexpQuoteMeta", + "arguments": [ + { + "type": "String", + "value": "hello" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00808_array_enumerate_segfault/ast.json b/parser/testdata/00808_array_enumerate_segfault/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00808_array_enumerate_segfault/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00808_not_optimize_predicate/ast.json b/parser/testdata/00808_not_optimize_predicate/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00808_not_optimize_predicate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00809_add_days_segfault/ast.json b/parser/testdata/00809_add_days_segfault/ast.json new file mode 100644 index 0000000000..9ea7c17e34 --- /dev/null +++ b/parser/testdata/00809_add_days_segfault/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ignore", + "arguments": [ + { + "name": "addDays", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00810_in_operators_segfault/ast.json b/parser/testdata/00810_in_operators_segfault/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00810_in_operators_segfault/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00811_garbage/ast.json b/parser/testdata/00811_garbage/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00811_garbage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00812_prewhere_alias_array/ast.json b/parser/testdata/00812_prewhere_alias_array/ast.json new file mode 100644 index 0000000000..c47292d4dc --- /dev/null +++ b/parser/testdata/00812_prewhere_alias_array/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere", + "tables": [ + { + "table": "prewhere" + } + ] +} diff --git a/parser/testdata/00813_parse_date_time_best_effort_more/ast.json b/parser/testdata/00813_parse_date_time_best_effort_more/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/00813_parse_date_time_best_effort_more/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00814_parsing_ub/ast.json b/parser/testdata/00814_parsing_ub/ast.json new file mode 100644 index 0000000000..b24d79f442 --- /dev/null +++ b/parser/testdata/00814_parsing_ub/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toInt8", + "arguments": [ + { + "type": "String", + "value": "-128" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00815_left_join_on_stepanel/ast.json b/parser/testdata/00815_left_join_on_stepanel/ast.json new file mode 100644 index 0000000000..f39eaf56ae --- /dev/null +++ b/parser/testdata/00815_left_join_on_stepanel/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "fact_cpc_clicks", + "tables": [ + { + "table": "fact_cpc_clicks" + } + ] +} diff --git a/parser/testdata/00816_join_column_names_sarg/ast.json b/parser/testdata/00816_join_column_names_sarg/ast.json new file mode 100644 index 0000000000..4b6ab17a44 --- /dev/null +++ b/parser/testdata/00816_join_column_names_sarg/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1_00816", + "tables": [ + { + "table": "t1_00816" + } + ] +} diff --git a/parser/testdata/00817_with_simple/ast.json b/parser/testdata/00817_with_simple/ast.json new file mode 100644 index 0000000000..dd0d306d90 --- /dev/null +++ b/parser/testdata/00817_with_simple/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "with": [ + { + "name": "k", + "query": { + "parts": [ + "number" + ] + } + } + ], + "columns": [ + { + "parts": [ + "k" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00818_alias_bug_4110/ast.json b/parser/testdata/00818_alias_bug_4110/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00818_alias_bug_4110/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00818_inner_join_bug_3567/ast.json b/parser/testdata/00818_inner_join_bug_3567/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/00818_inner_join_bug_3567/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00818_join_bug_4271/ast.json b/parser/testdata/00818_join_bug_4271/ast.json new file mode 100644 index 0000000000..4c43800beb --- /dev/null +++ b/parser/testdata/00818_join_bug_4271/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_00818", + "tables": [ + { + "table": "t_00818" + } + ] +} diff --git a/parser/testdata/00819_ast_refactoring_bugs/ast.json b/parser/testdata/00819_ast_refactoring_bugs/ast.json new file mode 100644 index 0000000000..7cedb27701 --- /dev/null +++ b/parser/testdata/00819_ast_refactoring_bugs/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "visits1", + "tables": [ + { + "table": "visits1" + } + ] +} diff --git a/parser/testdata/00819_full_join_wrong_columns_in_block/ast.json b/parser/testdata/00819_full_join_wrong_columns_in_block/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00819_full_join_wrong_columns_in_block/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00820_multiple_joins/ast.json b/parser/testdata/00820_multiple_joins/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00820_multiple_joins/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00820_multiple_joins_subquery_requires_alias/ast.json b/parser/testdata/00820_multiple_joins_subquery_requires_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00820_multiple_joins_subquery_requires_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00821_distributed_storage_with_join_on/ast.json b/parser/testdata/00821_distributed_storage_with_join_on/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/00821_distributed_storage_with_join_on/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/00822_array_insert_default/ast.json b/parser/testdata/00822_array_insert_default/ast.json new file mode 100644 index 0000000000..e3a58f22bb --- /dev/null +++ b/parser/testdata/00822_array_insert_default/ast.json @@ -0,0 +1,89 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "name": "ignore", + "arguments": [ + {} + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayFirst", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "empty", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10000000 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00823_sequence_match_dfa/ast.json b/parser/testdata/00823_sequence_match_dfa/ast.json new file mode 100644 index 0000000000..0bdb944723 --- /dev/null +++ b/parser/testdata/00823_sequence_match_dfa/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sequence", + "tables": [ + { + "table": "sequence" + } + ] +} diff --git a/parser/testdata/00826_cross_to_inner_join/ast.json b/parser/testdata/00826_cross_to_inner_join/ast.json new file mode 100644 index 0000000000..c9b7c49644 --- /dev/null +++ b/parser/testdata/00826_cross_to_inner_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00829_bitmap64_function/ast.json b/parser/testdata/00829_bitmap64_function/ast.json new file mode 100644 index 0000000000..0cc1f6c199 --- /dev/null +++ b/parser/testdata/00829_bitmap64_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bitmap_test", + "tables": [ + { + "table": "bitmap_test" + } + ] +} diff --git a/parser/testdata/00829_bitmap_function/ast.json b/parser/testdata/00829_bitmap_function/ast.json new file mode 100644 index 0000000000..aaa960d4bc --- /dev/null +++ b/parser/testdata/00829_bitmap_function/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitmapToArray", + "arguments": [ + { + "name": "bitmapBuild", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00830_join_overwrite/ast.json b/parser/testdata/00830_join_overwrite/ast.json new file mode 100644 index 0000000000..87de129d47 --- /dev/null +++ b/parser/testdata/00830_join_overwrite/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "kv", + "tables": [ + { + "table": "kv" + } + ] +} diff --git a/parser/testdata/00831_quantile_weighted_parameter_check/ast.json b/parser/testdata/00831_quantile_weighted_parameter_check/ast.json new file mode 100644 index 0000000000..143fb8f232 --- /dev/null +++ b/parser/testdata/00831_quantile_weighted_parameter_check/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileExactWeighted", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00832_storage_file_lock/ast.json b/parser/testdata/00832_storage_file_lock/ast.json new file mode 100644 index 0000000000..a9a8ffd706 --- /dev/null +++ b/parser/testdata/00832_storage_file_lock/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "file", + "tables": [ + { + "table": "file" + } + ] +} diff --git a/parser/testdata/00833_sleep_overflow/ast.json b/parser/testdata/00833_sleep_overflow/ast.json new file mode 100644 index 0000000000..af0ae862fe --- /dev/null +++ b/parser/testdata/00833_sleep_overflow/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sleep", + "arguments": [ + { + "type": "Float", + "value": 4295.967296 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00834_date_datetime_cmp/ast.json b/parser/testdata/00834_date_datetime_cmp/ast.json new file mode 100644 index 0000000000..adfcb85b22 --- /dev/null +++ b/parser/testdata/00834_date_datetime_cmp/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2017-06-28 12:01:01" + } + ] + }, + "op": "\u003c", + "right": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2017-07-01" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00834_limit_with_constant_expressions/ast.json b/parser/testdata/00834_limit_with_constant_expressions/ast.json new file mode 100644 index 0000000000..22ce938852 --- /dev/null +++ b/parser/testdata/00834_limit_with_constant_expressions/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "limit": { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + } + ] +} diff --git a/parser/testdata/00835_if_generic_case/ast.json b/parser/testdata/00835_if_generic_case/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00835_if_generic_case/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00836_indices_alter/ast.json b/parser/testdata/00836_indices_alter/ast.json new file mode 100644 index 0000000000..770e779bb6 --- /dev/null +++ b/parser/testdata/00836_indices_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "minmax_idx", + "tables": [ + { + "table": "minmax_idx" + } + ] +} diff --git a/parser/testdata/00836_indices_alter_replicated_zookeeper_long/ast.json b/parser/testdata/00836_indices_alter_replicated_zookeeper_long/ast.json new file mode 100644 index 0000000000..770e779bb6 --- /dev/null +++ b/parser/testdata/00836_indices_alter_replicated_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "minmax_idx", + "tables": [ + { + "table": "minmax_idx" + } + ] +} diff --git a/parser/testdata/00836_numbers_table_function_zero/ast.json b/parser/testdata/00836_numbers_table_function_zero/ast.json new file mode 100644 index 0000000000..21cfd68ad4 --- /dev/null +++ b/parser/testdata/00836_numbers_table_function_zero/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00837_insert_select_and_read_prefix/ast.json b/parser/testdata/00837_insert_select_and_read_prefix/ast.json new file mode 100644 index 0000000000..a9a8ffd706 --- /dev/null +++ b/parser/testdata/00837_insert_select_and_read_prefix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "file", + "tables": [ + { + "table": "file" + } + ] +} diff --git a/parser/testdata/00837_minmax_index_replicated_zookeeper_long/ast.json b/parser/testdata/00837_minmax_index_replicated_zookeeper_long/ast.json new file mode 100644 index 0000000000..ad0d047b8a --- /dev/null +++ b/parser/testdata/00837_minmax_index_replicated_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "minmax_idx1", + "tables": [ + { + "table": "minmax_idx1" + } + ] +} diff --git a/parser/testdata/00839_bitmask_negative/ast.json b/parser/testdata/00839_bitmask_negative/ast.json new file mode 100644 index 0000000000..5ec801ab19 --- /dev/null +++ b/parser/testdata/00839_bitmask_negative/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitmaskToList", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00841_temporary_table_database/ast.json b/parser/testdata/00841_temporary_table_database/ast.json new file mode 100644 index 0000000000..e0f4e6ea57 --- /dev/null +++ b/parser/testdata/00841_temporary_table_database/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "t1_00841", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/00842_array_with_constant_overflow/ast.json b/parser/testdata/00842_array_with_constant_overflow/ast.json new file mode 100644 index 0000000000..8128776b28 --- /dev/null +++ b/parser/testdata/00842_array_with_constant_overflow/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayWithConstant", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Float", + "value": 231.37104 + } + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 138 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00843_optimize_predicate_and_rename_table/ast.json b/parser/testdata/00843_optimize_predicate_and_rename_table/ast.json new file mode 100644 index 0000000000..eb99a02f24 --- /dev/null +++ b/parser/testdata/00843_optimize_predicate_and_rename_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00844_join_lightee2/ast.json b/parser/testdata/00844_join_lightee2/ast.json new file mode 100644 index 0000000000..46b21374c1 --- /dev/null +++ b/parser/testdata/00844_join_lightee2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1_00844", + "tables": [ + { + "table": "t1_00844" + } + ] +} diff --git a/parser/testdata/00845_join_on_aliases/ast.json b/parser/testdata/00845_join_on_aliases/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/00845_join_on_aliases/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/00846_join_using_tuple_crash/ast.json b/parser/testdata/00846_join_using_tuple_crash/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00846_join_using_tuple_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00847_multiple_join_same_column/ast.json b/parser/testdata/00847_multiple_join_same_column/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00847_multiple_join_same_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00848_join_use_nulls_segfault/ast.json b/parser/testdata/00848_join_use_nulls_segfault/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00848_join_use_nulls_segfault/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00849_multiple_comma_join_2/ast.json b/parser/testdata/00849_multiple_comma_join_2/ast.json new file mode 100644 index 0000000000..c9b7c49644 --- /dev/null +++ b/parser/testdata/00849_multiple_comma_join_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00850_global_join_dups/ast.json b/parser/testdata/00850_global_join_dups/ast.json new file mode 100644 index 0000000000..24f6216d44 --- /dev/null +++ b/parser/testdata/00850_global_join_dups/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_local", + "tables": [ + { + "table": "t_local" + } + ] +} diff --git a/parser/testdata/00852_any_join_nulls/ast.json b/parser/testdata/00852_any_join_nulls/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/00852_any_join_nulls/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/00853_join_with_nulls_crash/ast.json b/parser/testdata/00853_join_with_nulls_crash/ast.json new file mode 100644 index 0000000000..5c675753a1 --- /dev/null +++ b/parser/testdata/00853_join_with_nulls_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_a", + "tables": [ + { + "table": "table_a" + } + ] +} diff --git a/parser/testdata/00854_multiple_join_asterisks/ast.json b/parser/testdata/00854_multiple_join_asterisks/ast.json new file mode 100644 index 0000000000..182c446971 --- /dev/null +++ b/parser/testdata/00854_multiple_join_asterisks/ast.json @@ -0,0 +1,93 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "t1", + "dummy" + ] + }, + { + "parts": [ + "t2", + "dummy" + ] + }, + { + "parts": [ + "t3", + "dummy" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "database": "system", + "table": "one" + }, + "alias": "t2" + }, + "join": { + "type": "INNER", + "on": { + "left": { + "parts": [ + "t1", + "dummy" + ] + }, + "op": "=", + "right": { + "parts": [ + "t2", + "dummy" + ] + } + } + } + }, + { + "table": { + "table": { + "database": "system", + "table": "one" + }, + "alias": "t3" + }, + "join": { + "type": "INNER", + "on": { + "left": { + "parts": [ + "t1", + "dummy" + ] + }, + "op": "=", + "right": { + "parts": [ + "t3", + "dummy" + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00855_join_with_array_join/ast.json b/parser/testdata/00855_join_with_array_join/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00855_join_with_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00856_no_column_issue_4242/ast.json b/parser/testdata/00856_no_column_issue_4242/ast.json new file mode 100644 index 0000000000..ca52fccbed --- /dev/null +++ b/parser/testdata/00856_no_column_issue_4242/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1_00856", + "tables": [ + { + "table": "t1_00856" + } + ] +} diff --git a/parser/testdata/00857_global_joinsavel_table_alias/ast.json b/parser/testdata/00857_global_joinsavel_table_alias/ast.json new file mode 100644 index 0000000000..3cf7f91498 --- /dev/null +++ b/parser/testdata/00857_global_joinsavel_table_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_table", + "tables": [ + { + "table": "local_table" + } + ] +} diff --git a/parser/testdata/00858_issue_4756/ast.json b/parser/testdata/00858_issue_4756/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/00858_issue_4756/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00859_distinct_with_join/ast.json b/parser/testdata/00859_distinct_with_join/ast.json new file mode 100644 index 0000000000..d6949ef3a2 --- /dev/null +++ b/parser/testdata/00859_distinct_with_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "fooL", + "tables": [ + { + "table": "fooL" + } + ] +} diff --git a/parser/testdata/00860_unknown_identifier_bug/ast.json b/parser/testdata/00860_unknown_identifier_bug/ast.json new file mode 100644 index 0000000000..6495beaa97 --- /dev/null +++ b/parser/testdata/00860_unknown_identifier_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "appointment_events", + "tables": [ + { + "table": "appointment_events" + } + ] +} diff --git a/parser/testdata/00861_decimal_quoted_csv/ast.json b/parser/testdata/00861_decimal_quoted_csv/ast.json new file mode 100644 index 0000000000..5f85001fcf --- /dev/null +++ b/parser/testdata/00861_decimal_quoted_csv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00861", + "tables": [ + { + "table": "test_00861" + } + ] +} diff --git a/parser/testdata/00862_decimal_in/ast.json b/parser/testdata/00862_decimal_in/ast.json new file mode 100644 index 0000000000..10f82a420f --- /dev/null +++ b/parser/testdata/00862_decimal_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "temp", + "tables": [ + { + "table": "temp" + } + ] +} diff --git a/parser/testdata/00863_comma_join_in/ast.json b/parser/testdata/00863_comma_join_in/ast.json new file mode 100644 index 0000000000..dff591f1c7 --- /dev/null +++ b/parser/testdata/00863_comma_join_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1_00863", + "tables": [ + { + "table": "test1_00863" + } + ] +} diff --git a/parser/testdata/00864_union_all_supertype/ast.json b/parser/testdata/00864_union_all_supertype/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00864_union_all_supertype/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00870_t64_codec/ast.json b/parser/testdata/00870_t64_codec/ast.json new file mode 100644 index 0000000000..7e249dd5a8 --- /dev/null +++ b/parser/testdata/00870_t64_codec/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t64", + "tables": [ + { + "table": "t64" + } + ] +} diff --git a/parser/testdata/00871_t64_codec_signed/ast.json b/parser/testdata/00871_t64_codec_signed/ast.json new file mode 100644 index 0000000000..7e249dd5a8 --- /dev/null +++ b/parser/testdata/00871_t64_codec_signed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t64", + "tables": [ + { + "table": "t64" + } + ] +} diff --git a/parser/testdata/00872_t64_bit_codec/ast.json b/parser/testdata/00872_t64_bit_codec/ast.json new file mode 100644 index 0000000000..7e249dd5a8 --- /dev/null +++ b/parser/testdata/00872_t64_bit_codec/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t64", + "tables": [ + { + "table": "t64" + } + ] +} diff --git a/parser/testdata/00873_t64_codec_date/ast.json b/parser/testdata/00873_t64_codec_date/ast.json new file mode 100644 index 0000000000..7e249dd5a8 --- /dev/null +++ b/parser/testdata/00873_t64_codec_date/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t64", + "tables": [ + { + "table": "t64" + } + ] +} diff --git a/parser/testdata/00874_issue_3495/ast.json b/parser/testdata/00874_issue_3495/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00874_issue_3495/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00875_join_right_nulls/ast.json b/parser/testdata/00875_join_right_nulls/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00875_join_right_nulls/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00875_join_right_nulls_ors/ast.json b/parser/testdata/00875_join_right_nulls_ors/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00875_join_right_nulls_ors/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00876_wrong_arraj_join_column/ast.json b/parser/testdata/00876_wrong_arraj_join_column/ast.json new file mode 100644 index 0000000000..ccf930d3a1 --- /dev/null +++ b/parser/testdata/00876_wrong_arraj_join_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "visits", + "tables": [ + { + "table": "visits" + } + ] +} diff --git a/parser/testdata/00877_memory_limit_for_new_delete/ast.json b/parser/testdata/00877_memory_limit_for_new_delete/ast.json new file mode 100644 index 0000000000..e456d721f8 --- /dev/null +++ b/parser/testdata/00877_memory_limit_for_new_delete/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 1000000000 + } + } + ] +} diff --git a/parser/testdata/00878_join_unexpected_results/ast.json b/parser/testdata/00878_join_unexpected_results/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00878_join_unexpected_results/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00879_cast_to_decimal_crash/ast.json b/parser/testdata/00879_cast_to_decimal_crash/ast.json new file mode 100644 index 0000000000..83afbd8044 --- /dev/null +++ b/parser/testdata/00879_cast_to_decimal_crash/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "toIntervalDay", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/00880_decimal_in_key/ast.json b/parser/testdata/00880_decimal_in_key/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/00880_decimal_in_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/00881_unknown_identifier_in_in/ast.json b/parser/testdata/00881_unknown_identifier_in_in/ast.json new file mode 100644 index 0000000000..f3488d954a --- /dev/null +++ b/parser/testdata/00881_unknown_identifier_in_in/ast.json @@ -0,0 +1,115 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "type": "Integer", + "value": 1 + } + ], + "having": { + "expr": { + "parts": [ + "x" + ] + }, + "query": { + "selects": [ + { + "columns": [ + { + "name": "countIf", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "left": { + "parts": [ + "z" + ] + }, + "op": "==", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "y" + }, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "z" + } + ] + } + ] + } + } + } + } + ] + } + } + ] + } + } + } + ] +} diff --git a/parser/testdata/00882_multiple_join_no_alias/ast.json b/parser/testdata/00882_multiple_join_no_alias/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00882_multiple_join_no_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00898_quantile_timing_parameter_check/ast.json b/parser/testdata/00898_quantile_timing_parameter_check/ast.json new file mode 100644 index 0000000000..6abc9dd2ae --- /dev/null +++ b/parser/testdata/00898_quantile_timing_parameter_check/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileTiming", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00899_long_attach_memory_limit/ast.json b/parser/testdata/00899_long_attach_memory_limit/ast.json new file mode 100644 index 0000000000..ab10980e5b --- /dev/null +++ b/parser/testdata/00899_long_attach_memory_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "index_memory", + "tables": [ + { + "table": "index_memory" + } + ] +} diff --git a/parser/testdata/00900_entropy_shard/ast.json b/parser/testdata/00900_entropy_shard/ast.json new file mode 100644 index 0000000000..f9502994f5 --- /dev/null +++ b/parser/testdata/00900_entropy_shard/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "entropy", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 256 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00901_joint_entropy/ast.json b/parser/testdata/00901_joint_entropy/ast.json new file mode 100644 index 0000000000..bfc150ad9a --- /dev/null +++ b/parser/testdata/00901_joint_entropy/ast.json @@ -0,0 +1,384 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "name": "max", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + "op": "-", + "right": { + "name": "min", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 0.000001 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "with": [ + { + "name": "e1", + "query": { + "name": "entropy", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + } + ] + } + }, + { + "name": "e2", + "query": { + "name": "log2", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + }, + { + "name": "e3", + "query": { + "name": "log2", + "arguments": [ + { + "name": "uniq", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + } + ] + } + ] + } + }, + { + "name": "e4", + "query": { + "name": "entropy", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + }, + { + "name": "e5", + "query": { + "name": "entropy", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + }, + { + "name": "e6", + "query": { + "name": "entropy", + "arguments": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "type": "String", + "value": "hello" + }, + "else": { + "type": "String", + "value": "world" + } + }, + { + "name": "range", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + } + ] + } + ] + } + }, + { + "name": "e7", + "query": { + "name": "entropy", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "-", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + }, + { + "name": "e8", + "query": { + "name": "entropy", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + ] + } + } + ], + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "parts": [ + "e1" + ] + }, + { + "parts": [ + "e2" + ] + }, + { + "parts": [ + "e3" + ] + }, + { + "parts": [ + "e4" + ] + }, + { + "parts": [ + "e5" + ] + }, + { + "parts": [ + "e6" + ] + }, + { + "parts": [ + "e7" + ] + }, + { + "parts": [ + "e8" + ] + } + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00902_entropy/ast.json b/parser/testdata/00902_entropy/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/00902_entropy/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/00903_array_with_constant_function/ast.json b/parser/testdata/00903_array_with_constant_function/ast.json new file mode 100644 index 0000000000..5a7a642af7 --- /dev/null +++ b/parser/testdata/00903_array_with_constant_function/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayWithConstant", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "String", + "value": "qwerty" + } + ] + }, + { + "name": "arrayWithConstant", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + }, + { + "name": "arrayWithConstant", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00904_array_with_constant_2/ast.json b/parser/testdata/00904_array_with_constant_2/ast.json new file mode 100644 index 0000000000..0d5fb08ba7 --- /dev/null +++ b/parser/testdata/00904_array_with_constant_2/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayWithConstant", + "arguments": [ + { + "type": "Integer", + "value": 3 + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00905_compile_expressions_compare_big_dates/ast.json b/parser/testdata/00905_compile_expressions_compare_big_dates/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/00905_compile_expressions_compare_big_dates/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00905_field_with_aggregate_function_state/ast.json b/parser/testdata/00905_field_with_aggregate_function_state/ast.json new file mode 100644 index 0000000000..c10fefb193 --- /dev/null +++ b/parser/testdata/00905_field_with_aggregate_function_state/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "with": [ + { + "name": "s", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sumState", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + } + } + ], + "columns": [ + { + "name": "sumMerge", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00906_low_cardinality_cache/ast.json b/parser/testdata/00906_low_cardinality_cache/ast.json new file mode 100644 index 0000000000..1c2938c849 --- /dev/null +++ b/parser/testdata/00906_low_cardinality_cache/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "100M" + } + }, + { + "name": "max_execution_time", + "value": { + "type": "Integer", + "value": 600 + } + } + ] +} diff --git a/parser/testdata/00906_low_cardinality_const_argument/ast.json b/parser/testdata/00906_low_cardinality_const_argument/ast.json new file mode 100644 index 0000000000..8893b66dd8 --- /dev/null +++ b/parser/testdata/00906_low_cardinality_const_argument/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00906_low_cardinality_rollup/ast.json b/parser/testdata/00906_low_cardinality_rollup/ast.json new file mode 100644 index 0000000000..7158c62ec3 --- /dev/null +++ b/parser/testdata/00906_low_cardinality_rollup/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc", + "tables": [ + { + "table": "lc" + } + ] +} diff --git a/parser/testdata/00907_set_index_with_nullable_and_low_cardinality/ast.json b/parser/testdata/00907_set_index_with_nullable_and_low_cardinality/ast.json new file mode 100644 index 0000000000..4b762f96ca --- /dev/null +++ b/parser/testdata/00907_set_index_with_nullable_and_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nullable_set_index", + "tables": [ + { + "table": "nullable_set_index" + } + ] +} diff --git a/parser/testdata/00907_set_index_with_nullable_and_low_cardinality_bug/ast.json b/parser/testdata/00907_set_index_with_nullable_and_low_cardinality_bug/ast.json new file mode 100644 index 0000000000..94fb30e87d --- /dev/null +++ b/parser/testdata/00907_set_index_with_nullable_and_low_cardinality_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_lc_set_index", + "tables": [ + { + "table": "null_lc_set_index" + } + ] +} diff --git a/parser/testdata/00908_analyze_query/ast.json b/parser/testdata/00908_analyze_query/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/00908_analyze_query/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/00909_arrayEnumerateUniq/ast.json b/parser/testdata/00909_arrayEnumerateUniq/ast.json new file mode 100644 index 0000000000..a31cba9637 --- /dev/null +++ b/parser/testdata/00909_arrayEnumerateUniq/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayEnumerateUniq", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00909_ngram_distance/ast.json b/parser/testdata/00909_ngram_distance/ast.json new file mode 100644 index 0000000000..56071a8b59 --- /dev/null +++ b/parser/testdata/00909_ngram_distance/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 1000 + }, + "op": "*", + "right": { + "name": "ngramDistanceUTF8", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + }, + { + "type": "String", + "value": "" + } + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 5 + } + } + ] +} diff --git a/parser/testdata/00910_buffer_prewhere/ast.json b/parser/testdata/00910_buffer_prewhere/ast.json new file mode 100644 index 0000000000..6f0624e7a4 --- /dev/null +++ b/parser/testdata/00910_buffer_prewhere/ast.json @@ -0,0 +1,53 @@ +{ + "table": "mt", + "columns": [ + { + "name": "uid", + "type": { + "name": "UInt64" + } + }, + { + "name": "ts", + "type": { + "name": "DateTime" + } + }, + { + "name": "val", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "uid" + ] + }, + { + "parts": [ + "ts" + ] + } + ] + } + ], + "partition_by": { + "name": "toDate", + "arguments": [ + { + "parts": [ + "ts" + ] + } + ] + } +} diff --git a/parser/testdata/00910_buffer_prewhere_different_types/ast.json b/parser/testdata/00910_buffer_prewhere_different_types/ast.json new file mode 100644 index 0000000000..95597d230e --- /dev/null +++ b/parser/testdata/00910_buffer_prewhere_different_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "buffer_table1__fuzz_28", + "tables": [ + { + "table": "buffer_table1__fuzz_28" + } + ] +} diff --git a/parser/testdata/00910_crash_when_distributed_modify_order_by/ast.json b/parser/testdata/00910_crash_when_distributed_modify_order_by/ast.json new file mode 100644 index 0000000000..2e0a5c5119 --- /dev/null +++ b/parser/testdata/00910_crash_when_distributed_modify_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "union1", + "tables": [ + { + "table": "union1" + } + ] +} diff --git a/parser/testdata/00910_decimal_group_array_crash_3783/ast.json b/parser/testdata/00910_decimal_group_array_crash_3783/ast.json new file mode 100644 index 0000000000..3385881b80 --- /dev/null +++ b/parser/testdata/00910_decimal_group_array_crash_3783/ast.json @@ -0,0 +1,79 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "n" + ] + } + ], + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ], + "alias": "n" + } + ] + } + ] + } + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00910_zookeeper_custom_compression_codecs_replicated_long/ast.json b/parser/testdata/00910_zookeeper_custom_compression_codecs_replicated_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00910_zookeeper_custom_compression_codecs_replicated_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00910_zookeeper_test_alter_compression_codecs_long/ast.json b/parser/testdata/00910_zookeeper_test_alter_compression_codecs_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00910_zookeeper_test_alter_compression_codecs_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00912_string_comparison/ast.json b/parser/testdata/00912_string_comparison/ast.json new file mode 100644 index 0000000000..e18f0f15eb --- /dev/null +++ b/parser/testdata/00912_string_comparison/ast.json @@ -0,0 +1,143 @@ +{ + "selects": [ + { + "with": [ + { + "name": "prefix", + "query": { + "name": "substring", + "arguments": [ + { + "type": "String", + "value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + { + "type": "Integer", + "value": 1 + }, + { + "parts": [ + "number" + ] + } + ] + } + }, + { + "name": "a", + "query": { + "left": { + "parts": [ + "prefix" + ] + }, + "op": "||", + "right": { + "type": "String", + "value": "x" + } + } + }, + { + "name": "b", + "query": { + "left": { + "parts": [ + "prefix" + ] + }, + "op": "||", + "right": { + "type": "String", + "value": "y" + } + } + } + ], + "columns": [ + { + "left": { + "parts": [ + "a" + ] + }, + "op": "=", + "right": { + "parts": [ + "b" + ] + } + }, + { + "left": { + "parts": [ + "a" + ] + }, + "op": "\u003c", + "right": { + "parts": [ + "b" + ] + } + }, + { + "left": { + "parts": [ + "a" + ] + }, + "op": "\u003e", + "right": { + "parts": [ + "b" + ] + } + }, + { + "left": { + "parts": [ + "a" + ] + }, + "op": "\u003c=", + "right": { + "parts": [ + "b" + ] + } + }, + { + "left": { + "parts": [ + "a" + ] + }, + "op": "\u003e=", + "right": { + "parts": [ + "b" + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 40 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00913_many_threads/ast.json b/parser/testdata/00913_many_threads/ast.json new file mode 100644 index 0000000000..5063139306 --- /dev/null +++ b/parser/testdata/00913_many_threads/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "min_insert_block_size_rows", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "min_insert_block_size_bytes", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00914_join_bgranvea/ast.json b/parser/testdata/00914_join_bgranvea/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/00914_join_bgranvea/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/00914_replicate/ast.json b/parser/testdata/00914_replicate/ast.json new file mode 100644 index 0000000000..93f1371791 --- /dev/null +++ b/parser/testdata/00914_replicate/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "replicate", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + "type": { + "name": "String" + } + } + ] + } + ] +} diff --git a/parser/testdata/00915_simple_aggregate_function/ast.json b/parser/testdata/00915_simple_aggregate_function/ast.json new file mode 100644 index 0000000000..432763ffbd --- /dev/null +++ b/parser/testdata/00915_simple_aggregate_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_throw_if_noop", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00915_simple_aggregate_function_summing_merge_tree/ast.json b/parser/testdata/00915_simple_aggregate_function_summing_merge_tree/ast.json new file mode 100644 index 0000000000..432763ffbd --- /dev/null +++ b/parser/testdata/00915_simple_aggregate_function_summing_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_throw_if_noop", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00915_tuple_orantius/ast.json b/parser/testdata/00915_tuple_orantius/ast.json new file mode 100644 index 0000000000..f30a546ebc --- /dev/null +++ b/parser/testdata/00915_tuple_orantius/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "y" + }, + { + "expr": { + "parts": [ + "x" + ] + }, + "list": [ + { + "parts": [ + "y" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00916_add_materialized_column_after/ast.json b/parser/testdata/00916_add_materialized_column_after/ast.json new file mode 100644 index 0000000000..e09dcc6bf7 --- /dev/null +++ b/parser/testdata/00916_add_materialized_column_after/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "add_materialized_column_after", + "tables": [ + { + "table": "add_materialized_column_after" + } + ] +} diff --git a/parser/testdata/00916_create_or_replace_view/ast.json b/parser/testdata/00916_create_or_replace_view/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00916_create_or_replace_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00916_join_using_duplicate_columns/ast.json b/parser/testdata/00916_join_using_duplicate_columns/ast.json new file mode 100644 index 0000000000..a160891761 --- /dev/null +++ b/parser/testdata/00916_join_using_duplicate_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00917_least_sqr/ast.json b/parser/testdata/00917_least_sqr/ast.json new file mode 100644 index 0000000000..59b06e6a44 --- /dev/null +++ b/parser/testdata/00917_least_sqr/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "simpleLinearRegression" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 110 + }, + { + "type": "Integer", + "value": 120 + }, + { + "type": "Integer", + "value": 130 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00917_multiple_joins_denny_crane/ast.json b/parser/testdata/00917_multiple_joins_denny_crane/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/00917_multiple_joins_denny_crane/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00918_json_functions/ast.json b/parser/testdata/00918_json_functions/ast.json new file mode 100644 index 0000000000..b6f386e959 --- /dev/null +++ b/parser/testdata/00918_json_functions/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--allow_simdjson=1--" + } + ] + } + ] +} diff --git a/parser/testdata/00919_histogram_merge/ast.json b/parser/testdata/00919_histogram_merge/ast.json new file mode 100644 index 0000000000..1e7e716a6d --- /dev/null +++ b/parser/testdata/00919_histogram_merge/ast.json @@ -0,0 +1,171 @@ +{ + "selects": [ + { + "with": [ + { + "name": "hist", + "query": { + "name": "arrayJoin", + "arguments": [ + { + "name": "finalizeAggregation", + "arguments": [ + { + "left": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "histogramState", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 190 + } + ] + } + } + } + ] + } + } + ] + } + }, + "op": "+", + "right": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "histogramState", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] + } + } + } + ] + } + ] + } + } + ], + "columns": [ + { + "name": "round", + "arguments": [ + { + "tuple": { + "parts": [ + "hist" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + } + ], + "alias": "l" + }, + { + "name": "round", + "arguments": [ + { + "tuple": { + "parts": [ + "hist" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ], + "alias": "r" + }, + { + "name": "round", + "arguments": [ + { + "tuple": { + "parts": [ + "hist" + ] + }, + "index": { + "type": "Integer", + "value": 3 + } + } + ], + "alias": "cnt" + } + ] + } + ] +} diff --git a/parser/testdata/00919_sum_aggregate_states_constants/ast.json b/parser/testdata/00919_sum_aggregate_states_constants/ast.json new file mode 100644 index 0000000000..ee9b658be6 --- /dev/null +++ b/parser/testdata/00919_sum_aggregate_states_constants/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "finalizeAggregation", + "arguments": [ + { + "left": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sumState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + }, + "op": "+", + "right": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sumState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00920_multiply_aggregate_states_constants/ast.json b/parser/testdata/00920_multiply_aggregate_states_constants/ast.json new file mode 100644 index 0000000000..350a7ed391 --- /dev/null +++ b/parser/testdata/00920_multiply_aggregate_states_constants/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "finalizeAggregation", + "arguments": [ + { + "left": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sumState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + }, + "op": "*", + "right": { + "type": "Integer", + "value": 10 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00921_datetime64_basic/ast.json b/parser/testdata/00921_datetime64_basic/ast.json new file mode 100644 index 0000000000..6fb164c3c5 --- /dev/null +++ b/parser/testdata/00921_datetime64_basic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "A", + "tables": [ + { + "table": "A" + } + ] +} diff --git a/parser/testdata/00926_adaptive_index_granularity_collapsing_merge_tree/ast.json b/parser/testdata/00926_adaptive_index_granularity_collapsing_merge_tree/ast.json new file mode 100644 index 0000000000..af6f6444df --- /dev/null +++ b/parser/testdata/00926_adaptive_index_granularity_collapsing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "zero_rows_per_granule", + "tables": [ + { + "table": "zero_rows_per_granule" + } + ] +} diff --git a/parser/testdata/00926_adaptive_index_granularity_merge_tree/ast.json b/parser/testdata/00926_adaptive_index_granularity_merge_tree/ast.json new file mode 100644 index 0000000000..680d7c2b67 --- /dev/null +++ b/parser/testdata/00926_adaptive_index_granularity_merge_tree/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "----HORIZONTAL MERGE TESTS----" + } + ] + } + ] +} diff --git a/parser/testdata/00926_adaptive_index_granularity_pk/ast.json b/parser/testdata/00926_adaptive_index_granularity_pk/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00926_adaptive_index_granularity_pk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00926_adaptive_index_granularity_replacing_merge_tree/ast.json b/parser/testdata/00926_adaptive_index_granularity_replacing_merge_tree/ast.json new file mode 100644 index 0000000000..af6f6444df --- /dev/null +++ b/parser/testdata/00926_adaptive_index_granularity_replacing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "zero_rows_per_granule", + "tables": [ + { + "table": "zero_rows_per_granule" + } + ] +} diff --git a/parser/testdata/00926_adaptive_index_granularity_versioned_collapsing_merge_tree/ast.json b/parser/testdata/00926_adaptive_index_granularity_versioned_collapsing_merge_tree/ast.json new file mode 100644 index 0000000000..af6f6444df --- /dev/null +++ b/parser/testdata/00926_adaptive_index_granularity_versioned_collapsing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "zero_rows_per_granule", + "tables": [ + { + "table": "zero_rows_per_granule" + } + ] +} diff --git a/parser/testdata/00926_geo_to_h3/ast.json b/parser/testdata/00926_geo_to_h3/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/00926_geo_to_h3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/00926_multimatch/ast.json b/parser/testdata/00926_multimatch/ast.json new file mode 100644 index 0000000000..e0258a6cfd --- /dev/null +++ b/parser/testdata/00926_multimatch/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- With const pattern" + } + ] + } + ] +} diff --git a/parser/testdata/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree_long/ast.json b/parser/testdata/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree_long/ast.json new file mode 100644 index 0000000000..680d7c2b67 --- /dev/null +++ b/parser/testdata/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree_long/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "----HORIZONTAL MERGE TESTS----" + } + ] + } + ] +} diff --git a/parser/testdata/00927_asof_join_correct_bt/ast.json b/parser/testdata/00927_asof_join_correct_bt/ast.json new file mode 100644 index 0000000000..6fb164c3c5 --- /dev/null +++ b/parser/testdata/00927_asof_join_correct_bt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "A", + "tables": [ + { + "table": "A" + } + ] +} diff --git a/parser/testdata/00927_asof_join_long/ast.json b/parser/testdata/00927_asof_join_long/ast.json new file mode 100644 index 0000000000..a2bb48018d --- /dev/null +++ b/parser/testdata/00927_asof_join_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tvs", + "tables": [ + { + "table": "tvs" + } + ] +} diff --git a/parser/testdata/00927_asof_join_noninclusive/ast.json b/parser/testdata/00927_asof_join_noninclusive/ast.json new file mode 100644 index 0000000000..6fb164c3c5 --- /dev/null +++ b/parser/testdata/00927_asof_join_noninclusive/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "A", + "tables": [ + { + "table": "A" + } + ] +} diff --git a/parser/testdata/00927_asof_joins/ast.json b/parser/testdata/00927_asof_joins/ast.json new file mode 100644 index 0000000000..c16ed01ec0 --- /dev/null +++ b/parser/testdata/00927_asof_joins/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "md", + "tables": [ + { + "table": "md" + } + ] +} diff --git a/parser/testdata/00927_disable_hyperscan/ast.json b/parser/testdata/00927_disable_hyperscan/ast.json new file mode 100644 index 0000000000..547589b3a3 --- /dev/null +++ b/parser/testdata/00927_disable_hyperscan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_hyperscan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00928_multi_match_constant_constant/ast.json b/parser/testdata/00928_multi_match_constant_constant/ast.json new file mode 100644 index 0000000000..c241f0d657 --- /dev/null +++ b/parser/testdata/00928_multi_match_constant_constant/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "multiMatchAny", + "arguments": [ + { + "type": "String", + "value": "goodbye" + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "^hello[, ]+world$" + }, + { + "type": "String", + "value": "go+d *bye" + }, + { + "type": "String", + "value": "w(or)+ld" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00929_multi_match_edit_distance/ast.json b/parser/testdata/00929_multi_match_edit_distance/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00929_multi_match_edit_distance/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00930_arrayIntersect/ast.json b/parser/testdata/00930_arrayIntersect/ast.json new file mode 100644 index 0000000000..e0ff4d900e --- /dev/null +++ b/parser/testdata/00930_arrayIntersect/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "array_intersect", + "tables": [ + { + "table": "array_intersect" + } + ] +} diff --git a/parser/testdata/00930_max_partitions_per_insert_block/ast.json b/parser/testdata/00930_max_partitions_per_insert_block/ast.json new file mode 100644 index 0000000000..0f931c8731 --- /dev/null +++ b/parser/testdata/00930_max_partitions_per_insert_block/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "partitions", + "tables": [ + { + "table": "partitions" + } + ] +} diff --git a/parser/testdata/00931_low_cardinality_nullable_aggregate_function_type/ast.json b/parser/testdata/00931_low_cardinality_nullable_aggregate_function_type/ast.json new file mode 100644 index 0000000000..7158c62ec3 --- /dev/null +++ b/parser/testdata/00931_low_cardinality_nullable_aggregate_function_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc", + "tables": [ + { + "table": "lc" + } + ] +} diff --git a/parser/testdata/00931_low_cardinality_read_with_empty_array/ast.json b/parser/testdata/00931_low_cardinality_read_with_empty_array/ast.json new file mode 100644 index 0000000000..f27beee99f --- /dev/null +++ b/parser/testdata/00931_low_cardinality_read_with_empty_array/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_00931", + "tables": [ + { + "table": "lc_00931" + } + ] +} diff --git a/parser/testdata/00931_low_cardinality_set_index_in_key_condition/ast.json b/parser/testdata/00931_low_cardinality_set_index_in_key_condition/ast.json new file mode 100644 index 0000000000..f79f8b230d --- /dev/null +++ b/parser/testdata/00931_low_cardinality_set_index_in_key_condition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_in", + "tables": [ + { + "table": "test_in" + } + ] +} diff --git a/parser/testdata/00932_array_intersect_bug/ast.json b/parser/testdata/00932_array_intersect_bug/ast.json new file mode 100644 index 0000000000..f3176d0f9e --- /dev/null +++ b/parser/testdata/00932_array_intersect_bug/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySort", + "arguments": [ + { + "name": "arrayIntersect", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + }, + { + "type": "String", + "value": "c" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00932_geohash_support/ast.json b/parser/testdata/00932_geohash_support/ast.json new file mode 100644 index 0000000000..14d330c4ce --- /dev/null +++ b/parser/testdata/00932_geohash_support/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "geohash_test_data", + "tables": [ + { + "table": "geohash_test_data" + } + ] +} diff --git a/parser/testdata/00933_alter_ttl/ast.json b/parser/testdata/00933_alter_ttl/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00933_alter_ttl/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00933_reserved_word/ast.json b/parser/testdata/00933_reserved_word/ast.json new file mode 100644 index 0000000000..8ce0c382df --- /dev/null +++ b/parser/testdata/00933_reserved_word/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "reserved_word_table", + "tables": [ + { + "table": "reserved_word_table" + } + ] +} diff --git a/parser/testdata/00933_ttl_simple/ast.json b/parser/testdata/00933_ttl_simple/ast.json new file mode 100644 index 0000000000..caa7bbacc2 --- /dev/null +++ b/parser/testdata/00933_ttl_simple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "" + } + } + ] +} diff --git a/parser/testdata/00933_ttl_with_default/ast.json b/parser/testdata/00933_ttl_with_default/ast.json new file mode 100644 index 0000000000..24ffac95c9 --- /dev/null +++ b/parser/testdata/00933_ttl_with_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_00933_2", + "tables": [ + { + "table": "ttl_00933_2" + } + ] +} diff --git a/parser/testdata/00934_is_valid_utf8/ast.json b/parser/testdata/00934_is_valid_utf8/ast.json new file mode 100644 index 0000000000..e36982ae40 --- /dev/null +++ b/parser/testdata/00934_is_valid_utf8/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "=", + "right": { + "name": "isValidUTF8", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00935_to_iso_week_first_year/ast.json b/parser/testdata/00935_to_iso_week_first_year/ast.json new file mode 100644 index 0000000000..6199e7eb9c --- /dev/null +++ b/parser/testdata/00935_to_iso_week_first_year/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "1970-01-01" + } + ] + }, + "op": "+", + "right": { + "parts": [ + "number" + ] + } + }, + "alias": "d" + }, + { + "name": "toISOWeek", + "arguments": [ + { + "parts": [ + "d" + ] + } + ] + }, + { + "name": "toISOYear", + "arguments": [ + { + "parts": [ + "d" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 15 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00936_crc_functions/ast.json b/parser/testdata/00936_crc_functions/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/00936_crc_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/00936_function_result_with_operator_in/ast.json b/parser/testdata/00936_function_result_with_operator_in/ast.json new file mode 100644 index 0000000000..0118545cd0 --- /dev/null +++ b/parser/testdata/00936_function_result_with_operator_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "force_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00936_substring_utf8_non_const/ast.json b/parser/testdata/00936_substring_utf8_non_const/ast.json new file mode 100644 index 0000000000..82b3cc41bf --- /dev/null +++ b/parser/testdata/00936_substring_utf8_non_const/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "substringUTF8", + "arguments": [ + { + "type": "String", + "value": "hello, привет" + }, + { + "type": "Integer", + "value": 1 + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 16 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00937_ipv4_cidr_range/ast.json b/parser/testdata/00937_ipv4_cidr_range/ast.json new file mode 100644 index 0000000000..abf2c624f9 --- /dev/null +++ b/parser/testdata/00937_ipv4_cidr_range/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "tests" + } + ] + } + ] +} diff --git a/parser/testdata/00938_basename/ast.json b/parser/testdata/00938_basename/ast.json new file mode 100644 index 0000000000..3dee75b52f --- /dev/null +++ b/parser/testdata/00938_basename/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "basename", + "arguments": [ + { + "type": "String", + "value": "/usr/bin/bash" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00938_dataset_test/ast.json b/parser/testdata/00938_dataset_test/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/00938_dataset_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/00938_ipv6_cidr_range/ast.json b/parser/testdata/00938_ipv6_cidr_range/ast.json new file mode 100644 index 0000000000..e718a7f3ea --- /dev/null +++ b/parser/testdata/00938_ipv6_cidr_range/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "check invalid params" + } + ] + } + ] +} diff --git a/parser/testdata/00938_test_retention_function/ast.json b/parser/testdata/00938_test_retention_function/ast.json new file mode 100644 index 0000000000..3003a733fb --- /dev/null +++ b/parser/testdata/00938_test_retention_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "retention_test", + "tables": [ + { + "table": "retention_test" + } + ] +} diff --git a/parser/testdata/00939_limit_by_offset/ast.json b/parser/testdata/00939_limit_by_offset/ast.json new file mode 100644 index 0000000000..7968affd71 --- /dev/null +++ b/parser/testdata/00939_limit_by_offset/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "limit_by", + "tables": [ + { + "table": "limit_by" + } + ] +} diff --git a/parser/testdata/00939_test_null_in/ast.json b/parser/testdata/00939_test_null_in/ast.json new file mode 100644 index 0000000000..948047be90 --- /dev/null +++ b/parser/testdata/00939_test_null_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nullt", + "tables": [ + { + "table": "nullt" + } + ] +} diff --git a/parser/testdata/00940_max_parts_in_total/ast.json b/parser/testdata/00940_max_parts_in_total/ast.json new file mode 100644 index 0000000000..1acb0b8e27 --- /dev/null +++ b/parser/testdata/00940_max_parts_in_total/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "max_parts_in_total", + "tables": [ + { + "table": "max_parts_in_total" + } + ] +} diff --git a/parser/testdata/00940_order_by_read_in_order/ast.json b/parser/testdata/00940_order_by_read_in_order/ast.json new file mode 100644 index 0000000000..6ea92d0e3f --- /dev/null +++ b/parser/testdata/00940_order_by_read_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk_order", + "tables": [ + { + "table": "pk_order" + } + ] +} diff --git a/parser/testdata/00941_to_custom_week/ast.json b/parser/testdata/00941_to_custom_week/ast.json new file mode 100644 index 0000000000..c0aa04fb76 --- /dev/null +++ b/parser/testdata/00941_to_custom_week/ast.json @@ -0,0 +1,72 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toWeek", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "1998-01-01" + } + ] + } + ] + }, + { + "name": "toWeek", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "1997-01-01" + } + ] + } + ] + }, + { + "name": "toWeek", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "1998-01-01" + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toWeek", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "1997-01-01" + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00942_mv_rename_table/ast.json b/parser/testdata/00942_mv_rename_table/ast.json new file mode 100644 index 0000000000..cb48512230 --- /dev/null +++ b/parser/testdata/00942_mv_rename_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src_00942", + "tables": [ + { + "table": "src_00942" + } + ] +} diff --git a/parser/testdata/00943_mv_rename_without_inner_table/ast.json b/parser/testdata/00943_mv_rename_without_inner_table/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/00943_mv_rename_without_inner_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/00944_minmax_nan/ast.json b/parser/testdata/00944_minmax_nan/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/00944_minmax_nan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00944_minmax_null/ast.json b/parser/testdata/00944_minmax_null/ast.json new file mode 100644 index 0000000000..ebc76de471 --- /dev/null +++ b/parser/testdata/00944_minmax_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "min_max_with_nullable_string", + "tables": [ + { + "table": "min_max_with_nullable_string" + } + ] +} diff --git a/parser/testdata/00944_ml_test/ast.json b/parser/testdata/00944_ml_test/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/00944_ml_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/00945_bloom_filter_index/ast.json b/parser/testdata/00945_bloom_filter_index/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/00945_bloom_filter_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00945_ml_test/ast.json b/parser/testdata/00945_ml_test/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/00945_ml_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/00946_ml_test/ast.json b/parser/testdata/00946_ml_test/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/00946_ml_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/00947_ml_test/ast.json b/parser/testdata/00947_ml_test/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/00947_ml_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/00948_to_valid_utf8/ast.json b/parser/testdata/00948_to_valid_utf8/ast.json new file mode 100644 index 0000000000..015c0586ad --- /dev/null +++ b/parser/testdata/00948_to_valid_utf8/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toValidUTF8", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00948_values_interpreter_template/ast.json b/parser/testdata/00948_values_interpreter_template/ast.json new file mode 100644 index 0000000000..77bc97ae89 --- /dev/null +++ b/parser/testdata/00948_values_interpreter_template/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "type_names", + "tables": [ + { + "table": "type_names" + } + ] +} diff --git a/parser/testdata/00949_format/ast.json b/parser/testdata/00949_format/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00949_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00950_bad_alloc_when_truncate_join_storage/ast.json b/parser/testdata/00950_bad_alloc_when_truncate_join_storage/ast.json new file mode 100644 index 0000000000..e501e5cb9f --- /dev/null +++ b/parser/testdata/00950_bad_alloc_when_truncate_join_storage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join_test", + "tables": [ + { + "table": "join_test" + } + ] +} diff --git a/parser/testdata/00950_default_prewhere/ast.json b/parser/testdata/00950_default_prewhere/ast.json new file mode 100644 index 0000000000..b8d9b0d0e2 --- /dev/null +++ b/parser/testdata/00950_default_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_generic_events_all", + "tables": [ + { + "table": "test_generic_events_all" + } + ] +} diff --git a/parser/testdata/00950_test_double_delta_codec/ast.json b/parser/testdata/00950_test_double_delta_codec/ast.json new file mode 100644 index 0000000000..7ac5fba392 --- /dev/null +++ b/parser/testdata/00950_test_double_delta_codec/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "codecTest", + "tables": [ + { + "table": "codecTest" + } + ] +} diff --git a/parser/testdata/00950_test_double_delta_codec_types/ast.json b/parser/testdata/00950_test_double_delta_codec_types/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/00950_test_double_delta_codec_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/00950_test_gorilla_codec/ast.json b/parser/testdata/00950_test_gorilla_codec/ast.json new file mode 100644 index 0000000000..7ac5fba392 --- /dev/null +++ b/parser/testdata/00950_test_gorilla_codec/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "codecTest", + "tables": [ + { + "table": "codecTest" + } + ] +} diff --git a/parser/testdata/00951_ngram_search/ast.json b/parser/testdata/00951_ngram_search/ast.json new file mode 100644 index 0000000000..294141b131 --- /dev/null +++ b/parser/testdata/00951_ngram_search/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 1000 + }, + "op": "*", + "right": { + "name": "ngramSearchUTF8", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + }, + { + "type": "String", + "value": "" + } + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 5 + } + } + ] +} diff --git a/parser/testdata/00952_insert_into_distributed_with_materialized_column/ast.json b/parser/testdata/00952_insert_into_distributed_with_materialized_column/ast.json new file mode 100644 index 0000000000..26eb5ea3e1 --- /dev/null +++ b/parser/testdata/00952_insert_into_distributed_with_materialized_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_00952", + "tables": [ + { + "table": "local_00952" + } + ] +} diff --git a/parser/testdata/00952_part_frozen_info/ast.json b/parser/testdata/00952_part_frozen_info/ast.json new file mode 100644 index 0000000000..ae517540af --- /dev/null +++ b/parser/testdata/00952_part_frozen_info/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "part_info", + "tables": [ + { + "table": "part_info" + } + ] +} diff --git a/parser/testdata/00953_moving_functions/ast.json b/parser/testdata/00953_moving_functions/ast.json new file mode 100644 index 0000000000..968f1479c0 --- /dev/null +++ b/parser/testdata/00953_moving_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "moving_sum_num", + "tables": [ + { + "table": "moving_sum_num" + } + ] +} diff --git a/parser/testdata/00954_resample_combinator/ast.json b/parser/testdata/00954_resample_combinator/ast.json new file mode 100644 index 0000000000..c5c5d48210 --- /dev/null +++ b/parser/testdata/00954_resample_combinator/ast.json @@ -0,0 +1,107 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "sumResample(1, 7, 1)" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 11 + }, + { + "type": "Integer", + "value": 12 + }, + { + "type": "Integer", + "value": 13 + }, + { + "type": "Integer", + "value": 14 + }, + { + "type": "Integer", + "value": 15 + }, + { + "type": "Integer", + "value": 16 + }, + { + "type": "Integer", + "value": 17 + }, + { + "type": "Integer", + "value": 18 + }, + { + "type": "Integer", + "value": 19 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 8 + }, + { + "type": "Integer", + "value": 9 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00955_test_final_mark/ast.json b/parser/testdata/00955_test_final_mark/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/00955_test_final_mark/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/00956_join_use_nulls_with_array_column/ast.json b/parser/testdata/00956_join_use_nulls_with_array_column/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/00956_join_use_nulls_with_array_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00957_coalesce_const_nullable_crash/ast.json b/parser/testdata/00957_coalesce_const_nullable_crash/ast.json new file mode 100644 index 0000000000..36bc1facaa --- /dev/null +++ b/parser/testdata/00957_coalesce_const_nullable_crash/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "coalesce", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00957_delta_diff_bug/ast.json b/parser/testdata/00957_delta_diff_bug/ast.json new file mode 100644 index 0000000000..80fe6886be --- /dev/null +++ b/parser/testdata/00957_delta_diff_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_codecs", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00957_neighbor/ast.json b/parser/testdata/00957_neighbor/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/00957_neighbor/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00960_eval_ml_method_const/ast.json b/parser/testdata/00960_eval_ml_method_const/ast.json new file mode 100644 index 0000000000..a4cb46d60e --- /dev/null +++ b/parser/testdata/00960_eval_ml_method_const/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "with": [ + { + "name": "model", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "stochasticLinearRegressionState", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + } + } + ], + "columns": [ + { + "name": "evalMLMethod", + "arguments": [ + { + "parts": [ + "model" + ] + }, + { + "name": "toFloat64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toFloat64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00961_check_table/ast.json b/parser/testdata/00961_check_table/ast.json new file mode 100644 index 0000000000..adf1f0a3fa --- /dev/null +++ b/parser/testdata/00961_check_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "check_query_single_value_result", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00961_checksums_in_system_parts_columns_table/ast.json b/parser/testdata/00961_checksums_in_system_parts_columns_table/ast.json new file mode 100644 index 0000000000..7b2dd049fc --- /dev/null +++ b/parser/testdata/00961_checksums_in_system_parts_columns_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00961", + "tables": [ + { + "table": "test_00961" + } + ] +} diff --git a/parser/testdata/00961_visit_param_buffer_underflow/ast.json b/parser/testdata/00961_visit_param_buffer_underflow/ast.json new file mode 100644 index 0000000000..bc4d3f64c2 --- /dev/null +++ b/parser/testdata/00961_visit_param_buffer_underflow/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "visitParamExtractRaw", + "arguments": [ + { + "type": "String", + "value": "\"a\":" + }, + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00962_enumNotExect/ast.json b/parser/testdata/00962_enumNotExect/ast.json new file mode 100644 index 0000000000..53ed4bce69 --- /dev/null +++ b/parser/testdata/00962_enumNotExect/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_enum8", + "tables": [ + { + "table": "t_enum8" + } + ] +} diff --git a/parser/testdata/00962_visit_param_various/ast.json b/parser/testdata/00962_visit_param_various/ast.json new file mode 100644 index 0000000000..f50673901c --- /dev/null +++ b/parser/testdata/00962_visit_param_various/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "visitParamExtractUInt", + "arguments": [ + { + "type": "String", + "value": "\"a\":123" + }, + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00963_achimbab/ast.json b/parser/testdata/00963_achimbab/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/00963_achimbab/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00963_startsWith_force_primary_key/ast.json b/parser/testdata/00963_startsWith_force_primary_key/ast.json new file mode 100644 index 0000000000..1dd288a6bc --- /dev/null +++ b/parser/testdata/00963_startsWith_force_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_startsWith", + "tables": [ + { + "table": "test_startsWith" + } + ] +} diff --git a/parser/testdata/00964_os_thread_priority/ast.json b/parser/testdata/00964_os_thread_priority/ast.json new file mode 100644 index 0000000000..11dd65ee6c --- /dev/null +++ b/parser/testdata/00964_os_thread_priority/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "os_threads_nice_value_query", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/00965_shard_unresolvable_addresses/ast.json b/parser/testdata/00965_shard_unresolvable_addresses/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/00965_shard_unresolvable_addresses/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00966_invalid_json_must_not_parse/ast.json b/parser/testdata/00966_invalid_json_must_not_parse/ast.json new file mode 100644 index 0000000000..6f2b718bb0 --- /dev/null +++ b/parser/testdata/00966_invalid_json_must_not_parse/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_simdjson", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00967_insert_into_distributed_different_types/ast.json b/parser/testdata/00967_insert_into_distributed_different_types/ast.json new file mode 100644 index 0000000000..54a88547c6 --- /dev/null +++ b/parser/testdata/00967_insert_into_distributed_different_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_foreground_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00968_file_engine_in_subquery/ast.json b/parser/testdata/00968_file_engine_in_subquery/ast.json new file mode 100644 index 0000000000..fe5a3ef034 --- /dev/null +++ b/parser/testdata/00968_file_engine_in_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tableFile_00968", + "tables": [ + { + "table": "tableFile_00968" + } + ] +} diff --git a/parser/testdata/00968_roundAge/ast.json b/parser/testdata/00968_roundAge/ast.json new file mode 100644 index 0000000000..54d3db8b99 --- /dev/null +++ b/parser/testdata/00968_roundAge/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "roundAge", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00969_columns_clause/ast.json b/parser/testdata/00969_columns_clause/ast.json new file mode 100644 index 0000000000..697f44b79a --- /dev/null +++ b/parser/testdata/00969_columns_clause/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ColumnsClauseTest", + "tables": [ + { + "table": "ColumnsClauseTest" + } + ] +} diff --git a/parser/testdata/00969_roundDuration/ast.json b/parser/testdata/00969_roundDuration/ast.json new file mode 100644 index 0000000000..c37720c6e6 --- /dev/null +++ b/parser/testdata/00969_roundDuration/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "roundDuration", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read/ast.json b/parser/testdata/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read/ast.json new file mode 100644 index 0000000000..1d5f9ced5f --- /dev/null +++ b/parser/testdata/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree", + "tables": [ + { + "table": "merge_tree" + } + ] +} diff --git a/parser/testdata/00972_desc_table_virtual_columns/ast.json b/parser/testdata/00972_desc_table_virtual_columns/ast.json new file mode 100644 index 0000000000..d293f4e353 --- /dev/null +++ b/parser/testdata/00972_desc_table_virtual_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "upyachka", + "tables": [ + { + "table": "upyachka" + } + ] +} diff --git a/parser/testdata/00972_geohashesInBox/ast.json b/parser/testdata/00972_geohashesInBox/ast.json new file mode 100644 index 0000000000..238df53f2b --- /dev/null +++ b/parser/testdata/00972_geohashesInBox/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "center" + } + ] + } + ] +} diff --git a/parser/testdata/00973_create_table_as_table_function/ast.json b/parser/testdata/00973_create_table_as_table_function/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/00973_create_table_as_table_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/00974_adaptive_granularity_secondary_index/ast.json b/parser/testdata/00974_adaptive_granularity_secondary_index/ast.json new file mode 100644 index 0000000000..4cba06adea --- /dev/null +++ b/parser/testdata/00974_adaptive_granularity_secondary_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "indexed_table", + "tables": [ + { + "table": "indexed_table" + } + ] +} diff --git a/parser/testdata/00974_bitmapContains_with_primary_key/ast.json b/parser/testdata/00974_bitmapContains_with_primary_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/00974_bitmapContains_with_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/00974_distributed_join_on/ast.json b/parser/testdata/00974_distributed_join_on/ast.json new file mode 100644 index 0000000000..3fbb17fc00 --- /dev/null +++ b/parser/testdata/00974_distributed_join_on/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "source_table1", + "tables": [ + { + "table": "source_table1" + } + ] +} diff --git a/parser/testdata/00974_final_predicate_push_down/ast.json b/parser/testdata/00974_final_predicate_push_down/ast.json new file mode 100644 index 0000000000..b07cffcb02 --- /dev/null +++ b/parser/testdata/00974_final_predicate_push_down/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00974", + "tables": [ + { + "table": "test_00974" + } + ] +} diff --git a/parser/testdata/00974_fix_join_on/ast.json b/parser/testdata/00974_fix_join_on/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/00974_fix_join_on/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/00974_low_cardinality_cast/ast.json b/parser/testdata/00974_low_cardinality_cast/ast.json new file mode 100644 index 0000000000..5d9909b85e --- /dev/null +++ b/parser/testdata/00974_low_cardinality_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cast_keep_nullable", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00974_query_profiler/ast.json b/parser/testdata/00974_query_profiler/ast.json new file mode 100644 index 0000000000..d9d340af2b --- /dev/null +++ b/parser/testdata/00974_query_profiler/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_introspection_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00975_json_hang/ast.json b/parser/testdata/00975_json_hang/ast.json new file mode 100644 index 0000000000..3211080cf7 --- /dev/null +++ b/parser/testdata/00975_json_hang/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "name": "JSONExtractRaw", + "arguments": [ + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "{\"x\":" + }, + { + "condition": { + "left": { + "name": "rand" + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "type": "String", + "value": "true" + }, + "else": { + "type": "String", + "value": "false" + } + }, + { + "type": "String", + "value": "}" + } + ] + }, + { + "type": "String", + "value": "x" + } + ], + "alias": "res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000000 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "res" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/00975_recursive_materialized_view/ast.json b/parser/testdata/00975_recursive_materialized_view/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/00975_recursive_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/00975_values_list/ast.json b/parser/testdata/00975_values_list/ast.json new file mode 100644 index 0000000000..2e90a1dd2e --- /dev/null +++ b/parser/testdata/00975_values_list/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "values_list", + "tables": [ + { + "table": "values_list" + } + ] +} diff --git a/parser/testdata/00976_max_execution_speed/ast.json b/parser/testdata/00976_max_execution_speed/ast.json new file mode 100644 index 0000000000..6d6ab24d42 --- /dev/null +++ b/parser/testdata/00976_max_execution_speed/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "max_execution_speed", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_execution_time", + "value": { + "type": "Integer", + "value": 3 + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00976_shard_low_cardinality_achimbab/ast.json b/parser/testdata/00976_shard_low_cardinality_achimbab/ast.json new file mode 100644 index 0000000000..88aacb57d7 --- /dev/null +++ b/parser/testdata/00976_shard_low_cardinality_achimbab/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "han_1", + "tables": [ + { + "table": "han_1" + } + ] +} diff --git a/parser/testdata/00976_system_stop_ttl_merges/ast.json b/parser/testdata/00976_system_stop_ttl_merges/ast.json new file mode 100644 index 0000000000..463cbbb397 --- /dev/null +++ b/parser/testdata/00976_system_stop_ttl_merges/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl", + "tables": [ + { + "table": "ttl" + } + ] +} diff --git a/parser/testdata/00976_ttl_with_old_parts/ast.json b/parser/testdata/00976_ttl_with_old_parts/ast.json new file mode 100644 index 0000000000..463cbbb397 --- /dev/null +++ b/parser/testdata/00976_ttl_with_old_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl", + "tables": [ + { + "table": "ttl" + } + ] +} diff --git a/parser/testdata/00977_join_use_nulls_denny_crane/ast.json b/parser/testdata/00977_join_use_nulls_denny_crane/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/00977_join_use_nulls_denny_crane/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/00978_sum_map_bugfix/ast.json b/parser/testdata/00978_sum_map_bugfix/ast.json new file mode 100644 index 0000000000..ddd2fe5237 --- /dev/null +++ b/parser/testdata/00978_sum_map_bugfix/ast.json @@ -0,0 +1,122 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "sumMap" + }, + { + "type": "Array", + "value": [ + { + "parts": [ + "a" + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "parts": [ + "b" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 200 + } + ] + }, + "alias": "a" + }, + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 20 + }, + { + "type": "Integer", + "value": 30 + } + ] + }, + "alias": "b" + }, + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00979_quantileExcatExclusive_and_Inclusive/ast.json b/parser/testdata/00979_quantileExcatExclusive_and_Inclusive/ast.json new file mode 100644 index 0000000000..a060d0c6a1 --- /dev/null +++ b/parser/testdata/00979_quantileExcatExclusive_and_Inclusive/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "num", + "tables": [ + { + "table": "num" + } + ] +} diff --git a/parser/testdata/00979_set_index_not/ast.json b/parser/testdata/00979_set_index_not/ast.json new file mode 100644 index 0000000000..c3fe89bdfe --- /dev/null +++ b/parser/testdata/00979_set_index_not/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "set_index_not", + "tables": [ + { + "table": "set_index_not" + } + ] +} diff --git a/parser/testdata/00979_toFloat_monotonicity/ast.json b/parser/testdata/00979_toFloat_monotonicity/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/00979_toFloat_monotonicity/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00979_yandex_consistent_hash_fpe/ast.json b/parser/testdata/00979_yandex_consistent_hash_fpe/ast.json new file mode 100644 index 0000000000..fa138cc796 --- /dev/null +++ b/parser/testdata/00979_yandex_consistent_hash_fpe/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "kostikConsistentHash", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Integer", + "value": 40000 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00980_crash_nullable_decimal/ast.json b/parser/testdata/00980_crash_nullable_decimal/ast.json new file mode 100644 index 0000000000..3ed592b720 --- /dev/null +++ b/parser/testdata/00980_crash_nullable_decimal/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "median" + }, + { + "type": "Array", + "value": [ + { + "name": "toDecimal32OrNull", + "arguments": [ + { + "type": "String", + "value": "1" + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00980_full_join_crash_fancyqlx/ast.json b/parser/testdata/00980_full_join_crash_fancyqlx/ast.json new file mode 100644 index 0000000000..e90ab05013 --- /dev/null +++ b/parser/testdata/00980_full_join_crash_fancyqlx/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_join", + "tables": [ + { + "table": "test_join" + } + ] +} diff --git a/parser/testdata/00980_merge_alter_settings/ast.json b/parser/testdata/00980_merge_alter_settings/ast.json new file mode 100644 index 0000000000..bbf225ba11 --- /dev/null +++ b/parser/testdata/00980_merge_alter_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "log_for_alter", + "tables": [ + { + "table": "log_for_alter" + } + ] +} diff --git a/parser/testdata/00980_shard_aggregation_state_deserialization/ast.json b/parser/testdata/00980_shard_aggregation_state_deserialization/ast.json new file mode 100644 index 0000000000..8f1156e6e1 --- /dev/null +++ b/parser/testdata/00980_shard_aggregation_state_deserialization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers500k", + "tables": [ + { + "table": "numbers500k" + } + ] +} diff --git a/parser/testdata/00980_skip_unused_shards_without_sharding_key/ast.json b/parser/testdata/00980_skip_unused_shards_without_sharding_key/ast.json new file mode 100644 index 0000000000..24f6216d44 --- /dev/null +++ b/parser/testdata/00980_skip_unused_shards_without_sharding_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_local", + "tables": [ + { + "table": "t_local" + } + ] +} diff --git a/parser/testdata/00980_zookeeper_merge_tree_alter_settings/ast.json b/parser/testdata/00980_zookeeper_merge_tree_alter_settings/ast.json new file mode 100644 index 0000000000..7a1593465c --- /dev/null +++ b/parser/testdata/00980_zookeeper_merge_tree_alter_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replicated_table_for_alter1", + "tables": [ + { + "table": "replicated_table_for_alter1" + } + ] +} diff --git a/parser/testdata/00981_no_virtual_columns/ast.json b/parser/testdata/00981_no_virtual_columns/ast.json new file mode 100644 index 0000000000..bcb33dfe74 --- /dev/null +++ b/parser/testdata/00981_no_virtual_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_a", + "tables": [ + { + "table": "merge_a" + } + ] +} diff --git a/parser/testdata/00981_topK_topKWeighted_long/ast.json b/parser/testdata/00981_topK_topKWeighted_long/ast.json new file mode 100644 index 0000000000..5215a70878 --- /dev/null +++ b/parser/testdata/00981_topK_topKWeighted_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "topk", + "tables": [ + { + "table": "topk" + } + ] +} diff --git a/parser/testdata/00982_low_cardinality_setting_in_mv/ast.json b/parser/testdata/00982_low_cardinality_setting_in_mv/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/00982_low_cardinality_setting_in_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/00983_summing_merge_tree_not_an_identifier/ast.json b/parser/testdata/00983_summing_merge_tree_not_an_identifier/ast.json new file mode 100644 index 0000000000..30918abd33 --- /dev/null +++ b/parser/testdata/00983_summing_merge_tree_not_an_identifier/ast.json @@ -0,0 +1,87 @@ +{ + "table": "xx", + "columns": [ + { + "name": "date", + "type": { + "name": "Date" + } + }, + { + "name": "id", + "type": { + "name": "Int64" + } + }, + { + "name": "clicks", + "type": { + "name": "Int64" + } + }, + { + "name": "price", + "type": { + "name": "Float64" + } + }, + { + "name": "spend", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "SummingMergeTree", + "parameters": [ + { + "type": "Array", + "value": [ + { + "parts": [ + "price" + ] + }, + { + "parts": [ + "spend" + ] + } + ] + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "date" + ] + } + ] + }, + "sample_by": { + "parts": [ + "id" + ] + }, + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/00984_materialized_view_to_columns/ast.json b/parser/testdata/00984_materialized_view_to_columns/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/00984_materialized_view_to_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/00985_merge_stack_overflow/ast.json b/parser/testdata/00985_merge_stack_overflow/ast.json new file mode 100644 index 0000000000..27eca8909b --- /dev/null +++ b/parser/testdata/00985_merge_stack_overflow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge1", + "tables": [ + { + "table": "merge1" + } + ] +} diff --git a/parser/testdata/00986_materialized_view_stack_overflow/ast.json b/parser/testdata/00986_materialized_view_stack_overflow/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/00986_materialized_view_stack_overflow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/00987_distributed_stack_overflow/ast.json b/parser/testdata/00987_distributed_stack_overflow/ast.json new file mode 100644 index 0000000000..46a01f2ae2 --- /dev/null +++ b/parser/testdata/00987_distributed_stack_overflow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "distr0", + "tables": [ + { + "table": "distr0" + } + ] +} diff --git a/parser/testdata/00988_constraints_replication_zookeeper_long/ast.json b/parser/testdata/00988_constraints_replication_zookeeper_long/ast.json new file mode 100644 index 0000000000..ba1481f7d3 --- /dev/null +++ b/parser/testdata/00988_constraints_replication_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replicated_constraints1", + "tables": [ + { + "table": "replicated_constraints1" + } + ] +} diff --git a/parser/testdata/00988_expansion_aliases_limit/ast.json b/parser/testdata/00988_expansion_aliases_limit/ast.json new file mode 100644 index 0000000000..e5866cd81a --- /dev/null +++ b/parser/testdata/00988_expansion_aliases_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_expanded_ast_elements", + "value": { + "type": "Integer", + "value": 10000 + } + } + ] +} diff --git a/parser/testdata/00988_parallel_parts_removal/ast.json b/parser/testdata/00988_parallel_parts_removal/ast.json new file mode 100644 index 0000000000..1450425ed6 --- /dev/null +++ b/parser/testdata/00988_parallel_parts_removal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ] +} diff --git a/parser/testdata/00989_parallel_parts_loading/ast.json b/parser/testdata/00989_parallel_parts_loading/ast.json new file mode 100644 index 0000000000..1450425ed6 --- /dev/null +++ b/parser/testdata/00989_parallel_parts_loading/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ] +} diff --git a/parser/testdata/00990_function_current_user/ast.json b/parser/testdata/00990_function_current_user/ast.json new file mode 100644 index 0000000000..6b8f8f3806 --- /dev/null +++ b/parser/testdata/00990_function_current_user/ast.json @@ -0,0 +1,14 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "currentUser" + }, + "not": true + } + ] + } + ] +} diff --git a/parser/testdata/00990_hasToken_and_tokenbf/ast.json b/parser/testdata/00990_hasToken_and_tokenbf/ast.json new file mode 100644 index 0000000000..fdc3fcfcc5 --- /dev/null +++ b/parser/testdata/00990_hasToken_and_tokenbf/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bloom_filter", + "tables": [ + { + "table": "bloom_filter" + } + ] +} diff --git a/parser/testdata/00990_metric_log_table_not_empty/ast.json b/parser/testdata/00990_metric_log_table_not_empty/ast.json new file mode 100644 index 0000000000..0c9708d5cd --- /dev/null +++ b/parser/testdata/00990_metric_log_table_not_empty/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sleep", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/00990_request_splitting/ast.json b/parser/testdata/00990_request_splitting/ast.json new file mode 100644 index 0000000000..c10cba1d9d --- /dev/null +++ b/parser/testdata/00990_request_splitting/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "url", + "arguments": [ + { + "type": "String", + "value": "http://127.0.0.1:1337/? HTTP/1.1\r\nTest: test" + }, + { + "parts": [ + "CSV" + ] + }, + { + "type": "String", + "value": "column1 String" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00994_table_function_numbers_mt/ast.json b/parser/testdata/00994_table_function_numbers_mt/ast.json new file mode 100644 index 0000000000..645d81e5ed --- /dev/null +++ b/parser/testdata/00994_table_function_numbers_mt/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "min", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "name": "max", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "name": "sum", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 10000000 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00995_optimize_read_in_order_with_aggregation/ast.json b/parser/testdata/00995_optimize_read_in_order_with_aggregation/ast.json new file mode 100644 index 0000000000..d121fc848a --- /dev/null +++ b/parser/testdata/00995_optimize_read_in_order_with_aggregation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00995_order_by_with_fill/ast.json b/parser/testdata/00995_order_by_with_fill/ast.json new file mode 100644 index 0000000000..c57dd929b0 --- /dev/null +++ b/parser/testdata/00995_order_by_with_fill/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "fill", + "tables": [ + { + "table": "fill" + } + ] +} diff --git a/parser/testdata/00996_limit_with_ties/ast.json b/parser/testdata/00996_limit_with_ties/ast.json new file mode 100644 index 0000000000..520ecf6976 --- /dev/null +++ b/parser/testdata/00996_limit_with_ties/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ties", + "tables": [ + { + "table": "ties" + } + ] +} diff --git a/parser/testdata/00996_neighbor/ast.json b/parser/testdata/00996_neighbor/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/00996_neighbor/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00997_extract_all_crash_6627/ast.json b/parser/testdata/00997_extract_all_crash_6627/ast.json new file mode 100644 index 0000000000..403e4a4bcd --- /dev/null +++ b/parser/testdata/00997_extract_all_crash_6627/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractAll", + "arguments": [ + { + "type": "String", + "value": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.143 YaBrowser/19.7.2.455 Yowser/2.5 Safari/537.36" + }, + { + "type": "String", + "value": "[Y][a-zA-Z]{8}/[1-9]([1-9]+)?(((.?)([0-9]+)?){0,4})?" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/00997_set_index_array/ast.json b/parser/testdata/00997_set_index_array/ast.json new file mode 100644 index 0000000000..6508ea1025 --- /dev/null +++ b/parser/testdata/00997_set_index_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_index_analysis_only_on_coordinator", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00998_constraints_all_tables/ast.json b/parser/testdata/00998_constraints_all_tables/ast.json new file mode 100644 index 0000000000..8353d8094f --- /dev/null +++ b/parser/testdata/00998_constraints_all_tables/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "constrained", + "tables": [ + { + "table": "constrained" + } + ] +} diff --git a/parser/testdata/00999_full_join_dup_keys_crash/ast.json b/parser/testdata/00999_full_join_dup_keys_crash/ast.json new file mode 100644 index 0000000000..9921233014 --- /dev/null +++ b/parser/testdata/00999_full_join_dup_keys_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/00999_join_not_nullable_types/ast.json b/parser/testdata/00999_join_not_nullable_types/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/00999_join_not_nullable_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/00999_join_on_expression/ast.json b/parser/testdata/00999_join_on_expression/ast.json new file mode 100644 index 0000000000..26e34cc2e5 --- /dev/null +++ b/parser/testdata/00999_join_on_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "X", + "tables": [ + { + "table": "X" + } + ] +} diff --git a/parser/testdata/00999_nullable_nested_types_4877/ast.json b/parser/testdata/00999_nullable_nested_types_4877/ast.json new file mode 100644 index 0000000000..6eb407eccc --- /dev/null +++ b/parser/testdata/00999_nullable_nested_types_4877/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "l", + "tables": [ + { + "table": "l" + } + ] +} diff --git a/parser/testdata/00999_settings_no_extra_quotes/ast.json b/parser/testdata/00999_settings_no_extra_quotes/ast.json new file mode 100644 index 0000000000..db52b67098 --- /dev/null +++ b/parser/testdata/00999_settings_no_extra_quotes/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "expr": { + "parts": [ + "description" + ] + }, + "pattern": { + "type": "String", + "value": "\"%\"" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/00999_test_skip_indices_with_alter_and_merge/ast.json b/parser/testdata/00999_test_skip_indices_with_alter_and_merge/ast.json new file mode 100644 index 0000000000..8d517c0485 --- /dev/null +++ b/parser/testdata/00999_test_skip_indices_with_alter_and_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_vertical_merge", + "tables": [ + { + "table": "test_vertical_merge" + } + ] +} diff --git a/parser/testdata/01000_bad_size_of_marks_skip_idx/ast.json b/parser/testdata/01000_bad_size_of_marks_skip_idx/ast.json new file mode 100644 index 0000000000..b33c660b06 --- /dev/null +++ b/parser/testdata/01000_bad_size_of_marks_skip_idx/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bad_skip_idx", + "tables": [ + { + "table": "bad_skip_idx" + } + ] +} diff --git a/parser/testdata/01000_subquery_requires_alias/ast.json b/parser/testdata/01000_subquery_requires_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01000_subquery_requires_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01001_enums_in_in_section/ast.json b/parser/testdata/01001_enums_in_in_section/ast.json new file mode 100644 index 0000000000..0995d25898 --- /dev/null +++ b/parser/testdata/01001_enums_in_in_section/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enums", + "tables": [ + { + "table": "enums" + } + ] +} diff --git a/parser/testdata/01006_ttl_with_default_2/ast.json b/parser/testdata/01006_ttl_with_default_2/ast.json new file mode 100644 index 0000000000..ffb3917dd0 --- /dev/null +++ b/parser/testdata/01006_ttl_with_default_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_with_default", + "tables": [ + { + "table": "ttl_with_default" + } + ] +} diff --git a/parser/testdata/01008_materialized_view_henyihanwobushi/ast.json b/parser/testdata/01008_materialized_view_henyihanwobushi/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/01008_materialized_view_henyihanwobushi/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/01009_global_array_join_names/ast.json b/parser/testdata/01009_global_array_join_names/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/01009_global_array_join_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/01009_insert_select_data_loss/ast.json b/parser/testdata/01009_insert_select_data_loss/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01009_insert_select_data_loss/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01009_insert_select_nicelulu/ast.json b/parser/testdata/01009_insert_select_nicelulu/ast.json new file mode 100644 index 0000000000..20f561537c --- /dev/null +++ b/parser/testdata/01009_insert_select_nicelulu/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_insert_t1", + "tables": [ + { + "table": "test_insert_t1" + } + ] +} diff --git a/parser/testdata/01010_partial_merge_join/ast.json b/parser/testdata/01010_partial_merge_join/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01010_partial_merge_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01010_partial_merge_join_const_and_lc/ast.json b/parser/testdata/01010_partial_merge_join_const_and_lc/ast.json new file mode 100644 index 0000000000..ac5c54b4e8 --- /dev/null +++ b/parser/testdata/01010_partial_merge_join_const_and_lc/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/01010_partial_merge_join_negative/ast.json b/parser/testdata/01010_partial_merge_join_negative/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01010_partial_merge_join_negative/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01010_pm_join_all_join_bug/ast.json b/parser/testdata/01010_pm_join_all_join_bug/ast.json new file mode 100644 index 0000000000..e121b08a11 --- /dev/null +++ b/parser/testdata/01010_pm_join_all_join_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ints", + "tables": [ + { + "table": "ints" + } + ] +} diff --git a/parser/testdata/01010_pmj_on_disk/ast.json b/parser/testdata/01010_pmj_on_disk/ast.json new file mode 100644 index 0000000000..2d1570031a --- /dev/null +++ b/parser/testdata/01010_pmj_on_disk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "hash" + } + } + ] +} diff --git a/parser/testdata/01010_pmj_one_row_blocks/ast.json b/parser/testdata/01010_pmj_one_row_blocks/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01010_pmj_one_row_blocks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01010_pmj_right_table_memory_limits/ast.json b/parser/testdata/01010_pmj_right_table_memory_limits/ast.json new file mode 100644 index 0000000000..a2dc4ad498 --- /dev/null +++ b/parser/testdata/01010_pmj_right_table_memory_limits/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_in_join", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01010_pmj_skip_blocks/ast.json b/parser/testdata/01010_pmj_skip_blocks/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01010_pmj_skip_blocks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01011_group_uniq_array_memsan/ast.json b/parser/testdata/01011_group_uniq_array_memsan/ast.json new file mode 100644 index 0000000000..5d74997d2f --- /dev/null +++ b/parser/testdata/01011_group_uniq_array_memsan/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupUniqArray", + "arguments": [ + { + "parts": [ + "v" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "String", + "value": "id int, v Array(int)" + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "id" + ] + } + ] + } + ] +} diff --git a/parser/testdata/01011_test_create_as_skip_indices/ast.json b/parser/testdata/01011_test_create_as_skip_indices/ast.json new file mode 100644 index 0000000000..3f23a9c7e3 --- /dev/null +++ b/parser/testdata/01011_test_create_as_skip_indices/ast.json @@ -0,0 +1,39 @@ +{ + "table": "foo", + "columns": [ + { + "name": "key", + "type": { + "name": "int" + } + } + ], + "indexes": [ + { + "name": "i1", + "expression": { + "parts": [ + "key" + ] + }, + "type": { + "name": "minmax" + }, + "granularity": { + "type": "Integer", + "value": 1 + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/01012_reset_running_accumulate/ast.json b/parser/testdata/01012_reset_running_accumulate/ast.json new file mode 100644 index 0000000000..5dd0e1cc44 --- /dev/null +++ b/parser/testdata/01012_reset_running_accumulate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01012_select_limit_x_0/ast.json b/parser/testdata/01012_select_limit_x_0/ast.json new file mode 100644 index 0000000000..210c6932dd --- /dev/null +++ b/parser/testdata/01012_select_limit_x_0/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 0 + }, + "offset": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01012_serialize_array_memory_usage/ast.json b/parser/testdata/01012_serialize_array_memory_usage/ast.json new file mode 100644 index 0000000000..12efc84e80 --- /dev/null +++ b/parser/testdata/01012_serialize_array_memory_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 300000000 + } + } + ] +} diff --git a/parser/testdata/01013_hex_decimal/ast.json b/parser/testdata/01013_hex_decimal/ast.json new file mode 100644 index 0000000000..14b188bdf8 --- /dev/null +++ b/parser/testdata/01013_hex_decimal/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Float", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01013_hex_float/ast.json b/parser/testdata/01013_hex_float/ast.json new file mode 100644 index 0000000000..a9e980c2d4 --- /dev/null +++ b/parser/testdata/01013_hex_float/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "type": "Float", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01013_repeat_function/ast.json b/parser/testdata/01013_repeat_function/ast.json new file mode 100644 index 0000000000..f19d1e4a19 --- /dev/null +++ b/parser/testdata/01013_repeat_function/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "abc" + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01013_totals_without_aggregation/ast.json b/parser/testdata/01013_totals_without_aggregation/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01013_totals_without_aggregation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01014_count_of_merges_metrics/ast.json b/parser/testdata/01014_count_of_merges_metrics/ast.json new file mode 100644 index 0000000000..9099bf5e84 --- /dev/null +++ b/parser/testdata/01014_count_of_merges_metrics/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "new_table_test", + "tables": [ + { + "table": "new_table_test" + } + ] +} diff --git a/parser/testdata/01014_function_repeat_corner_cases/ast.json b/parser/testdata/01014_function_repeat_corner_cases/ast.json new file mode 100644 index 0000000000..e527336522 --- /dev/null +++ b/parser/testdata/01014_function_repeat_corner_cases/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "length", + "arguments": [ + { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "x" + }, + { + "type": "Integer", + "value": 1000000 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01015_array_split/ast.json b/parser/testdata/01015_array_split/ast.json new file mode 100644 index 0000000000..3ac0ab5606 --- /dev/null +++ b/parser/testdata/01015_array_split/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySplit", + "arguments": [ + { + "parameters": [ + "x", + "y" + ], + "body": { + "parts": [ + "y" + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01015_attach_part/ast.json b/parser/testdata/01015_attach_part/ast.json new file mode 100644 index 0000000000..d51e15ef4b --- /dev/null +++ b/parser/testdata/01015_attach_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_01", + "tables": [ + { + "table": "table_01" + } + ] +} diff --git a/parser/testdata/01015_random_constant/ast.json b/parser/testdata/01015_random_constant/ast.json new file mode 100644 index 0000000000..28271ad220 --- /dev/null +++ b/parser/testdata/01015_random_constant/ast.json @@ -0,0 +1,18 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "randConstant" + }, + "op": "\u003e=", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/01016_index_tuple_field_type/ast.json b/parser/testdata/01016_index_tuple_field_type/ast.json new file mode 100644 index 0000000000..029726dc5b --- /dev/null +++ b/parser/testdata/01016_index_tuple_field_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tuple_01016", + "tables": [ + { + "table": "tuple_01016" + } + ] +} diff --git a/parser/testdata/01016_macros/ast.json b/parser/testdata/01016_macros/ast.json new file mode 100644 index 0000000000..0584ff896c --- /dev/null +++ b/parser/testdata/01016_macros/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "macros" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "macro" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "test" + } + } + } + ] +} diff --git a/parser/testdata/01016_null_part_minmax/ast.json b/parser/testdata/01016_null_part_minmax/ast.json new file mode 100644 index 0000000000..681909d961 --- /dev/null +++ b/parser/testdata/01016_null_part_minmax/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_01016", + "tables": [ + { + "table": "null_01016" + } + ] +} diff --git a/parser/testdata/01016_simhash_minhash/ast.json b/parser/testdata/01016_simhash_minhash/ast.json new file mode 100644 index 0000000000..028a254dbe --- /dev/null +++ b/parser/testdata/01016_simhash_minhash/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ngramSimHash", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01016_simhash_minhash_ppc/ast.json b/parser/testdata/01016_simhash_minhash_ppc/ast.json new file mode 100644 index 0000000000..028a254dbe --- /dev/null +++ b/parser/testdata/01016_simhash_minhash_ppc/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ngramSimHash", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01016_uniqCombined64/ast.json b/parser/testdata/01016_uniqCombined64/ast.json new file mode 100644 index 0000000000..ac4f6810fe --- /dev/null +++ b/parser/testdata/01016_uniqCombined64/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqCombined", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Float", + "value": 10000000 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01017_bithamming_distance/ast.json b/parser/testdata/01017_bithamming_distance/ast.json new file mode 100644 index 0000000000..a49c7dc2d6 --- /dev/null +++ b/parser/testdata/01017_bithamming_distance/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitHammingDistance", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01017_in_unconvertible_complex_type/ast.json b/parser/testdata/01017_in_unconvertible_complex_type/ast.json new file mode 100644 index 0000000000..0f67b856b4 --- /dev/null +++ b/parser/testdata/01017_in_unconvertible_complex_type/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "list": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01017_tuplehamming_distance/ast.json b/parser/testdata/01017_tuplehamming_distance/ast.json new file mode 100644 index 0000000000..52feea8f9d --- /dev/null +++ b/parser/testdata/01017_tuplehamming_distance/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleHammingDistance", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01017_uniqCombined_memory_usage/ast.json b/parser/testdata/01017_uniqCombined_memory_usage/ast.json new file mode 100644 index 0000000000..b0c9acd112 --- /dev/null +++ b/parser/testdata/01017_uniqCombined_memory_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_uncompressed_cache", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01018_Distributed__shard_num/ast.json b/parser/testdata/01018_Distributed__shard_num/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/01018_Distributed__shard_num/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01018_ambiguous_column/ast.json b/parser/testdata/01018_ambiguous_column/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/01018_ambiguous_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01018_ddl_dictionaries_create/ast.json b/parser/testdata/01018_ddl_dictionaries_create/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_create/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01018_ddl_dictionaries_select/ast.json b/parser/testdata/01018_ddl_dictionaries_select/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01018_ddl_dictionaries_special/ast.json b/parser/testdata/01018_ddl_dictionaries_special/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01018_ddl_dictionaries_special/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01018_dictionaries_from_dictionaries/ast.json b/parser/testdata/01018_dictionaries_from_dictionaries/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01018_dictionaries_from_dictionaries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01018_empty_aggregation_filling/ast.json b/parser/testdata/01018_empty_aggregation_filling/ast.json new file mode 100644 index 0000000000..07dab77590 --- /dev/null +++ b/parser/testdata/01018_empty_aggregation_filling/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- Int Empty ---" + } + ] + } + ] +} diff --git a/parser/testdata/01018_ip_dictionary_long/ast.json b/parser/testdata/01018_ip_dictionary_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01018_ip_dictionary_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01018_optimize_read_in_order_with_in_subquery/ast.json b/parser/testdata/01018_optimize_read_in_order_with_in_subquery/ast.json new file mode 100644 index 0000000000..a731cda38e --- /dev/null +++ b/parser/testdata/01018_optimize_read_in_order_with_in_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01019_Buffer_and_max_memory_usage/ast.json b/parser/testdata/01019_Buffer_and_max_memory_usage/ast.json new file mode 100644 index 0000000000..4c0b46c01b --- /dev/null +++ b/parser/testdata/01019_Buffer_and_max_memory_usage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_", + "tables": [ + { + "table": "null_" + } + ] +} diff --git a/parser/testdata/01019_alter_materialized_view_query/ast.json b/parser/testdata/01019_alter_materialized_view_query/ast.json new file mode 100644 index 0000000000..09beaa1cbf --- /dev/null +++ b/parser/testdata/01019_alter_materialized_view_query/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src_01019", + "tables": [ + { + "table": "src_01019" + } + ] +} diff --git a/parser/testdata/01019_array_fill/ast.json b/parser/testdata/01019_array_fill/ast.json new file mode 100644 index 0000000000..39e3f600f7 --- /dev/null +++ b/parser/testdata/01019_array_fill/ast.json @@ -0,0 +1,75 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFill", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Integer", + "value": 0 + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 11 + }, + { + "type": "Integer", + "value": 12 + }, + { + "type": "Integer", + "value": 13 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + }, + { + "type": "Integer", + "value": 14 + }, + { + "type": "Integer", + "value": 15 + }, + { + "type": "Integer", + "value": 16 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01019_materialized_view_select_extra_columns/ast.json b/parser/testdata/01019_materialized_view_select_extra_columns/ast.json new file mode 100644 index 0000000000..80532b40b3 --- /dev/null +++ b/parser/testdata/01019_materialized_view_select_extra_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_materialized_view_with_bad_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01020_function_array_compact/ast.json b/parser/testdata/01020_function_array_compact/ast.json new file mode 100644 index 0000000000..58f53468c4 --- /dev/null +++ b/parser/testdata/01020_function_array_compact/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayCompact", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01020_having_without_group_by/ast.json b/parser/testdata/01020_having_without_group_by/ast.json new file mode 100644 index 0000000000..5ab96bb312 --- /dev/null +++ b/parser/testdata/01020_having_without_group_by/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "having": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01021_create_as_select/ast.json b/parser/testdata/01021_create_as_select/ast.json new file mode 100644 index 0000000000..eb34151265 --- /dev/null +++ b/parser/testdata/01021_create_as_select/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "create_as_select_01021", + "tables": [ + { + "table": "create_as_select_01021" + } + ] +} diff --git a/parser/testdata/01021_only_tuple_columns/ast.json b/parser/testdata/01021_only_tuple_columns/ast.json new file mode 100644 index 0000000000..68a6006d01 --- /dev/null +++ b/parser/testdata/01021_only_tuple_columns/ast.json @@ -0,0 +1,30 @@ +{ + "table": "test", + "columns": [ + { + "name": "x", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "UInt64" + }, + { + "name": "UInt64" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/01023_materialized_view_query_context/ast.json b/parser/testdata/01023_materialized_view_query_context/ast.json new file mode 100644 index 0000000000..54a88547c6 --- /dev/null +++ b/parser/testdata/01023_materialized_view_query_context/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_foreground_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01024__getScalar/ast.json b/parser/testdata/01024__getScalar/ast.json new file mode 100644 index 0000000000..5d21caef69 --- /dev/null +++ b/parser/testdata/01024__getScalar/ast.json @@ -0,0 +1,32 @@ +{ + "table": "foo", + "columns": [ + { + "name": "key", + "type": { + "name": "String" + } + }, + { + "name": "macro", + "type": { + "name": "String" + }, + "default": { + "name": "__getScalar", + "arguments": [ + { + "parts": [ + "key" + ] + } + ] + }, + "default_kind": "MATERIALIZED" + } + ], + "engine": { + "name": "Null", + "has_parentheses": true + } +} diff --git a/parser/testdata/01025_array_compact_generic/ast.json b/parser/testdata/01025_array_compact_generic/ast.json new file mode 100644 index 0000000000..38669ebf75 --- /dev/null +++ b/parser/testdata/01025_array_compact_generic/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayCompact", + "arguments": [ + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01026_char_utf8/ast.json b/parser/testdata/01026_char_utf8/ast.json new file mode 100644 index 0000000000..1e7ad0a66b --- /dev/null +++ b/parser/testdata/01026_char_utf8/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "char", + "arguments": [ + { + "type": "Integer", + "value": 208 + }, + { + "type": "Integer", + "value": 191 + }, + { + "type": "Integer", + "value": 209 + }, + { + "type": "Integer", + "value": 128 + }, + { + "type": "Integer", + "value": 208 + }, + { + "type": "Integer", + "value": 184 + }, + { + "type": "Integer", + "value": 208 + }, + { + "type": "Integer", + "value": 178 + }, + { + "type": "Integer", + "value": 208 + }, + { + "type": "Integer", + "value": 181 + }, + { + "type": "Integer", + "value": 209 + }, + { + "type": "Integer", + "value": 130 + } + ], + "alias": "hello" + } + ] + } + ] +} diff --git a/parser/testdata/01030_concatenate_equal_fixed_strings/ast.json b/parser/testdata/01030_concatenate_equal_fixed_strings/ast.json new file mode 100644 index 0000000000..8c2c38b038 --- /dev/null +++ b/parser/testdata/01030_concatenate_equal_fixed_strings/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "aa" + }, + { + "type": "Integer", + "value": 2 + } + ], + "alias": "a" + }, + { + "name": "concat", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "a" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01030_final_mark_empty_primary_key/ast.json b/parser/testdata/01030_final_mark_empty_primary_key/ast.json new file mode 100644 index 0000000000..8aa3c40668 --- /dev/null +++ b/parser/testdata/01030_final_mark_empty_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "empty_pk", + "tables": [ + { + "table": "empty_pk" + } + ] +} diff --git a/parser/testdata/01030_incorrect_count_summing_merge_tree/ast.json b/parser/testdata/01030_incorrect_count_summing_merge_tree/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/01030_incorrect_count_summing_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01030_storage_set_supports_read/ast.json b/parser/testdata/01030_storage_set_supports_read/ast.json new file mode 100644 index 0000000000..63a302b1de --- /dev/null +++ b/parser/testdata/01030_storage_set_supports_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "userid_test", + "tables": [ + { + "table": "userid_test" + } + ] +} diff --git a/parser/testdata/01030_storage_url_syntax/ast.json b/parser/testdata/01030_storage_url_syntax/ast.json new file mode 100644 index 0000000000..40086ea8a2 --- /dev/null +++ b/parser/testdata/01030_storage_url_syntax/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_url_syntax", + "tables": [ + { + "table": "test_table_url_syntax" + } + ] +} diff --git a/parser/testdata/01031_pmj_new_any_semi_join/ast.json b/parser/testdata/01031_pmj_new_any_semi_join/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01031_pmj_new_any_semi_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01031_semi_anti_join/ast.json b/parser/testdata/01031_semi_anti_join/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01031_semi_anti_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01032_cityHash64_for_UUID/ast.json b/parser/testdata/01032_cityHash64_for_UUID/ast.json new file mode 100644 index 0000000000..9f9c8af776 --- /dev/null +++ b/parser/testdata/01032_cityHash64_for_UUID/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "cityHash64", + "arguments": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "61f0c404-5cb3-11e7-907b-a6006ad3dba0" + } + ] + } + ], + "alias": "uuid" + } + ] + } + ] +} diff --git a/parser/testdata/01032_cityHash64_for_decimal/ast.json b/parser/testdata/01032_cityHash64_for_decimal/ast.json new file mode 100644 index 0000000000..0b8e1e6fb9 --- /dev/null +++ b/parser/testdata/01032_cityHash64_for_decimal/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "cityHash64", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 32 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01032_duplicate_column_insert_query/ast.json b/parser/testdata/01032_duplicate_column_insert_query/ast.json new file mode 100644 index 0000000000..c1eb2bb43d --- /dev/null +++ b/parser/testdata/01032_duplicate_column_insert_query/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sometable", + "tables": [ + { + "table": "sometable" + } + ] +} diff --git a/parser/testdata/01033_dictionaries_lifetime/ast.json b/parser/testdata/01033_dictionaries_lifetime/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01033_dictionaries_lifetime/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01033_function_substring/ast.json b/parser/testdata/01033_function_substring/ast.json new file mode 100644 index 0000000000..db889a52aa --- /dev/null +++ b/parser/testdata/01033_function_substring/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- argument validation" + } + ] + } + ] +} diff --git a/parser/testdata/01033_storage_odbc_parsing_exception_check/ast.json b/parser/testdata/01033_storage_odbc_parsing_exception_check/ast.json new file mode 100644 index 0000000000..f66c5a50f7 --- /dev/null +++ b/parser/testdata/01033_storage_odbc_parsing_exception_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "BannerDict", + "tables": [ + { + "table": "BannerDict" + } + ] +} diff --git a/parser/testdata/01034_JSONCompactEachRow/ast.json b/parser/testdata/01034_JSONCompactEachRow/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/01034_JSONCompactEachRow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/01034_order_by_pk_prefix/ast.json b/parser/testdata/01034_order_by_pk_prefix/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/01034_order_by_pk_prefix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/01034_prewhere_max_parallel_replicas_distributed/ast.json b/parser/testdata/01034_prewhere_max_parallel_replicas_distributed/ast.json new file mode 100644 index 0000000000..9b5f7c7650 --- /dev/null +++ b/parser/testdata/01034_prewhere_max_parallel_replicas_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_max_parallel_replicas_lr", + "tables": [ + { + "table": "test_max_parallel_replicas_lr" + } + ] +} diff --git a/parser/testdata/01034_sample_final_distributed/ast.json b/parser/testdata/01034_sample_final_distributed/ast.json new file mode 100644 index 0000000000..956e503a99 --- /dev/null +++ b/parser/testdata/01034_sample_final_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01034_unknown_qualified_column_in_join/ast.json b/parser/testdata/01034_unknown_qualified_column_in_join/ast.json new file mode 100644 index 0000000000..7a3dbfbff5 --- /dev/null +++ b/parser/testdata/01034_unknown_qualified_column_in_join/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "l", + "c" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "b" + } + ] + } + ] + } + }, + "alias": "l" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "b" + }, + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "c" + } + ] + } + ] + } + }, + "alias": "r" + }, + "join": { + "type": "INNER", + "using": [ + { + "parts": [ + "b" + ] + } + ] + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01035_prewhere_with_alias/ast.json b/parser/testdata/01035_prewhere_with_alias/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01035_prewhere_with_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/ast.json b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/ast.json new file mode 100644 index 0000000000..6f4cc74628 --- /dev/null +++ b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database/ast.json @@ -0,0 +1,21 @@ +{ + "table": "dict_data", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "val", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/01036_no_superfluous_dict_reload_on_create_database_2/ast.json b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database_2/ast.json new file mode 100644 index 0000000000..7dce7313d4 --- /dev/null +++ b/parser/testdata/01036_no_superfluous_dict_reload_on_create_database_2/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "foo 1234", + "drop_database": true +} diff --git a/parser/testdata/01036_union_different_columns/ast.json b/parser/testdata/01036_union_different_columns/ast.json new file mode 100644 index 0000000000..df5cea3fdf --- /dev/null +++ b/parser/testdata/01036_union_different_columns/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "c1" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "c2" + }, + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "c3" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "c1" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "c2" + }, + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "c3" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "c1" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "c2" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] +} diff --git a/parser/testdata/01037_zookeeper_check_table_empty_pk/ast.json b/parser/testdata/01037_zookeeper_check_table_empty_pk/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/01037_zookeeper_check_table_empty_pk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01038_array_of_unnamed_tuples/ast.json b/parser/testdata/01038_array_of_unnamed_tuples/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01038_array_of_unnamed_tuples/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01039_mergetree_exec_time/ast.json b/parser/testdata/01039_mergetree_exec_time/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01039_mergetree_exec_time/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01039_test_setting_parse/ast.json b/parser/testdata/01039_test_setting_parse/ast.json new file mode 100644 index 0000000000..cb1966be4f --- /dev/null +++ b/parser/testdata/01039_test_setting_parse/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "String", + "value": "1G" + } + } + ] +} diff --git a/parser/testdata/01040_distributed_background_insert_batch_inserts/ast.json b/parser/testdata/01040_distributed_background_insert_batch_inserts/ast.json new file mode 100644 index 0000000000..a099110a92 --- /dev/null +++ b/parser/testdata/01040_distributed_background_insert_batch_inserts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01040", + "tables": [ + { + "table": "test_01040" + } + ] +} diff --git a/parser/testdata/01040_h3_get_resolution/ast.json b/parser/testdata/01040_h3_get_resolution/ast.json new file mode 100644 index 0000000000..27aa3a005c --- /dev/null +++ b/parser/testdata/01040_h3_get_resolution/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3GetResolution", + "arguments": [ + { + "type": "Integer", + "value": 581276613233082367 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01041_h3_is_valid/ast.json b/parser/testdata/01041_h3_is_valid/ast.json new file mode 100644 index 0000000000..b1f1fc15e8 --- /dev/null +++ b/parser/testdata/01041_h3_is_valid/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3IsValid", + "arguments": [ + { + "type": "Integer", + "value": 581276613233082367 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01042_check_query_and_last_granule_size/ast.json b/parser/testdata/01042_check_query_and_last_granule_size/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/01042_check_query_and_last_granule_size/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01042_h3_k_ring/ast.json b/parser/testdata/01042_h3_k_ring/ast.json new file mode 100644 index 0000000000..70730c4b94 --- /dev/null +++ b/parser/testdata/01042_h3_k_ring/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySort", + "arguments": [ + { + "name": "h3kRing", + "arguments": [ + { + "type": "Integer", + "value": 581276613233082367 + }, + { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01043_geo_distance/ast.json b/parser/testdata/01043_geo_distance/ast.json new file mode 100644 index 0000000000..8b865b485c --- /dev/null +++ b/parser/testdata/01043_geo_distance/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "geo_distance_returns_float64_on_float64_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01043_h3_edge_length_m/ast.json b/parser/testdata/01043_h3_edge_length_m/ast.json new file mode 100644 index 0000000000..e2eddd6b12 --- /dev/null +++ b/parser/testdata/01043_h3_edge_length_m/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3EdgeLengthM", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01044_great_circle_angle/ast.json b/parser/testdata/01044_great_circle_angle/ast.json new file mode 100644 index 0000000000..f1c41e9d0d --- /dev/null +++ b/parser/testdata/01044_great_circle_angle/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "with": [ + { + "name": "lat", + "query": { + "left": { + "parts": [ + "number" + ] + }, + "op": "-", + "right": { + "type": "Integer", + "value": 90 + } + } + } + ], + "distinct": true, + "columns": [ + { + "left": { + "name": "greatCircleAngle", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "parts": [ + "lat" + ] + } + ] + }, + "op": "=", + "right": { + "name": "abs", + "arguments": [ + { + "parts": [ + "lat" + ] + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 180 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01044_h3_edge_angle/ast.json b/parser/testdata/01044_h3_edge_angle/ast.json new file mode 100644 index 0000000000..9c6e53962b --- /dev/null +++ b/parser/testdata/01044_h3_edge_angle/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3EdgeAngle", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01045_array_zip/ast.json b/parser/testdata/01045_array_zip/ast.json new file mode 100644 index 0000000000..aca5df3854 --- /dev/null +++ b/parser/testdata/01045_array_zip/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayZip", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + }, + { + "type": "String", + "value": "c" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "d" + }, + { + "type": "String", + "value": "e" + }, + { + "type": "String", + "value": "f" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01045_bloom_filter_null_array/ast.json b/parser/testdata/01045_bloom_filter_null_array/ast.json new file mode 100644 index 0000000000..407a2afd21 --- /dev/null +++ b/parser/testdata/01045_bloom_filter_null_array/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bloom_filter_null_array", + "tables": [ + { + "table": "bloom_filter_null_array" + } + ] +} diff --git a/parser/testdata/01046_materialized_view_with_join_over_distributed/ast.json b/parser/testdata/01046_materialized_view_with_join_over_distributed/ast.json new file mode 100644 index 0000000000..54a88547c6 --- /dev/null +++ b/parser/testdata/01046_materialized_view_with_join_over_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_foreground_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01046_trivial_count_query_distributed/ast.json b/parser/testdata/01046_trivial_count_query_distributed/ast.json new file mode 100644 index 0000000000..d8166aa655 --- /dev/null +++ b/parser/testdata/01046_trivial_count_query_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_count", + "tables": [ + { + "table": "test_count" + } + ] +} diff --git a/parser/testdata/01047_no_alias_columns_with_table_aliases/ast.json b/parser/testdata/01047_no_alias_columns_with_table_aliases/ast.json new file mode 100644 index 0000000000..59e7db6918 --- /dev/null +++ b/parser/testdata/01047_no_alias_columns_with_table_aliases/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "requests", + "tables": [ + { + "table": "requests" + } + ] +} diff --git a/parser/testdata/01047_nullable_rand/ast.json b/parser/testdata/01047_nullable_rand/ast.json new file mode 100644 index 0000000000..1598f3b298 --- /dev/null +++ b/parser/testdata/01047_nullable_rand/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "rand", + "arguments": [ + { + "expr": { + "type": "Integer", + "value": 4 + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01047_simple_aggregate_sizes_of_columns_bug/ast.json b/parser/testdata/01047_simple_aggregate_sizes_of_columns_bug/ast.json new file mode 100644 index 0000000000..3737e4b34b --- /dev/null +++ b/parser/testdata/01047_simple_aggregate_sizes_of_columns_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "column_size_bug", + "tables": [ + { + "table": "column_size_bug" + } + ] +} diff --git a/parser/testdata/01049_join_low_card_crash/ast.json b/parser/testdata/01049_join_low_card_crash/ast.json new file mode 100644 index 0000000000..21ca0b8a13 --- /dev/null +++ b/parser/testdata/01049_join_low_card_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Alpha", + "tables": [ + { + "table": "Alpha" + } + ] +} diff --git a/parser/testdata/01049_window_view_window_functions/ast.json b/parser/testdata/01049_window_view_window_functions/ast.json new file mode 100644 index 0000000000..633d6c6528 --- /dev/null +++ b/parser/testdata/01049_window_view_window_functions/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tumble", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-01-09 12:00:01" + }, + { + "type": "String", + "value": "US/Samoa" + } + ] + }, + { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "SECOND" + }, + { + "type": "String", + "value": "US/Samoa" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01049_zookeeper_synchronous_mutations_long/ast.json b/parser/testdata/01049_zookeeper_synchronous_mutations_long/ast.json new file mode 100644 index 0000000000..0ab818b603 --- /dev/null +++ b/parser/testdata/01049_zookeeper_synchronous_mutations_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_synchronous_mutations1", + "tables": [ + { + "table": "table_for_synchronous_mutations1" + } + ] +} diff --git a/parser/testdata/01050_engine_join_crash/ast.json b/parser/testdata/01050_engine_join_crash/ast.json new file mode 100644 index 0000000000..df94746b7e --- /dev/null +++ b/parser/testdata/01050_engine_join_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testJoinTable", + "tables": [ + { + "table": "testJoinTable" + } + ] +} diff --git a/parser/testdata/01050_engine_join_view_crash/ast.json b/parser/testdata/01050_engine_join_view_crash/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/01050_engine_join_view_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/01050_group_array_sample/ast.json b/parser/testdata/01050_group_array_sample/ast.json new file mode 100644 index 0000000000..9a6bfc62ae --- /dev/null +++ b/parser/testdata/01050_group_array_sample/ast.json @@ -0,0 +1,105 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + }, + { + "name": "groupArraySample", + "parameters": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 123456 + } + ], + "arguments": [ + { + "parts": [ + "v" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 4 + } + }, + "alias": "k" + }, + { + "parts": [ + "number" + ], + "alias": "v" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1024 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01051_aggregate_function_crash/ast.json b/parser/testdata/01051_aggregate_function_crash/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/01051_aggregate_function_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01051_all_join_engine/ast.json b/parser/testdata/01051_all_join_engine/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01051_all_join_engine/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01051_new_any_join_engine/ast.json b/parser/testdata/01051_new_any_join_engine/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01051_new_any_join_engine/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01051_random_printable_ascii/ast.json b/parser/testdata/01051_random_printable_ascii/ast.json new file mode 100644 index 0000000000..2fa62a0bf7 --- /dev/null +++ b/parser/testdata/01051_random_printable_ascii/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "randomPrintableASCII", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01051_same_name_alias_with_joins/ast.json b/parser/testdata/01051_same_name_alias_with_joins/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/01051_same_name_alias_with_joins/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/01052_array_reduce_exception/ast.json b/parser/testdata/01052_array_reduce_exception/ast.json new file mode 100644 index 0000000000..f885140636 --- /dev/null +++ b/parser/testdata/01052_array_reduce_exception/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "aggThrow(0.0001)" + }, + { + "name": "range", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01053_drop_database_mat_view/ast.json b/parser/testdata/01053_drop_database_mat_view/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01053_drop_database_mat_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01053_if_chain_check/ast.json b/parser/testdata/01053_if_chain_check/ast.json new file mode 100644 index 0000000000..33c95848ed --- /dev/null +++ b/parser/testdata/01053_if_chain_check/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_parser_depth", + "value": { + "type": "Integer", + "value": 4000 + } + } + ] +} diff --git a/parser/testdata/01054_cache_dictionary_overflow_cell/ast.json b/parser/testdata/01054_cache_dictionary_overflow_cell/ast.json new file mode 100644 index 0000000000..4e8fba1245 --- /dev/null +++ b/parser/testdata/01054_cache_dictionary_overflow_cell/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "test_01054_overflow", + "create_database": true +} diff --git a/parser/testdata/01055_compact_parts/ast.json b/parser/testdata/01055_compact_parts/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/01055_compact_parts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01055_prewhere_bugs/ast.json b/parser/testdata/01055_prewhere_bugs/ast.json new file mode 100644 index 0000000000..627930549e --- /dev/null +++ b/parser/testdata/01055_prewhere_bugs/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_prewhere_default_column", + "tables": [ + { + "table": "test_prewhere_default_column" + } + ] +} diff --git a/parser/testdata/01056_create_table_as/ast.json b/parser/testdata/01056_create_table_as/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01056_create_table_as/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01056_create_table_as_with_sorting_clauses/ast.json b/parser/testdata/01056_create_table_as_with_sorting_clauses/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/01056_create_table_as_with_sorting_clauses/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/01056_negative_with_bloom_filter/ast.json b/parser/testdata/01056_negative_with_bloom_filter/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01056_negative_with_bloom_filter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01056_predicate_optimizer_bugs/ast.json b/parser/testdata/01056_predicate_optimizer_bugs/ast.json new file mode 100644 index 0000000000..eb99a02f24 --- /dev/null +++ b/parser/testdata/01056_predicate_optimizer_bugs/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01060_defaults_all_columns/ast.json b/parser/testdata/01060_defaults_all_columns/ast.json new file mode 100644 index 0000000000..75aaabe3dd --- /dev/null +++ b/parser/testdata/01060_defaults_all_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults_all_columns", + "tables": [ + { + "table": "defaults_all_columns" + } + ] +} diff --git a/parser/testdata/01060_shutdown_table_after_detach/ast.json b/parser/testdata/01060_shutdown_table_after_detach/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01060_shutdown_table_after_detach/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01061_alter_codec_with_type/ast.json b/parser/testdata/01061_alter_codec_with_type/ast.json new file mode 100644 index 0000000000..122e551caf --- /dev/null +++ b/parser/testdata/01061_alter_codec_with_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_bug", + "tables": [ + { + "table": "alter_bug" + } + ] +} diff --git a/parser/testdata/01062_alter_on_mutataion_zookeeper_long/ast.json b/parser/testdata/01062_alter_on_mutataion_zookeeper_long/ast.json new file mode 100644 index 0000000000..b68a9be41a --- /dev/null +++ b/parser/testdata/01062_alter_on_mutataion_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_on_mutation", + "tables": [ + { + "table": "test_alter_on_mutation" + } + ] +} diff --git a/parser/testdata/01062_pm_all_join_with_block_continuation/ast.json b/parser/testdata/01062_pm_all_join_with_block_continuation/ast.json new file mode 100644 index 0000000000..46947b23c1 --- /dev/null +++ b/parser/testdata/01062_pm_all_join_with_block_continuation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 50000000 + } + } + ] +} diff --git a/parser/testdata/01062_pm_multiple_all_join_same_value/ast.json b/parser/testdata/01062_pm_multiple_all_join_same_value/ast.json new file mode 100644 index 0000000000..46947b23c1 --- /dev/null +++ b/parser/testdata/01062_pm_multiple_all_join_same_value/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 50000000 + } + } + ] +} diff --git a/parser/testdata/01063_create_column_set/ast.json b/parser/testdata/01063_create_column_set/ast.json new file mode 100644 index 0000000000..1450425ed6 --- /dev/null +++ b/parser/testdata/01063_create_column_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ] +} diff --git a/parser/testdata/01064_arrayROCAUC/ast.json b/parser/testdata/01064_arrayROCAUC/ast.json new file mode 100644 index 0000000000..043b1a8f60 --- /dev/null +++ b/parser/testdata/01064_arrayROCAUC/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayROCAUC", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 0.1 + }, + { + "type": "Float", + "value": 0.4 + }, + { + "type": "Float", + "value": 0.35 + }, + { + "type": "Float", + "value": 0.8 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01064_incremental_streaming_from_2_src_with_feedback/ast.json b/parser/testdata/01064_incremental_streaming_from_2_src_with_feedback/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/01064_incremental_streaming_from_2_src_with_feedback/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01064_pm_all_join_const_and_nullable/ast.json b/parser/testdata/01064_pm_all_join_const_and_nullable/ast.json new file mode 100644 index 0000000000..ac5c54b4e8 --- /dev/null +++ b/parser/testdata/01064_pm_all_join_const_and_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/01065_array_zip_mixed_const/ast.json b/parser/testdata/01065_array_zip_mixed_const/ast.json new file mode 100644 index 0000000000..1175f5b678 --- /dev/null +++ b/parser/testdata/01065_array_zip_mixed_const/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayZip", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01065_if_not_finite/ast.json b/parser/testdata/01065_if_not_finite/ast.json new file mode 100644 index 0000000000..1b045e5697 --- /dev/null +++ b/parser/testdata/01065_if_not_finite/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ifNotFinite", + "arguments": [ + { + "name": "round", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "/", + "right": { + "parts": [ + "number" + ] + } + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Integer", + "value": 111 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01066_bit_count/ast.json b/parser/testdata/01066_bit_count/ast.json new file mode 100644 index 0000000000..16de40db32 --- /dev/null +++ b/parser/testdata/01066_bit_count/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitCount", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01067_join_null/ast.json b/parser/testdata/01067_join_null/ast.json new file mode 100644 index 0000000000..280e39e068 --- /dev/null +++ b/parser/testdata/01067_join_null/ast.json @@ -0,0 +1,123 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "id" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "id" + } + ] + }, + { + "columns": [ + { + "type": "Null", + "value": null + } + ] + }, + { + "columns": [ + { + "type": "Null", + "value": null + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL", + "UNION ALL" + ] + } + }, + "alias": "js1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "id" + } + ] + }, + { + "columns": [ + { + "type": "Null", + "value": null + } + ] + }, + { + "columns": [ + { + "type": "Null", + "value": null + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL", + "UNION ALL" + ] + } + }, + "alias": "js2" + }, + "join": { + "type": "FULL", + "strictness": "ALL", + "using": [ + { + "parts": [ + "id" + ] + } + ] + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "id" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01068_parens/ast.json b/parser/testdata/01068_parens/ast.json new file mode 100644 index 0000000000..a7d243a7ff --- /dev/null +++ b/parser/testdata/01068_parens/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_parser_depth", + "value": { + "type": "Integer", + "value": 10000 + } + } + ] +} diff --git a/parser/testdata/01069_database_memory/ast.json b/parser/testdata/01069_database_memory/ast.json new file mode 100644 index 0000000000..21b83b4423 --- /dev/null +++ b/parser/testdata/01069_database_memory/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "memory_01069", + "drop_database": true +} diff --git a/parser/testdata/01069_insert_float_as_nullable_unit8/ast.json b/parser/testdata/01069_insert_float_as_nullable_unit8/ast.json new file mode 100644 index 0000000000..58ac765546 --- /dev/null +++ b/parser/testdata/01069_insert_float_as_nullable_unit8/ast.json @@ -0,0 +1,18 @@ +{ + "temporary": true, + "table": "t1", + "columns": [ + { + "name": "a", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ] +} diff --git a/parser/testdata/01069_materialized_view_alter_target_table/ast.json b/parser/testdata/01069_materialized_view_alter_target_table/ast.json new file mode 100644 index 0000000000..9c0ec412c7 --- /dev/null +++ b/parser/testdata/01069_materialized_view_alter_target_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv", + "tables": [ + { + "table": "mv" + } + ] +} diff --git a/parser/testdata/01069_materialized_view_alter_target_table_with_default_expression/ast.json b/parser/testdata/01069_materialized_view_alter_target_table_with_default_expression/ast.json new file mode 100644 index 0000000000..9c0ec412c7 --- /dev/null +++ b/parser/testdata/01069_materialized_view_alter_target_table_with_default_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv", + "tables": [ + { + "table": "mv" + } + ] +} diff --git a/parser/testdata/01069_set_in_group_by/ast.json b/parser/testdata/01069_set_in_group_by/ast.json new file mode 100644 index 0000000000..6603409a5d --- /dev/null +++ b/parser/testdata/01069_set_in_group_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testmt", + "tables": [ + { + "table": "testmt" + } + ] +} diff --git a/parser/testdata/01070_alter_with_ttl/ast.json b/parser/testdata/01070_alter_with_ttl/ast.json new file mode 100644 index 0000000000..41fda96f44 --- /dev/null +++ b/parser/testdata/01070_alter_with_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_ttl", + "tables": [ + { + "table": "alter_ttl" + } + ] +} diff --git a/parser/testdata/01070_exception_code_in_query_log_table/ast.json b/parser/testdata/01070_exception_code_in_query_log_table/ast.json new file mode 100644 index 0000000000..9cae18b04d --- /dev/null +++ b/parser/testdata/01070_exception_code_in_query_log_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_for_01070_exception_code_in_query_log_table", + "tables": [ + { + "table": "test_table_for_01070_exception_code_in_query_log_table" + } + ] +} diff --git a/parser/testdata/01070_h3_get_base_cell/ast.json b/parser/testdata/01070_h3_get_base_cell/ast.json new file mode 100644 index 0000000000..ec52e7f432 --- /dev/null +++ b/parser/testdata/01070_h3_get_base_cell/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3GetBaseCell", + "arguments": [ + { + "type": "Integer", + "value": 612916788725809151 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01070_h3_hex_area_m2/ast.json b/parser/testdata/01070_h3_hex_area_m2/ast.json new file mode 100644 index 0000000000..c32055ef20 --- /dev/null +++ b/parser/testdata/01070_h3_hex_area_m2/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3HexAreaM2", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01070_h3_indexes_are_neighbors/ast.json b/parser/testdata/01070_h3_indexes_are_neighbors/ast.json new file mode 100644 index 0000000000..942296f4aa --- /dev/null +++ b/parser/testdata/01070_h3_indexes_are_neighbors/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3IndexesAreNeighbors", + "arguments": [ + { + "type": "Integer", + "value": 617420388352917503 + }, + { + "type": "Integer", + "value": 617420388352655359 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01070_h3_to_children/ast.json b/parser/testdata/01070_h3_to_children/ast.json new file mode 100644 index 0000000000..8c0ec745d5 --- /dev/null +++ b/parser/testdata/01070_h3_to_children/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3ToChildren", + "arguments": [ + { + "type": "Integer", + "value": 599405990164561919 + }, + { + "type": "Integer", + "value": 16 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01070_h3_to_parent/ast.json b/parser/testdata/01070_h3_to_parent/ast.json new file mode 100644 index 0000000000..6bda6c3000 --- /dev/null +++ b/parser/testdata/01070_h3_to_parent/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3ToParent", + "arguments": [ + { + "type": "Integer", + "value": 599405990164561919 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01070_h3_to_string/ast.json b/parser/testdata/01070_h3_to_string/ast.json new file mode 100644 index 0000000000..c403872269 --- /dev/null +++ b/parser/testdata/01070_h3_to_string/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3ToString", + "arguments": [ + { + "type": "Integer", + "value": 617420388352917503 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01070_materialize_ttl/ast.json b/parser/testdata/01070_materialize_ttl/ast.json new file mode 100644 index 0000000000..f944e58de5 --- /dev/null +++ b/parser/testdata/01070_materialize_ttl/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_ttl_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01070_modify_ttl/ast.json b/parser/testdata/01070_modify_ttl/ast.json new file mode 100644 index 0000000000..f944e58de5 --- /dev/null +++ b/parser/testdata/01070_modify_ttl/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_ttl_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01070_modify_ttl_recalc_only/ast.json b/parser/testdata/01070_modify_ttl_recalc_only/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/01070_modify_ttl_recalc_only/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01070_mutations_with_dependencies/ast.json b/parser/testdata/01070_mutations_with_dependencies/ast.json new file mode 100644 index 0000000000..463cbbb397 --- /dev/null +++ b/parser/testdata/01070_mutations_with_dependencies/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl", + "tables": [ + { + "table": "ttl" + } + ] +} diff --git a/parser/testdata/01070_string_to_h3/ast.json b/parser/testdata/01070_string_to_h3/ast.json new file mode 100644 index 0000000000..4fdbd60558 --- /dev/null +++ b/parser/testdata/01070_string_to_h3/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "stringToH3", + "arguments": [ + { + "type": "String", + "value": "89184926cc3ffff" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01070_to_decimal_or_null_exception/ast.json b/parser/testdata/01070_to_decimal_or_null_exception/ast.json new file mode 100644 index 0000000000..55b3d4e64b --- /dev/null +++ b/parser/testdata/01070_to_decimal_or_null_exception/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "String", + "value": "e" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01071_force_optimize_skip_unused_shards/ast.json b/parser/testdata/01071_force_optimize_skip_unused_shards/ast.json new file mode 100644 index 0000000000..a7f6f9e84b --- /dev/null +++ b/parser/testdata/01071_force_optimize_skip_unused_shards/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01071_in_array/ast.json b/parser/testdata/01071_in_array/ast.json new file mode 100644 index 0000000000..640ec59719 --- /dev/null +++ b/parser/testdata/01071_in_array/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "list": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01071_prohibition_secondary_index_with_old_format_merge_tree/ast.json b/parser/testdata/01071_prohibition_secondary_index_with_old_format_merge_tree/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/01071_prohibition_secondary_index_with_old_format_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01072_drop_temporary_table_with_same_name/ast.json b/parser/testdata/01072_drop_temporary_table_with_same_name/ast.json new file mode 100644 index 0000000000..9e7fc783de --- /dev/null +++ b/parser/testdata/01072_drop_temporary_table_with_same_name/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "table_to_drop", + "tables": [ + { + "table": "table_to_drop" + } + ], + "temporary": true +} diff --git a/parser/testdata/01072_json_each_row_data_in_square_brackets/ast.json b/parser/testdata/01072_json_each_row_data_in_square_brackets/ast.json new file mode 100644 index 0000000000..8ebe3d63c3 --- /dev/null +++ b/parser/testdata/01072_json_each_row_data_in_square_brackets/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "json_square_brackets", + "tables": [ + { + "table": "json_square_brackets" + } + ] +} diff --git a/parser/testdata/01072_nullable_jit/ast.json b/parser/testdata/01072_nullable_jit/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/01072_nullable_jit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01072_optimize_skip_unused_shards_const_expr_eval/ast.json b/parser/testdata/01072_optimize_skip_unused_shards_const_expr_eval/ast.json new file mode 100644 index 0000000000..f261c7a18f --- /dev/null +++ b/parser/testdata/01072_optimize_skip_unused_shards_const_expr_eval/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01072", + "tables": [ + { + "table": "data_01072" + } + ] +} diff --git a/parser/testdata/01072_select_constant_limit/ast.json b/parser/testdata/01072_select_constant_limit/ast.json new file mode 100644 index 0000000000..d25f313c4f --- /dev/null +++ b/parser/testdata/01072_select_constant_limit/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 42 + }, + "alias": "foo" + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "foo" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01073_attach_if_not_exists/ast.json b/parser/testdata/01073_attach_if_not_exists/ast.json new file mode 100644 index 0000000000..e9c8f79a2b --- /dev/null +++ b/parser/testdata/01073_attach_if_not_exists/ast.json @@ -0,0 +1,14 @@ +{ + "table": "aine", + "columns": [ + { + "name": "a", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Log" + } +} diff --git a/parser/testdata/01073_bad_alter_partition/ast.json b/parser/testdata/01073_bad_alter_partition/ast.json new file mode 100644 index 0000000000..1d5f9ced5f --- /dev/null +++ b/parser/testdata/01073_bad_alter_partition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree", + "tables": [ + { + "table": "merge_tree" + } + ] +} diff --git a/parser/testdata/01073_blockSerializedSize/ast.json b/parser/testdata/01073_blockSerializedSize/ast.json new file mode 100644 index 0000000000..56f14b7912 --- /dev/null +++ b/parser/testdata/01073_blockSerializedSize/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "UInt8" + }, + { + "name": "blockSerializedSize", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01073_crlf_end_of_line/ast.json b/parser/testdata/01073_crlf_end_of_line/ast.json new file mode 100644 index 0000000000..ef062fd3e2 --- /dev/null +++ b/parser/testdata/01073_crlf_end_of_line/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01073_crlf_end_of_line", + "tables": [ + { + "table": "test_01073_crlf_end_of_line" + } + ] +} diff --git a/parser/testdata/01073_show_tables_not_like/ast.json b/parser/testdata/01073_show_tables_not_like/ast.json new file mode 100644 index 0000000000..120be720a0 --- /dev/null +++ b/parser/testdata/01073_show_tables_not_like/ast.json @@ -0,0 +1,4 @@ +{ + "show_type": "TABLES", + "like": "!%" +} diff --git a/parser/testdata/01074_h3_range_check/ast.json b/parser/testdata/01074_h3_range_check/ast.json new file mode 100644 index 0000000000..2858c3ed83 --- /dev/null +++ b/parser/testdata/01074_h3_range_check/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3EdgeLengthM", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01074_partial_revokes/ast.json b/parser/testdata/01074_partial_revokes/ast.json new file mode 100644 index 0000000000..8a0616f39d --- /dev/null +++ b/parser/testdata/01074_partial_revokes/ast.json @@ -0,0 +1,4 @@ +{ + "if_exists": true, + "user": "test_user_01074" +} diff --git a/parser/testdata/01075_allowed_client_hosts/ast.json b/parser/testdata/01075_allowed_client_hosts/ast.json new file mode 100644 index 0000000000..f2e108fc44 --- /dev/null +++ b/parser/testdata/01075_allowed_client_hosts/ast.json @@ -0,0 +1,15 @@ +{ + "if_exists": true, + "tables": [ + { + "table": "test_user_01075_x" + }, + { + "table": "test_user_01075_x@localhost" + }, + { + "table": "test_user_01075_x@192.168.23.15" + } + ], + "user": "test_user_01075" +} diff --git a/parser/testdata/01075_in_arrays_enmk/ast.json b/parser/testdata/01075_in_arrays_enmk/ast.json new file mode 100644 index 0000000000..068534f425 --- /dev/null +++ b/parser/testdata/01075_in_arrays_enmk/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "list": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01076_array_join_prewhere_const_folding/ast.json b/parser/testdata/01076_array_join_prewhere_const_folding/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01076_array_join_prewhere_const_folding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01076_predicate_optimizer_with_view/ast.json b/parser/testdata/01076_predicate_optimizer_with_view/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01076_predicate_optimizer_with_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01076_range_reader_segfault/ast.json b/parser/testdata/01076_range_reader_segfault/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01076_range_reader_segfault/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01077_yet_another_prewhere_test/ast.json b/parser/testdata/01077_yet_another_prewhere_test/ast.json new file mode 100644 index 0000000000..bd8762d002 --- /dev/null +++ b/parser/testdata/01077_yet_another_prewhere_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t50", + "tables": [ + { + "table": "t50" + } + ] +} diff --git a/parser/testdata/01078_bloom_filter_operator_not_has/ast.json b/parser/testdata/01078_bloom_filter_operator_not_has/ast.json new file mode 100644 index 0000000000..33ef339040 --- /dev/null +++ b/parser/testdata/01078_bloom_filter_operator_not_has/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bloom_filter_not_has", + "tables": [ + { + "table": "bloom_filter_not_has" + } + ] +} diff --git a/parser/testdata/01078_merge_tree_read_one_thread/ast.json b/parser/testdata/01078_merge_tree_read_one_thread/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01078_merge_tree_read_one_thread/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01079_alter_default_zookeeper_long/ast.json b/parser/testdata/01079_alter_default_zookeeper_long/ast.json new file mode 100644 index 0000000000..7dcd3fb332 --- /dev/null +++ b/parser/testdata/01079_alter_default_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_default", + "tables": [ + { + "table": "alter_default" + } + ] +} diff --git a/parser/testdata/01079_bit_operations_using_bitset/ast.json b/parser/testdata/01079_bit_operations_using_bitset/ast.json new file mode 100644 index 0000000000..0a77ef2b3e --- /dev/null +++ b/parser/testdata/01079_bit_operations_using_bitset/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "IPv6NumToString", + "arguments": [ + { + "name": "bitAnd", + "arguments": [ + { + "name": "IPv6StringToNum", + "arguments": [ + { + "type": "String", + "value": "2001:0db8:85a3:8d3a:b2da:8a2e:0370:7334" + } + ] + }, + { + "name": "IPv6StringToNum", + "arguments": [ + { + "type": "String", + "value": "ffff:ffff:ffff:0000:0000:0000:0000:0000" + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/01079_new_range_reader_segfault/ast.json b/parser/testdata/01079_new_range_reader_segfault/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01079_new_range_reader_segfault/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01079_order_by_pk/ast.json b/parser/testdata/01079_order_by_pk/ast.json new file mode 100644 index 0000000000..56fba58fa1 --- /dev/null +++ b/parser/testdata/01079_order_by_pk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt_pk", + "tables": [ + { + "table": "mt_pk" + } + ] +} diff --git a/parser/testdata/01079_reinterpret_as_fixed_string/ast.json b/parser/testdata/01079_reinterpret_as_fixed_string/ast.json new file mode 100644 index 0000000000..828df48750 --- /dev/null +++ b/parser/testdata/01079_reinterpret_as_fixed_string/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "reinterpretAsFixedString", + "arguments": [ + { + "type": "Integer", + "value": 3735928559 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01080_engine_merge_prewhere_tupleelement_error/ast.json b/parser/testdata/01080_engine_merge_prewhere_tupleelement_error/ast.json new file mode 100644 index 0000000000..a364021257 --- /dev/null +++ b/parser/testdata/01080_engine_merge_prewhere_tupleelement_error/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "A1", + "tables": [ + { + "table": "A1" + } + ] +} diff --git a/parser/testdata/01080_join_get_null/ast.json b/parser/testdata/01080_join_get_null/ast.json new file mode 100644 index 0000000000..6ece98ae8f --- /dev/null +++ b/parser/testdata/01080_join_get_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_joinGet", + "tables": [ + { + "table": "test_joinGet" + } + ] +} diff --git a/parser/testdata/01081_PartialSortingTransform_full_column/ast.json b/parser/testdata/01081_PartialSortingTransform_full_column/ast.json new file mode 100644 index 0000000000..47d02ea035 --- /dev/null +++ b/parser/testdata/01081_PartialSortingTransform_full_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01081", + "tables": [ + { + "table": "test_01081" + } + ] +} diff --git a/parser/testdata/01081_demangle/ast.json b/parser/testdata/01081_demangle/ast.json new file mode 100644 index 0000000000..d9d340af2b --- /dev/null +++ b/parser/testdata/01081_demangle/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_introspection_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01081_keywords_formatting/ast.json b/parser/testdata/01081_keywords_formatting/ast.json new file mode 100644 index 0000000000..524d18bf39 --- /dev/null +++ b/parser/testdata/01081_keywords_formatting/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "interval" + }, + "op": "+", + "right": { + "parts": [ + "interval" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01082_bit_test_out_of_bound/ast.json b/parser/testdata/01082_bit_test_out_of_bound/ast.json new file mode 100644 index 0000000000..608b69bcc8 --- /dev/null +++ b/parser/testdata/01082_bit_test_out_of_bound/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- bitTestAny" + } + ] + } + ] +} diff --git a/parser/testdata/01083_aggregation_memory_efficient_bug/ast.json b/parser/testdata/01083_aggregation_memory_efficient_bug/ast.json new file mode 100644 index 0000000000..384f1b8633 --- /dev/null +++ b/parser/testdata/01083_aggregation_memory_efficient_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "da_memory_efficient_shard", + "tables": [ + { + "table": "da_memory_efficient_shard" + } + ] +} diff --git a/parser/testdata/01083_cross_to_inner_with_in_bug/ast.json b/parser/testdata/01083_cross_to_inner_with_in_bug/ast.json new file mode 100644 index 0000000000..62e5dbe984 --- /dev/null +++ b/parser/testdata/01083_cross_to_inner_with_in_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ax", + "tables": [ + { + "table": "ax" + } + ] +} diff --git a/parser/testdata/01083_cross_to_inner_with_like/ast.json b/parser/testdata/01083_cross_to_inner_with_like/ast.json new file mode 100644 index 0000000000..f9c52246f2 --- /dev/null +++ b/parser/testdata/01083_cross_to_inner_with_like/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "convert_query_to_cnf", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01083_expressions_in_engine_arguments/ast.json b/parser/testdata/01083_expressions_in_engine_arguments/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/01083_expressions_in_engine_arguments/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01083_functional_index_in_mergetree/ast.json b/parser/testdata/01083_functional_index_in_mergetree/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/01083_functional_index_in_mergetree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01083_log_first_column_alias/ast.json b/parser/testdata/01083_log_first_column_alias/ast.json new file mode 100644 index 0000000000..8fcc438353 --- /dev/null +++ b/parser/testdata/01083_log_first_column_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alias", + "tables": [ + { + "table": "test_alias" + } + ] +} diff --git a/parser/testdata/01083_match_zero_byte/ast.json b/parser/testdata/01083_match_zero_byte/ast.json new file mode 100644 index 0000000000..2d83d46a62 --- /dev/null +++ b/parser/testdata/01083_match_zero_byte/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "match", + "arguments": [ + { + "type": "String", + "value": "a key=\"v\" " + }, + { + "type": "String", + "value": "key=\"(.*?)\"" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01084_defaults_on_aliases/ast.json b/parser/testdata/01084_defaults_on_aliases/ast.json new file mode 100644 index 0000000000..5ecf8e79a2 --- /dev/null +++ b/parser/testdata/01084_defaults_on_aliases/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_defaults_on_aliases", + "tables": [ + { + "table": "table_with_defaults_on_aliases" + } + ] +} diff --git a/parser/testdata/01085_datetime_arithmetic_preserve_timezone/ast.json b/parser/testdata/01085_datetime_arithmetic_preserve_timezone/ast.json new file mode 100644 index 0000000000..c0a40a8854 --- /dev/null +++ b/parser/testdata/01085_datetime_arithmetic_preserve_timezone/ast.json @@ -0,0 +1,136 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-01-01 00:00:00" + }, + { + "type": "String", + "value": "UTC" + } + ], + "alias": "t" + }, + { + "left": { + "parts": [ + "t" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "name": "toDate", + "arguments": [ + { + "parts": [ + "t" + ] + } + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "parts": [ + "t" + ] + }, + "op": "+", + "right": { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "SECOND" + } + }, + { + "left": { + "parts": [ + "t" + ] + }, + "op": "+", + "right": { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "DAY" + } + }, + { + "name": "toTypeName", + "arguments": [ + { + "left": { + "parts": [ + "t" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + }, + { + "expr": { + "left": { + "name": "toDateTime64", + "arguments": [ + { + "parts": [ + "t" + ] + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "alias": "dt64" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "dt64" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01085_extract_all_empty/ast.json b/parser/testdata/01085_extract_all_empty/ast.json new file mode 100644 index 0000000000..508f5bd361 --- /dev/null +++ b/parser/testdata/01085_extract_all_empty/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractAll", + "arguments": [ + { + "type": "String", + "value": "\u0000" + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01086_modulo_or_zero/ast.json b/parser/testdata/01086_modulo_or_zero/ast.json new file mode 100644 index 0000000000..ee23a205ac --- /dev/null +++ b/parser/testdata/01086_modulo_or_zero/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "moduloOrZero", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/01087_index_set_ubsan/ast.json b/parser/testdata/01087_index_set_ubsan/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01087_index_set_ubsan/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01087_storage_generate/ast.json b/parser/testdata/01087_storage_generate/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/01087_storage_generate/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/01088_array_slice_of_aggregate_functions/ast.json b/parser/testdata/01088_array_slice_of_aggregate_functions/ast.json new file mode 100644 index 0000000000..028e6f7138 --- /dev/null +++ b/parser/testdata/01088_array_slice_of_aggregate_functions/ast.json @@ -0,0 +1,94 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySlice", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ], + "alias": "y" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "uniqState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01089_alter_settings_old_format/ast.json b/parser/testdata/01089_alter_settings_old_format/ast.json new file mode 100644 index 0000000000..f9c63803c8 --- /dev/null +++ b/parser/testdata/01089_alter_settings_old_format/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "old_format_mt", + "tables": [ + { + "table": "old_format_mt" + } + ] +} diff --git a/parser/testdata/01090_fixed_string_bit_ops/ast.json b/parser/testdata/01090_fixed_string_bit_ops/ast.json new file mode 100644 index 0000000000..30fa6a89af --- /dev/null +++ b/parser/testdata/01090_fixed_string_bit_ops/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "name": "bitXor", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "abc" + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + }, + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "\u0000\u0001\u0002" + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01090_zookeeper_mutations_and_insert_quorum_long/ast.json b/parser/testdata/01090_zookeeper_mutations_and_insert_quorum_long/ast.json new file mode 100644 index 0000000000..b4771f80ad --- /dev/null +++ b/parser/testdata/01090_zookeeper_mutations_and_insert_quorum_long/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "mutations_and_quorum1", + "tables": [ + { + "table": "mutations_and_quorum1" + } + ], + "sync": true +} diff --git a/parser/testdata/01091_insert_with_default_json/ast.json b/parser/testdata/01091_insert_with_default_json/ast.json new file mode 100644 index 0000000000..a53ce0f323 --- /dev/null +++ b/parser/testdata/01091_insert_with_default_json/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_complex_default", + "tables": [ + { + "table": "table_with_complex_default" + } + ] +} diff --git a/parser/testdata/01091_num_threads/ast.json b/parser/testdata/01091_num_threads/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01091_num_threads/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01091_query_profiler_does_not_hang/ast.json b/parser/testdata/01091_query_profiler_does_not_hang/ast.json new file mode 100644 index 0000000000..f6dfae0503 --- /dev/null +++ b/parser/testdata/01091_query_profiler_does_not_hang/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "query_profiler_cpu_time_period_ns", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01092_memory_profiler/ast.json b/parser/testdata/01092_memory_profiler/ast.json new file mode 100644 index 0000000000..d9d340af2b --- /dev/null +++ b/parser/testdata/01092_memory_profiler/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_introspection_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01093_cyclic_defaults_filimonov/ast.json b/parser/testdata/01093_cyclic_defaults_filimonov/ast.json new file mode 100644 index 0000000000..0f59470745 --- /dev/null +++ b/parser/testdata/01093_cyclic_defaults_filimonov/ast.json @@ -0,0 +1,104 @@ +{ + "table": "test", + "columns": [ + { + "name": "a0", + "type": { + "name": "UInt64" + }, + "default": { + "left": { + "parts": [ + "a1" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "default_kind": "DEFAULT" + }, + { + "name": "a1", + "type": { + "name": "UInt64" + }, + "default": { + "left": { + "parts": [ + "a0" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "default_kind": "DEFAULT" + }, + { + "name": "a2", + "type": { + "name": "UInt64" + }, + "default": { + "left": { + "parts": [ + "a3" + ] + }, + "op": "+", + "right": { + "parts": [ + "a4" + ] + } + }, + "default_kind": "DEFAULT" + }, + { + "name": "a3", + "type": { + "name": "UInt64" + }, + "default": { + "left": { + "parts": [ + "a2" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "default_kind": "DEFAULT" + }, + { + "name": "a4", + "type": { + "name": "UInt64" + }, + "default": { + "left": { + "parts": [ + "a3" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "default_kind": "ALIAS" + } + ], + "engine": { + "name": "Log" + } +} diff --git a/parser/testdata/01095_tpch_like_smoke/ast.json b/parser/testdata/01095_tpch_like_smoke/ast.json new file mode 100644 index 0000000000..eacc6c9e9b --- /dev/null +++ b/parser/testdata/01095_tpch_like_smoke/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "part", + "tables": [ + { + "table": "part" + } + ] +} diff --git a/parser/testdata/01096_block_serialized_state/ast.json b/parser/testdata/01096_block_serialized_state/ast.json new file mode 100644 index 0000000000..9396c9a7f1 --- /dev/null +++ b/parser/testdata/01096_block_serialized_state/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ignore", + "arguments": [ + { + "name": "blockSerializedSize", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01096_zeros/ast.json b/parser/testdata/01096_zeros/ast.json new file mode 100644 index 0000000000..d9a73bc003 --- /dev/null +++ b/parser/testdata/01096_zeros/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "zero" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "zeros" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + }, + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 3 + } + } + ] + } + ] +} diff --git a/parser/testdata/01097_cyclic_defaults/ast.json b/parser/testdata/01097_cyclic_defaults/ast.json new file mode 100644 index 0000000000..a488392041 --- /dev/null +++ b/parser/testdata/01097_cyclic_defaults/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_cyclic_defaults", + "tables": [ + { + "table": "table_with_cyclic_defaults" + } + ] +} diff --git a/parser/testdata/01097_one_more_range_reader_test/ast.json b/parser/testdata/01097_one_more_range_reader_test/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01097_one_more_range_reader_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01097_one_more_range_reader_test_wide_part/ast.json b/parser/testdata/01097_one_more_range_reader_test_wide_part/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01097_one_more_range_reader_test_wide_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01097_pre_limit/ast.json b/parser/testdata/01097_pre_limit/ast.json new file mode 100644 index 0000000000..6dcf7ecfc6 --- /dev/null +++ b/parser/testdata/01097_pre_limit/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers_mt" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1000000 + } + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01098_sum/ast.json b/parser/testdata/01098_sum/ast.json new file mode 100644 index 0000000000..1f28f6af3a --- /dev/null +++ b/parser/testdata/01098_sum/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumKahan", + "arguments": [ + { + "parts": [ + "dummy" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.{2,3}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01099_operators_date_and_timestamp/ast.json b/parser/testdata/01099_operators_date_and_timestamp/ast.json new file mode 100644 index 0000000000..b60926d3ca --- /dev/null +++ b/parser/testdata/01099_operators_date_and_timestamp/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "SECOND" + }, + { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "MINUTE" + }, + { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "HOUR" + } + ] + } + ] +} diff --git a/parser/testdata/01099_parallel_distributed_insert_select/ast.json b/parser/testdata/01099_parallel_distributed_insert_select/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01099_parallel_distributed_insert_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01100_split_by_string/ast.json b/parser/testdata/01100_split_by_string/ast.json new file mode 100644 index 0000000000..451e206c24 --- /dev/null +++ b/parser/testdata/01100_split_by_string/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "splitByString", + "arguments": [ + { + "type": "String", + "value": "ab" + }, + { + "type": "String", + "value": "cdeabcde" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01101_literal_column_clash/ast.json b/parser/testdata/01101_literal_column_clash/ast.json new file mode 100644 index 0000000000..45a148c667 --- /dev/null +++ b/parser/testdata/01101_literal_column_clash/ast.json @@ -0,0 +1,88 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "type": { + "name": "String" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "iid" + } + ] + } + ] + } + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "1" + }, + "alias": "sid" + } + ] + } + ] + } + }, + "alias": "t2" + }, + "join": { + "type": "INNER", + "on": { + "left": { + "parts": [ + "t2", + "sid" + ] + }, + "op": "=", + "right": { + "expr": { + "parts": [ + "t1", + "iid" + ] + }, + "type": { + "name": "String" + } + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01101_prewhere_after_alter/ast.json b/parser/testdata/01101_prewhere_after_alter/ast.json new file mode 100644 index 0000000000..802b6fda3e --- /dev/null +++ b/parser/testdata/01101_prewhere_after_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_a", + "tables": [ + { + "table": "test_a" + } + ] +} diff --git a/parser/testdata/01102_distributed_local_in_bug/ast.json b/parser/testdata/01102_distributed_local_in_bug/ast.json new file mode 100644 index 0000000000..459262400d --- /dev/null +++ b/parser/testdata/01102_distributed_local_in_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "hits", + "tables": [ + { + "table": "hits" + } + ] +} diff --git a/parser/testdata/01103_distributed_product_mode_local_column_renames/ast.json b/parser/testdata/01103_distributed_product_mode_local_column_renames/ast.json new file mode 100644 index 0000000000..229bbd14e6 --- /dev/null +++ b/parser/testdata/01103_distributed_product_mode_local_column_renames/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "test_01103", + "create_database": true +} diff --git a/parser/testdata/01104_distributed_numbers_test/ast.json b/parser/testdata/01104_distributed_numbers_test/ast.json new file mode 100644 index 0000000000..84c644cf27 --- /dev/null +++ b/parser/testdata/01104_distributed_numbers_test/ast.json @@ -0,0 +1,103 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 100 + } + } + }, + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 100 + } + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 2 + }, + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01104_distributed_one_test/ast.json b/parser/testdata/01104_distributed_one_test/ast.json new file mode 100644 index 0000000000..2248bc9d61 --- /dev/null +++ b/parser/testdata/01104_distributed_one_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "d_one", + "tables": [ + { + "table": "d_one" + } + ] +} diff --git a/parser/testdata/01104_fixed_string_like/ast.json b/parser/testdata/01104_fixed_string_like/ast.json new file mode 100644 index 0000000000..30db7a9dbe --- /dev/null +++ b/parser/testdata/01104_fixed_string_like/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "arrayJoin", + "arguments": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ] + }, + "pattern": { + "type": "String", + "value": "hello" + } + } + ] + } + ] +} diff --git a/parser/testdata/01105_string_like/ast.json b/parser/testdata/01105_string_like/ast.json new file mode 100644 index 0000000000..189557b4ae --- /dev/null +++ b/parser/testdata/01105_string_like/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + } + ] + }, + "pattern": { + "type": "String", + "value": "hello" + } + } + ] + } + ] +} diff --git a/parser/testdata/01106_const_fixed_string_like/ast.json b/parser/testdata/01106_const_fixed_string_like/ast.json new file mode 100644 index 0000000000..c9ece6a9a0 --- /dev/null +++ b/parser/testdata/01106_const_fixed_string_like/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "String", + "value": "hello" + }, + "type": { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "has_parentheses": true + } + }, + "pattern": { + "type": "String", + "value": "hello" + } + } + ] + } + ] +} diff --git a/parser/testdata/01107_join_right_table_totals/ast.json b/parser/testdata/01107_join_right_table_totals/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01107_join_right_table_totals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01109_exchange_tables/ast.json b/parser/testdata/01109_exchange_tables/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01109_exchange_tables/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01109_inflating_cross_join/ast.json b/parser/testdata/01109_inflating_cross_join/ast.json new file mode 100644 index 0000000000..38ef0828bb --- /dev/null +++ b/parser/testdata/01109_inflating_cross_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 16000000 + } + } + ] +} diff --git a/parser/testdata/01109_sc0rp10_string_hash_map_zero_bytes/ast.json b/parser/testdata/01109_sc0rp10_string_hash_map_zero_bytes/ast.json new file mode 100644 index 0000000000..3061ad83f9 --- /dev/null +++ b/parser/testdata/01109_sc0rp10_string_hash_map_zero_bytes/ast.json @@ -0,0 +1,233 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count", + "arguments": [ + {} + ] + }, + "op": "=", + "right": { + "left": { + "left": { + "left": { + "type": "Integer", + "value": 18 + }, + "op": "*", + "right": { + "type": "Integer", + "value": 18 + } + }, + "op": "*", + "right": { + "type": "Integer", + "value": 17 + } + }, + "op": "+", + "right": { + "type": "Integer", + "value": 35 + } + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "key" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "with": [ + { + "name": "n", + "query": { + "type": "Integer", + "value": 18 + } + } + ], + "columns": [ + { + "expr": { + "left": { + "left": { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "\u0000" + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "parts": [ + "n" + ] + } + } + ] + }, + "op": "||", + "right": { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "1" + }, + { + "left": { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "n" + ] + } + ] + }, + "op": "%", + "right": { + "parts": [ + "n" + ] + } + } + ] + } + }, + "op": "||", + "right": { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "\u0000" + }, + { + "left": { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "n" + ] + }, + "op": "*", + "right": { + "parts": [ + "n" + ] + } + } + ] + }, + "op": "%", + "right": { + "parts": [ + "n" + ] + } + } + ] + } + }, + "alias": "key" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "left": { + "left": { + "type": "Integer", + "value": 18 + }, + "op": "*", + "right": { + "type": "Integer", + "value": 18 + } + }, + "op": "*", + "right": { + "type": "Integer", + "value": 18 + } + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "key" + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01110_dictionary_layout_without_arguments/ast.json b/parser/testdata/01110_dictionary_layout_without_arguments/ast.json new file mode 100644 index 0000000000..3bbd30ba87 --- /dev/null +++ b/parser/testdata/01110_dictionary_layout_without_arguments/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "db_for_dict", + "drop_database": true +} diff --git a/parser/testdata/01112_check_table_with_index/ast.json b/parser/testdata/01112_check_table_with_index/ast.json new file mode 100644 index 0000000000..07c023c85d --- /dev/null +++ b/parser/testdata/01112_check_table_with_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "check_query_single_value_result", + "value": { + "type": "String", + "value": "false" + } + } + ] +} diff --git a/parser/testdata/01114_alter_modify_compact_parts/ast.json b/parser/testdata/01114_alter_modify_compact_parts/ast.json new file mode 100644 index 0000000000..422ae36b92 --- /dev/null +++ b/parser/testdata/01114_alter_modify_compact_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt_compact", + "tables": [ + { + "table": "mt_compact" + } + ] +} diff --git a/parser/testdata/01114_clear_column_compact_parts/ast.json b/parser/testdata/01114_clear_column_compact_parts/ast.json new file mode 100644 index 0000000000..3d952c896c --- /dev/null +++ b/parser/testdata/01114_clear_column_compact_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "clear_column", + "tables": [ + { + "table": "clear_column" + } + ] +} diff --git a/parser/testdata/01114_materialize_clear_index_compact_parts/ast.json b/parser/testdata/01114_materialize_clear_index_compact_parts/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/01114_materialize_clear_index_compact_parts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01114_mysql_database_engine_segfault/ast.json b/parser/testdata/01114_mysql_database_engine_segfault/ast.json new file mode 100644 index 0000000000..66133c4529 --- /dev/null +++ b/parser/testdata/01114_mysql_database_engine_segfault/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "conv_main", + "drop_database": true +} diff --git a/parser/testdata/01115_join_with_dictionary/ast.json b/parser/testdata/01115_join_with_dictionary/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01115_join_with_dictionary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01115_prewhere_array_join/ast.json b/parser/testdata/01115_prewhere_array_join/ast.json new file mode 100644 index 0000000000..c47292d4dc --- /dev/null +++ b/parser/testdata/01115_prewhere_array_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere", + "tables": [ + { + "table": "prewhere" + } + ] +} diff --git a/parser/testdata/01116_asof_join_dolbyzerr/ast.json b/parser/testdata/01116_asof_join_dolbyzerr/ast.json new file mode 100644 index 0000000000..9b708b7a21 --- /dev/null +++ b/parser/testdata/01116_asof_join_dolbyzerr/ast.json @@ -0,0 +1,24 @@ +{ + "temporary": true, + "table": "sessions", + "columns": [ + { + "name": "date", + "type": { + "name": "DateTime" + } + }, + { + "name": "visitorId", + "type": { + "name": "String" + } + }, + { + "name": "sessionId", + "type": { + "name": "String" + } + } + ] +} diff --git a/parser/testdata/01116_cross_count_asterisks/ast.json b/parser/testdata/01116_cross_count_asterisks/ast.json new file mode 100644 index 0000000000..a1544b4516 --- /dev/null +++ b/parser/testdata/01116_cross_count_asterisks/ast.json @@ -0,0 +1,93 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + }, + "alias": "n1" + } + }, + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "n2" + } + }, + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 4 + } + ] + }, + "alias": "n3" + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "n1", + "number" + ] + }, + "op": "=", + "right": { + "parts": [ + "n2", + "number" + ] + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "n2", + "number" + ] + }, + "op": "=", + "right": { + "parts": [ + "n3", + "number" + ] + } + } + } + } + ] +} diff --git a/parser/testdata/01117_comma_and_others_join_mix/ast.json b/parser/testdata/01117_comma_and_others_join_mix/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/01117_comma_and_others_join_mix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01118_is_constant/ast.json b/parser/testdata/01118_is_constant/ast.json new file mode 100644 index 0000000000..b849b1e335 --- /dev/null +++ b/parser/testdata/01118_is_constant/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isConstant", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01119_optimize_trivial_insert_select/ast.json b/parser/testdata/01119_optimize_trivial_insert_select/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01119_optimize_trivial_insert_select/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01121_remote_scalar_subquery/ast.json b/parser/testdata/01121_remote_scalar_subquery/ast.json new file mode 100644 index 0000000000..b7cf690472 --- /dev/null +++ b/parser/testdata/01121_remote_scalar_subquery/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01122_totals_rollup_having_block_header/ast.json b/parser/testdata/01122_totals_rollup_having_block_header/ast.json new file mode 100644 index 0000000000..f3baf7e07e --- /dev/null +++ b/parser/testdata/01122_totals_rollup_having_block_header/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rollup_having", + "tables": [ + { + "table": "rollup_having" + } + ] +} diff --git a/parser/testdata/01123_parse_date_time_best_effort_even_more/ast.json b/parser/testdata/01123_parse_date_time_best_effort_even_more/ast.json new file mode 100644 index 0000000000..872d9cf5a1 --- /dev/null +++ b/parser/testdata/01123_parse_date_time_best_effort_even_more/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTimeZone", + "arguments": [ + { + "name": "parseDateTimeBestEffort", + "arguments": [ + { + "type": "String", + "value": "Thu, 18 Aug 2018 07:22:16 GMT" + } + ] + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01124_view_bad_types/ast.json b/parser/testdata/01124_view_bad_types/ast.json new file mode 100644 index 0000000000..9a6fef97b6 --- /dev/null +++ b/parser/testdata/01124_view_bad_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "source_table", + "tables": [ + { + "table": "source_table" + } + ] +} diff --git a/parser/testdata/01125_dict_ddl_cannot_add_column/ast.json b/parser/testdata/01125_dict_ddl_cannot_add_column/ast.json new file mode 100644 index 0000000000..770053bfa0 --- /dev/null +++ b/parser/testdata/01125_dict_ddl_cannot_add_column/ast.json @@ -0,0 +1,33 @@ +{ + "table": "date_table", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt32" + } + }, + { + "name": "val", + "type": { + "name": "String" + } + }, + { + "name": "start", + "type": { + "name": "Date" + } + }, + { + "name": "end", + "type": { + "name": "Date" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/01125_generate_random_qoega/ast.json b/parser/testdata/01125_generate_random_qoega/ast.json new file mode 100644 index 0000000000..1c96aabd02 --- /dev/null +++ b/parser/testdata/01125_generate_random_qoega/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mass_table_117", + "tables": [ + { + "table": "mass_table_117" + } + ] +} diff --git a/parser/testdata/01126_month_partitioning_consistent_code/ast.json b/parser/testdata/01126_month_partitioning_consistent_code/ast.json new file mode 100644 index 0000000000..1450425ed6 --- /dev/null +++ b/parser/testdata/01126_month_partitioning_consistent_code/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ] +} diff --git a/parser/testdata/01127_month_partitioning_consistency_select/ast.json b/parser/testdata/01127_month_partitioning_consistency_select/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/01127_month_partitioning_consistency_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01128_generate_random_nested/ast.json b/parser/testdata/01128_generate_random_nested/ast.json new file mode 100644 index 0000000000..0b3c2e8775 --- /dev/null +++ b/parser/testdata/01128_generate_random_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mass_table_312", + "tables": [ + { + "table": "mass_table_312" + } + ] +} diff --git a/parser/testdata/01131_max_rows_to_sort/ast.json b/parser/testdata/01131_max_rows_to_sort/ast.json new file mode 100644 index 0000000000..a534ea790f --- /dev/null +++ b/parser/testdata/01131_max_rows_to_sort/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_sort", + "value": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/01132_max_rows_to_read/ast.json b/parser/testdata/01132_max_rows_to_read/ast.json new file mode 100644 index 0000000000..19ecbb09e2 --- /dev/null +++ b/parser/testdata/01132_max_rows_to_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "row_limits_test", + "tables": [ + { + "table": "row_limits_test" + } + ] +} diff --git a/parser/testdata/01134_max_rows_to_group_by/ast.json b/parser/testdata/01134_max_rows_to_group_by/ast.json new file mode 100644 index 0000000000..e6749a0a7b --- /dev/null +++ b/parser/testdata/01134_max_rows_to_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01134_set_overflow_mode/ast.json b/parser/testdata/01134_set_overflow_mode/ast.json new file mode 100644 index 0000000000..4b590b3528 --- /dev/null +++ b/parser/testdata/01134_set_overflow_mode/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/01135_default_and_alter_zookeeper/ast.json b/parser/testdata/01135_default_and_alter_zookeeper/ast.json new file mode 100644 index 0000000000..78524b2d54 --- /dev/null +++ b/parser/testdata/01135_default_and_alter_zookeeper/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "default_table", + "tables": [ + { + "table": "default_table" + } + ], + "sync": true +} diff --git a/parser/testdata/01136_multiple_sets/ast.json b/parser/testdata/01136_multiple_sets/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01136_multiple_sets/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01137_order_by_func/ast.json b/parser/testdata/01137_order_by_func/ast.json new file mode 100644 index 0000000000..8d7b0a594c --- /dev/null +++ b/parser/testdata/01137_order_by_func/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk_func", + "tables": [ + { + "table": "pk_func" + } + ] +} diff --git a/parser/testdata/01137_order_by_func_final/ast.json b/parser/testdata/01137_order_by_func_final/ast.json new file mode 100644 index 0000000000..8d7b0a594c --- /dev/null +++ b/parser/testdata/01137_order_by_func_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk_func", + "tables": [ + { + "table": "pk_func" + } + ] +} diff --git a/parser/testdata/01137_sample_final/ast.json b/parser/testdata/01137_sample_final/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01137_sample_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01138_join_on_distributed_and_tmp/ast.json b/parser/testdata/01138_join_on_distributed_and_tmp/ast.json new file mode 100644 index 0000000000..2650867aed --- /dev/null +++ b/parser/testdata/01138_join_on_distributed_and_tmp/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo_local", + "tables": [ + { + "table": "foo_local" + } + ] +} diff --git a/parser/testdata/01139_asof_join_types/ast.json b/parser/testdata/01139_asof_join_types/ast.json new file mode 100644 index 0000000000..cd65e788be --- /dev/null +++ b/parser/testdata/01139_asof_join_types/ast.json @@ -0,0 +1,93 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "k" + }, + { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "v" + } + ] + } + ] + } + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "k" + }, + { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ], + "alias": "v" + } + ] + } + ] + } + }, + "alias": "t2" + }, + "join": { + "type": "INNER", + "strictness": "ASOF", + "using": [ + { + "parts": [ + "k" + ] + }, + { + "parts": [ + "v" + ] + } + ] + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01140_select_from_storage_join_fix/ast.json b/parser/testdata/01140_select_from_storage_join_fix/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01140_select_from_storage_join_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01141_join_get_negative/ast.json b/parser/testdata/01141_join_get_negative/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01141_join_get_negative/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01142_join_lc_and_nullable_in_key/ast.json b/parser/testdata/01142_join_lc_and_nullable_in_key/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01142_join_lc_and_nullable_in_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01142_merge_join_lc_and_nullable_in_key/ast.json b/parser/testdata/01142_merge_join_lc_and_nullable_in_key/ast.json new file mode 100644 index 0000000000..ac5c54b4e8 --- /dev/null +++ b/parser/testdata/01142_merge_join_lc_and_nullable_in_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/01142_with_ties_and_aliases/ast.json b/parser/testdata/01142_with_ties_and_aliases/ast.json new file mode 100644 index 0000000000..cc1000d51d --- /dev/null +++ b/parser/testdata/01142_with_ties_and_aliases/ast.json @@ -0,0 +1,93 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 5 + } + ], + "alias": "value" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 20 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "value" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 3 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + }, + { + "expression": { + "parts": [ + "value" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01143_trivial_count_with_join/ast.json b/parser/testdata/01143_trivial_count_with_join/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01143_trivial_count_with_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01144_join_rewrite_with_ambiguous_column_and_view/ast.json b/parser/testdata/01144_join_rewrite_with_ambiguous_column_and_view/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01144_join_rewrite_with_ambiguous_column_and_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01144_multiword_data_types/ast.json b/parser/testdata/01144_multiword_data_types/ast.json new file mode 100644 index 0000000000..e79a03c89e --- /dev/null +++ b/parser/testdata/01144_multiword_data_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "multiword_types", + "tables": [ + { + "table": "multiword_types" + } + ] +} diff --git a/parser/testdata/01147_partial_merge_full_join/ast.json b/parser/testdata/01147_partial_merge_full_join/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01147_partial_merge_full_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01148_zookeeper_path_macros_unfolding/ast.json b/parser/testdata/01148_zookeeper_path_macros_unfolding/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01148_zookeeper_path_macros_unfolding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01149_zookeeper_mutation_stuck_after_replace_partition/ast.json b/parser/testdata/01149_zookeeper_mutation_stuck_after_replace_partition/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/01149_zookeeper_mutation_stuck_after_replace_partition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01151_storage_merge_filter_tables_by_virtual_column/ast.json b/parser/testdata/01151_storage_merge_filter_tables_by_virtual_column/ast.json new file mode 100644 index 0000000000..693d655fbe --- /dev/null +++ b/parser/testdata/01151_storage_merge_filter_tables_by_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src_table_1", + "tables": [ + { + "table": "src_table_1" + } + ] +} diff --git a/parser/testdata/01152_cross_replication/ast.json b/parser/testdata/01152_cross_replication/ast.json new file mode 100644 index 0000000000..3923ec2d21 --- /dev/null +++ b/parser/testdata/01152_cross_replication/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "shard_0", + "drop_database": true +} diff --git a/parser/testdata/01153_attach_mv_uuid/ast.json b/parser/testdata/01153_attach_mv_uuid/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/01153_attach_mv_uuid/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/01155_rename_move_materialized_view/ast.json b/parser/testdata/01155_rename_move_materialized_view/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01155_rename_move_materialized_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01157_replace_table/ast.json b/parser/testdata/01157_replace_table/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01157_replace_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01158_zookeeper_log_long/ast.json b/parser/testdata/01158_zookeeper_log_long/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/01158_zookeeper_log_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01159_combinators_with_parameters/ast.json b/parser/testdata/01159_combinators_with_parameters/ast.json new file mode 100644 index 0000000000..86ea293cf1 --- /dev/null +++ b/parser/testdata/01159_combinators_with_parameters/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "topKArrayState", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01163_search_case_insensetive_utf8/ast.json b/parser/testdata/01163_search_case_insensetive_utf8/ast.json new file mode 100644 index 0000000000..0c88b8a038 --- /dev/null +++ b/parser/testdata/01163_search_case_insensetive_utf8/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "positionCaseInsensitiveUTF8", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "сссссс" + } + ] + }, + { + "type": "String", + "value": "Ё" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01164_alter_memory_database/ast.json b/parser/testdata/01164_alter_memory_database/ast.json new file mode 100644 index 0000000000..dedeaef22a --- /dev/null +++ b/parser/testdata/01164_alter_memory_database/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_1164_memory", + "drop_database": true +} diff --git a/parser/testdata/01165_lost_part_empty_partition/ast.json b/parser/testdata/01165_lost_part_empty_partition/ast.json new file mode 100644 index 0000000000..7006d487f6 --- /dev/null +++ b/parser/testdata/01165_lost_part_empty_partition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01166_truncate_multiple_partitions/ast.json b/parser/testdata/01166_truncate_multiple_partitions/ast.json new file mode 100644 index 0000000000..a11db1a3bb --- /dev/null +++ b/parser/testdata/01166_truncate_multiple_partitions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "trunc", + "tables": [ + { + "table": "trunc" + } + ] +} diff --git a/parser/testdata/01172_transaction_counters/ast.json b/parser/testdata/01172_transaction_counters/ast.json new file mode 100644 index 0000000000..f104c31bda --- /dev/null +++ b/parser/testdata/01172_transaction_counters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "txn_counters", + "tables": [ + { + "table": "txn_counters" + } + ] +} diff --git a/parser/testdata/01173_transaction_control_queries/ast.json b/parser/testdata/01173_transaction_control_queries/ast.json new file mode 100644 index 0000000000..a802c8a3e9 --- /dev/null +++ b/parser/testdata/01173_transaction_control_queries/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt1", + "tables": [ + { + "table": "mt1" + } + ] +} diff --git a/parser/testdata/01177_group_array_moving/ast.json b/parser/testdata/01177_group_array_moving/ast.json new file mode 100644 index 0000000000..49b0a53db4 --- /dev/null +++ b/parser/testdata/01177_group_array_moving/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArrayMovingSum", + "parameters": [ + { + "type": "Integer", + "value": 257 + } + ], + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + }, + { + "name": "groupArrayMovingSum", + "parameters": [ + { + "type": "Integer", + "value": 1048575 + } + ], + "arguments": [ + { + "type": "Integer", + "value": 18446744073709551615 + } + ] + }, + { + "name": "groupArrayMovingSum", + "parameters": [ + { + "type": "Integer", + "value": 9223372036854775807 + } + ], + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 9223372036854775807 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1..2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01181_db_atomic_drop_on_cluster/ast.json b/parser/testdata/01181_db_atomic_drop_on_cluster/ast.json new file mode 100644 index 0000000000..b8726bf487 --- /dev/null +++ b/parser/testdata/01181_db_atomic_drop_on_cluster/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test_repl", + "tables": [ + { + "table": "test_repl" + } + ], + "on_cluster": "test_shard_localhost" +} diff --git a/parser/testdata/01182_materialized_view_different_structure/ast.json b/parser/testdata/01182_materialized_view_different_structure/ast.json new file mode 100644 index 0000000000..80532b40b3 --- /dev/null +++ b/parser/testdata/01182_materialized_view_different_structure/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_materialized_view_with_bad_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01185_create_or_replace_table/ast.json b/parser/testdata/01185_create_or_replace_table/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01185_create_or_replace_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01186_conversion_to_nullable/ast.json b/parser/testdata/01186_conversion_to_nullable/ast.json new file mode 100644 index 0000000000..0cebdac4c4 --- /dev/null +++ b/parser/testdata/01186_conversion_to_nullable/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt8", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "String", + "value": "x Nullable(String)" + }, + { + "type": "String", + "value": "42" + }, + { + "type": "Null", + "value": null + }, + { + "type": "String", + "value": "0" + }, + { + "type": "String", + "value": "" + }, + { + "type": "String", + "value": "256" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01189_create_as_table_as_table_function/ast.json b/parser/testdata/01189_create_as_table_as_table_function/ast.json new file mode 100644 index 0000000000..93e6e77fe0 --- /dev/null +++ b/parser/testdata/01189_create_as_table_as_table_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table2", + "tables": [ + { + "table": "table2" + } + ] +} diff --git a/parser/testdata/01191_rename_dictionary/ast.json b/parser/testdata/01191_rename_dictionary/ast.json new file mode 100644 index 0000000000..4e46bcd70b --- /dev/null +++ b/parser/testdata/01191_rename_dictionary/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_01191", + "drop_database": true +} diff --git a/parser/testdata/01197_summing_enum/ast.json b/parser/testdata/01197_summing_enum/ast.json new file mode 100644 index 0000000000..a789431cb9 --- /dev/null +++ b/parser/testdata/01197_summing_enum/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "summing", + "tables": [ + { + "table": "summing" + } + ] +} diff --git a/parser/testdata/01198_plus_inf/ast.json b/parser/testdata/01198_plus_inf/ast.json new file mode 100644 index 0000000000..ea90263031 --- /dev/null +++ b/parser/testdata/01198_plus_inf/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "name": "toFloat64", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "+inf" + }, + { + "type": "String", + "value": "+Inf" + }, + { + "type": "String", + "value": "+INF" + }, + { + "type": "String", + "value": "+infinity" + }, + { + "type": "String", + "value": "+Infinity" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01199_url_functions_path_without_schema_yiurule/ast.json b/parser/testdata/01199_url_functions_path_without_schema_yiurule/ast.json new file mode 100644 index 0000000000..fa9b90b982 --- /dev/null +++ b/parser/testdata/01199_url_functions_path_without_schema_yiurule/ast.json @@ -0,0 +1,18 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "path", + "arguments": [ + { + "type": "String", + "value": "www.example.com:443/a/b/c" + } + ], + "alias": "Path" + } + ] + } + ] +} diff --git a/parser/testdata/01200_mutations_memory_consumption/ast.json b/parser/testdata/01200_mutations_memory_consumption/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/01200_mutations_memory_consumption/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01201_drop_column_compact_part_replicated_zookeeper_long/ast.json b/parser/testdata/01201_drop_column_compact_part_replicated_zookeeper_long/ast.json new file mode 100644 index 0000000000..81b9de0395 --- /dev/null +++ b/parser/testdata/01201_drop_column_compact_part_replicated_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_max_retries", + "value": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/01201_read_single_thread_in_order/ast.json b/parser/testdata/01201_read_single_thread_in_order/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01201_read_single_thread_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01202_arrayROCAUC_special/ast.json b/parser/testdata/01202_arrayROCAUC_special/ast.json new file mode 100644 index 0000000000..93e15a9f60 --- /dev/null +++ b/parser/testdata/01202_arrayROCAUC_special/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayROCAUC", + "arguments": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01210_drop_view/ast.json b/parser/testdata/01210_drop_view/ast.json new file mode 100644 index 0000000000..9493d31803 --- /dev/null +++ b/parser/testdata/01210_drop_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "v_01210", + "tables": [ + { + "table": "v_01210" + } + ] +} diff --git a/parser/testdata/01211_optimize_skip_unused_shards_type_mismatch/ast.json b/parser/testdata/01211_optimize_skip_unused_shards_type_mismatch/ast.json new file mode 100644 index 0000000000..a7f6f9e84b --- /dev/null +++ b/parser/testdata/01211_optimize_skip_unused_shards_type_mismatch/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01213_alter_rename_column/ast.json b/parser/testdata/01213_alter_rename_column/ast.json new file mode 100644 index 0000000000..7c78df7678 --- /dev/null +++ b/parser/testdata/01213_alter_rename_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename", + "tables": [ + { + "table": "table_for_rename" + } + ] +} diff --git a/parser/testdata/01213_alter_rename_compact_part/ast.json b/parser/testdata/01213_alter_rename_compact_part/ast.json new file mode 100644 index 0000000000..bf3a16f45b --- /dev/null +++ b/parser/testdata/01213_alter_rename_compact_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_compact_parts", + "tables": [ + { + "table": "table_with_compact_parts" + } + ] +} diff --git a/parser/testdata/01213_alter_rename_nested/ast.json b/parser/testdata/01213_alter_rename_nested/ast.json new file mode 100644 index 0000000000..a814d144fe --- /dev/null +++ b/parser/testdata/01213_alter_rename_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename_nested", + "tables": [ + { + "table": "table_for_rename_nested" + } + ] +} diff --git a/parser/testdata/01213_alter_rename_primary_key_zookeeper_long/ast.json b/parser/testdata/01213_alter_rename_primary_key_zookeeper_long/ast.json new file mode 100644 index 0000000000..929a54a238 --- /dev/null +++ b/parser/testdata/01213_alter_rename_primary_key_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename_pk", + "tables": [ + { + "table": "table_for_rename_pk" + } + ] +} diff --git a/parser/testdata/01213_alter_rename_with_default_zookeeper_long/ast.json b/parser/testdata/01213_alter_rename_with_default_zookeeper_long/ast.json new file mode 100644 index 0000000000..eaed52f17d --- /dev/null +++ b/parser/testdata/01213_alter_rename_with_default_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_rename_with_default", + "tables": [ + { + "table": "table_rename_with_default" + } + ] +} diff --git a/parser/testdata/01213_alter_table_rename_nested/ast.json b/parser/testdata/01213_alter_table_rename_nested/ast.json new file mode 100644 index 0000000000..a814d144fe --- /dev/null +++ b/parser/testdata/01213_alter_table_rename_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename_nested", + "tables": [ + { + "table": "table_for_rename_nested" + } + ] +} diff --git a/parser/testdata/01213_optimize_skip_unused_shards_DISTINCT/ast.json b/parser/testdata/01213_optimize_skip_unused_shards_DISTINCT/ast.json new file mode 100644 index 0000000000..dbb135cb32 --- /dev/null +++ b/parser/testdata/01213_optimize_skip_unused_shards_DISTINCT/ast.json @@ -0,0 +1,20 @@ +{ + "if_not_exists": true, + "table": "local_01213", + "columns": [ + { + "name": "id", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/01213_point_in_Myanmar/ast.json b/parser/testdata/01213_point_in_Myanmar/ast.json new file mode 100644 index 0000000000..ef837fb1fc --- /dev/null +++ b/parser/testdata/01213_point_in_Myanmar/ast.json @@ -0,0 +1,1461 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "pointInPolygon", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.66905 + }, + { + "type": "Float", + "value": 16.5026053 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.66905 + }, + { + "type": "Float", + "value": 16.5026053 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.667878 + }, + { + "type": "Float", + "value": 16.4979175 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.661433 + }, + { + "type": "Float", + "value": 16.4917645 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.656745 + }, + { + "type": "Float", + "value": 16.4859047 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.656745 + }, + { + "type": "Float", + "value": 16.4818029 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.658796 + }, + { + "type": "Float", + "value": 16.4785801 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.665535 + }, + { + "type": "Float", + "value": 16.4753572 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.670808 + }, + { + "type": "Float", + "value": 16.4730135 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.676082 + }, + { + "type": "Float", + "value": 16.4697907 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.680477 + }, + { + "type": "Float", + "value": 16.4677398 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.68575 + }, + { + "type": "Float", + "value": 16.4686189 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.689559 + }, + { + "type": "Float", + "value": 16.4727207 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.69454 + }, + { + "type": "Float", + "value": 16.4744788 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.698055 + }, + { + "type": "Float", + "value": 16.4747718 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.702157 + }, + { + "type": "Float", + "value": 16.4724279 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.703036 + }, + { + "type": "Float", + "value": 16.4683261 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.703036 + }, + { + "type": "Float", + "value": 16.4633453 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.702451 + }, + { + "type": "Float", + "value": 16.4594354 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.699533 + }, + { + "type": "Float", + "value": 16.4539205 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.699106 + }, + { + "type": "Float", + "value": 16.4521467 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.699896 + }, + { + "type": "Float", + "value": 16.4500714 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.701852 + }, + { + "type": "Float", + "value": 16.4474887 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.701272 + }, + { + "type": "Float", + "value": 16.4460233 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.699896 + }, + { + "type": "Float", + "value": 16.4439216 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.699857 + }, + { + "type": "Float", + "value": 16.4425297 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.700705 + }, + { + "type": "Float", + "value": 16.4417585 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.699266 + }, + { + "type": "Float", + "value": 16.4404319 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.696817 + }, + { + "type": "Float", + "value": 16.439585 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.69468 + }, + { + "type": "Float", + "value": 16.4391501 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.690854 + }, + { + "type": "Float", + "value": 16.439294 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.686571 + }, + { + "type": "Float", + "value": 16.4407665 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.683728 + }, + { + "type": "Float", + "value": 16.4428458 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.680647 + }, + { + "type": "Float", + "value": 16.444719 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.678369 + }, + { + "type": "Float", + "value": 16.445322 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.675195 + }, + { + "type": "Float", + "value": 16.4448526 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.672627 + }, + { + "type": "Float", + "value": 16.4435941 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.670568 + }, + { + "type": "Float", + "value": 16.4419727 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.667276 + }, + { + "type": "Float", + "value": 16.4410039 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.666215 + }, + { + "type": "Float", + "value": 16.439402 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.66599 + }, + { + "type": "Float", + "value": 16.43656 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.664579 + }, + { + "type": "Float", + "value": 16.435632 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.66195 + }, + { + "type": "Float", + "value": 16.4344612 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.659174 + }, + { + "type": "Float", + "value": 16.4324549 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.658693 + }, + { + "type": "Float", + "value": 16.4290256 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.659289 + }, + { + "type": "Float", + "value": 16.4246502 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.660882 + }, + { + "type": "Float", + "value": 16.422609 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.663533 + }, + { + "type": "Float", + "value": 16.4225057 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.666402 + }, + { + "type": "Float", + "value": 16.4210711 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.67148 + }, + { + "type": "Float", + "value": 16.4170395 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.673433 + }, + { + "type": "Float", + "value": 16.4146478 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.674184 + }, + { + "type": "Float", + "value": 16.4124121 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.6742 + }, + { + "type": "Float", + "value": 16.4085257 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.674894 + }, + { + "type": "Float", + "value": 16.4055148 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.675906 + }, + { + "type": "Float", + "value": 16.4019452 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.675287 + }, + { + "type": "Float", + "value": 16.3996593 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.675062 + }, + { + "type": "Float", + "value": 16.3963334 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.675798 + }, + { + "type": "Float", + "value": 16.3936434 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.675676 + }, + { + "type": "Float", + "value": 16.3909321 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.67508 + }, + { + "type": "Float", + "value": 16.386655 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.679839 + }, + { + "type": "Float", + "value": 16.386241 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.689403 + }, + { + "type": "Float", + "value": 16.3726191 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.692011 + }, + { + "type": "Float", + "value": 16.372909 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.696359 + }, + { + "type": "Float", + "value": 16.3679819 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.699866 + }, + { + "type": "Float", + "value": 16.360968 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.697233 + }, + { + "type": "Float", + "value": 16.3609438 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.693077 + }, + { + "type": "Float", + "value": 16.3596272 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.686631 + }, + { + "type": "Float", + "value": 16.3584552 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.68165 + }, + { + "type": "Float", + "value": 16.3558182 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.674619 + }, + { + "type": "Float", + "value": 16.3496653 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.667588 + }, + { + "type": "Float", + "value": 16.3482003 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.664072 + }, + { + "type": "Float", + "value": 16.3502511 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.659384 + }, + { + "type": "Float", + "value": 16.3540599 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.652353 + }, + { + "type": "Float", + "value": 16.3578686 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.649716 + }, + { + "type": "Float", + "value": 16.3625565 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.650595 + }, + { + "type": "Float", + "value": 16.3672443 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.65206 + }, + { + "type": "Float", + "value": 16.3701742 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.65206 + }, + { + "type": "Float", + "value": 16.3733971 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.651181 + }, + { + "type": "Float", + "value": 16.3760339 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.646493 + }, + { + "type": "Float", + "value": 16.3763268 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.6462 + }, + { + "type": "Float", + "value": 16.3801357 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.646786 + }, + { + "type": "Float", + "value": 16.3851165 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.643563 + }, + { + "type": "Float", + "value": 16.3883393 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.638583 + }, + { + "type": "Float", + "value": 16.3889252 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.636239 + }, + { + "type": "Float", + "value": 16.392148 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.630379 + }, + { + "type": "Float", + "value": 16.3933199 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.629132 + }, + { + "type": "Float", + "value": 16.3964903 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.624347 + }, + { + "type": "Float", + "value": 16.4056104 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.615377 + }, + { + "type": "Float", + "value": 16.4165245 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.614779 + }, + { + "type": "Float", + "value": 16.4229534 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.611938 + }, + { + "type": "Float", + "value": 16.4335685 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.613882 + }, + { + "type": "Float", + "value": 16.4410439 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.619713 + }, + { + "type": "Float", + "value": 16.4461272 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.62375 + }, + { + "type": "Float", + "value": 16.4542007 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.62345 + }, + { + "type": "Float", + "value": 16.4640683 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.618965 + }, + { + "type": "Float", + "value": 16.4793181 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.617321 + }, + { + "type": "Float", + "value": 16.4884382 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.617747 + }, + { + "type": "Float", + "value": 16.4985751 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.623301 + }, + { + "type": "Float", + "value": 16.5026416 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.629303 + }, + { + "type": "Float", + "value": 16.5016624 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.63272 + }, + { + "type": "Float", + "value": 16.4986048 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.640862 + }, + { + "type": "Float", + "value": 16.498226 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.647134 + }, + { + "type": "Float", + "value": 16.5006382 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.650873 + }, + { + "type": "Float", + "value": 16.5051263 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.654987 + }, + { + "type": "Float", + "value": 16.5089598 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.65639 + }, + { + "type": "Float", + "value": 16.5118583 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.658166 + }, + { + "type": "Float", + "value": 16.5160658 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.660395 + }, + { + "type": "Float", + "value": 16.5197566 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.66612 + }, + { + "type": "Float", + "value": 16.5140318 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.668757 + }, + { + "type": "Float", + "value": 16.507879 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 97.66905 + }, + { + "type": "Float", + "value": 16.5026053 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01214_point_in_Mecca/ast.json b/parser/testdata/01214_point_in_Mecca/ast.json new file mode 100644 index 0000000000..d638e68750 --- /dev/null +++ b/parser/testdata/01214_point_in_Mecca/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Outer part of Mecca" + } + ] + } + ] +} diff --git a/parser/testdata/01214_test_storage_merge_aliases_with_where/ast.json b/parser/testdata/01214_test_storage_merge_aliases_with_where/ast.json new file mode 100644 index 0000000000..33971948bd --- /dev/null +++ b/parser/testdata/01214_test_storage_merge_aliases_with_where/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tt1", + "tables": [ + { + "table": "tt1" + } + ] +} diff --git a/parser/testdata/01220_scalar_optimization_in_alter/ast.json b/parser/testdata/01220_scalar_optimization_in_alter/ast.json new file mode 100644 index 0000000000..f0cf5b78b3 --- /dev/null +++ b/parser/testdata/01220_scalar_optimization_in_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cdp_segments", + "tables": [ + { + "table": "cdp_segments" + } + ] +} diff --git a/parser/testdata/01221_system_settings/ast.json b/parser/testdata/01221_system_settings/ast.json new file mode 100644 index 0000000000..cef1de8e56 --- /dev/null +++ b/parser/testdata/01221_system_settings/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "send_timeout" + } + } + } + ] +} diff --git a/parser/testdata/01222_system_codecs/ast.json b/parser/testdata/01222_system_codecs/ast.json new file mode 100644 index 0000000000..2730531856 --- /dev/null +++ b/parser/testdata/01222_system_codecs/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "codecs" + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "all" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01223_dist_on_dist/ast.json b/parser/testdata/01223_dist_on_dist/ast.json new file mode 100644 index 0000000000..b02d47429a --- /dev/null +++ b/parser/testdata/01223_dist_on_dist/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_dist_01223", + "tables": [ + { + "table": "merge_dist_01223" + } + ] +} diff --git a/parser/testdata/01224_no_superfluous_dict_reload/ast.json b/parser/testdata/01224_no_superfluous_dict_reload/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01224_no_superfluous_dict_reload/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01225_drop_dictionary_as_table/ast.json b/parser/testdata/01225_drop_dictionary_as_table/ast.json new file mode 100644 index 0000000000..6f4cc74628 --- /dev/null +++ b/parser/testdata/01225_drop_dictionary_as_table/ast.json @@ -0,0 +1,21 @@ +{ + "table": "dict_data", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "val", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/01225_show_create_table_from_dictionary/ast.json b/parser/testdata/01225_show_create_table_from_dictionary/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01225_show_create_table_from_dictionary/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01226_dist_on_dist_global_in/ast.json b/parser/testdata/01226_dist_on_dist_global_in/ast.json new file mode 100644 index 0000000000..2fdbdafbab --- /dev/null +++ b/parser/testdata/01226_dist_on_dist_global_in/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "GLOBAL IN" + } + ] + } + ] +} diff --git a/parser/testdata/01227_distributed_global_in_issue_2610/ast.json b/parser/testdata/01227_distributed_global_in_issue_2610/ast.json new file mode 100644 index 0000000000..2108d4daa9 --- /dev/null +++ b/parser/testdata/01227_distributed_global_in_issue_2610/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01227", + "tables": [ + { + "table": "data_01227" + } + ] +} diff --git a/parser/testdata/01227_distributed_merge_global_in_primary_key/ast.json b/parser/testdata/01227_distributed_merge_global_in_primary_key/ast.json new file mode 100644 index 0000000000..80290a41c0 --- /dev/null +++ b/parser/testdata/01227_distributed_merge_global_in_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_merge", + "tables": [ + { + "table": "test_merge" + } + ] +} diff --git a/parser/testdata/01230_join_get_truncate/ast.json b/parser/testdata/01230_join_get_truncate/ast.json new file mode 100644 index 0000000000..e501e5cb9f --- /dev/null +++ b/parser/testdata/01230_join_get_truncate/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join_test", + "tables": [ + { + "table": "join_test" + } + ] +} diff --git a/parser/testdata/01231_distributed_aggregation_memory_efficient_mix_levels/ast.json b/parser/testdata/01231_distributed_aggregation_memory_efficient_mix_levels/ast.json new file mode 100644 index 0000000000..4f46873637 --- /dev/null +++ b/parser/testdata/01231_distributed_aggregation_memory_efficient_mix_levels/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "error" + } + } + ] +} diff --git a/parser/testdata/01231_log_queries_min_type/ast.json b/parser/testdata/01231_log_queries_min_type/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01231_log_queries_min_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01231_markdown_format/ast.json b/parser/testdata/01231_markdown_format/ast.json new file mode 100644 index 0000000000..1ebb7c55b0 --- /dev/null +++ b/parser/testdata/01231_markdown_format/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "markdown", + "tables": [ + { + "table": "markdown" + } + ] +} diff --git a/parser/testdata/01231_operator_null_in/ast.json b/parser/testdata/01231_operator_null_in/ast.json new file mode 100644 index 0000000000..6f6b93c3a6 --- /dev/null +++ b/parser/testdata/01231_operator_null_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_in", + "tables": [ + { + "table": "null_in" + } + ] +} diff --git a/parser/testdata/01232_extremes/ast.json b/parser/testdata/01232_extremes/ast.json new file mode 100644 index 0000000000..4f46873637 --- /dev/null +++ b/parser/testdata/01232_extremes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "error" + } + } + ] +} diff --git a/parser/testdata/01232_untuple/ast.json b/parser/testdata/01232_untuple/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01232_untuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01234_to_string_monotonic/ast.json b/parser/testdata/01234_to_string_monotonic/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/01234_to_string_monotonic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01236_graphite_mt/ast.json b/parser/testdata/01236_graphite_mt/ast.json new file mode 100644 index 0000000000..e6b8a60f87 --- /dev/null +++ b/parser/testdata/01236_graphite_mt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_graphite", + "tables": [ + { + "table": "test_graphite" + } + ] +} diff --git a/parser/testdata/01240_join_get_or_null/ast.json b/parser/testdata/01240_join_get_or_null/ast.json new file mode 100644 index 0000000000..e501e5cb9f --- /dev/null +++ b/parser/testdata/01240_join_get_or_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join_test", + "tables": [ + { + "table": "join_test" + } + ] +} diff --git a/parser/testdata/01244_optimize_distributed_group_by_sharding_key/ast.json b/parser/testdata/01244_optimize_distributed_group_by_sharding_key/ast.json new file mode 100644 index 0000000000..ae03b7c3ea --- /dev/null +++ b/parser/testdata/01244_optimize_distributed_group_by_sharding_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_distributed_group_by_sharding_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01245_distributed_group_by_no_merge_with-extremes_and_totals/ast.json b/parser/testdata/01245_distributed_group_by_no_merge_with-extremes_and_totals/ast.json new file mode 100644 index 0000000000..a4b3074988 --- /dev/null +++ b/parser/testdata/01245_distributed_group_by_no_merge_with-extremes_and_totals/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system", + "numbers" + ] + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 5 + }, + "settings": [ + { + "name": "distributed_group_by_no_merge", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01245_limit_infinite_sources/ast.json b/parser/testdata/01245_limit_infinite_sources/ast.json new file mode 100644 index 0000000000..9ad4fe8cf9 --- /dev/null +++ b/parser/testdata/01245_limit_infinite_sources/ast.json @@ -0,0 +1,122 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "zero" + ], + "alias": "number" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.2" + }, + { + "parts": [ + "system", + "zeros" + ] + } + ] + } + } + } + ] + } + }, + { + "columns": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "name": "sleep", + "arguments": [ + { + "type": "Float", + "value": 0.5 + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + "limit": { + "type": "Integer", + "value": 1 + }, + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/01246_extractAllGroupsHorizontal/ast.json b/parser/testdata/01246_extractAllGroupsHorizontal/ast.json new file mode 100644 index 0000000000..f9b5076b73 --- /dev/null +++ b/parser/testdata/01246_extractAllGroupsHorizontal/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractAllGroupsHorizontal" + } + ] + } + ] +} diff --git a/parser/testdata/01246_extractAllGroupsVertical/ast.json b/parser/testdata/01246_extractAllGroupsVertical/ast.json new file mode 100644 index 0000000000..853c283cd7 --- /dev/null +++ b/parser/testdata/01246_extractAllGroupsVertical/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractAllGroupsVertical" + } + ] + } + ] +} diff --git a/parser/testdata/01246_finalize_aggregation_race/ast.json b/parser/testdata/01246_finalize_aggregation_race/ast.json new file mode 100644 index 0000000000..934c32703d --- /dev/null +++ b/parser/testdata/01246_finalize_aggregation_race/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_quantile", + "tables": [ + { + "table": "test_quantile" + } + ] +} diff --git a/parser/testdata/01246_least_greatest_generic/ast.json b/parser/testdata/01246_least_greatest_generic/ast.json new file mode 100644 index 0000000000..e5263d8d52 --- /dev/null +++ b/parser/testdata/01246_least_greatest_generic/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "least", + "arguments": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01247_optimize_distributed_group_by_sharding_key_dist_on_dist/ast.json b/parser/testdata/01247_optimize_distributed_group_by_sharding_key_dist_on_dist/ast.json new file mode 100644 index 0000000000..ae03b7c3ea --- /dev/null +++ b/parser/testdata/01247_optimize_distributed_group_by_sharding_key_dist_on_dist/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_distributed_group_by_sharding_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01247_some_msan_crashs_from_22517/ast.json b/parser/testdata/01247_some_msan_crashs_from_22517/ast.json new file mode 100644 index 0000000000..7038d7648d --- /dev/null +++ b/parser/testdata/01247_some_msan_crashs_from_22517/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "ignore", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ], + "alias": "a" + }, + { + "parts": [ + "a" + ], + "alias": "b" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01248_least_greatest_mixed_const/ast.json b/parser/testdata/01248_least_greatest_mixed_const/ast.json new file mode 100644 index 0000000000..085a09d089 --- /dev/null +++ b/parser/testdata/01248_least_greatest_mixed_const/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "least", + "arguments": [ + { + "type": "Integer", + "value": 4 + }, + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 6 + } + ] + }, + { + "name": "greatest", + "arguments": [ + { + "type": "Integer", + "value": 4 + }, + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01249_bad_arguments_for_bloom_filter/ast.json b/parser/testdata/01249_bad_arguments_for_bloom_filter/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01249_bad_arguments_for_bloom_filter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01251_dict_is_in_infinite_loop/ast.json b/parser/testdata/01251_dict_is_in_infinite_loop/ast.json new file mode 100644 index 0000000000..71d7af0a54 --- /dev/null +++ b/parser/testdata/01251_dict_is_in_infinite_loop/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "database_for_dict", + "drop_database": true +} diff --git a/parser/testdata/01251_string_comparison/ast.json b/parser/testdata/01251_string_comparison/ast.json new file mode 100644 index 0000000000..88904f54d3 --- /dev/null +++ b/parser/testdata/01251_string_comparison/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isConstant", + "arguments": [ + { + "left": { + "type": "String", + "value": "a" + }, + "op": "=", + "right": { + "type": "String", + "value": "b" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01252_weird_time_zone/ast.json b/parser/testdata/01252_weird_time_zone/ast.json new file mode 100644 index 0000000000..d3de99bda3 --- /dev/null +++ b/parser/testdata/01252_weird_time_zone/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Pacific/Kiritimati" + }, + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-01-02 03:04:05" + }, + { + "type": "String", + "value": "Pacific/Kiritimati" + } + ], + "alias": "x" + }, + { + "name": "toStartOfDay", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "toHour", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01253_subquery_in_aggregate_function_JustStranger/ast.json b/parser/testdata/01253_subquery_in_aggregate_function_JustStranger/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/01253_subquery_in_aggregate_function_JustStranger/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/01254_array_of_unnamed_tuples/ast.json b/parser/testdata/01254_array_of_unnamed_tuples/ast.json new file mode 100644 index 0000000000..c7a76a893c --- /dev/null +++ b/parser/testdata/01254_array_of_unnamed_tuples/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mass_table_457", + "tables": [ + { + "table": "mass_table_457" + } + ] +} diff --git a/parser/testdata/01254_dict_create_without_db/ast.json b/parser/testdata/01254_dict_create_without_db/ast.json new file mode 100644 index 0000000000..6f4cc74628 --- /dev/null +++ b/parser/testdata/01254_dict_create_without_db/ast.json @@ -0,0 +1,21 @@ +{ + "table": "dict_data", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "val", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/01254_dict_load_after_detach_attach/ast.json b/parser/testdata/01254_dict_load_after_detach_attach/ast.json new file mode 100644 index 0000000000..6f4cc74628 --- /dev/null +++ b/parser/testdata/01254_dict_load_after_detach_attach/ast.json @@ -0,0 +1,21 @@ +{ + "table": "dict_data", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "val", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/01255_geo_types_livace/ast.json b/parser/testdata/01255_geo_types_livace/ast.json new file mode 100644 index 0000000000..6d30292280 --- /dev/null +++ b/parser/testdata/01255_geo_types_livace/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tutorial", + "tables": [ + { + "table": "tutorial" + } + ] +} diff --git a/parser/testdata/01256_negative_generate_random/ast.json b/parser/testdata/01256_negative_generate_random/ast.json new file mode 100644 index 0000000000..c98a3cfd4f --- /dev/null +++ b/parser/testdata/01256_negative_generate_random/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generateRandom", + "arguments": [ + { + "type": "String", + "value": "i8" + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01257_dictionary_mismatch_types/ast.json b/parser/testdata/01257_dictionary_mismatch_types/ast.json new file mode 100644 index 0000000000..34f01ca685 --- /dev/null +++ b/parser/testdata/01257_dictionary_mismatch_types/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_dict_db", + "drop_database": true +} diff --git a/parser/testdata/01259_combinator_distinct_distributed/ast.json b/parser/testdata/01259_combinator_distinct_distributed/ast.json new file mode 100644 index 0000000000..14209dcd66 --- /dev/null +++ b/parser/testdata/01259_combinator_distinct_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_aggregation_memory_efficient", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01259_datetime64_ubsan/ast.json b/parser/testdata/01259_datetime64_ubsan/ast.json new file mode 100644 index 0000000000..84792c7197 --- /dev/null +++ b/parser/testdata/01259_datetime64_ubsan/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "now64", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01259_dictionary_custom_settings_ddl/ast.json b/parser/testdata/01259_dictionary_custom_settings_ddl/ast.json new file mode 100644 index 0000000000..94d947ec4c --- /dev/null +++ b/parser/testdata/01259_dictionary_custom_settings_ddl/ast.json @@ -0,0 +1,34 @@ +{ + "table": "table_for_dict", + "columns": [ + { + "name": "key_column", + "type": { + "name": "UInt64" + } + }, + { + "name": "second_column", + "type": { + "name": "UInt64" + } + }, + { + "name": "third_column", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "key_column" + ] + } + ] +} diff --git a/parser/testdata/01260_ubsan_decimal_parse/ast.json b/parser/testdata/01260_ubsan_decimal_parse/ast.json new file mode 100644 index 0000000000..5e640b4352 --- /dev/null +++ b/parser/testdata/01260_ubsan_decimal_parse/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32OrZero", + "arguments": [ + { + "expr": { + "op": "-", + "operand": { + "type": "Integer", + "value": 7174046 + } + }, + "type": { + "name": "String" + } + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01262_fractional_timezone_near_start_of_epoch/ast.json b/parser/testdata/01262_fractional_timezone_near_start_of_epoch/ast.json new file mode 100644 index 0000000000..9c9a704475 --- /dev/null +++ b/parser/testdata/01262_fractional_timezone_near_start_of_epoch/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "Integer", + "value": 10000 + }, + { + "type": "String", + "value": "Asia/Calcutta" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01262_low_cardinality_remove/ast.json b/parser/testdata/01262_low_cardinality_remove/ast.json new file mode 100644 index 0000000000..95b01b8672 --- /dev/null +++ b/parser/testdata/01262_low_cardinality_remove/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testView", + "tables": [ + { + "table": "testView" + } + ] +} diff --git a/parser/testdata/01263_type_conversion_nvartolomei/ast.json b/parser/testdata/01263_type_conversion_nvartolomei/ast.json new file mode 100644 index 0000000000..44a7ee321d --- /dev/null +++ b/parser/testdata/01263_type_conversion_nvartolomei/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m", + "tables": [ + { + "table": "m" + } + ] +} diff --git a/parser/testdata/01264_nested_baloo_bear/ast.json b/parser/testdata/01264_nested_baloo_bear/ast.json new file mode 100644 index 0000000000..3b231a50a9 --- /dev/null +++ b/parser/testdata/01264_nested_baloo_bear/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "LOG_T", + "tables": [ + { + "table": "LOG_T" + } + ] +} diff --git a/parser/testdata/01265_datetime_string_comparison_felix_mueller/ast.json b/parser/testdata/01265_datetime_string_comparison_felix_mueller/ast.json new file mode 100644 index 0000000000..1ac2559f25 --- /dev/null +++ b/parser/testdata/01265_datetime_string_comparison_felix_mueller/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tztest", + "tables": [ + { + "table": "tztest" + } + ] +} diff --git a/parser/testdata/01266_default_prewhere_reqq/ast.json b/parser/testdata/01266_default_prewhere_reqq/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01266_default_prewhere_reqq/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01267_alter_default_key_columns_zookeeper_long/ast.json b/parser/testdata/01267_alter_default_key_columns_zookeeper_long/ast.json new file mode 100644 index 0000000000..3842af8115 --- /dev/null +++ b/parser/testdata/01267_alter_default_key_columns_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter", + "tables": [ + { + "table": "test_alter" + } + ] +} diff --git a/parser/testdata/01268_DateTime64_in_WHERE/ast.json b/parser/testdata/01268_DateTime64_in_WHERE/ast.json new file mode 100644 index 0000000000..7095cc543d --- /dev/null +++ b/parser/testdata/01268_DateTime64_in_WHERE/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "with": [ + { + "name": "S", + "query": { + "type": "String", + "value": "2020-02-05 14:34:12.333" + } + }, + { + "name": "DT64", + "query": { + "name": "toDateTime64", + "arguments": [ + { + "parts": [ + "S" + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + } + } + ], + "columns": [ + { + "left": { + "parts": [ + "DT64" + ] + }, + "op": "=", + "right": { + "name": "materialize", + "arguments": [ + { + "parts": [ + "S" + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01268_data_numeric_parameters/ast.json b/parser/testdata/01268_data_numeric_parameters/ast.json new file mode 100644 index 0000000000..e121b08a11 --- /dev/null +++ b/parser/testdata/01268_data_numeric_parameters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ints", + "tables": [ + { + "table": "ints" + } + ] +} diff --git a/parser/testdata/01268_dictionary_direct_layout/ast.json b/parser/testdata/01268_dictionary_direct_layout/ast.json new file mode 100644 index 0000000000..aeb9cd12bf --- /dev/null +++ b/parser/testdata/01268_dictionary_direct_layout/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "database_for_dict_01268", + "drop_database": true +} diff --git a/parser/testdata/01268_mergine_sorted_limit/ast.json b/parser/testdata/01268_mergine_sorted_limit/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01268_mergine_sorted_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01268_mv_scalars/ast.json b/parser/testdata/01268_mv_scalars/ast.json new file mode 100644 index 0000000000..139b40b798 --- /dev/null +++ b/parser/testdata/01268_mv_scalars/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dest_table_mv", + "tables": [ + { + "table": "dest_table_mv" + } + ] +} diff --git a/parser/testdata/01268_shard_avgweighted/ast.json b/parser/testdata/01268_shard_avgweighted/ast.json new file mode 100644 index 0000000000..e0e3aa2cb3 --- /dev/null +++ b/parser/testdata/01268_shard_avgweighted/ast.json @@ -0,0 +1,15 @@ +{ + "table": "dummy", + "columns": [ + { + "name": "foo", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/01269_alias_type_differs/ast.json b/parser/testdata/01269_alias_type_differs/ast.json new file mode 100644 index 0000000000..fc9cc895b9 --- /dev/null +++ b/parser/testdata/01269_alias_type_differs/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01269", + "tables": [ + { + "table": "data_01269" + } + ] +} diff --git a/parser/testdata/01269_create_with_null/ast.json b/parser/testdata/01269_create_with_null/ast.json new file mode 100644 index 0000000000..cde45b35b7 --- /dev/null +++ b/parser/testdata/01269_create_with_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_null", + "tables": [ + { + "table": "data_null" + } + ] +} diff --git a/parser/testdata/01269_toStartOfSecond/ast.json b/parser/testdata/01269_toStartOfSecond/ast.json new file mode 100644 index 0000000000..3a8492e2b6 --- /dev/null +++ b/parser/testdata/01269_toStartOfSecond/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfSecond", + "arguments": [ + { + "type": "String", + "value": "123" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01270_optimize_skip_unused_shards_low_cardinality/ast.json b/parser/testdata/01270_optimize_skip_unused_shards_low_cardinality/ast.json new file mode 100644 index 0000000000..a7f6f9e84b --- /dev/null +++ b/parser/testdata/01270_optimize_skip_unused_shards_low_cardinality/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_long/ast.json b/parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_long/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_with_alias/ast.json b/parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_with_alias/ast.json new file mode 100644 index 0000000000..f8e1f04506 --- /dev/null +++ b/parser/testdata/01271_optimize_arithmetic_operations_in_aggr_func_with_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_arithmetic_operations_in_aggregate_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01272_offset_without_limit/ast.json b/parser/testdata/01272_offset_without_limit/ast.json new file mode 100644 index 0000000000..3c575ba9fe --- /dev/null +++ b/parser/testdata/01272_offset_without_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "offset_without_limit", + "tables": [ + { + "table": "offset_without_limit" + } + ] +} diff --git a/parser/testdata/01272_suspicious_codecs/ast.json b/parser/testdata/01272_suspicious_codecs/ast.json new file mode 100644 index 0000000000..be942cd4ae --- /dev/null +++ b/parser/testdata/01272_suspicious_codecs/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "codecs", + "tables": [ + { + "table": "codecs" + } + ] +} diff --git a/parser/testdata/01272_totals_and_filter_bug/ast.json b/parser/testdata/01272_totals_and_filter_bug/ast.json new file mode 100644 index 0000000000..f66d43220e --- /dev/null +++ b/parser/testdata/01272_totals_and_filter_bug/ast.json @@ -0,0 +1,81 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "settings": [ + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/01273_extractGroups/ast.json b/parser/testdata/01273_extractGroups/ast.json new file mode 100644 index 0000000000..a4975e3808 --- /dev/null +++ b/parser/testdata/01273_extractGroups/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractGroups" + } + ] + } + ] +} diff --git a/parser/testdata/01273_h3EdgeAngle_range_check/ast.json b/parser/testdata/01273_h3EdgeAngle_range_check/ast.json new file mode 100644 index 0000000000..c2a2de27e8 --- /dev/null +++ b/parser/testdata/01273_h3EdgeAngle_range_check/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3EdgeAngle", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01273_lc_fixed_string_field/ast.json b/parser/testdata/01273_lc_fixed_string_field/ast.json new file mode 100644 index 0000000000..49d2549e52 --- /dev/null +++ b/parser/testdata/01273_lc_fixed_string_field/ast.json @@ -0,0 +1,62 @@ +{ + "table": "t", + "columns": [ + { + "name": "d", + "type": { + "name": "Date" + } + }, + { + "name": "s", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "c", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "SummingMergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "d" + ] + }, + { + "parts": [ + "s" + ] + } + ] + } + ], + "partition_by": { + "parts": [ + "d" + ] + } +} diff --git a/parser/testdata/01274_alter_rename_column_distributed/ast.json b/parser/testdata/01274_alter_rename_column_distributed/ast.json new file mode 100644 index 0000000000..54a88547c6 --- /dev/null +++ b/parser/testdata/01274_alter_rename_column_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_foreground_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01275_alter_rename_column_default_expr/ast.json b/parser/testdata/01275_alter_rename_column_default_expr/ast.json new file mode 100644 index 0000000000..7c78df7678 --- /dev/null +++ b/parser/testdata/01275_alter_rename_column_default_expr/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename", + "tables": [ + { + "table": "table_for_rename" + } + ] +} diff --git a/parser/testdata/01275_extract_groups_check/ast.json b/parser/testdata/01275_extract_groups_check/ast.json new file mode 100644 index 0000000000..3f6a8e5ba5 --- /dev/null +++ b/parser/testdata/01275_extract_groups_check/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractGroups", + "arguments": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01276_alter_rename_column_materialized_expr/ast.json b/parser/testdata/01276_alter_rename_column_materialized_expr/ast.json new file mode 100644 index 0000000000..7c78df7678 --- /dev/null +++ b/parser/testdata/01276_alter_rename_column_materialized_expr/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename", + "tables": [ + { + "table": "table_for_rename" + } + ] +} diff --git a/parser/testdata/01276_random_string/ast.json b/parser/testdata/01276_random_string/ast.json new file mode 100644 index 0000000000..41f3368128 --- /dev/null +++ b/parser/testdata/01276_random_string/ast.json @@ -0,0 +1,136 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "left": { + "parts": [ + "c" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 30000 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "reinterpretAsUInt8", + "arguments": [ + { + "name": "substring", + "arguments": [ + { + "name": "randomString", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + }, + { + "left": { + "parts": [ + "x" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + }, + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + ] + } + ], + "alias": "byte" + }, + { + "name": "count", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100000 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "byte" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "byte" + ] + } + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01276_system_licenses/ast.json b/parser/testdata/01276_system_licenses/ast.json new file mode 100644 index 0000000000..f8b2fa0cde --- /dev/null +++ b/parser/testdata/01276_system_licenses/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 10 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "licenses" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01277_alter_rename_column_constraint/ast.json b/parser/testdata/01277_alter_rename_column_constraint/ast.json new file mode 100644 index 0000000000..7c78df7678 --- /dev/null +++ b/parser/testdata/01277_alter_rename_column_constraint/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename", + "tables": [ + { + "table": "table_for_rename" + } + ] +} diff --git a/parser/testdata/01277_alter_rename_column_constraint_zookeeper_long/ast.json b/parser/testdata/01277_alter_rename_column_constraint_zookeeper_long/ast.json new file mode 100644 index 0000000000..2352e7a57c --- /dev/null +++ b/parser/testdata/01277_alter_rename_column_constraint_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_rename1", + "tables": [ + { + "table": "table_for_rename1" + } + ] +} diff --git a/parser/testdata/01277_buffer_column_order/ast.json b/parser/testdata/01277_buffer_column_order/ast.json new file mode 100644 index 0000000000..852011573a --- /dev/null +++ b/parser/testdata/01277_buffer_column_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "out_01277", + "tables": [ + { + "table": "out_01277" + } + ] +} diff --git a/parser/testdata/01277_fromUnixTimestamp64/ast.json b/parser/testdata/01277_fromUnixTimestamp64/ast.json new file mode 100644 index 0000000000..05ee28991e --- /dev/null +++ b/parser/testdata/01277_fromUnixTimestamp64/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "fromUnixTimestamp64Second" + } + ] + } + ] +} diff --git a/parser/testdata/01277_random_fixed_string/ast.json b/parser/testdata/01277_random_fixed_string/ast.json new file mode 100644 index 0000000000..7ca2edf7a3 --- /dev/null +++ b/parser/testdata/01277_random_fixed_string/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "randomFixedString", + "arguments": [ + { + "type": "String", + "value": "string" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01277_toUnixTimestamp64/ast.json b/parser/testdata/01277_toUnixTimestamp64/ast.json new file mode 100644 index 0000000000..538ccbae61 --- /dev/null +++ b/parser/testdata/01277_toUnixTimestamp64/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUnixTimestamp64Second" + } + ] + } + ] +} diff --git a/parser/testdata/01278_alter_rename_combination/ast.json b/parser/testdata/01278_alter_rename_combination/ast.json new file mode 100644 index 0000000000..1858179a60 --- /dev/null +++ b/parser/testdata/01278_alter_rename_combination/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rename_table", + "tables": [ + { + "table": "rename_table" + } + ] +} diff --git a/parser/testdata/01278_random_string_utf8/ast.json b/parser/testdata/01278_random_string_utf8/ast.json new file mode 100644 index 0000000000..99e3b583bb --- /dev/null +++ b/parser/testdata/01278_random_string_utf8/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "randomStringUTF8", + "arguments": [ + { + "type": "String", + "value": "string" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01278_variance_nonnegative/ast.json b/parser/testdata/01278_variance_nonnegative/ast.json new file mode 100644 index 0000000000..fe4f813c56 --- /dev/null +++ b/parser/testdata/01278_variance_nonnegative/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "varSamp", + "arguments": [ + { + "type": "Float", + "value": 0.1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000000 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01279_dist_group_by/ast.json b/parser/testdata/01279_dist_group_by/ast.json new file mode 100644 index 0000000000..ba01bc2171 --- /dev/null +++ b/parser/testdata/01279_dist_group_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01279", + "tables": [ + { + "table": "data_01279" + } + ] +} diff --git a/parser/testdata/01280_min_map_max_map/ast.json b/parser/testdata/01280_min_map_max_map/ast.json new file mode 100644 index 0000000000..edc6fb1286 --- /dev/null +++ b/parser/testdata/01280_min_map_max_map/ast.json @@ -0,0 +1,100 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "minMap", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toInt32", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + } + ] + }, + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + }, + { + "type": "Array", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "alias": "m" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "m" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01280_null_in/ast.json b/parser/testdata/01280_null_in/ast.json new file mode 100644 index 0000000000..c344c68aec --- /dev/null +++ b/parser/testdata/01280_null_in/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + { + "name": "in", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01280_opencl_bitonic_order_by/ast.json b/parser/testdata/01280_opencl_bitonic_order_by/ast.json new file mode 100644 index 0000000000..efd6ebabf5 --- /dev/null +++ b/parser/testdata/01280_opencl_bitonic_order_by/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt8", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2 + } + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 42 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + }, + "descending": true + } + ] + } + ] +} diff --git a/parser/testdata/01280_unicode_whitespaces_lexer/ast.json b/parser/testdata/01280_unicode_whitespaces_lexer/ast.json new file mode 100644 index 0000000000..4cb6f0f6f9 --- /dev/null +++ b/parser/testdata/01280_unicode_whitespaces_lexer/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] +} diff --git a/parser/testdata/01281_alter_rename_and_other_renames/ast.json b/parser/testdata/01281_alter_rename_and_other_renames/ast.json new file mode 100644 index 0000000000..bc4dc253f3 --- /dev/null +++ b/parser/testdata/01281_alter_rename_and_other_renames/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rename_table_multiple", + "tables": [ + { + "table": "rename_table_multiple" + } + ] +} diff --git a/parser/testdata/01281_join_with_prewhere_fix/ast.json b/parser/testdata/01281_join_with_prewhere_fix/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01281_join_with_prewhere_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01281_parseDateTime64BestEffort/ast.json b/parser/testdata/01281_parseDateTime64BestEffort/ast.json new file mode 100644 index 0000000000..7bc0af5b99 --- /dev/null +++ b/parser/testdata/01281_parseDateTime64BestEffort/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTime64BestEffort" + } + ] + } + ] +} diff --git a/parser/testdata/01281_sum_nullable/ast.json b/parser/testdata/01281_sum_nullable/ast.json new file mode 100644 index 0000000000..0c78a25444 --- /dev/null +++ b/parser/testdata/01281_sum_nullable/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumKahan", + "arguments": [ + { + "name": "toFloat64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01281_unsucceeded_insert_select_queries_counter/ast.json b/parser/testdata/01281_unsucceeded_insert_select_queries_counter/ast.json new file mode 100644 index 0000000000..0d9a8a2235 --- /dev/null +++ b/parser/testdata/01281_unsucceeded_insert_select_queries_counter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "to_insert", + "tables": [ + { + "table": "to_insert" + } + ] +} diff --git a/parser/testdata/01282_system_parts_ttl_info/ast.json b/parser/testdata/01282_system_parts_ttl_info/ast.json new file mode 100644 index 0000000000..463cbbb397 --- /dev/null +++ b/parser/testdata/01282_system_parts_ttl_info/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl", + "tables": [ + { + "table": "ttl" + } + ] +} diff --git a/parser/testdata/01283_max_threads_simple_query_optimization/ast.json b/parser/testdata/01283_max_threads_simple_query_optimization/ast.json new file mode 100644 index 0000000000..c1f40de47f --- /dev/null +++ b/parser/testdata/01283_max_threads_simple_query_optimization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01283", + "tables": [ + { + "table": "data_01283" + } + ] +} diff --git a/parser/testdata/01283_strict_resize_bug/ast.json b/parser/testdata/01283_strict_resize_bug/ast.json new file mode 100644 index 0000000000..a85c024a08 --- /dev/null +++ b/parser/testdata/01283_strict_resize_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "num_10m", + "tables": [ + { + "table": "num_10m" + } + ] +} diff --git a/parser/testdata/01284_fuzz_bits/ast.json b/parser/testdata/01284_fuzz_bits/ast.json new file mode 100644 index 0000000000..cbb9513c5f --- /dev/null +++ b/parser/testdata/01284_fuzz_bits/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "fuzzBits", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "type": "String", + "value": "string" + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01284_view_and_extremes_bug/ast.json b/parser/testdata/01284_view_and_extremes_bug/ast.json new file mode 100644 index 0000000000..8ed8b21a8e --- /dev/null +++ b/parser/testdata/01284_view_and_extremes_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "view_bug_const", + "tables": [ + { + "table": "view_bug_const" + } + ] +} diff --git a/parser/testdata/01285_data_skip_index_over_aggregation/ast.json b/parser/testdata/01285_data_skip_index_over_aggregation/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/01285_data_skip_index_over_aggregation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01285_date_datetime_key_condition/ast.json b/parser/testdata/01285_date_datetime_key_condition/ast.json new file mode 100644 index 0000000000..af9c791351 --- /dev/null +++ b/parser/testdata/01285_date_datetime_key_condition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "date_datetime_key_condition", + "tables": [ + { + "table": "date_datetime_key_condition" + } + ] +} diff --git a/parser/testdata/01286_constraints_on_default/ast.json b/parser/testdata/01286_constraints_on_default/ast.json new file mode 100644 index 0000000000..b57cb799cc --- /dev/null +++ b/parser/testdata/01286_constraints_on_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "default_constraints", + "tables": [ + { + "table": "default_constraints" + } + ] +} diff --git a/parser/testdata/01287_max_execution_speed/ast.json b/parser/testdata/01287_max_execution_speed/ast.json new file mode 100644 index 0000000000..7006d487f6 --- /dev/null +++ b/parser/testdata/01287_max_execution_speed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01288_shard_max_network_bandwidth/ast.json b/parser/testdata/01288_shard_max_network_bandwidth/ast.json new file mode 100644 index 0000000000..5e00743d89 --- /dev/null +++ b/parser/testdata/01288_shard_max_network_bandwidth/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_network_bandwidth", + "value": { + "type": "Integer", + "value": 100000 + } + } + ] +} diff --git a/parser/testdata/01289_min_execution_speed_not_too_early/ast.json b/parser/testdata/01289_min_execution_speed_not_too_early/ast.json new file mode 100644 index 0000000000..ebd22a56e6 --- /dev/null +++ b/parser/testdata/01289_min_execution_speed_not_too_early/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ES", + "tables": [ + { + "table": "ES" + } + ] +} diff --git a/parser/testdata/01290_empty_array_index_analysis/ast.json b/parser/testdata/01290_empty_array_index_analysis/ast.json new file mode 100644 index 0000000000..e9ec46fb22 --- /dev/null +++ b/parser/testdata/01290_empty_array_index_analysis/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "count_lc_test", + "tables": [ + { + "table": "count_lc_test" + } + ] +} diff --git a/parser/testdata/01290_max_execution_speed_distributed/ast.json b/parser/testdata/01290_max_execution_speed_distributed/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01290_max_execution_speed_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01291_aggregation_in_order/ast.json b/parser/testdata/01291_aggregation_in_order/ast.json new file mode 100644 index 0000000000..6ea92d0e3f --- /dev/null +++ b/parser/testdata/01291_aggregation_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk_order", + "tables": [ + { + "table": "pk_order" + } + ] +} diff --git a/parser/testdata/01291_distributed_low_cardinality_memory_efficient/ast.json b/parser/testdata/01291_distributed_low_cardinality_memory_efficient/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/01291_distributed_low_cardinality_memory_efficient/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/01291_geo_types/ast.json b/parser/testdata/01291_geo_types/ast.json new file mode 100644 index 0000000000..5fed5e89f1 --- /dev/null +++ b/parser/testdata/01291_geo_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "geo", + "tables": [ + { + "table": "geo" + } + ] +} diff --git a/parser/testdata/01291_unsupported_conversion_from_decimal/ast.json b/parser/testdata/01291_unsupported_conversion_from_decimal/ast.json new file mode 100644 index 0000000000..9ba1e29a01 --- /dev/null +++ b/parser/testdata/01291_unsupported_conversion_from_decimal/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toIntervalSecond", + "arguments": [ + { + "name": "now64" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01292_create_user/ast.json b/parser/testdata/01292_create_user/ast.json new file mode 100644 index 0000000000..df091e90a9 --- /dev/null +++ b/parser/testdata/01292_create_user/ast.json @@ -0,0 +1,30 @@ +{ + "if_exists": true, + "tables": [ + { + "table": "u2_01292" + }, + { + "table": "u3_01292" + }, + { + "table": "u4_01292" + }, + { + "table": "u5_01292" + }, + { + "table": "u6_01292" + }, + { + "table": "u7_01292" + }, + { + "table": "u8_01292" + }, + { + "table": "u9_01292" + } + ], + "user": "u1_01292" +} diff --git a/parser/testdata/01292_optimize_data_skip_idx_order_by_expr/ast.json b/parser/testdata/01292_optimize_data_skip_idx_order_by_expr/ast.json new file mode 100644 index 0000000000..3595f1dd2b --- /dev/null +++ b/parser/testdata/01292_optimize_data_skip_idx_order_by_expr/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01292", + "tables": [ + { + "table": "data_01292" + } + ] +} diff --git a/parser/testdata/01292_quantile_array_bug/ast.json b/parser/testdata/01292_quantile_array_bug/ast.json new file mode 100644 index 0000000000..4c85ec0078 --- /dev/null +++ b/parser/testdata/01292_quantile_array_bug/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantilesExactWeightedArray", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01293_create_role/ast.json b/parser/testdata/01293_create_role/ast.json new file mode 100644 index 0000000000..0385138fa6 --- /dev/null +++ b/parser/testdata/01293_create_role/ast.json @@ -0,0 +1,33 @@ +{ + "if_exists": true, + "table": "r1_01293", + "tables": [ + { + "table": "r1_01293" + }, + { + "table": "r2_01293" + }, + { + "table": "r3_01293" + }, + { + "table": "r4_01293" + }, + { + "table": "r5_01293" + }, + { + "table": "r6_01293" + }, + { + "table": "r7_01293" + }, + { + "table": "r8_01293" + }, + { + "table": "r9_01293" + } + ] +} diff --git a/parser/testdata/01293_pretty_max_value_width/ast.json b/parser/testdata/01293_pretty_max_value_width/ast.json new file mode 100644 index 0000000000..483cb94157 --- /dev/null +++ b/parser/testdata/01293_pretty_max_value_width/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_pretty_max_value_width_apply_for_single_value", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_pretty_row_numbers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01293_system_distribution_queue/ast.json b/parser/testdata/01293_system_distribution_queue/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/01293_system_distribution_queue/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01294_create_settings_profile/ast.json b/parser/testdata/01294_create_settings_profile/ast.json new file mode 100644 index 0000000000..33ae9400a4 --- /dev/null +++ b/parser/testdata/01294_create_settings_profile/ast.json @@ -0,0 +1,36 @@ +{ + "if_exists": true, + "table": "s1_01294", + "tables": [ + { + "table": "s1_01294" + }, + { + "table": "s2_01294" + }, + { + "table": "s3_01294" + }, + { + "table": "s4_01294" + }, + { + "table": "s5_01294" + }, + { + "table": "s6_01294" + }, + { + "table": "s7_01294" + }, + { + "table": "s8_01294" + }, + { + "table": "s9_01294" + }, + { + "table": "s10_01294" + } + ] +} diff --git a/parser/testdata/01294_system_distributed_on_cluster/ast.json b/parser/testdata/01294_system_distributed_on_cluster/ast.json new file mode 100644 index 0000000000..80038f140a --- /dev/null +++ b/parser/testdata/01294_system_distributed_on_cluster/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "db_01294", + "drop_database": true +} diff --git a/parser/testdata/01295_aggregation_bug_11413/ast.json b/parser/testdata/01295_aggregation_bug_11413/ast.json new file mode 100644 index 0000000000..261ba3ae25 --- /dev/null +++ b/parser/testdata/01295_aggregation_bug_11413/ast.json @@ -0,0 +1,80 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 99 + } + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "having": { + "left": { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "op": "AND", + "right": { + "name": "argMax", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + } + } + ] +} diff --git a/parser/testdata/01295_create_row_policy/ast.json b/parser/testdata/01295_create_row_policy/ast.json new file mode 100644 index 0000000000..7f65a9d321 --- /dev/null +++ b/parser/testdata/01295_create_row_policy/ast.json @@ -0,0 +1,36 @@ +{ + "if_exists": true, + "table": "p1_01295", + "tables": [ + { + "table": "p1_01295" + }, + { + "table": "p2_01295" + }, + { + "table": "p3_01295" + }, + { + "table": "p4_01295" + }, + { + "table": "p5_01295" + }, + { + "table": "p6_01295" + }, + { + "table": "p7_01295" + }, + { + "table": "p8_01295" + }, + { + "table": "p9_01295" + }, + { + "table": "p10_01295" + } + ] +} diff --git a/parser/testdata/01296_codecs_bad_arguments/ast.json b/parser/testdata/01296_codecs_bad_arguments/ast.json new file mode 100644 index 0000000000..595c21c597 --- /dev/null +++ b/parser/testdata/01296_codecs_bad_arguments/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "delta_table", + "tables": [ + { + "table": "delta_table" + } + ] +} diff --git a/parser/testdata/01296_create_row_policy_in_current_database/ast.json b/parser/testdata/01296_create_row_policy_in_current_database/ast.json new file mode 100644 index 0000000000..b6f63eb8db --- /dev/null +++ b/parser/testdata/01296_create_row_policy_in_current_database/ast.json @@ -0,0 +1,21 @@ +{ + "if_exists": true, + "table": "p1_01296", + "tables": [ + { + "table": "p1_01296" + }, + { + "table": "p2_01296" + }, + { + "table": "p3_01296" + }, + { + "table": "p4_01296" + }, + { + "table": "p5_01296" + } + ] +} diff --git a/parser/testdata/01296_pipeline_stuck/ast.json b/parser/testdata/01296_pipeline_stuck/ast.json new file mode 100644 index 0000000000..9619759bb0 --- /dev/null +++ b/parser/testdata/01296_pipeline_stuck/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01295", + "tables": [ + { + "table": "data_01295" + } + ] +} diff --git a/parser/testdata/01297_alter_distributed/ast.json b/parser/testdata/01297_alter_distributed/ast.json new file mode 100644 index 0000000000..0b1dd27e24 --- /dev/null +++ b/parser/testdata/01297_alter_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_distributed", + "tables": [ + { + "table": "merge_distributed" + } + ] +} diff --git a/parser/testdata/01298_alter_merge/ast.json b/parser/testdata/01298_alter_merge/ast.json new file mode 100644 index 0000000000..615a4c2c01 --- /dev/null +++ b/parser/testdata/01298_alter_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge", + "tables": [ + { + "table": "merge" + } + ] +} diff --git a/parser/testdata/01299_alter_merge_tree/ast.json b/parser/testdata/01299_alter_merge_tree/ast.json new file mode 100644 index 0000000000..1d5f9ced5f --- /dev/null +++ b/parser/testdata/01299_alter_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree", + "tables": [ + { + "table": "merge_tree" + } + ] +} diff --git a/parser/testdata/01300_group_by_other_keys/ast.json b/parser/testdata/01300_group_by_other_keys/ast.json new file mode 100644 index 0000000000..585e011091 --- /dev/null +++ b/parser/testdata/01300_group_by_other_keys/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 65505 + } + } + ] +} diff --git a/parser/testdata/01300_group_by_other_keys_having/ast.json b/parser/testdata/01300_group_by_other_keys_having/ast.json new file mode 100644 index 0000000000..06c68e49c4 --- /dev/null +++ b/parser/testdata/01300_group_by_other_keys_having/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_group_by_function_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01300_read_wkt/ast.json b/parser/testdata/01300_read_wkt/ast.json new file mode 100644 index 0000000000..f1afb758cb --- /dev/null +++ b/parser/testdata/01300_read_wkt/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "readWKTPoint", + "arguments": [ + { + "type": "String", + "value": "POINT(0 0)" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01305_array_join_prewhere_in_subquery/ast.json b/parser/testdata/01305_array_join_prewhere_in_subquery/ast.json new file mode 100644 index 0000000000..c33b890d61 --- /dev/null +++ b/parser/testdata/01305_array_join_prewhere_in_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h", + "tables": [ + { + "table": "h" + } + ] +} diff --git a/parser/testdata/01305_buffer_final_bug/ast.json b/parser/testdata/01305_buffer_final_bug/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01305_buffer_final_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01305_nullable-prewhere_bug/ast.json b/parser/testdata/01305_nullable-prewhere_bug/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/01305_nullable-prewhere_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/01307_bloom_filter_index_string_multi_granulas/ast.json b/parser/testdata/01307_bloom_filter_index_string_multi_granulas/ast.json new file mode 100644 index 0000000000..3418f037ef --- /dev/null +++ b/parser/testdata/01307_bloom_filter_index_string_multi_granulas/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01307", + "tables": [ + { + "table": "test_01307" + } + ] +} diff --git a/parser/testdata/01308_row_policy_and_trivial_count_query/ast.json b/parser/testdata/01308_row_policy_and_trivial_count_query/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/01308_row_policy_and_trivial_count_query/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01310_enum_comparison/ast.json b/parser/testdata/01310_enum_comparison/ast.json new file mode 100644 index 0000000000..ae20d97af8 --- /dev/null +++ b/parser/testdata/01310_enum_comparison/ast.json @@ -0,0 +1,37 @@ +{ + "temporary": true, + "table": "enum", + "columns": [ + { + "name": "x", + "type": { + "name": "Enum", + "parameters": [ + { + "left": { + "type": "String", + "value": "hello" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "type": "String", + "value": "world" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + } + ], + "has_parentheses": true + } + } + ] +} diff --git a/parser/testdata/01311_comparison_with_constant_string/ast.json b/parser/testdata/01311_comparison_with_constant_string/ast.json new file mode 100644 index 0000000000..55a8d9ff22 --- /dev/null +++ b/parser/testdata/01311_comparison_with_constant_string/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "1" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01312_case_insensitive_regexp/ast.json b/parser/testdata/01312_case_insensitive_regexp/ast.json new file mode 100644 index 0000000000..d2f231a21b --- /dev/null +++ b/parser/testdata/01312_case_insensitive_regexp/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "match", + "arguments": [ + { + "type": "String", + "value": "Too late" + }, + { + "type": "String", + "value": "Too late" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01312_comparison_with_constant_string_in_index_analysis/ast.json b/parser/testdata/01312_comparison_with_constant_string_in_index_analysis/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/01312_comparison_with_constant_string_in_index_analysis/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01313_parse_date_time_best_effort_null_zero/ast.json b/parser/testdata/01313_parse_date_time_best_effort_null_zero/ast.json new file mode 100644 index 0000000000..43bd4984e4 --- /dev/null +++ b/parser/testdata/01313_parse_date_time_best_effort_null_zero/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTimeBestEffort", + "arguments": [ + { + "type": "String", + "value": "\u003cEmpty\u003e" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01314_position_in_system_columns/ast.json b/parser/testdata/01314_position_in_system_columns/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01314_position_in_system_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01315_count_distinct_return_not_nullable/ast.json b/parser/testdata/01315_count_distinct_return_not_nullable/ast.json new file mode 100644 index 0000000000..1956235e70 --- /dev/null +++ b/parser/testdata/01315_count_distinct_return_not_nullable/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniq", + "arguments": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e=", + "right": { + "type": "Integer", + "value": 10 + } + }, + "then": { + "parts": [ + "number" + ] + }, + "else": { + "type": "Null", + "value": null + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01318_alter_add_column_exists/ast.json b/parser/testdata/01318_alter_add_column_exists/ast.json new file mode 100644 index 0000000000..1da8b9e1ab --- /dev/null +++ b/parser/testdata/01318_alter_add_column_exists/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "add_table", + "tables": [ + { + "table": "add_table" + } + ] +} diff --git a/parser/testdata/01318_decrypt/ast.json b/parser/testdata/01318_decrypt/ast.json new file mode 100644 index 0000000000..01c8481db9 --- /dev/null +++ b/parser/testdata/01318_decrypt/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "aes_decrypt_mysql" + } + ] + } + ] +} diff --git a/parser/testdata/01318_encrypt/ast.json b/parser/testdata/01318_encrypt/ast.json new file mode 100644 index 0000000000..0b8c5ba24a --- /dev/null +++ b/parser/testdata/01318_encrypt/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "aes_encrypt_mysql" + } + ] + } + ] +} diff --git a/parser/testdata/01318_map_add_map_subtract/ast.json b/parser/testdata/01318_map_add_map_subtract/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01318_map_add_map_subtract/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01318_map_add_map_subtract_on_map_type/ast.json b/parser/testdata/01318_map_add_map_subtract_on_map_type/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01318_map_add_map_subtract_on_map_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01318_map_populate_series/ast.json b/parser/testdata/01318_map_populate_series/ast.json new file mode 100644 index 0000000000..ea07bcd0cc --- /dev/null +++ b/parser/testdata/01318_map_populate_series/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_test", + "tables": [ + { + "table": "map_test" + } + ] +} diff --git a/parser/testdata/01318_parallel_final_stuck/ast.json b/parser/testdata/01318_parallel_final_stuck/ast.json new file mode 100644 index 0000000000..9b8977d29f --- /dev/null +++ b/parser/testdata/01318_parallel_final_stuck/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "final_bug", + "tables": [ + { + "table": "final_bug" + } + ] +} diff --git a/parser/testdata/01319_manual_write_to_replicas_long/ast.json b/parser/testdata/01319_manual_write_to_replicas_long/ast.json new file mode 100644 index 0000000000..adecfca306 --- /dev/null +++ b/parser/testdata/01319_manual_write_to_replicas_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "r1", + "tables": [ + { + "table": "r1" + } + ] +} diff --git a/parser/testdata/01319_mv_constants_bug/ast.json b/parser/testdata/01319_mv_constants_bug/ast.json new file mode 100644 index 0000000000..e70acae3b8 --- /dev/null +++ b/parser/testdata/01319_mv_constants_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "distributed_table_merged", + "tables": [ + { + "table": "distributed_table_merged" + } + ] +} diff --git a/parser/testdata/01319_optimize_skip_unused_shards_nesting/ast.json b/parser/testdata/01319_optimize_skip_unused_shards_nesting/ast.json new file mode 100644 index 0000000000..addd69f18c --- /dev/null +++ b/parser/testdata/01319_optimize_skip_unused_shards_nesting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01319", + "tables": [ + { + "table": "data_01319" + } + ] +} diff --git a/parser/testdata/01320_optimize_skip_unused_shards_no_non_deterministic/ast.json b/parser/testdata/01320_optimize_skip_unused_shards_no_non_deterministic/ast.json new file mode 100644 index 0000000000..fa9b32866a --- /dev/null +++ b/parser/testdata/01320_optimize_skip_unused_shards_no_non_deterministic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01320", + "tables": [ + { + "table": "data_01320" + } + ] +} diff --git a/parser/testdata/01321_aggregate_functions_of_group_by_keys/ast.json b/parser/testdata/01321_aggregate_functions_of_group_by_keys/ast.json new file mode 100644 index 0000000000..bb977abdf9 --- /dev/null +++ b/parser/testdata/01321_aggregate_functions_of_group_by_keys/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_aggregators_of_group_by_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01322_cast_keep_nullable/ast.json b/parser/testdata/01322_cast_keep_nullable/ast.json new file mode 100644 index 0000000000..5d9909b85e --- /dev/null +++ b/parser/testdata/01322_cast_keep_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cast_keep_nullable", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01323_add_scalars_in_time/ast.json b/parser/testdata/01323_add_scalars_in_time/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/01323_add_scalars_in_time/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01323_bad_arg_in_arithmetic_operations/ast.json b/parser/testdata/01323_bad_arg_in_arithmetic_operations/ast.json new file mode 100644 index 0000000000..f8e1f04506 --- /dev/null +++ b/parser/testdata/01323_bad_arg_in_arithmetic_operations/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_arithmetic_operations_in_aggregate_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01323_if_with_nulls/ast.json b/parser/testdata/01323_if_with_nulls/ast.json new file mode 100644 index 0000000000..8adc36adea --- /dev/null +++ b/parser/testdata/01323_if_with_nulls/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "toNullable", + "arguments": [ + { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "type": "Null", + "value": null + } + ], + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01323_redundant_functions_in_order_by/ast.json b/parser/testdata/01323_redundant_functions_in_order_by/ast.json new file mode 100644 index 0000000000..7bec563b32 --- /dev/null +++ b/parser/testdata/01323_redundant_functions_in_order_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "single_join_prefer_left_table", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01323_too_many_threads_bug/ast.json b/parser/testdata/01323_too_many_threads_bug/ast.json new file mode 100644 index 0000000000..64205c9e64 --- /dev/null +++ b/parser/testdata/01323_too_many_threads_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_01323_many_parts", + "tables": [ + { + "table": "table_01323_many_parts" + } + ] +} diff --git a/parser/testdata/01324_if_transform_strings_to_enum/ast.json b/parser/testdata/01324_if_transform_strings_to_enum/ast.json new file mode 100644 index 0000000000..757963ac58 --- /dev/null +++ b/parser/testdata/01324_if_transform_strings_to_enum/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_if_transform_strings_to_enum", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01324_insert_tsv_raw/ast.json b/parser/testdata/01324_insert_tsv_raw/ast.json new file mode 100644 index 0000000000..372d252c4f --- /dev/null +++ b/parser/testdata/01324_insert_tsv_raw/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tsv_raw", + "tables": [ + { + "table": "tsv_raw" + } + ] +} diff --git a/parser/testdata/01324_settings_documentation/ast.json b/parser/testdata/01324_settings_documentation/ast.json new file mode 100644 index 0000000000..dbe4eb5df1 --- /dev/null +++ b/parser/testdata/01324_settings_documentation/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Settings description should start with capital letter" + } + ] + } + ] +} diff --git a/parser/testdata/01325_freeze_mutation_stuck/ast.json b/parser/testdata/01325_freeze_mutation_stuck/ast.json new file mode 100644 index 0000000000..1450425ed6 --- /dev/null +++ b/parser/testdata/01325_freeze_mutation_stuck/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ] +} diff --git a/parser/testdata/01326_build_id/ast.json b/parser/testdata/01326_build_id/ast.json new file mode 100644 index 0000000000..fff33cdd55 --- /dev/null +++ b/parser/testdata/01326_build_id/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "length", + "arguments": [ + { + "name": "buildId" + } + ] + }, + "op": "\u003e=", + "right": { + "type": "Integer", + "value": 16 + } + } + ] + } + ] +} diff --git a/parser/testdata/01326_fixed_string_comparison_denny_crane/ast.json b/parser/testdata/01326_fixed_string_comparison_denny_crane/ast.json new file mode 100644 index 0000000000..5ef95d2d01 --- /dev/null +++ b/parser/testdata/01326_fixed_string_comparison_denny_crane/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toFixedString", + "arguments": [ + { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "202005295555" + } + ] + }, + { + "type": "Integer", + "value": 15 + } + ] + }, + "op": "\u003e", + "right": { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "20200529" + } + ] + } + }, + "alias": "r" + } + ] + } + ] +} diff --git a/parser/testdata/01326_hostname_alias/ast.json b/parser/testdata/01326_hostname_alias/ast.json new file mode 100644 index 0000000000..7483222a53 --- /dev/null +++ b/parser/testdata/01326_hostname_alias/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "hostname" + }, + "op": "=", + "right": { + "name": "hostName" + } + } + ] + } + ] +} diff --git a/parser/testdata/01327_decimal_cut_extra_digits_after_point/ast.json b/parser/testdata/01327_decimal_cut_extra_digits_after_point/ast.json new file mode 100644 index 0000000000..ce92ac9415 --- /dev/null +++ b/parser/testdata/01327_decimal_cut_extra_digits_after_point/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "1.1" + }, + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 5 + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/01328_bad_peephole_optimization/ast.json b/parser/testdata/01328_bad_peephole_optimization/ast.json new file mode 100644 index 0000000000..44e4f6e226 --- /dev/null +++ b/parser/testdata/01328_bad_peephole_optimization/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "max", + "arguments": [ + { + "left": { + "parts": [ + "a" + ] + }, + "op": "+", + "right": { + "parts": [ + "b" + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "b" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01329_compare_tuple_string_constant/ast.json b/parser/testdata/01329_compare_tuple_string_constant/ast.json new file mode 100644 index 0000000000..d540ebbc4f --- /dev/null +++ b/parser/testdata/01329_compare_tuple_string_constant/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "op": "\u003c", + "right": { + "type": "String", + "value": "" + } + } + ] + } + ] +} diff --git a/parser/testdata/01330_array_join_in_higher_order_function/ast.json b/parser/testdata/01330_array_join_in_higher_order_function/ast.json new file mode 100644 index 0000000000..205641f268 --- /dev/null +++ b/parser/testdata/01330_array_join_in_higher_order_function/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01332_join_type_syntax_position/ast.json b/parser/testdata/01332_join_type_syntax_position/ast.json new file mode 100644 index 0000000000..5454ce0abf --- /dev/null +++ b/parser/testdata/01332_join_type_syntax_position/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "alias": "t2" + }, + "join": { + "type": "LEFT", + "using": [ + { + "parts": [ + "number" + ] + } + ] + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01333_select_abc_asterisk/ast.json b/parser/testdata/01333_select_abc_asterisk/ast.json new file mode 100644 index 0000000000..d7e559873f --- /dev/null +++ b/parser/testdata/01333_select_abc_asterisk/ast.json @@ -0,0 +1,9 @@ +{ + "selects": [ + { + "columns": [ + {} + ] + } + ] +} diff --git a/parser/testdata/01338_sha256_fixedstring/ast.json b/parser/testdata/01338_sha256_fixedstring/ast.json new file mode 100644 index 0000000000..e4fe2523b9 --- /dev/null +++ b/parser/testdata/01338_sha256_fixedstring/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "SHA256", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01338_uuid_without_separator/ast.json b/parser/testdata/01338_uuid_without_separator/ast.json new file mode 100644 index 0000000000..a0377ecbe2 --- /dev/null +++ b/parser/testdata/01338_uuid_without_separator/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "417ddc5de5564d2795dda34d84e46a50" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01340_datetime64_fpe/ast.json b/parser/testdata/01340_datetime64_fpe/ast.json new file mode 100644 index 0000000000..4e28f26827 --- /dev/null +++ b/parser/testdata/01340_datetime64_fpe/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "with": [ + { + "name": "dt64", + "query": { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2019-09-16 19:20:12.3456789102019-09-16 19:20:12.345678910" + }, + { + "type": "Integer", + "value": 0 + } + ] + } + } + ], + "columns": [ + { + "parts": [ + "dt64" + ] + } + ] + } + ] +} diff --git a/parser/testdata/01341_datetime64_wrong_supertype/ast.json b/parser/testdata/01341_datetime64_wrong_supertype/ast.json new file mode 100644 index 0000000000..7f53e8fee7 --- /dev/null +++ b/parser/testdata/01341_datetime64_wrong_supertype/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2000-01-01 01:01:01.123" + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2000-01-01 01:01:01.123456" + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01343_min_bytes_to_use_mmap_io/ast.json b/parser/testdata/01343_min_bytes_to_use_mmap_io/ast.json new file mode 100644 index 0000000000..73a8321750 --- /dev/null +++ b/parser/testdata/01343_min_bytes_to_use_mmap_io/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01343", + "tables": [ + { + "table": "test_01343" + } + ] +} diff --git a/parser/testdata/01344_alter_enum_partition_key/ast.json b/parser/testdata/01344_alter_enum_partition_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01344_alter_enum_partition_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01344_min_bytes_to_use_mmap_io_index/ast.json b/parser/testdata/01344_min_bytes_to_use_mmap_io_index/ast.json new file mode 100644 index 0000000000..c0944893c9 --- /dev/null +++ b/parser/testdata/01344_min_bytes_to_use_mmap_io_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01344", + "tables": [ + { + "table": "test_01344" + } + ] +} diff --git a/parser/testdata/01345_array_join_LittleMaverick/ast.json b/parser/testdata/01345_array_join_LittleMaverick/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01345_array_join_LittleMaverick/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01345_index_date_vs_datetime/ast.json b/parser/testdata/01345_index_date_vs_datetime/ast.json new file mode 100644 index 0000000000..848f767c94 --- /dev/null +++ b/parser/testdata/01345_index_date_vs_datetime/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "index", + "tables": [ + { + "table": "index" + } + ] +} diff --git a/parser/testdata/01346_alter_enum_partition_key_replicated_zookeeper_long/ast.json b/parser/testdata/01346_alter_enum_partition_key_replicated_zookeeper_long/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/01346_alter_enum_partition_key_replicated_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01346_array_join_mrxotey/ast.json b/parser/testdata/01346_array_join_mrxotey/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01346_array_join_mrxotey/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01347_partition_date_vs_datetime/ast.json b/parser/testdata/01347_partition_date_vs_datetime/ast.json new file mode 100644 index 0000000000..92e68846fe --- /dev/null +++ b/parser/testdata/01347_partition_date_vs_datetime/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_datetime", + "tables": [ + { + "table": "test_datetime" + } + ] +} diff --git a/parser/testdata/01349_mutation_datetime_key/ast.json b/parser/testdata/01349_mutation_datetime_key/ast.json new file mode 100644 index 0000000000..09c042c48f --- /dev/null +++ b/parser/testdata/01349_mutation_datetime_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cdp_orders", + "tables": [ + { + "table": "cdp_orders" + } + ] +} diff --git a/parser/testdata/01350_intdiv_nontrivial_fpe/ast.json b/parser/testdata/01350_intdiv_nontrivial_fpe/ast.json new file mode 100644 index 0000000000..356c58079c --- /dev/null +++ b/parser/testdata/01350_intdiv_nontrivial_fpe/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "type": "Integer", + "value": 255 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01351_parse_date_time_best_effort_us/ast.json b/parser/testdata/01351_parse_date_time_best_effort_us/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/01351_parse_date_time_best_effort_us/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01353_neighbor_overflow/ast.json b/parser/testdata/01353_neighbor_overflow/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/01353_neighbor_overflow/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01353_nullable_tuple/ast.json b/parser/testdata/01353_nullable_tuple/ast.json new file mode 100644 index 0000000000..c0f38bb462 --- /dev/null +++ b/parser/testdata/01353_nullable_tuple/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "single argument" + } + ] + } + ] +} diff --git a/parser/testdata/01354_tuple_low_cardinality_array_mapped_bug/ast.json b/parser/testdata/01354_tuple_low_cardinality_array_mapped_bug/ast.json new file mode 100644 index 0000000000..74773ab419 --- /dev/null +++ b/parser/testdata/01354_tuple_low_cardinality_array_mapped_bug/ast.json @@ -0,0 +1,80 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + "op": "=", + "right": { + "type": "String", + "value": "pattern" + } + } + }, + { + "expr": { + "type": "Array", + "value": [ + { + "name": "tuple", + "arguments": [ + { + "type": "String", + "value": "a" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "Tuple", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + }, + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01355_alter_column_with_order/ast.json b/parser/testdata/01355_alter_column_with_order/ast.json new file mode 100644 index 0000000000..0c63be8821 --- /dev/null +++ b/parser/testdata/01355_alter_column_with_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_01355", + "tables": [ + { + "table": "alter_01355" + } + ] +} diff --git a/parser/testdata/01355_if_fixed_string/ast.json b/parser/testdata/01355_if_fixed_string/ast.json new file mode 100644 index 0000000000..a411d21843 --- /dev/null +++ b/parser/testdata/01355_if_fixed_string/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_multiif_to_if", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01355_ilike/ast.json b/parser/testdata/01355_ilike/ast.json new file mode 100644 index 0000000000..452edce241 --- /dev/null +++ b/parser/testdata/01355_ilike/ast.json @@ -0,0 +1,19 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "Hello" + }, + "case_insensitive": true, + "pattern": { + "type": "String", + "value": "" + } + } + ] + } + ] +} diff --git a/parser/testdata/01356_initialize_aggregation/ast.json b/parser/testdata/01356_initialize_aggregation/ast.json new file mode 100644 index 0000000000..861eb90c8d --- /dev/null +++ b/parser/testdata/01356_initialize_aggregation/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqMerge", + "arguments": [ + { + "parts": [ + "state" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "initializeAggregation", + "arguments": [ + { + "type": "String", + "value": "uniqState" + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ], + "alias": "state" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01356_state_resample/ast.json b/parser/testdata/01356_state_resample/ast.json new file mode 100644 index 0000000000..131390cfa6 --- /dev/null +++ b/parser/testdata/01356_state_resample/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumResample", + "parameters": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 20 + }, + { + "type": "Integer", + "value": 1 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 20 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 200 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01356_view_threads/ast.json b/parser/testdata/01356_view_threads/ast.json new file mode 100644 index 0000000000..de28dfab91 --- /dev/null +++ b/parser/testdata/01356_view_threads/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_01356_view_threads", + "tables": [ + { + "table": "table_01356_view_threads" + } + ] +} diff --git a/parser/testdata/01356_wrong_filter-type_bug/ast.json b/parser/testdata/01356_wrong_filter-type_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01356_wrong_filter-type_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01357_result_rows/ast.json b/parser/testdata/01357_result_rows/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01357_result_rows/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01357_version_collapsing_attach_detach_zookeeper/ast.json b/parser/testdata/01357_version_collapsing_attach_detach_zookeeper/ast.json new file mode 100644 index 0000000000..42f4d60cae --- /dev/null +++ b/parser/testdata/01357_version_collapsing_attach_detach_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "versioned_collapsing_table", + "tables": [ + { + "table": "versioned_collapsing_table" + } + ] +} diff --git a/parser/testdata/01358_constexpr_constraint/ast.json b/parser/testdata/01358_constexpr_constraint/ast.json new file mode 100644 index 0000000000..aae08555ef --- /dev/null +++ b/parser/testdata/01358_constexpr_constraint/ast.json @@ -0,0 +1,53 @@ +{ + "temporary": true, + "table": "constrained", + "columns": [ + { + "name": "URL", + "type": { + "name": "String" + } + } + ], + "constraints": [ + { + "name": "identity", + "expression": { + "left": { + "name": "domainWithoutWWW", + "arguments": [ + { + "parts": [ + "URL" + ] + } + ] + }, + "op": "=", + "right": { + "name": "domainWithoutWWW", + "arguments": [ + { + "parts": [ + "URL" + ] + } + ] + } + } + }, + { + "name": "is_utf8", + "expression": { + "name": "isValidUTF8", + "arguments": [ + { + "parts": [ + "URL" + ] + } + ] + } + } + ] +} diff --git a/parser/testdata/01358_mutation_delete_null_rows/ast.json b/parser/testdata/01358_mutation_delete_null_rows/ast.json new file mode 100644 index 0000000000..b6b753e960 --- /dev/null +++ b/parser/testdata/01358_mutation_delete_null_rows/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--------" + } + ] + } + ] +} diff --git a/parser/testdata/01358_union_threads_bug/ast.json b/parser/testdata/01358_union_threads_bug/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01358_union_threads_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01359_codeql/ast.json b/parser/testdata/01359_codeql/ast.json new file mode 100644 index 0000000000..1aaaf56a1f --- /dev/null +++ b/parser/testdata/01359_codeql/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "avgWeighted", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 4294967295 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 1000000000 + }, + "alias": "y" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "y" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01360_division_overflow/ast.json b/parser/testdata/01360_division_overflow/ast.json new file mode 100644 index 0000000000..b268177351 --- /dev/null +++ b/parser/testdata/01360_division_overflow/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "type": "Integer", + "value": 4294967296 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01360_materialized_view_with_join_on_query_log/ast.json b/parser/testdata/01360_materialized_view_with_join_on_query_log/ast.json new file mode 100644 index 0000000000..df7d138631 --- /dev/null +++ b/parser/testdata/01360_materialized_view_with_join_on_query_log/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "slow_log", + "tables": [ + { + "table": "slow_log" + } + ] +} diff --git a/parser/testdata/01361_buffer_table_flush_with_materialized_view/ast.json b/parser/testdata/01361_buffer_table_flush_with_materialized_view/ast.json new file mode 100644 index 0000000000..7424ff089d --- /dev/null +++ b/parser/testdata/01361_buffer_table_flush_with_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1_01361", + "tables": [ + { + "table": "t1_01361" + } + ] +} diff --git a/parser/testdata/01362_year_of_ISO8601_week_modificators_for_formatDateTime/ast.json b/parser/testdata/01362_year_of_ISO8601_week_modificators_for_formatDateTime/ast.json new file mode 100644 index 0000000000..51edee23da --- /dev/null +++ b/parser/testdata/01362_year_of_ISO8601_week_modificators_for_formatDateTime/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2010-01-01" + } + ] + }, + { + "type": "String", + "value": "%G" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01372_remote_table_function_empty_table/ast.json b/parser/testdata/01372_remote_table_function_empty_table/ast.json new file mode 100644 index 0000000000..51ab6e5d67 --- /dev/null +++ b/parser/testdata/01372_remote_table_function_empty_table/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127..2" + }, + { + "type": "String", + "value": "a." + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01372_wrong_order_by_removal/ast.json b/parser/testdata/01372_wrong_order_by_removal/ast.json new file mode 100644 index 0000000000..f84d75029c --- /dev/null +++ b/parser/testdata/01372_wrong_order_by_removal/ast.json @@ -0,0 +1,24 @@ +{ + "temporary": true, + "table": "moving_sum_num", + "columns": [ + { + "name": "k", + "type": { + "name": "String" + } + }, + { + "name": "dt", + "type": { + "name": "DateTime" + } + }, + { + "name": "v", + "type": { + "name": "UInt64" + } + } + ] +} diff --git a/parser/testdata/01373_is_zero_or_null/ast.json b/parser/testdata/01373_is_zero_or_null/ast.json new file mode 100644 index 0000000000..45e34df3f9 --- /dev/null +++ b/parser/testdata/01373_is_zero_or_null/ast.json @@ -0,0 +1,80 @@ +{ + "selects": [ + { + "columns": [ + { + "op": "NOT", + "operand": { + "parts": [ + "x" + ] + } + }, + { + "name": "isZeroOrNull", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 3 + } + }, + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01373_summing_merge_tree_exclude_partition_key/ast.json b/parser/testdata/01373_summing_merge_tree_exclude_partition_key/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/01373_summing_merge_tree_exclude_partition_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01373_summing_merge_tree_explicit_columns_definition/ast.json b/parser/testdata/01373_summing_merge_tree_explicit_columns_definition/ast.json new file mode 100644 index 0000000000..eb050e22fb --- /dev/null +++ b/parser/testdata/01373_summing_merge_tree_explicit_columns_definition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tt_error_1373", + "tables": [ + { + "table": "tt_error_1373" + } + ] +} diff --git a/parser/testdata/01375_GROUP_BY_injective_elimination_dictGet_BAD_ARGUMENTS/ast.json b/parser/testdata/01375_GROUP_BY_injective_elimination_dictGet_BAD_ARGUMENTS/ast.json new file mode 100644 index 0000000000..ac7521592e --- /dev/null +++ b/parser/testdata/01375_GROUP_BY_injective_elimination_dictGet_BAD_ARGUMENTS/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dictGetString", + "arguments": [ + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "default" + }, + { + "type": "String", + "value": ".countryId" + } + ] + }, + { + "type": "String", + "value": "country" + }, + { + "name": "toUInt64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "country" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "country" + ] + } + ] + } + ] +} diff --git a/parser/testdata/01375_compact_parts_codecs/ast.json b/parser/testdata/01375_compact_parts_codecs/ast.json new file mode 100644 index 0000000000..be942cd4ae --- /dev/null +++ b/parser/testdata/01375_compact_parts_codecs/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "codecs", + "tables": [ + { + "table": "codecs" + } + ] +} diff --git a/parser/testdata/01375_null_issue_3767/ast.json b/parser/testdata/01375_null_issue_3767/ast.json new file mode 100644 index 0000000000..e87e164e7f --- /dev/null +++ b/parser/testdata/01375_null_issue_3767/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_issue_3767", + "tables": [ + { + "table": "null_issue_3767" + } + ] +} diff --git a/parser/testdata/01375_storage_file_write_prefix_csv_with_names/ast.json b/parser/testdata/01375_storage_file_write_prefix_csv_with_names/ast.json new file mode 100644 index 0000000000..60f03372c2 --- /dev/null +++ b/parser/testdata/01375_storage_file_write_prefix_csv_with_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tmp_01375", + "tables": [ + { + "table": "tmp_01375" + } + ] +} diff --git a/parser/testdata/01375_storage_file_write_prefix_tsv_with_names/ast.json b/parser/testdata/01375_storage_file_write_prefix_tsv_with_names/ast.json new file mode 100644 index 0000000000..60f03372c2 --- /dev/null +++ b/parser/testdata/01375_storage_file_write_prefix_tsv_with_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tmp_01375", + "tables": [ + { + "table": "tmp_01375" + } + ] +} diff --git a/parser/testdata/01376_GROUP_BY_injective_elimination_dictGet/ast.json b/parser/testdata/01376_GROUP_BY_injective_elimination_dictGet/ast.json new file mode 100644 index 0000000000..21ae97c257 --- /dev/null +++ b/parser/testdata/01376_GROUP_BY_injective_elimination_dictGet/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dictGet", + "arguments": [ + { + "type": "String", + "value": "default.countryId" + }, + { + "type": "String", + "value": "country" + }, + { + "name": "toUInt64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "country" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "country" + ] + } + ] + } + ] +} diff --git a/parser/testdata/01376_array_fill_empty/ast.json b/parser/testdata/01376_array_fill_empty/ast.json new file mode 100644 index 0000000000..4692ca7a28 --- /dev/null +++ b/parser/testdata/01376_array_fill_empty/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFill", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "x" + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10 + } + } + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01376_null_logical/ast.json b/parser/testdata/01376_null_logical/ast.json new file mode 100644 index 0000000000..40f0792e4c --- /dev/null +++ b/parser/testdata/01376_null_logical/ast.json @@ -0,0 +1,19 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Null", + "value": null + }, + "op": "OR", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/01377_supertype_low_cardinality/ast.json b/parser/testdata/01377_supertype_low_cardinality/ast.json new file mode 100644 index 0000000000..1d8c7c1b35 --- /dev/null +++ b/parser/testdata/01377_supertype_low_cardinality/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "hello" + } + ] + }, + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "hello" + } + ] + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] +} diff --git a/parser/testdata/01378_alter_rename_with_ttl_zookeeper/ast.json b/parser/testdata/01378_alter_rename_with_ttl_zookeeper/ast.json new file mode 100644 index 0000000000..d208ad7d61 --- /dev/null +++ b/parser/testdata/01378_alter_rename_with_ttl_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_rename_with_ttl", + "tables": [ + { + "table": "table_rename_with_ttl" + } + ] +} diff --git a/parser/testdata/01380_nullable_state/ast.json b/parser/testdata/01380_nullable_state/ast.json new file mode 100644 index 0000000000..5f1b646408 --- /dev/null +++ b/parser/testdata/01380_nullable_state/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "name": "uniqState", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + } + ], + "with_totals": true + } + ] +} diff --git a/parser/testdata/01381_for_each_with_states/ast.json b/parser/testdata/01381_for_each_with_states/ast.json new file mode 100644 index 0000000000..49273b9c90 --- /dev/null +++ b/parser/testdata/01381_for_each_with_states/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "name": "uniqStateForEach", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01383_remote_ambiguous_column_shard/ast.json b/parser/testdata/01383_remote_ambiguous_column_shard/ast.json new file mode 100644 index 0000000000..459bf41791 --- /dev/null +++ b/parser/testdata/01383_remote_ambiguous_column_shard/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_01383", + "drop_database": true +} diff --git a/parser/testdata/01384_bloom_filter_bad_arguments/ast.json b/parser/testdata/01384_bloom_filter_bad_arguments/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01384_bloom_filter_bad_arguments/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01385_not_function/ast.json b/parser/testdata/01385_not_function/ast.json new file mode 100644 index 0000000000..5383988953 --- /dev/null +++ b/parser/testdata/01385_not_function/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "!=", + "right": { + "op": "NOT", + "operand": { + "type": "Integer", + "value": 1 + } + } + } + ] + } + ] +} diff --git a/parser/testdata/01386_negative_float_constant_key_condition/ast.json b/parser/testdata/01386_negative_float_constant_key_condition/ast.json new file mode 100644 index 0000000000..f9c52246f2 --- /dev/null +++ b/parser/testdata/01386_negative_float_constant_key_condition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "convert_query_to_cnf", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01387_clear_column_default_depends/ast.json b/parser/testdata/01387_clear_column_default_depends/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01387_clear_column_default_depends/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01388_clear_all_columns/ast.json b/parser/testdata/01388_clear_all_columns/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01388_clear_all_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01388_multi_if_optimization/ast.json b/parser/testdata/01388_multi_if_optimization/ast.json new file mode 100644 index 0000000000..b48681ed88 --- /dev/null +++ b/parser/testdata/01388_multi_if_optimization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_if_chain_to_multiif", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01389_filter_by_virtual_columns/ast.json b/parser/testdata/01389_filter_by_virtual_columns/ast.json new file mode 100644 index 0000000000..27f4f37aac --- /dev/null +++ b/parser/testdata/01389_filter_by_virtual_columns/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "parts" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "table" + ] + }, + "op": "=", + "right": { + "type": "Null", + "value": null + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "name": "currentDatabase" + } + } + } + } + ] +} diff --git a/parser/testdata/01390_check_table_codec/ast.json b/parser/testdata/01390_check_table_codec/ast.json new file mode 100644 index 0000000000..adf1f0a3fa --- /dev/null +++ b/parser/testdata/01390_check_table_codec/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "check_query_single_value_result", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01390_remove_injective_in_uniq/ast.json b/parser/testdata/01390_remove_injective_in_uniq/ast.json new file mode 100644 index 0000000000..c8931ce24e --- /dev/null +++ b/parser/testdata/01390_remove_injective_in_uniq/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_injective_functions_inside_uniq", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01391_join_on_dict_crash/ast.json b/parser/testdata/01391_join_on_dict_crash/ast.json new file mode 100644 index 0000000000..40c9a1e063 --- /dev/null +++ b/parser/testdata/01391_join_on_dict_crash/ast.json @@ -0,0 +1,20 @@ +{ + "table": "t", + "columns": [ + { + "name": "click_city_id", + "type": { + "name": "UInt32" + } + }, + { + "name": "click_country_id", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/01391_limit_overflow/ast.json b/parser/testdata/01391_limit_overflow/ast.json new file mode 100644 index 0000000000..658b142e70 --- /dev/null +++ b/parser/testdata/01391_limit_overflow/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 9223372036854775807 + }, + "offset": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01396_low_cardinality_fixed_string_default/ast.json b/parser/testdata/01396_low_cardinality_fixed_string_default/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01396_low_cardinality_fixed_string_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01396_negative_datetime_saturate_to_zero/ast.json b/parser/testdata/01396_negative_datetime_saturate_to_zero/ast.json new file mode 100644 index 0000000000..7da47e5438 --- /dev/null +++ b/parser/testdata/01396_negative_datetime_saturate_to_zero/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toTimeZone", + "arguments": [ + { + "name": "now" + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + }, + "op": "\u003e", + "right": { + "type": "String", + "value": "1970-01-01 00:00:00" + } + } + ] + } + ] +} diff --git a/parser/testdata/01397_in_bad_arguments/ast.json b/parser/testdata/01397_in_bad_arguments/ast.json new file mode 100644 index 0000000000..a758c8cac2 --- /dev/null +++ b/parser/testdata/01397_in_bad_arguments/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "in", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01398_in_tuple_func/ast.json b/parser/testdata/01398_in_tuple_func/ast.json new file mode 100644 index 0000000000..f0990b1a94 --- /dev/null +++ b/parser/testdata/01398_in_tuple_func/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "list": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ], + "settings": [ + { + "name": "max_temporary_columns", + "value": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] +} diff --git a/parser/testdata/01400_join_get_with_multi_keys/ast.json b/parser/testdata/01400_join_get_with_multi_keys/ast.json new file mode 100644 index 0000000000..6ece98ae8f --- /dev/null +++ b/parser/testdata/01400_join_get_with_multi_keys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_joinGet", + "tables": [ + { + "table": "test_joinGet" + } + ] +} diff --git a/parser/testdata/01402_cast_nullable_string_to_enum/ast.json b/parser/testdata/01402_cast_nullable_string_to_enum/ast.json new file mode 100644 index 0000000000..5d9909b85e --- /dev/null +++ b/parser/testdata/01402_cast_nullable_string_to_enum/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cast_keep_nullable", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01403_datetime64_constant_arg/ast.json b/parser/testdata/01403_datetime64_constant_arg/ast.json new file mode 100644 index 0000000000..6548219da1 --- /dev/null +++ b/parser/testdata/01403_datetime64_constant_arg/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime", + "arguments": [ + { + "name": "fromUnixTimestamp64Micro", + "arguments": [ + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "type": "String", + "value": "UTC" + } + ], + "alias": "ts" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "ts" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "op": "=", + "right": { + "parts": [ + "ts" + ] + } + } + } + ] +} diff --git a/parser/testdata/01404_roundUpToPowerOfTwoOrZero_safety/ast.json b/parser/testdata/01404_roundUpToPowerOfTwoOrZero_safety/ast.json new file mode 100644 index 0000000000..a9f45f194a --- /dev/null +++ b/parser/testdata/01404_roundUpToPowerOfTwoOrZero_safety/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "0.0001048576" + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 255 + } + } + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 65535 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01408_range_overflow/ast.json b/parser/testdata/01408_range_overflow/ast.json new file mode 100644 index 0000000000..1b185e7f84 --- /dev/null +++ b/parser/testdata/01408_range_overflow/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 1025 + }, + { + "left": { + "type": "Integer", + "value": 1048576 + }, + "op": "+", + "right": { + "type": "Integer", + "value": 9223372036854775807 + } + }, + { + "type": "Integer", + "value": 9223372036854775807 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01409_topK_merge/ast.json b/parser/testdata/01409_topK_merge/ast.json new file mode 100644 index 0000000000..6ef1ebe00d --- /dev/null +++ b/parser/testdata/01409_topK_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01409", + "tables": [ + { + "table": "data_01409" + } + ] +} diff --git a/parser/testdata/01410_full_join_and_null_predicates/ast.json b/parser/testdata/01410_full_join_and_null_predicates/ast.json new file mode 100644 index 0000000000..6eb407eccc --- /dev/null +++ b/parser/testdata/01410_full_join_and_null_predicates/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "l", + "tables": [ + { + "table": "l" + } + ] +} diff --git a/parser/testdata/01410_nullable_key_and_index/ast.json b/parser/testdata/01410_nullable_key_and_index/ast.json new file mode 100644 index 0000000000..2128cf3862 --- /dev/null +++ b/parser/testdata/01410_nullable_key_and_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nullable_key", + "tables": [ + { + "table": "nullable_key" + } + ] +} diff --git a/parser/testdata/01410_nullable_key_and_index_negate_cond/ast.json b/parser/testdata/01410_nullable_key_and_index_negate_cond/ast.json new file mode 100644 index 0000000000..29ba2e6f70 --- /dev/null +++ b/parser/testdata/01410_nullable_key_and_index_negate_cond/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_23634", + "tables": [ + { + "table": "test_23634" + } + ] +} diff --git a/parser/testdata/01411_from_unixtime/ast.json b/parser/testdata/01411_from_unixtime/ast.json new file mode 100644 index 0000000000..d3713dc10b --- /dev/null +++ b/parser/testdata/01411_from_unixtime/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "FROM_UNIXTIME", + "arguments": [ + { + "type": "Integer", + "value": 123 + } + ] + }, + { + "type": "String", + "value": "%Y-%m-%d %R:%S" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01411_xor_itai_shirav/ast.json b/parser/testdata/01411_xor_itai_shirav/ast.json new file mode 100644 index 0000000000..2ef220cd65 --- /dev/null +++ b/parser/testdata/01411_xor_itai_shirav/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "xor", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01412_group_array_moving_shard/ast.json b/parser/testdata/01412_group_array_moving_shard/ast.json new file mode 100644 index 0000000000..64d1e7bc18 --- /dev/null +++ b/parser/testdata/01412_group_array_moving_shard/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArrayMovingSum", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01412_mod_float/ast.json b/parser/testdata/01412_mod_float/ast.json new file mode 100644 index 0000000000..1bf62d6389 --- /dev/null +++ b/parser/testdata/01412_mod_float/ast.json @@ -0,0 +1,88 @@ +{ + "selects": [ + { + "with": [ + { + "name": "a", + "query": { + "type": "Float", + "value": 8.5 + } + }, + { + "name": "b", + "query": { + "type": "Float", + "value": 2.5 + } + } + ], + "columns": [ + { + "left": { + "parts": [ + "a" + ] + }, + "op": "%", + "right": { + "parts": [ + "b" + ] + } + }, + { + "left": { + "op": "-", + "operand": { + "parts": [ + "a" + ] + } + }, + "op": "%", + "right": { + "parts": [ + "b" + ] + } + }, + { + "left": { + "parts": [ + "a" + ] + }, + "op": "%", + "right": { + "op": "-", + "operand": { + "parts": [ + "b" + ] + } + } + }, + { + "left": { + "op": "-", + "operand": { + "parts": [ + "a" + ] + } + }, + "op": "%", + "right": { + "op": "-", + "operand": { + "parts": [ + "b" + ] + } + } + } + ] + } + ] +} diff --git a/parser/testdata/01412_optimize_deduplicate_bug/ast.json b/parser/testdata/01412_optimize_deduplicate_bug/ast.json new file mode 100644 index 0000000000..c80d7c305d --- /dev/null +++ b/parser/testdata/01412_optimize_deduplicate_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tesd_dedupl", + "tables": [ + { + "table": "tesd_dedupl" + } + ] +} diff --git a/parser/testdata/01412_row_from_totals/ast.json b/parser/testdata/01412_row_from_totals/ast.json new file mode 100644 index 0000000000..065b3cbeb3 --- /dev/null +++ b/parser/testdata/01412_row_from_totals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tracking_events_tmp", + "tables": [ + { + "table": "tracking_events_tmp" + } + ] +} diff --git a/parser/testdata/01413_allow_non_metadata_alters/ast.json b/parser/testdata/01413_allow_non_metadata_alters/ast.json new file mode 100644 index 0000000000..26c4ba19dc --- /dev/null +++ b/parser/testdata/01413_allow_non_metadata_alters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "non_metadata_alters", + "tables": [ + { + "table": "non_metadata_alters" + } + ] +} diff --git a/parser/testdata/01413_alter_update_supertype/ast.json b/parser/testdata/01413_alter_update_supertype/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01413_alter_update_supertype/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01413_if_array_uuid/ast.json b/parser/testdata/01413_if_array_uuid/ast.json new file mode 100644 index 0000000000..a316dbe215 --- /dev/null +++ b/parser/testdata/01413_if_array_uuid/ast.json @@ -0,0 +1,77 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "type": "Array", + "value": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "00000000-e1fe-11e9-bb8f-853d60c00749" + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "11111111-e1fe-11e9-bb8f-853d60c00749" + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01413_rows_events/ast.json b/parser/testdata/01413_rows_events/ast.json new file mode 100644 index 0000000000..2af411c402 --- /dev/null +++ b/parser/testdata/01413_rows_events/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rows_events_test", + "tables": [ + { + "table": "rows_events_test" + } + ] +} diff --git a/parser/testdata/01413_truncate_without_table_keyword/ast.json b/parser/testdata/01413_truncate_without_table_keyword/ast.json new file mode 100644 index 0000000000..28a4f580a7 --- /dev/null +++ b/parser/testdata/01413_truncate_without_table_keyword/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "truncate_test", + "tables": [ + { + "table": "truncate_test" + } + ] +} diff --git a/parser/testdata/01414_bloom_filter_index_with_const_column/ast.json b/parser/testdata/01414_bloom_filter_index_with_const_column/ast.json new file mode 100644 index 0000000000..7d99e08564 --- /dev/null +++ b/parser/testdata/01414_bloom_filter_index_with_const_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_bloom_filter_index", + "tables": [ + { + "table": "test_bloom_filter_index" + } + ] +} diff --git a/parser/testdata/01414_freeze_does_not_prevent_alters/ast.json b/parser/testdata/01414_freeze_does_not_prevent_alters/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01414_freeze_does_not_prevent_alters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01414_low_cardinality_nullable/ast.json b/parser/testdata/01414_low_cardinality_nullable/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/01414_low_cardinality_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01414_mutations_and_errors/ast.json b/parser/testdata/01414_mutations_and_errors/ast.json new file mode 100644 index 0000000000..a6c08c935a --- /dev/null +++ b/parser/testdata/01414_mutations_and_errors/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mutation_table", + "tables": [ + { + "table": "mutation_table" + } + ] +} diff --git a/parser/testdata/01414_push_predicate_when_contains_with_clause/ast.json b/parser/testdata/01414_push_predicate_when_contains_with_clause/ast.json new file mode 100644 index 0000000000..4a697623af --- /dev/null +++ b/parser/testdata/01414_push_predicate_when_contains_with_clause/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_indexed", + "tables": [ + { + "table": "numbers_indexed" + } + ] +} diff --git a/parser/testdata/01415_inconsistent_merge_tree_settings/ast.json b/parser/testdata/01415_inconsistent_merge_tree_settings/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01415_inconsistent_merge_tree_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01415_overlimiting_threads_for_repica_bug/ast.json b/parser/testdata/01415_overlimiting_threads_for_repica_bug/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01415_overlimiting_threads_for_repica_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01415_table_function_view/ast.json b/parser/testdata/01415_table_function_view/ast.json new file mode 100644 index 0000000000..2f2c066bc2 --- /dev/null +++ b/parser/testdata/01415_table_function_view/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01416_clear_column_pk/ast.json b/parser/testdata/01416_clear_column_pk/ast.json new file mode 100644 index 0000000000..8dff7fff46 --- /dev/null +++ b/parser/testdata/01416_clear_column_pk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_pk_clear", + "tables": [ + { + "table": "table_with_pk_clear" + } + ] +} diff --git a/parser/testdata/01416_join_totals_header_bug/ast.json b/parser/testdata/01416_join_totals_header_bug/ast.json new file mode 100644 index 0000000000..9eb1aaaded --- /dev/null +++ b/parser/testdata/01416_join_totals_header_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tableCommon", + "tables": [ + { + "table": "tableCommon" + } + ] +} diff --git a/parser/testdata/01417_update_permutation_crash/ast.json b/parser/testdata/01417_update_permutation_crash/ast.json new file mode 100644 index 0000000000..e7c8adc656 --- /dev/null +++ b/parser/testdata/01417_update_permutation_crash/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "t" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 1000001 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "t" + ] + } + }, + { + "expression": { + "parts": [ + "number" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01418_custom_settings/ast.json b/parser/testdata/01418_custom_settings/ast.json new file mode 100644 index 0000000000..98eb25bb84 --- /dev/null +++ b/parser/testdata/01418_custom_settings/ast.json @@ -0,0 +1,12 @@ +{ + "if_exists": true, + "table": "s1_01418", + "tables": [ + { + "table": "s1_01418" + }, + { + "table": "s2_01418" + } + ] +} diff --git a/parser/testdata/01418_index_analysis_bug/ast.json b/parser/testdata/01418_index_analysis_bug/ast.json new file mode 100644 index 0000000000..a8671c7b84 --- /dev/null +++ b/parser/testdata/01418_index_analysis_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mytable_local", + "tables": [ + { + "table": "mytable_local" + } + ] +} diff --git a/parser/testdata/01418_query_scope_constants_and_remote/ast.json b/parser/testdata/01418_query_scope_constants_and_remote/ast.json new file mode 100644 index 0000000000..4f396ba4fd --- /dev/null +++ b/parser/testdata/01418_query_scope_constants_and_remote/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "parts": [ + "c" + ] + }, + "op": "\u003e=", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "randConstant", + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01419_materialize_null/ast.json b/parser/testdata/01419_materialize_null/ast.json new file mode 100644 index 0000000000..df3c6e440b --- /dev/null +++ b/parser/testdata/01419_materialize_null/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isConstant", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01419_merge_tree_settings_sanity_check/ast.json b/parser/testdata/01419_merge_tree_settings_sanity_check/ast.json new file mode 100644 index 0000000000..a8671c7b84 --- /dev/null +++ b/parser/testdata/01419_merge_tree_settings_sanity_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mytable_local", + "tables": [ + { + "table": "mytable_local" + } + ] +} diff --git a/parser/testdata/01419_skip_index_compact_parts/ast.json b/parser/testdata/01419_skip_index_compact_parts/ast.json new file mode 100644 index 0000000000..c9b063bff2 --- /dev/null +++ b/parser/testdata/01419_skip_index_compact_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "index_compact", + "tables": [ + { + "table": "index_compact" + } + ] +} diff --git a/parser/testdata/01420_logical_functions_materialized_null/ast.json b/parser/testdata/01420_logical_functions_materialized_null/ast.json new file mode 100644 index 0000000000..016930f4a1 --- /dev/null +++ b/parser/testdata/01420_logical_functions_materialized_null/ast.json @@ -0,0 +1,19 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Null", + "value": null + }, + "op": "AND", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/01422_array_nullable_element_nullable_index/ast.json b/parser/testdata/01422_array_nullable_element_nullable_index/ast.json new file mode 100644 index 0000000000..5055970370 --- /dev/null +++ b/parser/testdata/01422_array_nullable_element_nullable_index/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + }, + "index": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01422_map_skip_null/ast.json b/parser/testdata/01422_map_skip_null/ast.json new file mode 100644 index 0000000000..5a7eaf3213 --- /dev/null +++ b/parser/testdata/01422_map_skip_null/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "minMap", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Null", + "value": null + } + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01424_parse_date_time_bad_date/ast.json b/parser/testdata/01424_parse_date_time_bad_date/ast.json new file mode 100644 index 0000000000..9e806ec40e --- /dev/null +++ b/parser/testdata/01424_parse_date_time_bad_date/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTime64BestEffort", + "arguments": [ + { + "type": "String", + "value": "2.55" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01425_decimal_parse_big_negative_exponent/ast.json b/parser/testdata/01425_decimal_parse_big_negative_exponent/ast.json new file mode 100644 index 0000000000..3c9dd5220e --- /dev/null +++ b/parser/testdata/01425_decimal_parse_big_negative_exponent/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "-1E9-1E9-1E9-1E9" + }, + "alias": "x" + }, + { + "name": "toDecimal32", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01427_pk_and_expression_with_different_type/ast.json b/parser/testdata/01427_pk_and_expression_with_different_type/ast.json new file mode 100644 index 0000000000..c08cf9ed47 --- /dev/null +++ b/parser/testdata/01427_pk_and_expression_with_different_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk", + "tables": [ + { + "table": "pk" + } + ] +} diff --git a/parser/testdata/01428_h3_range_check/ast.json b/parser/testdata/01428_h3_range_check/ast.json new file mode 100644 index 0000000000..5012c6eda1 --- /dev/null +++ b/parser/testdata/01428_h3_range_check/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3ToChildren", + "arguments": [ + { + "type": "Integer", + "value": 599405990164561919 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01428_nullable_asof_join/ast.json b/parser/testdata/01428_nullable_asof_join/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/01428_nullable_asof_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01429_join_on_error_messages/ast.json b/parser/testdata/01429_join_on_error_messages/ast.json new file mode 100644 index 0000000000..6a0cf73987 --- /dev/null +++ b/parser/testdata/01429_join_on_error_messages/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + } + ] + } + ] + } + }, + "alias": "A" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "b" + } + ] + } + ] + } + }, + "alias": "B" + }, + "join": { + "type": "INNER", + "on": { + "name": "equals", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01430_fix_any_rewrite_aliases/ast.json b/parser/testdata/01430_fix_any_rewrite_aliases/ast.json new file mode 100644 index 0000000000..8d183487e7 --- /dev/null +++ b/parser/testdata/01430_fix_any_rewrite_aliases/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "any", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ], + "alias": "a_" + }, + { + "parts": [ + "a_" + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01430_modify_sample_by_zookeeper_long/ast.json b/parser/testdata/01430_modify_sample_by_zookeeper_long/ast.json new file mode 100644 index 0000000000..af7972b74f --- /dev/null +++ b/parser/testdata/01430_modify_sample_by_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "modify_sample", + "tables": [ + { + "table": "modify_sample" + } + ] +} diff --git a/parser/testdata/01430_moving_sum_empty_state/ast.json b/parser/testdata/01430_moving_sum_empty_state/ast.json new file mode 100644 index 0000000000..f47648942f --- /dev/null +++ b/parser/testdata/01430_moving_sum_empty_state/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArrayMovingSum", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01431_finish_sorting_with_consts/ast.json b/parser/testdata/01431_finish_sorting_with_consts/ast.json new file mode 100644 index 0000000000..8d7b0a594c --- /dev/null +++ b/parser/testdata/01431_finish_sorting_with_consts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk_func", + "tables": [ + { + "table": "pk_func" + } + ] +} diff --git a/parser/testdata/01432_parse_date_time_best_effort_timestamp/ast.json b/parser/testdata/01432_parse_date_time_best_effort_timestamp/ast.json new file mode 100644 index 0000000000..124fb6b341 --- /dev/null +++ b/parser/testdata/01432_parse_date_time_best_effort_timestamp/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTimeBestEffort", + "arguments": [ + { + "type": "String", + "value": "1596752940" + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01433_hex_float/ast.json b/parser/testdata/01433_hex_float/ast.json new file mode 100644 index 0000000000..9ece3c6eb6 --- /dev/null +++ b/parser/testdata/01433_hex_float/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "t", + "columns": [ + { + "name": "x", + "type": { + "name": "Float64" + } + } + ] +} diff --git a/parser/testdata/01435_lcm_overflow/ast.json b/parser/testdata/01435_lcm_overflow/ast.json new file mode 100644 index 0000000000..d349788a63 --- /dev/null +++ b/parser/testdata/01435_lcm_overflow/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "lcm", + "arguments": [ + { + "type": "Integer", + "value": 15 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01436_storage_merge_with_join_push_down/ast.json b/parser/testdata/01436_storage_merge_with_join_push_down/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/01436_storage_merge_with_join_push_down/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/01440_big_int_arithm/ast.json b/parser/testdata/01440_big_int_arithm/ast.json new file mode 100644 index 0000000000..1bcb35cc68 --- /dev/null +++ b/parser/testdata/01440_big_int_arithm/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toInt128", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + }, + "op": "+", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + "alias": "x" + }, + { + "expr": { + "left": { + "name": "toInt256", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + }, + "op": "+", + "right": { + "name": "toInt8", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + "alias": "y" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01440_big_int_exotic_casts/ast.json b/parser/testdata/01440_big_int_exotic_casts/ast.json new file mode 100644 index 0000000000..3812b24e3e --- /dev/null +++ b/parser/testdata/01440_big_int_exotic_casts/ast.json @@ -0,0 +1,119 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toUInt32", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "parts": [ + "number" + ] + } + } + ] + }, + "op": "*", + "right": { + "parts": [ + "number" + ] + } + }, + "alias": "y" + }, + { + "name": "toDecimal32", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toDecimal64", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "toDecimal128", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 6 + } + ] + }, + { + "name": "toDecimal256", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 7 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01440_big_int_shift/ast.json b/parser/testdata/01440_big_int_shift/ast.json new file mode 100644 index 0000000000..c045682185 --- /dev/null +++ b/parser/testdata/01440_big_int_shift/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitShiftLeft", + "arguments": [ + { + "name": "toInt128", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "x" + }, + { + "name": "bitShiftRight", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "y" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 127 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01440_to_date_monotonicity/ast.json b/parser/testdata/01440_to_date_monotonicity/ast.json new file mode 100644 index 0000000000..5d723bcd39 --- /dev/null +++ b/parser/testdata/01440_to_date_monotonicity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tdm", + "tables": [ + { + "table": "tdm" + } + ] +} diff --git a/parser/testdata/01441_array_combinator/ast.json b/parser/testdata/01441_array_combinator/ast.json new file mode 100644 index 0000000000..04f54ec821 --- /dev/null +++ b/parser/testdata/01441_array_combinator/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 100 + } + }, + "alias": "k" + }, + { + "name": "sumArray", + "arguments": [ + { + "name": "emptyArrayUInt8" + } + ], + "alias": "v" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01441_low_cardinality_array_index/ast.json b/parser/testdata/01441_low_cardinality_array_index/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/01441_low_cardinality_array_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01442_date_time_with_params/ast.json b/parser/testdata/01442_date_time_with_params/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01442_date_time_with_params/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01442_h3kring_range_check/ast.json b/parser/testdata/01442_h3kring_range_check/ast.json new file mode 100644 index 0000000000..c447c97a9c --- /dev/null +++ b/parser/testdata/01442_h3kring_range_check/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3kRing", + "arguments": [ + { + "type": "Integer", + "value": 581276613233082367 + }, + { + "type": "Integer", + "value": 65535 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01447_json_strings/ast.json b/parser/testdata/01447_json_strings/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/01447_json_strings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01448_json_compact_strings_each_row/ast.json b/parser/testdata/01448_json_compact_strings_each_row/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/01448_json_compact_strings_each_row/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/01449_json_compact_strings/ast.json b/parser/testdata/01449_json_compact_strings/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/01449_json_compact_strings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01450_set_null_const/ast.json b/parser/testdata/01450_set_null_const/ast.json new file mode 100644 index 0000000000..66b0c40617 --- /dev/null +++ b/parser/testdata/01450_set_null_const/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_mtree", + "tables": [ + { + "table": "test_mtree" + } + ] +} diff --git a/parser/testdata/01451_detach_drop_part/ast.json b/parser/testdata/01451_detach_drop_part/ast.json new file mode 100644 index 0000000000..e93d2b6ff8 --- /dev/null +++ b/parser/testdata/01451_detach_drop_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt_01451", + "tables": [ + { + "table": "mt_01451" + } + ] +} diff --git a/parser/testdata/01451_normalize_query/ast.json b/parser/testdata/01451_normalize_query/ast.json new file mode 100644 index 0000000000..7d5bc9f64a --- /dev/null +++ b/parser/testdata/01451_normalize_query/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "normalizeQuery", + "arguments": [ + { + "type": "String", + "value": "SELECT 1" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01451_replicated_detach_drop_and_quorum_long/ast.json b/parser/testdata/01451_replicated_detach_drop_and_quorum_long/ast.json new file mode 100644 index 0000000000..96ff9c3589 --- /dev/null +++ b/parser/testdata/01451_replicated_detach_drop_and_quorum_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "replication_alter_partitions_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01451_replicated_detach_drop_part_long/ast.json b/parser/testdata/01451_replicated_detach_drop_part_long/ast.json new file mode 100644 index 0000000000..96ff9c3589 --- /dev/null +++ b/parser/testdata/01451_replicated_detach_drop_part_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "replication_alter_partitions_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01452_normalized_query_hash/ast.json b/parser/testdata/01452_normalized_query_hash/ast.json new file mode 100644 index 0000000000..1a771d978a --- /dev/null +++ b/parser/testdata/01452_normalized_query_hash/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "normalizedQueryHash", + "arguments": [ + { + "type": "String", + "value": "SELECT 1" + } + ] + }, + "op": "=", + "right": { + "name": "normalizedQueryHash", + "arguments": [ + { + "type": "String", + "value": "SELECT 2" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01453_fixsed_string_sort/ast.json b/parser/testdata/01453_fixsed_string_sort/ast.json new file mode 100644 index 0000000000..44857736a5 --- /dev/null +++ b/parser/testdata/01453_fixsed_string_sort/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "badFixedStringSort", + "tables": [ + { + "table": "badFixedStringSort" + } + ] +} diff --git a/parser/testdata/01455_default_compression/ast.json b/parser/testdata/01455_default_compression/ast.json new file mode 100644 index 0000000000..bec405b470 --- /dev/null +++ b/parser/testdata/01455_default_compression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "compress_table", + "tables": [ + { + "table": "compress_table" + } + ] +} diff --git a/parser/testdata/01455_nullable_type_with_if_agg_combinator/ast.json b/parser/testdata/01455_nullable_type_with_if_agg_combinator/ast.json new file mode 100644 index 0000000000..5d9909b85e --- /dev/null +++ b/parser/testdata/01455_nullable_type_with_if_agg_combinator/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cast_keep_nullable", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01455_optimize_trivial_insert_select/ast.json b/parser/testdata/01455_optimize_trivial_insert_select/ast.json new file mode 100644 index 0000000000..6da248dbf5 --- /dev/null +++ b/parser/testdata/01455_optimize_trivial_insert_select/ast.json @@ -0,0 +1,32 @@ +{ + "settings": [ + { + "name": "max_insert_threads", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 100 + } + }, + { + "name": "min_insert_block_size_rows", + "value": { + "type": "Integer", + "value": 1048576 + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 65536 + } + } + ] +} diff --git a/parser/testdata/01455_rank_correlation_spearman/ast.json b/parser/testdata/01455_rank_correlation_spearman/ast.json new file mode 100644 index 0000000000..2196355195 --- /dev/null +++ b/parser/testdata/01455_rank_correlation_spearman/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "db_01455_rank_correlation", + "create_database": true +} diff --git a/parser/testdata/01455_shard_leaf_max_rows_bytes_to_read/ast.json b/parser/testdata/01455_shard_leaf_max_rows_bytes_to_read/ast.json new file mode 100644 index 0000000000..214f2f0efd --- /dev/null +++ b/parser/testdata/01455_shard_leaf_max_rows_bytes_to_read/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01455_time_zones/ast.json b/parser/testdata/01455_time_zones/ast.json new file mode 100644 index 0000000000..2db0c81a35 --- /dev/null +++ b/parser/testdata/01455_time_zones/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "time_zones" + } + } + } + ] + } + } + ] + } + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 500 + } + }, + { + "type": "String", + "value": "ok" + }, + { + "type": "String", + "value": "fail" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01456_ast_optimizations_over_distributed/ast.json b/parser/testdata/01456_ast_optimizations_over_distributed/ast.json new file mode 100644 index 0000000000..c8931ce24e --- /dev/null +++ b/parser/testdata/01456_ast_optimizations_over_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_injective_functions_inside_uniq", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01456_low_cardinality_sorting_bugfix/ast.json b/parser/testdata/01456_low_cardinality_sorting_bugfix/ast.json new file mode 100644 index 0000000000..2a64758048 --- /dev/null +++ b/parser/testdata/01456_low_cardinality_sorting_bugfix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "order_test1", + "tables": [ + { + "table": "order_test1" + } + ] +} diff --git a/parser/testdata/01456_min_negative_decimal_formatting/ast.json b/parser/testdata/01456_min_negative_decimal_formatting/ast.json new file mode 100644 index 0000000000..b8e0b71f16 --- /dev/null +++ b/parser/testdata/01456_min_negative_decimal_formatting/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal64", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01456_modify_column_type_via_add_drop_update/ast.json b/parser/testdata/01456_modify_column_type_via_add_drop_update/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/01456_modify_column_type_via_add_drop_update/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/01457_compile_expressions_fuzzer/ast.json b/parser/testdata/01457_compile_expressions_fuzzer/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/01457_compile_expressions_fuzzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01457_create_as_table_function_structure/ast.json b/parser/testdata/01457_create_as_table_function_structure/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/01457_create_as_table_function_structure/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01457_int256_hashing/ast.json b/parser/testdata/01457_int256_hashing/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/01457_int256_hashing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01457_min_index_granularity_bytes_setting/ast.json b/parser/testdata/01457_min_index_granularity_bytes_setting/ast.json new file mode 100644 index 0000000000..9fa48a9e5d --- /dev/null +++ b/parser/testdata/01457_min_index_granularity_bytes_setting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "invalid_min_index_granularity_bytes_setting", + "tables": [ + { + "table": "invalid_min_index_granularity_bytes_setting" + } + ] +} diff --git a/parser/testdata/01457_order_by_limit/ast.json b/parser/testdata/01457_order_by_limit/ast.json new file mode 100644 index 0000000000..c1ea4e5e6f --- /dev/null +++ b/parser/testdata/01457_order_by_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "order_by_another", + "tables": [ + { + "table": "order_by_another" + } + ] +} diff --git a/parser/testdata/01457_order_by_nulls_first/ast.json b/parser/testdata/01457_order_by_nulls_first/ast.json new file mode 100644 index 0000000000..62e2a5f5fa --- /dev/null +++ b/parser/testdata/01457_order_by_nulls_first/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "order_by_nulls_first", + "tables": [ + { + "table": "order_by_nulls_first" + } + ] +} diff --git a/parser/testdata/01458_count_digits/ast.json b/parser/testdata/01458_count_digits/ast.json new file mode 100644 index 0000000000..c48ad2675d --- /dev/null +++ b/parser/testdata/01458_count_digits/ast.json @@ -0,0 +1,170 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 42 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Float", + "value": 4.2 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal64", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal64", + "arguments": [ + { + "type": "Integer", + "value": 42 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal64", + "arguments": [ + { + "type": "Float", + "value": 4.2 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "Integer", + "value": 42 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "name": "countDigits", + "arguments": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "Float", + "value": 4.2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01458_is_decimal_overflow/ast.json b/parser/testdata/01458_is_decimal_overflow/ast.json new file mode 100644 index 0000000000..debee0d424 --- /dev/null +++ b/parser/testdata/01458_is_decimal_overflow/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isDecimalOverflow", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "isDecimalOverflow", + "arguments": [ + { + "name": "toDecimal64", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "isDecimalOverflow", + "arguments": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01458_named_tuple_millin/ast.json b/parser/testdata/01458_named_tuple_millin/ast.json new file mode 100644 index 0000000000..6be904fb03 --- /dev/null +++ b/parser/testdata/01458_named_tuple_millin/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tuple", + "tables": [ + { + "table": "tuple" + } + ] +} diff --git a/parser/testdata/01459_decimal_casts/ast.json b/parser/testdata/01459_decimal_casts/ast.json new file mode 100644 index 0000000000..04b0cef2d6 --- /dev/null +++ b/parser/testdata/01459_decimal_casts/ast.json @@ -0,0 +1,92 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt32", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "y" + }, + { + "name": "toDecimal32", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toDecimal64", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 5 + } + ] + }, + { + "name": "toDecimal128", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 6 + } + ] + }, + { + "name": "toDecimal256", + "arguments": [ + { + "parts": [ + "y" + ] + }, + { + "type": "Integer", + "value": 7 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01459_default_value_of_argument_type_nullptr_dereference/ast.json b/parser/testdata/01459_default_value_of_argument_type_nullptr_dereference/ast.json new file mode 100644 index 0000000000..4b0dbf2f07 --- /dev/null +++ b/parser/testdata/01459_default_value_of_argument_type_nullptr_dereference/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "defaultValueOfTypeName", + "arguments": [ + { + "name": "FQDN" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01460_allow_dollar_and_number_in_identifier/ast.json b/parser/testdata/01460_allow_dollar_and_number_in_identifier/ast.json new file mode 100644 index 0000000000..d44d96afb8 --- /dev/null +++ b/parser/testdata/01460_allow_dollar_and_number_in_identifier/ast.json @@ -0,0 +1,20 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "$alias$name$" + } + ], + "format": { + "parts": [ + "TSVWithNames" + ] + } + } + ] +} diff --git a/parser/testdata/01460_mark_inclusion_search_crash/ast.json b/parser/testdata/01460_mark_inclusion_search_crash/ast.json new file mode 100644 index 0000000000..c08cf9ed47 --- /dev/null +++ b/parser/testdata/01460_mark_inclusion_search_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk", + "tables": [ + { + "table": "pk" + } + ] +} diff --git a/parser/testdata/01461_alter_table_function/ast.json b/parser/testdata/01461_alter_table_function/ast.json new file mode 100644 index 0000000000..fd5198fd73 --- /dev/null +++ b/parser/testdata/01461_alter_table_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_from_remote", + "tables": [ + { + "table": "table_from_remote" + } + ] +} diff --git a/parser/testdata/01461_query_start_time_microseconds/ast.json b/parser/testdata/01461_query_start_time_microseconds/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01461_query_start_time_microseconds/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01462_test_codec_on_alias/ast.json b/parser/testdata/01462_test_codec_on_alias/ast.json new file mode 100644 index 0000000000..e3857ca50d --- /dev/null +++ b/parser/testdata/01462_test_codec_on_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "compression_codec_on_alias", + "tables": [ + { + "table": "compression_codec_on_alias" + } + ] +} diff --git a/parser/testdata/01463_resample_overflow/ast.json b/parser/testdata/01463_resample_overflow/ast.json new file mode 100644 index 0000000000..1c074fa07d --- /dev/null +++ b/parser/testdata/01463_resample_overflow/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArrayResample", + "parameters": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "type": "Integer", + "value": 9223372036854775807 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "name": "toInt64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01465_ttl_recompression/ast.json b/parser/testdata/01465_ttl_recompression/ast.json new file mode 100644 index 0000000000..d817455710 --- /dev/null +++ b/parser/testdata/01465_ttl_recompression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "recompression_table", + "tables": [ + { + "table": "recompression_table" + } + ] +} diff --git a/parser/testdata/01470_columns_transformers/ast.json b/parser/testdata/01470_columns_transformers/ast.json new file mode 100644 index 0000000000..4cebbe6ab2 --- /dev/null +++ b/parser/testdata/01470_columns_transformers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "columns_transformers", + "tables": [ + { + "table": "columns_transformers" + } + ] +} diff --git a/parser/testdata/01470_columns_transformers2/ast.json b/parser/testdata/01470_columns_transformers2/ast.json new file mode 100644 index 0000000000..4cebbe6ab2 --- /dev/null +++ b/parser/testdata/01470_columns_transformers2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "columns_transformers", + "tables": [ + { + "table": "columns_transformers" + } + ] +} diff --git a/parser/testdata/01470_show_databases_like/ast.json b/parser/testdata/01470_show_databases_like/ast.json new file mode 100644 index 0000000000..b5c19e98f6 --- /dev/null +++ b/parser/testdata/01470_show_databases_like/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "test_01470", + "create_database": true +} diff --git a/parser/testdata/01470_test_insert_select_asterisk/ast.json b/parser/testdata/01470_test_insert_select_asterisk/ast.json new file mode 100644 index 0000000000..305ada7a94 --- /dev/null +++ b/parser/testdata/01470_test_insert_select_asterisk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "insert_select_dst", + "tables": [ + { + "table": "insert_select_dst" + } + ] +} diff --git a/parser/testdata/01471_calculate_ttl_during_merge/ast.json b/parser/testdata/01471_calculate_ttl_during_merge/ast.json new file mode 100644 index 0000000000..055b675f0c --- /dev/null +++ b/parser/testdata/01471_calculate_ttl_during_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_ttl", + "tables": [ + { + "table": "table_for_ttl" + } + ] +} diff --git a/parser/testdata/01471_top_k_range_check/ast.json b/parser/testdata/01471_top_k_range_check/ast.json new file mode 100644 index 0000000000..ebf04772b8 --- /dev/null +++ b/parser/testdata/01471_top_k_range_check/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "length", + "arguments": [ + { + "name": "topKWeighted", + "parameters": [ + { + "type": "Integer", + "value": 2 + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 1025 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01472_many_rows_in_totals/ast.json b/parser/testdata/01472_many_rows_in_totals/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/01472_many_rows_in_totals/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01472_toBoundsOfInterval_disallow_empty_tz_field/ast.json b/parser/testdata/01472_toBoundsOfInterval_disallow_empty_tz_field/ast.json new file mode 100644 index 0000000000..aac1b2795a --- /dev/null +++ b/parser/testdata/01472_toBoundsOfInterval_disallow_empty_tz_field/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfDay", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2017-12-31 00:00:00" + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01473_event_time_microseconds/ast.json b/parser/testdata/01473_event_time_microseconds/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01473_event_time_microseconds/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01473_system_events_zeroes/ast.json b/parser/testdata/01473_system_events_zeroes/ast.json new file mode 100644 index 0000000000..eabe1a7c3d --- /dev/null +++ b/parser/testdata/01473_system_events_zeroes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "system_events_show_zero_values", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01474_bad_global_join/ast.json b/parser/testdata/01474_bad_global_join/ast.json new file mode 100644 index 0000000000..3cf7f91498 --- /dev/null +++ b/parser/testdata/01474_bad_global_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_table", + "tables": [ + { + "table": "local_table" + } + ] +} diff --git a/parser/testdata/01474_decimal_scale_bug/ast.json b/parser/testdata/01474_decimal_scale_bug/ast.json new file mode 100644 index 0000000000..96160e09de --- /dev/null +++ b/parser/testdata/01474_decimal_scale_bug/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "op": "*", + "right": { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + }, + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01474_executable_dictionary/ast.json b/parser/testdata/01474_executable_dictionary/ast.json new file mode 100644 index 0000000000..eab404670f --- /dev/null +++ b/parser/testdata/01474_executable_dictionary/ast.json @@ -0,0 +1,100 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "dictGet", + "arguments": [ + { + "type": "String", + "value": "executable_complex" + }, + { + "type": "String", + "value": "a" + }, + { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "a" + }, + { + "name": "dictGet", + "arguments": [ + { + "type": "String", + "value": "executable_complex" + }, + { + "type": "String", + "value": "b" + }, + { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "b" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000000 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 999999 + } + } + } + ] +} diff --git a/parser/testdata/01475_fix_bigint_shift/ast.json b/parser/testdata/01475_fix_bigint_shift/ast.json new file mode 100644 index 0000000000..ef3e34e5b0 --- /dev/null +++ b/parser/testdata/01475_fix_bigint_shift/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitShiftLeft", + "arguments": [ + { + "name": "toInt64", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01475_mutation_with_if/ast.json b/parser/testdata/01475_mutation_with_if/ast.json new file mode 100644 index 0000000000..a6c08c935a --- /dev/null +++ b/parser/testdata/01475_mutation_with_if/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mutation_table", + "tables": [ + { + "table": "mutation_table" + } + ] +} diff --git a/parser/testdata/01475_read_subcolumns/ast.json b/parser/testdata/01475_read_subcolumns/ast.json new file mode 100644 index 0000000000..b0c9acd112 --- /dev/null +++ b/parser/testdata/01475_read_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_uncompressed_cache", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01475_read_subcolumns_2/ast.json b/parser/testdata/01475_read_subcolumns_2/ast.json new file mode 100644 index 0000000000..a610ef3a62 --- /dev/null +++ b/parser/testdata/01475_read_subcolumns_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "subcolumns", + "tables": [ + { + "table": "subcolumns" + } + ] +} diff --git a/parser/testdata/01475_read_subcolumns_3/ast.json b/parser/testdata/01475_read_subcolumns_3/ast.json new file mode 100644 index 0000000000..9fd1b25b1b --- /dev/null +++ b/parser/testdata/01475_read_subcolumns_3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_subcolumns", + "tables": [ + { + "table": "null_subcolumns" + } + ] +} diff --git a/parser/testdata/01476_right_full_join_switch/ast.json b/parser/testdata/01476_right_full_join_switch/ast.json new file mode 100644 index 0000000000..42f92529ac --- /dev/null +++ b/parser/testdata/01476_right_full_join_switch/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "auto" + } + } + ] +} diff --git a/parser/testdata/01479_cross_join_9855/ast.json b/parser/testdata/01479_cross_join_9855/ast.json new file mode 100644 index 0000000000..a1c86ef7af --- /dev/null +++ b/parser/testdata/01479_cross_join_9855/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cross_to_inner_join_rewrite", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01480_binary_operator_monotonicity/ast.json b/parser/testdata/01480_binary_operator_monotonicity/ast.json new file mode 100644 index 0000000000..8ecd48c335 --- /dev/null +++ b/parser/testdata/01480_binary_operator_monotonicity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "binary_op_mono1", + "tables": [ + { + "table": "binary_op_mono1" + } + ] +} diff --git a/parser/testdata/01481_join_with_materialized/ast.json b/parser/testdata/01481_join_with_materialized/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01481_join_with_materialized/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01482_move_to_prewhere_and_cast/ast.json b/parser/testdata/01482_move_to_prewhere_and_cast/ast.json new file mode 100644 index 0000000000..e3340b9353 --- /dev/null +++ b/parser/testdata/01482_move_to_prewhere_and_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "APPLICATION", + "tables": [ + { + "table": "APPLICATION" + } + ] +} diff --git a/parser/testdata/01483_merge_table_join_and_group_by/ast.json b/parser/testdata/01483_merge_table_join_and_group_by/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/01483_merge_table_join_and_group_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/01485_256_bit_multiply/ast.json b/parser/testdata/01485_256_bit_multiply/ast.json new file mode 100644 index 0000000000..3b3f999e4e --- /dev/null +++ b/parser/testdata/01485_256_bit_multiply/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "100M" + } + } + ] +} diff --git a/parser/testdata/01486_json_array_output/ast.json b/parser/testdata/01486_json_array_output/ast.json new file mode 100644 index 0000000000..3f518ac624 --- /dev/null +++ b/parser/testdata/01486_json_array_output/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_array_of_rows", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01490_nullable_string_to_enum/ast.json b/parser/testdata/01490_nullable_string_to_enum/ast.json new file mode 100644 index 0000000000..2f9771e1f6 --- /dev/null +++ b/parser/testdata/01490_nullable_string_to_enum/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_enum", + "tables": [ + { + "table": "t_enum" + } + ] +} diff --git a/parser/testdata/01492_array_join_crash_13829/ast.json b/parser/testdata/01492_array_join_crash_13829/ast.json new file mode 100644 index 0000000000..2ef0464d27 --- /dev/null +++ b/parser/testdata/01492_array_join_crash_13829/ast.json @@ -0,0 +1,126 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Null", + "value": null + }, + "op": "=", + "right": { + "name": "countEqual", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + { + "expr": { + "type": "Null", + "value": null + }, + "alias": "x" + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 255 + }, + { + "type": "Integer", + "value": 1025 + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 1048576 + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] + }, + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01493_alter_remove_no_property_zookeeper_long/ast.json b/parser/testdata/01493_alter_remove_no_property_zookeeper_long/ast.json new file mode 100644 index 0000000000..fbc2b47774 --- /dev/null +++ b/parser/testdata/01493_alter_remove_no_property_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "no_prop_table", + "tables": [ + { + "table": "no_prop_table" + } + ] +} diff --git a/parser/testdata/01493_alter_remove_properties/ast.json b/parser/testdata/01493_alter_remove_properties/ast.json new file mode 100644 index 0000000000..844b4d874a --- /dev/null +++ b/parser/testdata/01493_alter_remove_properties/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prop_table", + "tables": [ + { + "table": "prop_table" + } + ] +} diff --git a/parser/testdata/01493_alter_remove_properties_zookeeper/ast.json b/parser/testdata/01493_alter_remove_properties_zookeeper/ast.json new file mode 100644 index 0000000000..7d3777ba11 --- /dev/null +++ b/parser/testdata/01493_alter_remove_properties_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "r_prop_table1", + "tables": [ + { + "table": "r_prop_table1" + } + ] +} diff --git a/parser/testdata/01493_alter_remove_wrong_default/ast.json b/parser/testdata/01493_alter_remove_wrong_default/ast.json new file mode 100644 index 0000000000..38869443d4 --- /dev/null +++ b/parser/testdata/01493_alter_remove_wrong_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "default_table", + "tables": [ + { + "table": "default_table" + } + ] +} diff --git a/parser/testdata/01493_storage_set_persistency/ast.json b/parser/testdata/01493_storage_set_persistency/ast.json new file mode 100644 index 0000000000..9c2f169222 --- /dev/null +++ b/parser/testdata/01493_storage_set_persistency/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "set", + "tables": [ + { + "table": "set" + } + ] +} diff --git a/parser/testdata/01493_table_function_null/ast.json b/parser/testdata/01493_table_function_null/ast.json new file mode 100644 index 0000000000..236287bdca --- /dev/null +++ b/parser/testdata/01493_table_function_null/ast.json @@ -0,0 +1,37 @@ +{ + "function": { + "name": "null", + "arguments": [ + { + "type": "String", + "value": "number UInt64" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 10000 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/01494_storage_join_persistency/ast.json b/parser/testdata/01494_storage_join_persistency/ast.json new file mode 100644 index 0000000000..a0704c201f --- /dev/null +++ b/parser/testdata/01494_storage_join_persistency/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join", + "tables": [ + { + "table": "join" + } + ] +} diff --git a/parser/testdata/01495_subqueries_in_with_statement/ast.json b/parser/testdata/01495_subqueries_in_with_statement/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/01495_subqueries_in_with_statement/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/01495_subqueries_in_with_statement_3/ast.json b/parser/testdata/01495_subqueries_in_with_statement_3/ast.json new file mode 100644 index 0000000000..72a60e31a6 --- /dev/null +++ b/parser/testdata/01495_subqueries_in_with_statement_3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cte1", + "tables": [ + { + "table": "cte1" + } + ] +} diff --git a/parser/testdata/01496_signedness_conversion_monotonicity/ast.json b/parser/testdata/01496_signedness_conversion_monotonicity/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/01496_signedness_conversion_monotonicity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/01497_alias_on_default_array/ast.json b/parser/testdata/01497_alias_on_default_array/ast.json new file mode 100644 index 0000000000..305b6c089c --- /dev/null +++ b/parser/testdata/01497_alias_on_default_array/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_new_col", + "tables": [ + { + "table": "test_new_col" + } + ] +} diff --git a/parser/testdata/01497_mutation_support_for_storage_memory/ast.json b/parser/testdata/01497_mutation_support_for_storage_memory/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/01497_mutation_support_for_storage_memory/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/01498_alter_column_storage_memory/ast.json b/parser/testdata/01498_alter_column_storage_memory/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/01498_alter_column_storage_memory/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/01499_json_named_tuples/ast.json b/parser/testdata/01499_json_named_tuples/ast.json new file mode 100644 index 0000000000..b463d637c1 --- /dev/null +++ b/parser/testdata/01499_json_named_tuples/ast.json @@ -0,0 +1,78 @@ +{ + "table": "named_tuples", + "engine": { + "name": "File", + "parameters": [ + { + "parts": [ + "JSONEachRow" + ] + } + ], + "has_parentheses": true + }, + "settings": [ + { + "name": "output_format_json_named_tuples_as_objects", + "value": { + "type": "Integer", + "value": 1 + } + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "name": "tuple", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + }, + "type": { + "name": "Tuple(a int, b int)" + } + }, + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/01499_log_deadlock/ast.json b/parser/testdata/01499_log_deadlock/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01499_log_deadlock/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01501_cache_dictionary_all_fields/ast.json b/parser/testdata/01501_cache_dictionary_all_fields/ast.json new file mode 100644 index 0000000000..ae488067ed --- /dev/null +++ b/parser/testdata/01501_cache_dictionary_all_fields/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "db_01501", + "drop_database": true +} diff --git a/parser/testdata/01502_bar_overflow/ast.json b/parser/testdata/01502_bar_overflow/ast.json new file mode 100644 index 0000000000..e1b6219fe5 --- /dev/null +++ b/parser/testdata/01502_bar_overflow/ast.json @@ -0,0 +1,91 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bar", + "arguments": [ + { + "left": { + "left": { + "name": "greatCircleAngle", + "arguments": [ + { + "type": "Integer", + "value": 100 + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + }, + "op": "-", + "right": { + "parts": [ + "number" + ] + } + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "type": "Integer", + "value": 1023 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1048575 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01503_fixed_string_primary_key/ast.json b/parser/testdata/01503_fixed_string_primary_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01503_fixed_string_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01503_if_const_optimization/ast.json b/parser/testdata/01503_if_const_optimization/ast.json new file mode 100644 index 0000000000..dca81ba089 --- /dev/null +++ b/parser/testdata/01503_if_const_optimization/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "expr": { + "type": "Null", + "value": null + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + }, + { + "type": "String", + "value": "2.55" + }, + { + "type": "Null", + "value": null + } + ], + "alias": "x" + } + ] + } + ] +} diff --git a/parser/testdata/01504_compression_multiple_streams/ast.json b/parser/testdata/01504_compression_multiple_streams/ast.json new file mode 100644 index 0000000000..61331957a6 --- /dev/null +++ b/parser/testdata/01504_compression_multiple_streams/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "columns_with_multiple_streams", + "tables": [ + { + "table": "columns_with_multiple_streams" + } + ] +} diff --git a/parser/testdata/01504_rocksdb/ast.json b/parser/testdata/01504_rocksdb/ast.json new file mode 100644 index 0000000000..9be234b74c --- /dev/null +++ b/parser/testdata/01504_rocksdb/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "01504_test", + "tables": [ + { + "table": "01504_test" + } + ] +} diff --git a/parser/testdata/01504_view_type_conversion/ast.json b/parser/testdata/01504_view_type_conversion/ast.json new file mode 100644 index 0000000000..8c85c3eec6 --- /dev/null +++ b/parser/testdata/01504_view_type_conversion/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testv", + "tables": [ + { + "table": "testv" + } + ] +} diff --git a/parser/testdata/01505_distributed_local_type_conversion_enum/ast.json b/parser/testdata/01505_distributed_local_type_conversion_enum/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01505_distributed_local_type_conversion_enum/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01505_log_distributed_deadlock/ast.json b/parser/testdata/01505_log_distributed_deadlock/ast.json new file mode 100644 index 0000000000..24f6216d44 --- /dev/null +++ b/parser/testdata/01505_log_distributed_deadlock/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_local", + "tables": [ + { + "table": "t_local" + } + ] +} diff --git a/parser/testdata/01505_trivial_count_with_partition_predicate/ast.json b/parser/testdata/01505_trivial_count_with_partition_predicate/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/01505_trivial_count_with_partition_predicate/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/01506_buffer_table_alter_block_structure/ast.json b/parser/testdata/01506_buffer_table_alter_block_structure/ast.json new file mode 100644 index 0000000000..1ec9490432 --- /dev/null +++ b/parser/testdata/01506_buffer_table_alter_block_structure/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "buf_dest", + "tables": [ + { + "table": "buf_dest" + } + ] +} diff --git a/parser/testdata/01506_buffer_table_alter_block_structure_2/ast.json b/parser/testdata/01506_buffer_table_alter_block_structure_2/ast.json new file mode 100644 index 0000000000..1ec9490432 --- /dev/null +++ b/parser/testdata/01506_buffer_table_alter_block_structure_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "buf_dest", + "tables": [ + { + "table": "buf_dest" + } + ] +} diff --git a/parser/testdata/01506_ttl_same_with_order_by/ast.json b/parser/testdata/01506_ttl_same_with_order_by/ast.json new file mode 100644 index 0000000000..17b58962d6 --- /dev/null +++ b/parser/testdata/01506_ttl_same_with_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "derived_metrics_local", + "tables": [ + { + "table": "derived_metrics_local" + } + ] +} diff --git a/parser/testdata/01507_multiversion_storage_for_storagememory/ast.json b/parser/testdata/01507_multiversion_storage_for_storagememory/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/01507_multiversion_storage_for_storagememory/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/01507_transform_null_in/ast.json b/parser/testdata/01507_transform_null_in/ast.json new file mode 100644 index 0000000000..1bdb9f2f82 --- /dev/null +++ b/parser/testdata/01507_transform_null_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "transform_null_in", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01508_explain_header/ast.json b/parser/testdata/01508_explain_header/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01508_explain_header/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01509_output_format_pretty_row_numbers/ast.json b/parser/testdata/01509_output_format_pretty_row_numbers/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/01509_output_format_pretty_row_numbers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01509_parallel_quorum_insert_no_replicas_long/ast.json b/parser/testdata/01509_parallel_quorum_insert_no_replicas_long/ast.json new file mode 100644 index 0000000000..564cba0814 --- /dev/null +++ b/parser/testdata/01509_parallel_quorum_insert_no_replicas_long/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "r1", + "tables": [ + { + "table": "r1" + } + ], + "sync": true +} diff --git a/parser/testdata/01511_alter_version_versioned_collapsing_merge_tree/ast.json b/parser/testdata/01511_alter_version_versioned_collapsing_merge_tree/ast.json new file mode 100644 index 0000000000..99ca692f4d --- /dev/null +++ b/parser/testdata/01511_alter_version_versioned_collapsing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_version", + "tables": [ + { + "table": "table_with_version" + } + ] +} diff --git a/parser/testdata/01511_alter_version_versioned_collapsing_merge_tree_zookeeper/ast.json b/parser/testdata/01511_alter_version_versioned_collapsing_merge_tree_zookeeper/ast.json new file mode 100644 index 0000000000..268729fb0e --- /dev/null +++ b/parser/testdata/01511_alter_version_versioned_collapsing_merge_tree_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_version_replicated_1", + "tables": [ + { + "table": "table_with_version_replicated_1" + } + ] +} diff --git a/parser/testdata/01511_different_expression_with_same_alias/ast.json b/parser/testdata/01511_different_expression_with_same_alias/ast.json new file mode 100644 index 0000000000..6060ead222 --- /dev/null +++ b/parser/testdata/01511_different_expression_with_same_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "repro_hits", + "tables": [ + { + "table": "repro_hits" + } + ] +} diff --git a/parser/testdata/01511_prewhere_with_virtuals/ast.json b/parser/testdata/01511_prewhere_with_virtuals/ast.json new file mode 100644 index 0000000000..7407251a7b --- /dev/null +++ b/parser/testdata/01511_prewhere_with_virtuals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_not_found_column_nothing", + "tables": [ + { + "table": "test_not_found_column_nothing" + } + ] +} diff --git a/parser/testdata/01513_count_without_select_sequence_consistency_zookeeper_long/ast.json b/parser/testdata/01513_count_without_select_sequence_consistency_zookeeper_long/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01513_count_without_select_sequence_consistency_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01513_defaults_on_defaults_no_column/ast.json b/parser/testdata/01513_defaults_on_defaults_no_column/ast.json new file mode 100644 index 0000000000..7c72a556cc --- /dev/null +++ b/parser/testdata/01513_defaults_on_defaults_no_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults_on_defaults", + "tables": [ + { + "table": "defaults_on_defaults" + } + ] +} diff --git a/parser/testdata/01513_ilike_like_cache/ast.json b/parser/testdata/01513_ilike_like_cache/ast.json new file mode 100644 index 0000000000..0fd6661d71 --- /dev/null +++ b/parser/testdata/01513_ilike_like_cache/ast.json @@ -0,0 +1,18 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "hello" + }, + "pattern": { + "type": "String", + "value": "hell%" + } + } + ] + } + ] +} diff --git a/parser/testdata/01513_optimize_aggregation_in_order_memory_long/ast.json b/parser/testdata/01513_optimize_aggregation_in_order_memory_long/ast.json new file mode 100644 index 0000000000..1ba408c92c --- /dev/null +++ b/parser/testdata/01513_optimize_aggregation_in_order_memory_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01513", + "tables": [ + { + "table": "data_01513" + } + ] +} diff --git a/parser/testdata/01514_empty_buffer_different_types/ast.json b/parser/testdata/01514_empty_buffer_different_types/ast.json new file mode 100644 index 0000000000..4f46873637 --- /dev/null +++ b/parser/testdata/01514_empty_buffer_different_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "error" + } + } + ] +} diff --git a/parser/testdata/01514_input_format_csv_enum_as_number_setting/ast.json b/parser/testdata/01514_input_format_csv_enum_as_number_setting/ast.json new file mode 100644 index 0000000000..ab06bcb9f5 --- /dev/null +++ b/parser/testdata/01514_input_format_csv_enum_as_number_setting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_enum_column_for_csv_insert", + "tables": [ + { + "table": "table_with_enum_column_for_csv_insert" + } + ] +} diff --git a/parser/testdata/01514_input_format_json_enum_as_number/ast.json b/parser/testdata/01514_input_format_json_enum_as_number/ast.json new file mode 100644 index 0000000000..90b2479231 --- /dev/null +++ b/parser/testdata/01514_input_format_json_enum_as_number/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_enum_column_for_json_insert", + "tables": [ + { + "table": "table_with_enum_column_for_json_insert" + } + ] +} diff --git a/parser/testdata/01514_input_format_tsv_enum_as_number_setting/ast.json b/parser/testdata/01514_input_format_tsv_enum_as_number_setting/ast.json new file mode 100644 index 0000000000..559ec43c72 --- /dev/null +++ b/parser/testdata/01514_input_format_tsv_enum_as_number_setting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_enum_column_for_tsv_insert", + "tables": [ + { + "table": "table_with_enum_column_for_tsv_insert" + } + ] +} diff --git a/parser/testdata/01514_parallel_formatting/ast.json b/parser/testdata/01514_parallel_formatting/ast.json new file mode 100644 index 0000000000..4907c2984d --- /dev/null +++ b/parser/testdata/01514_parallel_formatting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tsv", + "tables": [ + { + "table": "tsv" + } + ] +} diff --git a/parser/testdata/01514_tid_function/ast.json b/parser/testdata/01514_tid_function/ast.json new file mode 100644 index 0000000000..3fcb6b4831 --- /dev/null +++ b/parser/testdata/01514_tid_function/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tid" + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01515_force_data_skipping_indices/ast.json b/parser/testdata/01515_force_data_skipping_indices/ast.json new file mode 100644 index 0000000000..2688118f9c --- /dev/null +++ b/parser/testdata/01515_force_data_skipping_indices/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01515", + "tables": [ + { + "table": "data_01515" + } + ] +} diff --git a/parser/testdata/01515_mv_and_array_join_optimisation_bag/ast.json b/parser/testdata/01515_mv_and_array_join_optimisation_bag/ast.json new file mode 100644 index 0000000000..8147637cb8 --- /dev/null +++ b/parser/testdata/01515_mv_and_array_join_optimisation_bag/ast.json @@ -0,0 +1,44 @@ +{ + "table": "visits", + "columns": [ + { + "name": "CounterID", + "type": { + "name": "UInt32" + } + }, + { + "name": "StartDate", + "type": { + "name": "Date" + } + }, + { + "name": "StartTime", + "type": { + "name": "DateTime" + } + }, + { + "name": "GoalsID", + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt32" + } + ], + "has_parentheses": true + } + }, + { + "name": "Sign", + "type": { + "name": "Int8" + } + } + ], + "engine": { + "name": "Null" + } +} diff --git a/parser/testdata/01515_with_global_and_with_propagation/ast.json b/parser/testdata/01515_with_global_and_with_propagation/ast.json new file mode 100644 index 0000000000..73b8d35028 --- /dev/null +++ b/parser/testdata/01515_with_global_and_with_propagation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_global_with_statement", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01516_create_table_primary_key/ast.json b/parser/testdata/01516_create_table_primary_key/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01516_create_table_primary_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01516_date_time_output_format/ast.json b/parser/testdata/01516_date_time_output_format/ast.json new file mode 100644 index 0000000000..92e68846fe --- /dev/null +++ b/parser/testdata/01516_date_time_output_format/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_datetime", + "tables": [ + { + "table": "test_datetime" + } + ] +} diff --git a/parser/testdata/01517_drop_mv_with_inner_table/ast.json b/parser/testdata/01517_drop_mv_with_inner_table/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01517_drop_mv_with_inner_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01517_select_final_distributed/ast.json b/parser/testdata/01517_select_final_distributed/ast.json new file mode 100644 index 0000000000..3eb390e577 --- /dev/null +++ b/parser/testdata/01517_select_final_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01518_cast_nullable_virtual_system_column/ast.json b/parser/testdata/01518_cast_nullable_virtual_system_column/ast.json new file mode 100644 index 0000000000..cf300af3b1 --- /dev/null +++ b/parser/testdata/01518_cast_nullable_virtual_system_column/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "database" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "tables" + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "database" + ] + }, + "pattern": { + "type": "String", + "value": "%" + } + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01518_filtering_aliased_materialized_column/ast.json b/parser/testdata/01518_filtering_aliased_materialized_column/ast.json new file mode 100644 index 0000000000..ec6efce326 --- /dev/null +++ b/parser/testdata/01518_filtering_aliased_materialized_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "logs", + "tables": [ + { + "table": "logs" + } + ] +} diff --git a/parser/testdata/01518_nullable_aggregate_states2/ast.json b/parser/testdata/01518_nullable_aggregate_states2/ast.json new file mode 100644 index 0000000000..16f3091e23 --- /dev/null +++ b/parser/testdata/01518_nullable_aggregate_states2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testNullableStates", + "tables": [ + { + "table": "testNullableStates" + } + ] +} diff --git a/parser/testdata/01518_select_in_null/ast.json b/parser/testdata/01518_select_in_null/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01518_select_in_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01519_topK_distributed_parametrized/ast.json b/parser/testdata/01519_topK_distributed_parametrized/ast.json new file mode 100644 index 0000000000..a8145767eb --- /dev/null +++ b/parser/testdata/01519_topK_distributed_parametrized/ast.json @@ -0,0 +1,15 @@ +{ + "if_not_exists": true, + "table": "topXtest", + "columns": [ + { + "name": "A", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/01521_alter_enum_and_reverse_read/ast.json b/parser/testdata/01521_alter_enum_and_reverse_read/ast.json new file mode 100644 index 0000000000..d53d70e3b7 --- /dev/null +++ b/parser/testdata/01521_alter_enum_and_reverse_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum_test", + "tables": [ + { + "table": "enum_test" + } + ] +} diff --git a/parser/testdata/01521_distributed_query_hang/ast.json b/parser/testdata/01521_distributed_query_hang/ast.json new file mode 100644 index 0000000000..d9dec1eb1b --- /dev/null +++ b/parser/testdata/01521_distributed_query_hang/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "connections_with_failover_max_tries", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01521_format_readable_time_delta2/ast.json b/parser/testdata/01521_format_readable_time_delta2/ast.json new file mode 100644 index 0000000000..8fa034edaf --- /dev/null +++ b/parser/testdata/01521_format_readable_time_delta2/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatReadableTimeDelta", + "arguments": [ + { + "op": "-", + "operand": { + "left": { + "left": { + "left": { + "left": { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "+", + "right": { + "type": "Integer", + "value": 60 + } + }, + "op": "+", + "right": { + "type": "Integer", + "value": 3600 + } + }, + "op": "+", + "right": { + "type": "Integer", + "value": 86400 + } + }, + "op": "+", + "right": { + "left": { + "type": "Float", + "value": 30.5 + }, + "op": "*", + "right": { + "type": "Integer", + "value": 86400 + } + } + }, + "op": "+", + "right": { + "left": { + "type": "Integer", + "value": 365 + }, + "op": "*", + "right": { + "type": "Integer", + "value": 86400 + } + } + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01521_global_in_prewhere_15792/ast.json b/parser/testdata/01521_global_in_prewhere_15792/ast.json new file mode 100644 index 0000000000..c2add3d6ae --- /dev/null +++ b/parser/testdata/01521_global_in_prewhere_15792/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "xp", + "tables": [ + { + "table": "xp" + } + ] +} diff --git a/parser/testdata/01521_max_length_alias/ast.json b/parser/testdata/01521_max_length_alias/ast.json new file mode 100644 index 0000000000..da5e7bf3e0 --- /dev/null +++ b/parser/testdata/01521_max_length_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "max_length_alias_14053", + "tables": [ + { + "table": "max_length_alias_14053" + } + ] +} diff --git a/parser/testdata/01522_validate_alter_default/ast.json b/parser/testdata/01522_validate_alter_default/ast.json new file mode 100644 index 0000000000..93e6e77fe0 --- /dev/null +++ b/parser/testdata/01522_validate_alter_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table2", + "tables": [ + { + "table": "table2" + } + ] +} diff --git a/parser/testdata/01523_date_time_compare_with_date_literal/ast.json b/parser/testdata/01523_date_time_compare_with_date_literal/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01523_date_time_compare_with_date_literal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01523_interval_operator_support_string_literal/ast.json b/parser/testdata/01523_interval_operator_support_string_literal/ast.json new file mode 100644 index 0000000000..fce6075d58 --- /dev/null +++ b/parser/testdata/01523_interval_operator_support_string_literal/ast.json @@ -0,0 +1,15 @@ +{ + "selects": [ + { + "columns": [ + { + "value": { + "type": "Integer", + "value": 2 + }, + "unit": "YEAR" + } + ] + } + ] +} diff --git a/parser/testdata/01524_do_not_merge_across_partitions_select_final/ast.json b/parser/testdata/01524_do_not_merge_across_partitions_select_final/ast.json new file mode 100644 index 0000000000..5c041b2629 --- /dev/null +++ b/parser/testdata/01524_do_not_merge_across_partitions_select_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "select_final", + "tables": [ + { + "table": "select_final" + } + ] +} diff --git a/parser/testdata/01525_select_with_offset_fetch_clause/ast.json b/parser/testdata/01525_select_with_offset_fetch_clause/ast.json new file mode 100644 index 0000000000..81ea3fcc95 --- /dev/null +++ b/parser/testdata/01525_select_with_offset_fetch_clause/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 3 + }, + "offset": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01526_alter_add_and_modify_order_zookeeper/ast.json b/parser/testdata/01526_alter_add_and_modify_order_zookeeper/ast.json new file mode 100644 index 0000000000..5c06716578 --- /dev/null +++ b/parser/testdata/01526_alter_add_and_modify_order_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_alter", + "tables": [ + { + "table": "table_for_alter" + } + ] +} diff --git a/parser/testdata/01526_complex_key_dict_direct_layout/ast.json b/parser/testdata/01526_complex_key_dict_direct_layout/ast.json new file mode 100644 index 0000000000..b46db6b587 --- /dev/null +++ b/parser/testdata/01526_complex_key_dict_direct_layout/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "db_01526", + "drop_database": true +} diff --git a/parser/testdata/01527_bad_aggregation_in_lambda/ast.json b/parser/testdata/01527_bad_aggregation_in_lambda/ast.json new file mode 100644 index 0000000000..1f59ee6077 --- /dev/null +++ b/parser/testdata/01527_bad_aggregation_in_lambda/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "x" + ] + }, + "op": "*", + "right": { + "name": "sum", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + } + }, + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01527_dist_sharding_key_dictGet_reload/ast.json b/parser/testdata/01527_dist_sharding_key_dictGet_reload/ast.json new file mode 100644 index 0000000000..103aca07bd --- /dev/null +++ b/parser/testdata/01527_dist_sharding_key_dictGet_reload/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_nondeterministic_optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01527_materialized_view_stack_overflow/ast.json b/parser/testdata/01527_materialized_view_stack_overflow/ast.json new file mode 100644 index 0000000000..80532b40b3 --- /dev/null +++ b/parser/testdata/01527_materialized_view_stack_overflow/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_materialized_view_with_bad_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01528_allow_nondeterministic_optimize_skip_unused_shards/ast.json b/parser/testdata/01528_allow_nondeterministic_optimize_skip_unused_shards/ast.json new file mode 100644 index 0000000000..390a2a1b30 --- /dev/null +++ b/parser/testdata/01528_allow_nondeterministic_optimize_skip_unused_shards/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dist_01528", + "tables": [ + { + "table": "dist_01528" + } + ] +} diff --git a/parser/testdata/01528_setting_aggregate_functions_null_for_empty/ast.json b/parser/testdata/01528_setting_aggregate_functions_null_for_empty/ast.json new file mode 100644 index 0000000000..bc27a854ce --- /dev/null +++ b/parser/testdata/01528_setting_aggregate_functions_null_for_empty/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "defaults", + "tables": [ + { + "table": "defaults" + } + ] +} diff --git a/parser/testdata/01528_to_uuid_or_null_or_zero/ast.json b/parser/testdata/01528_to_uuid_or_null_or_zero/ast.json new file mode 100644 index 0000000000..d2e2449d89 --- /dev/null +++ b/parser/testdata/01528_to_uuid_or_null_or_zero/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "to_uuid_test", + "tables": [ + { + "table": "to_uuid_test" + } + ] +} diff --git a/parser/testdata/01529_union_distinct_and_setting_union_default_mode/ast.json b/parser/testdata/01529_union_distinct_and_setting_union_default_mode/ast.json new file mode 100644 index 0000000000..4cb6f0f6f9 --- /dev/null +++ b/parser/testdata/01529_union_distinct_and_setting_union_default_mode/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] +} diff --git a/parser/testdata/01530_drop_database_atomic_sync/ast.json b/parser/testdata/01530_drop_database_atomic_sync/ast.json new file mode 100644 index 0000000000..c10e024a81 --- /dev/null +++ b/parser/testdata/01530_drop_database_atomic_sync/ast.json @@ -0,0 +1,6 @@ +{ + "if_exists": true, + "database": "db_01530_atomic", + "drop_database": true, + "sync": true +} diff --git a/parser/testdata/01531_query_log_query_comment/ast.json b/parser/testdata/01531_query_log_query_comment/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01531_query_log_query_comment/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01532_collate_in_low_cardinality/ast.json b/parser/testdata/01532_collate_in_low_cardinality/ast.json new file mode 100644 index 0000000000..d3d4d5f9f8 --- /dev/null +++ b/parser/testdata/01532_collate_in_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_collate", + "tables": [ + { + "table": "test_collate" + } + ] +} diff --git a/parser/testdata/01532_execute_merges_on_single_replica_long/ast.json b/parser/testdata/01532_execute_merges_on_single_replica_long/ast.json new file mode 100644 index 0000000000..84db367d49 --- /dev/null +++ b/parser/testdata/01532_execute_merges_on_single_replica_long/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "execute_on_single_replica_r1", + "tables": [ + { + "table": "execute_on_single_replica_r1" + } + ], + "sync": true +} diff --git a/parser/testdata/01532_having_with_totals/ast.json b/parser/testdata/01532_having_with_totals/ast.json new file mode 100644 index 0000000000..6c73cbea7f --- /dev/null +++ b/parser/testdata/01532_having_with_totals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_t", + "tables": [ + { + "table": "local_t" + } + ] +} diff --git a/parser/testdata/01532_min_max_with_modifiers/ast.json b/parser/testdata/01532_min_max_with_modifiers/ast.json new file mode 100644 index 0000000000..be9a29992d --- /dev/null +++ b/parser/testdata/01532_min_max_with_modifiers/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "totals" + } + ] + } + ] +} diff --git a/parser/testdata/01532_primary_key_without_order_by_zookeeper/ast.json b/parser/testdata/01532_primary_key_without_order_by_zookeeper/ast.json new file mode 100644 index 0000000000..d9a3444345 --- /dev/null +++ b/parser/testdata/01532_primary_key_without_order_by_zookeeper/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "merge_tree_pk", + "tables": [ + { + "table": "merge_tree_pk" + } + ], + "sync": true +} diff --git a/parser/testdata/01532_tuple_with_name_type/ast.json b/parser/testdata/01532_tuple_with_name_type/ast.json new file mode 100644 index 0000000000..a6780b12d6 --- /dev/null +++ b/parser/testdata/01532_tuple_with_name_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01532_1", + "tables": [ + { + "table": "test_01532_1" + } + ] +} diff --git a/parser/testdata/01533_collate_in_nullable/ast.json b/parser/testdata/01533_collate_in_nullable/ast.json new file mode 100644 index 0000000000..d3d4d5f9f8 --- /dev/null +++ b/parser/testdata/01533_collate_in_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_collate", + "tables": [ + { + "table": "test_collate" + } + ] +} diff --git a/parser/testdata/01533_distinct_depends_on_max_threads/ast.json b/parser/testdata/01533_distinct_depends_on_max_threads/ast.json new file mode 100644 index 0000000000..0901fcf363 --- /dev/null +++ b/parser/testdata/01533_distinct_depends_on_max_threads/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bug_13492", + "tables": [ + { + "table": "bug_13492" + } + ] +} diff --git a/parser/testdata/01533_distinct_nullable_uuid/ast.json b/parser/testdata/01533_distinct_nullable_uuid/ast.json new file mode 100644 index 0000000000..fd4bb747be --- /dev/null +++ b/parser/testdata/01533_distinct_nullable_uuid/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bug_14144", + "tables": [ + { + "table": "bug_14144" + } + ] +} diff --git a/parser/testdata/01533_multiple_nested/ast.json b/parser/testdata/01533_multiple_nested/ast.json new file mode 100644 index 0000000000..c5d0ecd7c8 --- /dev/null +++ b/parser/testdata/01533_multiple_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested", + "tables": [ + { + "table": "nested" + } + ] +} diff --git a/parser/testdata/01533_optimize_skip_merged_partitions/ast.json b/parser/testdata/01533_optimize_skip_merged_partitions/ast.json new file mode 100644 index 0000000000..f60012ed58 --- /dev/null +++ b/parser/testdata/01533_optimize_skip_merged_partitions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "optimize_final", + "tables": [ + { + "table": "optimize_final" + } + ] +} diff --git a/parser/testdata/01533_quantile_deterministic_assert/ast.json b/parser/testdata/01533_quantile_deterministic_assert/ast.json new file mode 100644 index 0000000000..484d7b356c --- /dev/null +++ b/parser/testdata/01533_quantile_deterministic_assert/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileDeterministic", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "name": "sipHash64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 8193 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01533_sum_if_nullable_bug/ast.json b/parser/testdata/01533_sum_if_nullable_bug/ast.json new file mode 100644 index 0000000000..dc60b9fe50 --- /dev/null +++ b/parser/testdata/01533_sum_if_nullable_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "T", + "tables": [ + { + "table": "T" + } + ] +} diff --git a/parser/testdata/01534_lambda_array_join/ast.json b/parser/testdata/01534_lambda_array_join/ast.json new file mode 100644 index 0000000000..8e5965ecd4 --- /dev/null +++ b/parser/testdata/01534_lambda_array_join/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "concat", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "name": "concat", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "parts": [ + "x" + ] + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "type": "String", + "value": "" + } + ] + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01535_decimal_round_scale_overflow_check/ast.json b/parser/testdata/01535_decimal_round_scale_overflow_check/ast.json new file mode 100644 index 0000000000..60e84d54c9 --- /dev/null +++ b/parser/testdata/01535_decimal_round_scale_overflow_check/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775806 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01536_fuzz_cast/ast.json b/parser/testdata/01536_fuzz_cast/ast.json new file mode 100644 index 0000000000..5d9909b85e --- /dev/null +++ b/parser/testdata/01536_fuzz_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cast_keep_nullable", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01537_fuzz_count_equal/ast.json b/parser/testdata/01537_fuzz_count_equal/ast.json new file mode 100644 index 0000000000..08d02c342d --- /dev/null +++ b/parser/testdata/01537_fuzz_count_equal/ast.json @@ -0,0 +1,122 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "left": { + "type": "Null", + "value": null + }, + "op": "=", + "right": { + "name": "countEqual", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + { + "expr": { + "type": "Null", + "value": null + }, + "alias": "x" + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 255 + }, + { + "type": "Integer", + "value": 1025 + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 1048576 + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] + }, + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01540_verbatim_partition_pruning/ast.json b/parser/testdata/01540_verbatim_partition_pruning/ast.json new file mode 100644 index 0000000000..b2c69cd093 --- /dev/null +++ b/parser/testdata/01540_verbatim_partition_pruning/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "xy", + "tables": [ + { + "table": "xy" + } + ] +} diff --git a/parser/testdata/01542_collate_in_array/ast.json b/parser/testdata/01542_collate_in_array/ast.json new file mode 100644 index 0000000000..0391415500 --- /dev/null +++ b/parser/testdata/01542_collate_in_array/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "collate_test1", + "tables": [ + { + "table": "collate_test1" + } + ] +} diff --git a/parser/testdata/01543_collate_in_tuple/ast.json b/parser/testdata/01543_collate_in_tuple/ast.json new file mode 100644 index 0000000000..0391415500 --- /dev/null +++ b/parser/testdata/01543_collate_in_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "collate_test1", + "tables": [ + { + "table": "collate_test1" + } + ] +} diff --git a/parser/testdata/01543_parse_datetime_besteffort_or_null_empty_string/ast.json b/parser/testdata/01543_parse_datetime_besteffort_or_null_empty_string/ast.json new file mode 100644 index 0000000000..d91089c51b --- /dev/null +++ b/parser/testdata/01543_parse_datetime_besteffort_or_null_empty_string/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTimeBestEffortOrNull", + "arguments": [ + { + "type": "String", + "value": "2010-01-01" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01543_toModifiedJulianDay/ast.json b/parser/testdata/01543_toModifiedJulianDay/ast.json new file mode 100644 index 0000000000..986020ac75 --- /dev/null +++ b/parser/testdata/01543_toModifiedJulianDay/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Invocation with constant" + } + ] + } + ] +} diff --git a/parser/testdata/01544_errorCodeToName/ast.json b/parser/testdata/01544_errorCodeToName/ast.json new file mode 100644 index 0000000000..cc0e91e00c --- /dev/null +++ b/parser/testdata/01544_errorCodeToName/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "errorCodeToName", + "arguments": [ + { + "name": "toUInt32", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01544_fromModifiedJulianDay/ast.json b/parser/testdata/01544_fromModifiedJulianDay/ast.json new file mode 100644 index 0000000000..986020ac75 --- /dev/null +++ b/parser/testdata/01544_fromModifiedJulianDay/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Invocation with constant" + } + ] + } + ] +} diff --git a/parser/testdata/01545_url_file_format_settings/ast.json b/parser/testdata/01545_url_file_format_settings/ast.json new file mode 100644 index 0000000000..182876e91c --- /dev/null +++ b/parser/testdata/01545_url_file_format_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_hive_partitioning", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01546_log_queries_min_query_duration_ms/ast.json b/parser/testdata/01546_log_queries_min_query_duration_ms/ast.json new file mode 100644 index 0000000000..a3b684bc86 --- /dev/null +++ b/parser/testdata/01546_log_queries_min_query_duration_ms/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries_min_query_duration_ms", + "value": { + "type": "Integer", + "value": 300000 + } + } + ] +} diff --git a/parser/testdata/01547_query_log_current_database/ast.json b/parser/testdata/01547_query_log_current_database/ast.json new file mode 100644 index 0000000000..2a24c2ba12 --- /dev/null +++ b/parser/testdata/01547_query_log_current_database/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_query_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01548_lzy305/ast.json b/parser/testdata/01548_lzy305/ast.json new file mode 100644 index 0000000000..f8b3e250f1 --- /dev/null +++ b/parser/testdata/01548_lzy305/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "fct_rt_dc_shop_sku_vender_day", + "tables": [ + { + "table": "fct_rt_dc_shop_sku_vender_day" + } + ] +} diff --git a/parser/testdata/01548_uncomparable_columns_in_keys/ast.json b/parser/testdata/01548_uncomparable_columns_in_keys/ast.json new file mode 100644 index 0000000000..69e0938cb5 --- /dev/null +++ b/parser/testdata/01548_uncomparable_columns_in_keys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "uncomparable_keys", + "tables": [ + { + "table": "uncomparable_keys" + } + ] +} diff --git a/parser/testdata/01548_with_totals_having/ast.json b/parser/testdata/01548_with_totals_having/ast.json new file mode 100644 index 0000000000..453045a878 --- /dev/null +++ b/parser/testdata/01548_with_totals_having/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 4 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true, + "having": { + "left": { + "name": "sum", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "op": "\u003c=", + "right": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": null + } + ] + } + } + } + ] +} diff --git a/parser/testdata/01549_low_cardinality_materialized_view/ast.json b/parser/testdata/01549_low_cardinality_materialized_view/ast.json new file mode 100644 index 0000000000..4a5db73941 --- /dev/null +++ b/parser/testdata/01549_low_cardinality_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "HASH_MV", + "tables": [ + { + "table": "HASH_MV" + } + ] +} diff --git a/parser/testdata/01549_low_cardinality_mv_fuzz/ast.json b/parser/testdata/01549_low_cardinality_mv_fuzz/ast.json new file mode 100644 index 0000000000..4af534029b --- /dev/null +++ b/parser/testdata/01549_low_cardinality_mv_fuzz/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "extremes", + "value": { + "type": "String", + "value": "1" + } + } + ] +} diff --git a/parser/testdata/01550_create_map_type/ast.json b/parser/testdata/01550_create_map_type/ast.json new file mode 100644 index 0000000000..a0169426a5 --- /dev/null +++ b/parser/testdata/01550_create_map_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_map", + "tables": [ + { + "table": "table_map" + } + ] +} diff --git a/parser/testdata/01550_mutation_subquery/ast.json b/parser/testdata/01550_mutation_subquery/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01550_mutation_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01550_type_map_formats/ast.json b/parser/testdata/01550_type_map_formats/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/01550_type_map_formats/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01551_context_uaf/ast.json b/parser/testdata/01551_context_uaf/ast.json new file mode 100644 index 0000000000..4ffda95c96 --- /dev/null +++ b/parser/testdata/01551_context_uaf/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "f", + "tables": [ + { + "table": "f" + } + ] +} diff --git a/parser/testdata/01551_mergetree_read_in_order_spread/ast.json b/parser/testdata/01551_mergetree_read_in_order_spread/ast.json new file mode 100644 index 0000000000..69f400f008 --- /dev/null +++ b/parser/testdata/01551_mergetree_read_in_order_spread/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01551", + "tables": [ + { + "table": "data_01551" + } + ] +} diff --git a/parser/testdata/01552_alter_name_collision/ast.json b/parser/testdata/01552_alter_name_collision/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01552_alter_name_collision/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01552_dict_fixedstring/ast.json b/parser/testdata/01552_dict_fixedstring/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/01552_dict_fixedstring/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/01552_impl_aggfunc_cloneresize/ast.json b/parser/testdata/01552_impl_aggfunc_cloneresize/ast.json new file mode 100644 index 0000000000..6a4b15263d --- /dev/null +++ b/parser/testdata/01552_impl_aggfunc_cloneresize/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_bm", + "tables": [ + { + "table": "test_bm" + } + ] +} diff --git a/parser/testdata/01553_datetime64_comparison/ast.json b/parser/testdata/01553_datetime64_comparison/ast.json new file mode 100644 index 0000000000..2bb6fcc6df --- /dev/null +++ b/parser/testdata/01553_datetime64_comparison/ast.json @@ -0,0 +1,42 @@ +{ + "table": "datetime64_cmp", + "columns": [ + { + "name": "dt6", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 6 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "dt3", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/01553_settings_early_apply/ast.json b/parser/testdata/01553_settings_early_apply/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/01553_settings_early_apply/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01554_bloom_filter_index_big_integer_uuid/ast.json b/parser/testdata/01554_bloom_filter_index_big_integer_uuid/ast.json new file mode 100644 index 0000000000..54f0f7d5e9 --- /dev/null +++ b/parser/testdata/01554_bloom_filter_index_big_integer_uuid/ast.json @@ -0,0 +1,54 @@ +{ + "table": "01154_test", + "columns": [ + { + "name": "x", + "type": { + "name": "Int128" + } + } + ], + "indexes": [ + { + "name": "ix_x", + "expression": { + "parts": [ + "x" + ] + }, + "type": { + "name": "bloom_filter", + "arguments": [ + { + "type": "Float", + "value": 0.01 + } + ] + }, + "granularity": { + "type": "Integer", + "value": 1 + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/01554_interpreter_integer_float/ast.json b/parser/testdata/01554_interpreter_integer_float/ast.json new file mode 100644 index 0000000000..4f903b4c0e --- /dev/null +++ b/parser/testdata/01554_interpreter_integer_float/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "reinterpretAsFloat32", + "arguments": [ + { + "expr": { + "type": "Integer", + "value": 123456 + }, + "type": { + "name": "UInt32" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01555_system_distribution_queue_mask/ast.json b/parser/testdata/01555_system_distribution_queue_mask/ast.json new file mode 100644 index 0000000000..321151ca01 --- /dev/null +++ b/parser/testdata/01555_system_distribution_queue_mask/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_compact_format_in_distributed_parts_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01556_accurate_cast_or_null/ast.json b/parser/testdata/01556_accurate_cast_or_null/ast.json new file mode 100644 index 0000000000..681e1267bf --- /dev/null +++ b/parser/testdata/01556_accurate_cast_or_null/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "accurateCastOrNull", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "String", + "value": "UInt8" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01556_explain_select_with_union_query/ast.json b/parser/testdata/01556_explain_select_with_union_query/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01556_explain_select_with_union_query/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01557_max_parallel_replicas_no_sample/ast.json b/parser/testdata/01557_max_parallel_replicas_no_sample/ast.json new file mode 100644 index 0000000000..956e503a99 --- /dev/null +++ b/parser/testdata/01557_max_parallel_replicas_no_sample/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01558_enum_as_num_in_tsv_csv_input/ast.json b/parser/testdata/01558_enum_as_num_in_tsv_csv_input/ast.json new file mode 100644 index 0000000000..b661f17e8d --- /dev/null +++ b/parser/testdata/01558_enum_as_num_in_tsv_csv_input/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum_as_num", + "tables": [ + { + "table": "enum_as_num" + } + ] +} diff --git a/parser/testdata/01558_transform_null_in/ast.json b/parser/testdata/01558_transform_null_in/ast.json new file mode 100644 index 0000000000..1bdb9f2f82 --- /dev/null +++ b/parser/testdata/01558_transform_null_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "transform_null_in", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01558_ttest/ast.json b/parser/testdata/01558_ttest/ast.json new file mode 100644 index 0000000000..ae5e09b6fa --- /dev/null +++ b/parser/testdata/01558_ttest/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "welch_ttest", + "tables": [ + { + "table": "welch_ttest" + } + ] +} diff --git a/parser/testdata/01559_aggregate_null_for_empty_fix/ast.json b/parser/testdata/01559_aggregate_null_for_empty_fix/ast.json new file mode 100644 index 0000000000..9f37bb34f6 --- /dev/null +++ b/parser/testdata/01559_aggregate_null_for_empty_fix/ast.json @@ -0,0 +1,105 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "MAX", + "arguments": [ + { + "parts": [ + "aggr" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "MAX", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ], + "alias": "aggr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "where": { + "op": "NOT", + "operand": { + "type": "Integer", + "value": 1 + } + } + }, + { + "columns": [ + { + "name": "MAX", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ], + "alias": "aggr" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "where": { + "type": "Integer", + "value": 1 + } + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01560_cancel_agg_func_combinator_native_name_constraint/ast.json b/parser/testdata/01560_cancel_agg_func_combinator_native_name_constraint/ast.json new file mode 100644 index 0000000000..838fefbd08 --- /dev/null +++ b/parser/testdata/01560_cancel_agg_func_combinator_native_name_constraint/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "Sum", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01560_crash_in_agg_empty_arglist/ast.json b/parser/testdata/01560_crash_in_agg_empty_arglist/ast.json new file mode 100644 index 0000000000..4cb6f0f6f9 --- /dev/null +++ b/parser/testdata/01560_crash_in_agg_empty_arglist/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] +} diff --git a/parser/testdata/01560_mann_whitney/ast.json b/parser/testdata/01560_mann_whitney/ast.json new file mode 100644 index 0000000000..87c859c837 --- /dev/null +++ b/parser/testdata/01560_mann_whitney/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mann_whitney_test", + "tables": [ + { + "table": "mann_whitney_test" + } + ] +} diff --git a/parser/testdata/01560_merge_distributed_join/ast.json b/parser/testdata/01560_merge_distributed_join/ast.json new file mode 100644 index 0000000000..d19099d79a --- /dev/null +++ b/parser/testdata/01560_merge_distributed_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cat_hist", + "tables": [ + { + "table": "cat_hist" + } + ] +} diff --git a/parser/testdata/01560_optimize_on_insert_long/ast.json b/parser/testdata/01560_optimize_on_insert_long/ast.json new file mode 100644 index 0000000000..305745d11b --- /dev/null +++ b/parser/testdata/01560_optimize_on_insert_long/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Replacing Merge Tree" + } + ] + } + ] +} diff --git a/parser/testdata/01560_optimize_on_insert_zookeeper/ast.json b/parser/testdata/01560_optimize_on_insert_zookeeper/ast.json new file mode 100644 index 0000000000..27d4ee9934 --- /dev/null +++ b/parser/testdata/01560_optimize_on_insert_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "empty1", + "tables": [ + { + "table": "empty1" + } + ] +} diff --git a/parser/testdata/01561_aggregate_functions_of_key_with_join/ast.json b/parser/testdata/01561_aggregate_functions_of_key_with_join/ast.json new file mode 100644 index 0000000000..bb977abdf9 --- /dev/null +++ b/parser/testdata/01561_aggregate_functions_of_key_with_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_aggregators_of_group_by_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01562_agg_null_for_empty_ahead/ast.json b/parser/testdata/01562_agg_null_for_empty_ahead/ast.json new file mode 100644 index 0000000000..85a3aa1e2d --- /dev/null +++ b/parser/testdata/01562_agg_null_for_empty_ahead/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumMerge", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sumState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01566_negate_formatting/ast.json b/parser/testdata/01566_negate_formatting/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01566_negate_formatting/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01567_system_processes_current_database/ast.json b/parser/testdata/01567_system_processes_current_database/ast.json new file mode 100644 index 0000000000..b8f1a28fb2 --- /dev/null +++ b/parser/testdata/01567_system_processes_current_database/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "processes" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "current_database" + ] + }, + "op": "=", + "right": { + "name": "currentDatabase" + } + } + } + ] +} diff --git a/parser/testdata/01570_aggregator_combinator_simple_state/ast.json b/parser/testdata/01570_aggregator_combinator_simple_state/ast.json new file mode 100644 index 0000000000..6a12c0c91d --- /dev/null +++ b/parser/testdata/01570_aggregator_combinator_simple_state/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "with": [ + { + "name": "c", + "query": { + "name": "anySimpleState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + } + ], + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "c" + ] + } + ] + }, + { + "parts": [ + "c" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01571_window_functions/ast.json b/parser/testdata/01571_window_functions/ast.json new file mode 100644 index 0000000000..3950366eb6 --- /dev/null +++ b/parser/testdata/01571_window_functions/ast.json @@ -0,0 +1,58 @@ +{ + "table": "order_by_const", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt64" + } + }, + { + "name": "b", + "type": { + "name": "UInt64" + } + }, + { + "name": "c", + "type": { + "name": "UInt64" + } + }, + { + "name": "d", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/01575_disable_detach_table_of_dictionary/ast.json b/parser/testdata/01575_disable_detach_table_of_dictionary/ast.json new file mode 100644 index 0000000000..71d7af0a54 --- /dev/null +++ b/parser/testdata/01575_disable_detach_table_of_dictionary/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "database_for_dict", + "drop_database": true +} diff --git a/parser/testdata/01576_alias_column_rewrite/ast.json b/parser/testdata/01576_alias_column_rewrite/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/01576_alias_column_rewrite/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/01576_if_null_external_aggregation/ast.json b/parser/testdata/01576_if_null_external_aggregation/ast.json new file mode 100644 index 0000000000..f9d8ffd29c --- /dev/null +++ b/parser/testdata/01576_if_null_external_aggregation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 200000000 + } + } + ] +} diff --git a/parser/testdata/01579_date_datetime_index_comparison/ast.json b/parser/testdata/01579_date_datetime_index_comparison/ast.json new file mode 100644 index 0000000000..2340f74ede --- /dev/null +++ b/parser/testdata/01579_date_datetime_index_comparison/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_index", + "tables": [ + { + "table": "test_index" + } + ] +} diff --git a/parser/testdata/01580_column_const_comparision/ast.json b/parser/testdata/01580_column_const_comparision/ast.json new file mode 100644 index 0000000000..66a661989e --- /dev/null +++ b/parser/testdata/01580_column_const_comparision/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "1111" + }, + "alias": "name" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers_mt" + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "name" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 10000 + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01581_deduplicate_by_columns_replicated_long/ast.json b/parser/testdata/01581_deduplicate_by_columns_replicated_long/ast.json new file mode 100644 index 0000000000..c8a572ba05 --- /dev/null +++ b/parser/testdata/01581_deduplicate_by_columns_replicated_long/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "replicated_deduplicate_by_columns_r1", + "tables": [ + { + "table": "replicated_deduplicate_by_columns_r1" + } + ], + "sync": true +} diff --git a/parser/testdata/01582_any_join_supertype/ast.json b/parser/testdata/01582_any_join_supertype/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/01582_any_join_supertype/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/01582_distinct_subquery_groupby/ast.json b/parser/testdata/01582_distinct_subquery_groupby/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01582_distinct_subquery_groupby/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01582_move_to_prewhere_compact_parts/ast.json b/parser/testdata/01582_move_to_prewhere_compact_parts/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/01582_move_to_prewhere_compact_parts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01583_const_column_in_set_index/ast.json b/parser/testdata/01583_const_column_in_set_index/ast.json new file mode 100644 index 0000000000..fd9065ddd4 --- /dev/null +++ b/parser/testdata/01583_const_column_in_set_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "insub", + "tables": [ + { + "table": "insub" + } + ] +} diff --git a/parser/testdata/01584_distributed_buffer_cannot_find_column/ast.json b/parser/testdata/01584_distributed_buffer_cannot_find_column/ast.json new file mode 100644 index 0000000000..ab13d89b54 --- /dev/null +++ b/parser/testdata/01584_distributed_buffer_cannot_find_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "realtimedrep", + "tables": [ + { + "table": "realtimedrep" + } + ] +} diff --git a/parser/testdata/01585_fuzz_bits_with_bugfix/ast.json b/parser/testdata/01585_fuzz_bits_with_bugfix/ast.json new file mode 100644 index 0000000000..77ba433881 --- /dev/null +++ b/parser/testdata/01585_fuzz_bits_with_bugfix/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "fuzzBits", + "arguments": [ + { + "type": "String", + "value": "stringstring" + }, + { + "type": "Float", + "value": 0.5 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01585_use_index_for_global_in/ast.json b/parser/testdata/01585_use_index_for_global_in/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/01585_use_index_for_global_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01585_use_index_for_global_in_with_null/ast.json b/parser/testdata/01585_use_index_for_global_in_with_null/ast.json new file mode 100644 index 0000000000..c2add3d6ae --- /dev/null +++ b/parser/testdata/01585_use_index_for_global_in_with_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "xp", + "tables": [ + { + "table": "xp" + } + ] +} diff --git a/parser/testdata/01586_columns_pruning/ast.json b/parser/testdata/01586_columns_pruning/ast.json new file mode 100644 index 0000000000..aeeced93bd --- /dev/null +++ b/parser/testdata/01586_columns_pruning/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 10000000000 + } + } + ] +} diff --git a/parser/testdata/01586_replicated_mutations_empty_partition/ast.json b/parser/testdata/01586_replicated_mutations_empty_partition/ast.json new file mode 100644 index 0000000000..a6bc1d819f --- /dev/null +++ b/parser/testdata/01586_replicated_mutations_empty_partition/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "replicated_mutations_empty_partitions", + "tables": [ + { + "table": "replicated_mutations_empty_partitions" + } + ], + "sync": true +} diff --git a/parser/testdata/01586_storage_join_low_cardinality_key/ast.json b/parser/testdata/01586_storage_join_low_cardinality_key/ast.json new file mode 100644 index 0000000000..7bcea79831 --- /dev/null +++ b/parser/testdata/01586_storage_join_low_cardinality_key/ast.json @@ -0,0 +1,38 @@ +{ + "table": "low_card", + "columns": [ + { + "name": "lc", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Join", + "parameters": [ + { + "parts": [ + "ANY" + ] + }, + { + "parts": [ + "LEFT" + ] + }, + { + "parts": [ + "lc" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/01590_countSubstrings/ast.json b/parser/testdata/01590_countSubstrings/ast.json new file mode 100644 index 0000000000..b5b4669fce --- /dev/null +++ b/parser/testdata/01590_countSubstrings/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "" + } + ] + } + ] +} diff --git a/parser/testdata/01591_window_functions/ast.json b/parser/testdata/01591_window_functions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01591_window_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01592_length_map/ast.json b/parser/testdata/01592_length_map/ast.json new file mode 100644 index 0000000000..7b2b535d74 --- /dev/null +++ b/parser/testdata/01592_length_map/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "length", + "arguments": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01592_long_window_functions1/ast.json b/parser/testdata/01592_long_window_functions1/ast.json new file mode 100644 index 0000000000..cff704d237 --- /dev/null +++ b/parser/testdata/01592_long_window_functions1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_sort", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01592_toUnixTimestamp_Date/ast.json b/parser/testdata/01592_toUnixTimestamp_Date/ast.json new file mode 100644 index 0000000000..e64a464d57 --- /dev/null +++ b/parser/testdata/01592_toUnixTimestamp_Date/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUnixTimestamp", + "arguments": [ + { + "name": "makeDate", + "arguments": [ + { + "type": "Integer", + "value": 2023 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01592_window_functions/ast.json b/parser/testdata/01592_window_functions/ast.json new file mode 100644 index 0000000000..7253082313 --- /dev/null +++ b/parser/testdata/01592_window_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "product_groups", + "tables": [ + { + "table": "product_groups" + } + ] +} diff --git a/parser/testdata/01593_insert_settings/ast.json b/parser/testdata/01593_insert_settings/ast.json new file mode 100644 index 0000000000..faa88f0b23 --- /dev/null +++ b/parser/testdata/01593_insert_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01593", + "tables": [ + { + "table": "data_01593" + } + ] +} diff --git a/parser/testdata/01594_storage_join_uuid/ast.json b/parser/testdata/01594_storage_join_uuid/ast.json new file mode 100644 index 0000000000..db8b6eb436 --- /dev/null +++ b/parser/testdata/01594_storage_join_uuid/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "joint", + "tables": [ + { + "table": "joint" + } + ] +} diff --git a/parser/testdata/01595_countMatches/ast.json b/parser/testdata/01595_countMatches/ast.json new file mode 100644 index 0000000000..6c4a0b8a55 --- /dev/null +++ b/parser/testdata/01595_countMatches/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "count_matches_stop_at_empty_match", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01596_full_join_chertus/ast.json b/parser/testdata/01596_full_join_chertus/ast.json new file mode 100644 index 0000000000..9e1f67d317 --- /dev/null +++ b/parser/testdata/01596_full_join_chertus/ast.json @@ -0,0 +1,234 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "js1", + "k" + ] + } + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "js2", + "k" + ] + } + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "js1", + "s" + ] + } + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "js2", + "s" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "k" + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "js1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ], + "alias": "k" + }, + { + "name": "toString", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ], + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "js2" + }, + "join": { + "type": "FULL", + "on": { + "left": { + "parts": [ + "js1", + "k" + ] + }, + "op": "=", + "right": { + "parts": [ + "js2", + "k" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "js1", + "k" + ] + } + }, + { + "expression": { + "parts": [ + "js2", + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01596_null_as_default_nullable/ast.json b/parser/testdata/01596_null_as_default_nullable/ast.json new file mode 100644 index 0000000000..206bf4909e --- /dev/null +++ b/parser/testdata/01596_null_as_default_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_null_as_default", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01596_setting_limit_offset/ast.json b/parser/testdata/01596_setting_limit_offset/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01596_setting_limit_offset/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01598_memory_limit_zeros/ast.json b/parser/testdata/01598_memory_limit_zeros/ast.json new file mode 100644 index 0000000000..b1961a34d2 --- /dev/null +++ b/parser/testdata/01598_memory_limit_zeros/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_untracked_memory", + "value": { + "type": "Integer", + "value": 1000000 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 40 + } + } + ] +} diff --git a/parser/testdata/01600_encode_XML/ast.json b/parser/testdata/01600_encode_XML/ast.json new file mode 100644 index 0000000000..cf0d91c977 --- /dev/null +++ b/parser/testdata/01600_encode_XML/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "encodeXMLComponent", + "arguments": [ + { + "type": "String", + "value": "Hello, \"world\"!" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01600_min_max_compress_block_size/ast.json b/parser/testdata/01600_min_max_compress_block_size/ast.json new file mode 100644 index 0000000000..227c0cdf9b --- /dev/null +++ b/parser/testdata/01600_min_max_compress_block_size/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ms", + "tables": [ + { + "table": "ms" + } + ] +} diff --git a/parser/testdata/01600_multiple_left_join_with_aliases/ast.json b/parser/testdata/01600_multiple_left_join_with_aliases/ast.json new file mode 100644 index 0000000000..e021aaf981 --- /dev/null +++ b/parser/testdata/01600_multiple_left_join_with_aliases/ast.json @@ -0,0 +1,60 @@ +{ + "table": "base", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "id2", + "type": { + "name": "UInt64" + } + }, + { + "name": "d", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "id2" + ] + }, + { + "parts": [ + "d" + ] + } + ] + } + ], + "partition_by": { + "parts": [ + "d" + ] + } +} diff --git a/parser/testdata/01600_remerge_sort_lowered_memory_bytes_ratio/ast.json b/parser/testdata/01600_remerge_sort_lowered_memory_bytes_ratio/ast.json new file mode 100644 index 0000000000..a0e1d0f02e --- /dev/null +++ b/parser/testdata/01600_remerge_sort_lowered_memory_bytes_ratio/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "String", + "value": "200Mi" + } + } + ] +} diff --git a/parser/testdata/01600_select_in_different_types/ast.json b/parser/testdata/01600_select_in_different_types/ast.json new file mode 100644 index 0000000000..1d51fc87d2 --- /dev/null +++ b/parser/testdata/01600_select_in_different_types/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01601_accurate_cast/ast.json b/parser/testdata/01601_accurate_cast/ast.json new file mode 100644 index 0000000000..63f6006587 --- /dev/null +++ b/parser/testdata/01601_accurate_cast/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "accurateCast", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "String", + "value": "UInt8" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01601_detach_permanently/ast.json b/parser/testdata/01601_detach_permanently/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01601_detach_permanently/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01602_array_aggregation/ast.json b/parser/testdata/01602_array_aggregation/ast.json new file mode 100644 index 0000000000..6de2b5b5ef --- /dev/null +++ b/parser/testdata/01602_array_aggregation/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Array min " + }, + { + "name": "arrayMin", + "arguments": [ + { + "name": "array", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01602_insert_into_table_function_cluster/ast.json b/parser/testdata/01602_insert_into_table_function_cluster/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/01602_insert_into_table_function_cluster/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/01602_runningConcurrency/ast.json b/parser/testdata/01602_runningConcurrency/ast.json new file mode 100644 index 0000000000..3d5f89f17c --- /dev/null +++ b/parser/testdata/01602_runningConcurrency/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Invocation with Date columns" + } + ] + } + ] +} diff --git a/parser/testdata/01602_temporary_table_in_system_tables/ast.json b/parser/testdata/01602_temporary_table_in_system_tables/ast.json new file mode 100644 index 0000000000..af600bb0f2 --- /dev/null +++ b/parser/testdata/01602_temporary_table_in_system_tables/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test_01602a", + "tables": [ + { + "table": "test_01602a" + } + ], + "temporary": true +} diff --git a/parser/testdata/01603_decimal_mult_float/ast.json b/parser/testdata/01603_decimal_mult_float/ast.json new file mode 100644 index 0000000000..2ed1ecbc99 --- /dev/null +++ b/parser/testdata/01603_decimal_mult_float/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_arithmetic_operations_in_aggregate_functions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01603_insert_select_too_many_parts/ast.json b/parser/testdata/01603_insert_select_too_many_parts/ast.json new file mode 100644 index 0000000000..de6006cfc0 --- /dev/null +++ b/parser/testdata/01603_insert_select_too_many_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "too_many_parts", + "tables": [ + { + "table": "too_many_parts" + } + ] +} diff --git a/parser/testdata/01603_read_with_backoff_bug/ast.json b/parser/testdata/01603_read_with_backoff_bug/ast.json new file mode 100644 index 0000000000..e0c20bb11b --- /dev/null +++ b/parser/testdata/01603_read_with_backoff_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_filesystem_cache", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01603_remove_column_ttl/ast.json b/parser/testdata/01603_remove_column_ttl/ast.json new file mode 100644 index 0000000000..274c4fd16f --- /dev/null +++ b/parser/testdata/01603_remove_column_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_column_ttl", + "tables": [ + { + "table": "table_with_column_ttl" + } + ] +} diff --git a/parser/testdata/01603_rename_overwrite_bug/ast.json b/parser/testdata/01603_rename_overwrite_bug/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01603_rename_overwrite_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01605_adaptive_granularity_block_borders/ast.json b/parser/testdata/01605_adaptive_granularity_block_borders/ast.json new file mode 100644 index 0000000000..b0c9acd112 --- /dev/null +++ b/parser/testdata/01605_adaptive_granularity_block_borders/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_uncompressed_cache", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01605_dictinct_two_level/ast.json b/parser/testdata/01605_dictinct_two_level/ast.json new file mode 100644 index 0000000000..542374dceb --- /dev/null +++ b/parser/testdata/01605_dictinct_two_level/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "group_by_two_level_threshold_bytes", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01605_key_condition_enum_int/ast.json b/parser/testdata/01605_key_condition_enum_int/ast.json new file mode 100644 index 0000000000..9d83278d30 --- /dev/null +++ b/parser/testdata/01605_key_condition_enum_int/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum", + "tables": [ + { + "table": "enum" + } + ] +} diff --git a/parser/testdata/01605_skip_idx_compact_parts/ast.json b/parser/testdata/01605_skip_idx_compact_parts/ast.json new file mode 100644 index 0000000000..a037b0b51b --- /dev/null +++ b/parser/testdata/01605_skip_idx_compact_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "skip_idx_comp_parts", + "tables": [ + { + "table": "skip_idx_comp_parts" + } + ] +} diff --git a/parser/testdata/01606_merge_from_wide_to_compact/ast.json b/parser/testdata/01606_merge_from_wide_to_compact/ast.json new file mode 100644 index 0000000000..47029394f7 --- /dev/null +++ b/parser/testdata/01606_merge_from_wide_to_compact/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "wide_to_comp", + "tables": [ + { + "table": "wide_to_comp" + } + ] +} diff --git a/parser/testdata/01611_string_to_low_cardinality_key_alter/ast.json b/parser/testdata/01611_string_to_low_cardinality_key_alter/ast.json new file mode 100644 index 0000000000..a9af433186 --- /dev/null +++ b/parser/testdata/01611_string_to_low_cardinality_key_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_lc_key", + "tables": [ + { + "table": "table_with_lc_key" + } + ] +} diff --git a/parser/testdata/01615_random_one_shard_insertion/ast.json b/parser/testdata/01615_random_one_shard_insertion/ast.json new file mode 100644 index 0000000000..093b2a33f5 --- /dev/null +++ b/parser/testdata/01615_random_one_shard_insertion/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "shard_0", + "create_database": true +} diff --git a/parser/testdata/01615_two_args_function_index_fix/ast.json b/parser/testdata/01615_two_args_function_index_fix/ast.json new file mode 100644 index 0000000000..24e32ad179 --- /dev/null +++ b/parser/testdata/01615_two_args_function_index_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bad_date_time", + "tables": [ + { + "table": "bad_date_time" + } + ] +} diff --git a/parser/testdata/01616_untuple_access_field/ast.json b/parser/testdata/01616_untuple_access_field/ast.json new file mode 100644 index 0000000000..d9887860af --- /dev/null +++ b/parser/testdata/01616_untuple_access_field/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "untuple", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01620_fix_simple_state_arg_type/ast.json b/parser/testdata/01620_fix_simple_state_arg_type/ast.json new file mode 100644 index 0000000000..28815e7bf1 --- /dev/null +++ b/parser/testdata/01620_fix_simple_state_arg_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ay", + "tables": [ + { + "table": "ay" + } + ] +} diff --git a/parser/testdata/01621_decode_XML/ast.json b/parser/testdata/01621_decode_XML/ast.json new file mode 100644 index 0000000000..d2c96b67b8 --- /dev/null +++ b/parser/testdata/01621_decode_XML/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "decodeXMLComponent", + "arguments": [ + { + "type": "String", + "value": "Hello, \u0026quot;world\u0026quot;!" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01621_sort_after_join_pipeline_stuck/ast.json b/parser/testdata/01621_sort_after_join_pipeline_stuck/ast.json new file mode 100644 index 0000000000..898837bdf6 --- /dev/null +++ b/parser/testdata/01621_sort_after_join_pipeline_stuck/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_positional_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01621_summap_check_types/ast.json b/parser/testdata/01621_summap_check_types/ast.json new file mode 100644 index 0000000000..ed0c77a5ed --- /dev/null +++ b/parser/testdata/01621_summap_check_types/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "initializeAggregation", + "arguments": [ + { + "type": "String", + "value": "sumMap" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01622_byte_size/ast.json b/parser/testdata/01622_byte_size/ast.json new file mode 100644 index 0000000000..b5b4669fce --- /dev/null +++ b/parser/testdata/01622_byte_size/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "" + } + ] + } + ] +} diff --git a/parser/testdata/01622_codec_zstd_long/ast.json b/parser/testdata/01622_codec_zstd_long/ast.json new file mode 100644 index 0000000000..209fd34c55 --- /dev/null +++ b/parser/testdata/01622_codec_zstd_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "zstd_1_00", + "tables": [ + { + "table": "zstd_1_00" + } + ] +} diff --git a/parser/testdata/01622_constraints_simple_optimization/ast.json b/parser/testdata/01622_constraints_simple_optimization/ast.json new file mode 100644 index 0000000000..4da17cacbc --- /dev/null +++ b/parser/testdata/01622_constraints_simple_optimization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "constraint_test_assumption", + "tables": [ + { + "table": "constraint_test_assumption" + } + ] +} diff --git a/parser/testdata/01622_constraints_where_optimization/ast.json b/parser/testdata/01622_constraints_where_optimization/ast.json new file mode 100644 index 0000000000..63aa89acae --- /dev/null +++ b/parser/testdata/01622_constraints_where_optimization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "convert_query_to_cnf", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01622_defaults_for_file_engine/ast.json b/parser/testdata/01622_defaults_for_file_engine/ast.json new file mode 100644 index 0000000000..d85ee691dc --- /dev/null +++ b/parser/testdata/01622_defaults_for_file_engine/ast.json @@ -0,0 +1,22 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "data1622.json" + ] + }, + { + "parts": [ + "TSV" + ] + }, + { + "parts": [ + "value String" + ] + } + ] + } +} diff --git a/parser/testdata/01622_multiple_ttls/ast.json b/parser/testdata/01622_multiple_ttls/ast.json new file mode 100644 index 0000000000..a1a1f6ec75 --- /dev/null +++ b/parser/testdata/01622_multiple_ttls/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TTL WHERE" + } + ] + } + ] +} diff --git a/parser/testdata/01623_byte_size_const/ast.json b/parser/testdata/01623_byte_size_const/ast.json new file mode 100644 index 0000000000..8322809aed --- /dev/null +++ b/parser/testdata/01623_byte_size_const/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "byteSize", + "arguments": [ + { + "type": "Integer", + "value": 123 + }, + { + "type": "Float", + "value": 456.7 + } + ], + "alias": "x" + }, + { + "name": "isConstant", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01623_constraints_column_swap/ast.json b/parser/testdata/01623_constraints_column_swap/ast.json new file mode 100644 index 0000000000..63aa89acae --- /dev/null +++ b/parser/testdata/01623_constraints_column_swap/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "convert_query_to_cnf", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01625_constraints_index_append/ast.json b/parser/testdata/01625_constraints_index_append/ast.json new file mode 100644 index 0000000000..0ddf42e2db --- /dev/null +++ b/parser/testdata/01625_constraints_index_append/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "db_memory_01625", + "drop_database": true +} diff --git a/parser/testdata/01626_cnf_test/ast.json b/parser/testdata/01626_cnf_test/ast.json new file mode 100644 index 0000000000..63aa89acae --- /dev/null +++ b/parser/testdata/01626_cnf_test/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "convert_query_to_cnf", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01630_disallow_floating_point_as_partition_key/ast.json b/parser/testdata/01630_disallow_floating_point_as_partition_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01630_disallow_floating_point_as_partition_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01630_simple_aggregate_all_functions_in_aggregating_merge_tree/ast.json b/parser/testdata/01630_simple_aggregate_all_functions_in_aggregating_merge_tree/ast.json new file mode 100644 index 0000000000..379cd4a0e4 --- /dev/null +++ b/parser/testdata/01630_simple_aggregate_all_functions_in_aggregating_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple_agf_summing_mt", + "tables": [ + { + "table": "simple_agf_summing_mt" + } + ] +} diff --git a/parser/testdata/01630_simple_aggregate_all_functions_in_summing_merge_tree/ast.json b/parser/testdata/01630_simple_aggregate_all_functions_in_summing_merge_tree/ast.json new file mode 100644 index 0000000000..82057f4f2c --- /dev/null +++ b/parser/testdata/01630_simple_aggregate_all_functions_in_summing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple_agf_aggregating_mt", + "tables": [ + { + "table": "simple_agf_aggregating_mt" + } + ] +} diff --git a/parser/testdata/01630_simple_aggregate_function_in_summing_merge_tree/ast.json b/parser/testdata/01630_simple_aggregate_function_in_summing_merge_tree/ast.json new file mode 100644 index 0000000000..d418e5f195 --- /dev/null +++ b/parser/testdata/01630_simple_aggregate_function_in_summing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_smt", + "tables": [ + { + "table": "test_smt" + } + ] +} diff --git a/parser/testdata/01631_date_overflow_as_partition_key/ast.json b/parser/testdata/01631_date_overflow_as_partition_key/ast.json new file mode 100644 index 0000000000..ec65cfbf2f --- /dev/null +++ b/parser/testdata/01631_date_overflow_as_partition_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dt_overflow", + "tables": [ + { + "table": "dt_overflow" + } + ] +} diff --git a/parser/testdata/01632_group_array_msan/ast.json b/parser/testdata/01632_group_array_msan/ast.json new file mode 100644 index 0000000000..78964fdba7 --- /dev/null +++ b/parser/testdata/01632_group_array_msan/ast.json @@ -0,0 +1,96 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArrayMerge", + "parameters": [ + { + "type": "Integer", + "value": 1048577 + } + ], + "arguments": [ + { + "left": { + "parts": [ + "y" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 1048576 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupArrayState", + "parameters": [ + { + "type": "Integer", + "value": 9223372036854775807 + } + ], + "arguments": [ + { + "parts": [ + "x" + ] + } + ], + "alias": "y" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1048576 + }, + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01632_max_partitions_to_read/ast.json b/parser/testdata/01632_max_partitions_to_read/ast.json new file mode 100644 index 0000000000..c7b5da8629 --- /dev/null +++ b/parser/testdata/01632_max_partitions_to_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "p", + "tables": [ + { + "table": "p" + } + ] +} diff --git a/parser/testdata/01632_nullable_string_type_convert_to_decimal_type/ast.json b/parser/testdata/01632_nullable_string_type_convert_to_decimal_type/ast.json new file mode 100644 index 0000000000..d4be2b74dd --- /dev/null +++ b/parser/testdata/01632_nullable_string_type_convert_to_decimal_type/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "42.1" + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 2 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/01632_select_all_syntax/ast.json b/parser/testdata/01632_select_all_syntax/ast.json new file mode 100644 index 0000000000..480274f392 --- /dev/null +++ b/parser/testdata/01632_select_all_syntax/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "a" + } + ] + } + ] +} diff --git a/parser/testdata/01633_limit_fuzz/ast.json b/parser/testdata/01633_limit_fuzz/ast.json new file mode 100644 index 0000000000..6448671759 --- /dev/null +++ b/parser/testdata/01633_limit_fuzz/ast.json @@ -0,0 +1,66 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100000 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "k" + ] + } + }, + { + "expression": { + "parts": [ + "number" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1023 + }, + "offset": { + "type": "Integer", + "value": 1025 + }, + "format": { + "parts": [ + "Values" + ] + } + } + ] +} diff --git a/parser/testdata/01634_summap_nullable/ast.json b/parser/testdata/01634_summap_nullable/ast.json new file mode 100644 index 0000000000..f695d28169 --- /dev/null +++ b/parser/testdata/01634_summap_nullable/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumMap", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01634_uuid_fuzz/ast.json b/parser/testdata/01634_uuid_fuzz/ast.json new file mode 100644 index 0000000000..19d001a92f --- /dev/null +++ b/parser/testdata/01634_uuid_fuzz/ast.json @@ -0,0 +1,20 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUUID", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Float", + "value": 1.1 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01635_sum_map_fuzz/ast.json b/parser/testdata/01635_sum_map_fuzz/ast.json new file mode 100644 index 0000000000..16b566fb35 --- /dev/null +++ b/parser/testdata/01635_sum_map_fuzz/ast.json @@ -0,0 +1,80 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "finalizeAggregation", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "initializeAggregation", + "arguments": [ + { + "type": "String", + "value": "sumMapState" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01636_nullable_fuzz2/ast.json b/parser/testdata/01636_nullable_fuzz2/ast.json new file mode 100644 index 0000000000..a1cc3ddcd5 --- /dev/null +++ b/parser/testdata/01636_nullable_fuzz2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "open_events_tmp", + "tables": [ + { + "table": "open_events_tmp" + } + ] +} diff --git a/parser/testdata/01637_nullable_fuzz3/ast.json b/parser/testdata/01637_nullable_fuzz3/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01637_nullable_fuzz3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01638_div_mod_ambiguities/ast.json b/parser/testdata/01638_div_mod_ambiguities/ast.json new file mode 100644 index 0000000000..66de865bf9 --- /dev/null +++ b/parser/testdata/01638_div_mod_ambiguities/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "DIV" + ], + "alias": "MOD" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "DIV" + } + ] + } + ] + } + } + } + } + ] + }, + "format": { + "parts": [ + "TSVWithNames" + ] + } + } + ] +} diff --git a/parser/testdata/01639_distributed_sync_insert_zero_rows/ast.json b/parser/testdata/01639_distributed_sync_insert_zero_rows/ast.json new file mode 100644 index 0000000000..fdd46f73a7 --- /dev/null +++ b/parser/testdata/01639_distributed_sync_insert_zero_rows/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local", + "tables": [ + { + "table": "local" + } + ] +} diff --git a/parser/testdata/01640_distributed_async_insert_compression/ast.json b/parser/testdata/01640_distributed_async_insert_compression/ast.json new file mode 100644 index 0000000000..fdd46f73a7 --- /dev/null +++ b/parser/testdata/01640_distributed_async_insert_compression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local", + "tables": [ + { + "table": "local" + } + ] +} diff --git a/parser/testdata/01640_marks_corruption_regression/ast.json b/parser/testdata/01640_marks_corruption_regression/ast.json new file mode 100644 index 0000000000..b3a04c1276 --- /dev/null +++ b/parser/testdata/01640_marks_corruption_regression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "adaptive_table", + "tables": [ + { + "table": "adaptive_table" + } + ] +} diff --git a/parser/testdata/01641_memory_tracking_insert_optimize/ast.json b/parser/testdata/01641_memory_tracking_insert_optimize/ast.json new file mode 100644 index 0000000000..35aec348c5 --- /dev/null +++ b/parser/testdata/01641_memory_tracking_insert_optimize/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01641", + "tables": [ + { + "table": "data_01641" + } + ] +} diff --git a/parser/testdata/01643_merge_tree_fsync_smoke/ast.json b/parser/testdata/01643_merge_tree_fsync_smoke/ast.json new file mode 100644 index 0000000000..4581e31a8c --- /dev/null +++ b/parser/testdata/01643_merge_tree_fsync_smoke/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01643", + "tables": [ + { + "table": "data_01643" + } + ] +} diff --git a/parser/testdata/01643_replicated_merge_tree_fsync_smoke/ast.json b/parser/testdata/01643_replicated_merge_tree_fsync_smoke/ast.json new file mode 100644 index 0000000000..4f46873637 --- /dev/null +++ b/parser/testdata/01643_replicated_merge_tree_fsync_smoke/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "error" + } + } + ] +} diff --git a/parser/testdata/01644_distributed_async_insert_fsync_smoke/ast.json b/parser/testdata/01644_distributed_async_insert_fsync_smoke/ast.json new file mode 100644 index 0000000000..37fbae179c --- /dev/null +++ b/parser/testdata/01644_distributed_async_insert_fsync_smoke/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dist_01643", + "tables": [ + { + "table": "dist_01643" + } + ] +} diff --git a/parser/testdata/01646_fix_window_funnel_inconistency/ast.json b/parser/testdata/01646_fix_window_funnel_inconistency/ast.json new file mode 100644 index 0000000000..19918d5cb0 --- /dev/null +++ b/parser/testdata/01646_fix_window_funnel_inconistency/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "trend", + "tables": [ + { + "table": "trend" + } + ] +} diff --git a/parser/testdata/01646_rewrite_sum_if/ast.json b/parser/testdata/01646_rewrite_sum_if/ast.json new file mode 100644 index 0000000000..a3f8c4a6c0 --- /dev/null +++ b/parser/testdata/01646_rewrite_sum_if/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_rewrite_sum_if_to_count_if", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01646_rewrite_sum_if_bug/ast.json b/parser/testdata/01646_rewrite_sum_if_bug/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01646_rewrite_sum_if_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01646_system_restart_replicas_smoke/ast.json b/parser/testdata/01646_system_restart_replicas_smoke/ast.json new file mode 100644 index 0000000000..7c69286a51 --- /dev/null +++ b/parser/testdata/01646_system_restart_replicas_smoke/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01646", + "tables": [ + { + "table": "data_01646" + } + ] +} diff --git a/parser/testdata/01648_mutations_and_escaping/ast.json b/parser/testdata/01648_mutations_and_escaping/ast.json new file mode 100644 index 0000000000..5b356ff14d --- /dev/null +++ b/parser/testdata/01648_mutations_and_escaping/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mutations_and_escaping_1648", + "tables": [ + { + "table": "mutations_and_escaping_1648" + } + ] +} diff --git a/parser/testdata/01649_with_alias_key_condition/ast.json b/parser/testdata/01649_with_alias_key_condition/ast.json new file mode 100644 index 0000000000..7d3348596b --- /dev/null +++ b/parser/testdata/01649_with_alias_key_condition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alias_key_condition", + "tables": [ + { + "table": "alias_key_condition" + } + ] +} diff --git a/parser/testdata/01650_drop_part_and_deduplication_zookeeper_long/ast.json b/parser/testdata/01650_drop_part_and_deduplication_zookeeper_long/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/01650_drop_part_and_deduplication_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01650_fetch_patition_with_macro_in_zk_path_long/ast.json b/parser/testdata/01650_fetch_patition_with_macro_in_zk_path_long/ast.json new file mode 100644 index 0000000000..cbfe2640dd --- /dev/null +++ b/parser/testdata/01650_fetch_patition_with_macro_in_zk_path_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01640", + "tables": [ + { + "table": "test_01640" + } + ] +} diff --git a/parser/testdata/01651_bugs_from_15889/ast.json b/parser/testdata/01651_bugs_from_15889/ast.json new file mode 100644 index 0000000000..c2add3d6ae --- /dev/null +++ b/parser/testdata/01651_bugs_from_15889/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "xp", + "tables": [ + { + "table": "xp" + } + ] +} diff --git a/parser/testdata/01651_lc_insert_tiny_log_1/ast.json b/parser/testdata/01651_lc_insert_tiny_log_1/ast.json new file mode 100644 index 0000000000..21b5a4c67b --- /dev/null +++ b/parser/testdata/01651_lc_insert_tiny_log_1/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "31M" + } + } + ] +} diff --git a/parser/testdata/01651_lc_insert_tiny_log_2/ast.json b/parser/testdata/01651_lc_insert_tiny_log_2/ast.json new file mode 100644 index 0000000000..21b5a4c67b --- /dev/null +++ b/parser/testdata/01651_lc_insert_tiny_log_2/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "31M" + } + } + ] +} diff --git a/parser/testdata/01651_lc_insert_tiny_log_3/ast.json b/parser/testdata/01651_lc_insert_tiny_log_3/ast.json new file mode 100644 index 0000000000..21b5a4c67b --- /dev/null +++ b/parser/testdata/01651_lc_insert_tiny_log_3/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "31M" + } + } + ] +} diff --git a/parser/testdata/01651_map_functions/ast.json b/parser/testdata/01651_map_functions/ast.json new file mode 100644 index 0000000000..a0169426a5 --- /dev/null +++ b/parser/testdata/01651_map_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_map", + "tables": [ + { + "table": "table_map" + } + ] +} diff --git a/parser/testdata/01652_ignore_and_low_cardinality/ast.json b/parser/testdata/01652_ignore_and_low_cardinality/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/01652_ignore_and_low_cardinality/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01652_ttl_old_syntax/ast.json b/parser/testdata/01652_ttl_old_syntax/ast.json new file mode 100644 index 0000000000..0ddbbca191 --- /dev/null +++ b/parser/testdata/01652_ttl_old_syntax/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_old_syntax", + "tables": [ + { + "table": "ttl_old_syntax" + } + ] +} diff --git a/parser/testdata/01653_tuple_hamming_distance_2/ast.json b/parser/testdata/01653_tuple_hamming_distance_2/ast.json new file mode 100644 index 0000000000..da362999ca --- /dev/null +++ b/parser/testdata/01653_tuple_hamming_distance_2/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleHammingDistance", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01655_agg_if_nullable/ast.json b/parser/testdata/01655_agg_if_nullable/ast.json new file mode 100644 index 0000000000..14adfc2e4a --- /dev/null +++ b/parser/testdata/01655_agg_if_nullable/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumIf", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01655_plan_optimizations_merge_filters/ast.json b/parser/testdata/01655_plan_optimizations_merge_filters/ast.json new file mode 100644 index 0000000000..c38a611be7 --- /dev/null +++ b/parser/testdata/01655_plan_optimizations_merge_filters/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_merge_filters", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01655_quarter_modificator_for_formatDateTime/ast.json b/parser/testdata/01655_quarter_modificator_for_formatDateTime/ast.json new file mode 100644 index 0000000000..309707502b --- /dev/null +++ b/parser/testdata/01655_quarter_modificator_for_formatDateTime/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2010-01-04" + } + ] + }, + { + "type": "String", + "value": "%Q" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01655_test_isnull_mysql_dialect/ast.json b/parser/testdata/01655_test_isnull_mysql_dialect/ast.json new file mode 100644 index 0000000000..7d86270a93 --- /dev/null +++ b/parser/testdata/01655_test_isnull_mysql_dialect/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ISNULL", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01655_window_functions_cume_dist/ast.json b/parser/testdata/01655_window_functions_cume_dist/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01655_window_functions_cume_dist/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01656_ipv4_bad_formatting/ast.json b/parser/testdata/01656_ipv4_bad_formatting/ast.json new file mode 100644 index 0000000000..1e99b589f5 --- /dev/null +++ b/parser/testdata/01656_ipv4_bad_formatting/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "1.1.1.1" + }, + { + "type": "String", + "value": "255.255.255.255" + } + ] + } + ], + "alias": "x" + }, + { + "name": "toIPv4", + "arguments": [ + { + "parts": [ + "x" + ] + } + ], + "alias": "y" + }, + { + "name": "toUInt32", + "arguments": [ + { + "parts": [ + "y" + ] + } + ], + "alias": "z" + } + ], + "format": { + "parts": [ + "PrettyCompactNoEscapes" + ] + } + } + ] +} diff --git a/parser/testdata/01656_sequence_next_node_distinct/ast.json b/parser/testdata/01656_sequence_next_node_distinct/ast.json new file mode 100644 index 0000000000..4cb25a9918 --- /dev/null +++ b/parser/testdata/01656_sequence_next_node_distinct/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_funnel_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01656_sequence_next_node_long/ast.json b/parser/testdata/01656_sequence_next_node_long/ast.json new file mode 100644 index 0000000000..4cb25a9918 --- /dev/null +++ b/parser/testdata/01656_sequence_next_node_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_funnel_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01656_test_hex_mysql_dialect/ast.json b/parser/testdata/01656_test_hex_mysql_dialect/ast.json new file mode 100644 index 0000000000..61d6fe9717 --- /dev/null +++ b/parser/testdata/01656_test_hex_mysql_dialect/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "HEX", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01656_test_query_log_factories_info/ast.json b/parser/testdata/01656_test_query_log_factories_info/ast.json new file mode 100644 index 0000000000..162d3742f3 --- /dev/null +++ b/parser/testdata/01656_test_query_log_factories_info/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "database_atomic_wait_for_drop_and_detach_synchronously", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01657_array_element_ubsan/ast.json b/parser/testdata/01657_array_element_ubsan/ast.json new file mode 100644 index 0000000000..2cad30b85a --- /dev/null +++ b/parser/testdata/01657_array_element_ubsan/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "type": "Array", + "value": [ + { + "parts": [ + "number" + ] + } + ] + }, + "index": { + "type": "Integer", + "value": 10000000000 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01657_test_toHour_mysql_compatibility/ast.json b/parser/testdata/01657_test_toHour_mysql_compatibility/ast.json new file mode 100644 index 0000000000..81de88918f --- /dev/null +++ b/parser/testdata/01657_test_toHour_mysql_compatibility/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "HOUR", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01658_test_base64Encode_mysql_compatibility/ast.json b/parser/testdata/01658_test_base64Encode_mysql_compatibility/ast.json new file mode 100644 index 0000000000..85aa4c5183 --- /dev/null +++ b/parser/testdata/01658_test_base64Encode_mysql_compatibility/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "TO_BASE64", + "arguments": [ + { + "type": "String", + "value": "test string" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01658_values_ubsan/ast.json b/parser/testdata/01658_values_ubsan/ast.json new file mode 100644 index 0000000000..f5fb175281 --- /dev/null +++ b/parser/testdata/01658_values_ubsan/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "VALUES", + "arguments": [ + { + "type": "String", + "value": "x UInt8, y UInt16" + }, + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "+", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "String", + "value": "Hello" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01659_h3_buffer_overflow/ast.json b/parser/testdata/01659_h3_buffer_overflow/ast.json new file mode 100644 index 0000000000..389d3d102c --- /dev/null +++ b/parser/testdata/01659_h3_buffer_overflow/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "length", + "arguments": [ + { + "name": "h3kRing", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "type": "Integer", + "value": 1000 + } + ] + } + ] + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01659_test_base64Decode_mysql_compatibility/ast.json b/parser/testdata/01659_test_base64Decode_mysql_compatibility/ast.json new file mode 100644 index 0000000000..2d6bed0087 --- /dev/null +++ b/parser/testdata/01659_test_base64Decode_mysql_compatibility/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "FROM_BASE64", + "arguments": [ + { + "type": "String", + "value": "dGVzdCBzdHJpbmc=" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01660_join_or_all/ast.json b/parser/testdata/01660_join_or_all/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/01660_join_or_all/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01660_join_or_any/ast.json b/parser/testdata/01660_join_or_any/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/01660_join_or_any/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01660_join_or_inner/ast.json b/parser/testdata/01660_join_or_inner/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/01660_join_or_inner/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01660_join_or_subqueries/ast.json b/parser/testdata/01660_join_or_subqueries/ast.json new file mode 100644 index 0000000000..6dabb796e8 --- /dev/null +++ b/parser/testdata/01660_join_or_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01660_second_extremes_bug/ast.json b/parser/testdata/01660_second_extremes_bug/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01660_second_extremes_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01660_sum_ubsan/ast.json b/parser/testdata/01660_sum_ubsan/ast.json new file mode 100644 index 0000000000..8d5b2036fe --- /dev/null +++ b/parser/testdata/01660_sum_ubsan/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 8000000000000000000 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 11 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01660_system_parts_smoke/ast.json b/parser/testdata/01660_system_parts_smoke/ast.json new file mode 100644 index 0000000000..45dfa14769 --- /dev/null +++ b/parser/testdata/01660_system_parts_smoke/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "parts" + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01660_test_toDayOfYear_mysql_compatibility/ast.json b/parser/testdata/01660_test_toDayOfYear_mysql_compatibility/ast.json new file mode 100644 index 0000000000..5d0047566e --- /dev/null +++ b/parser/testdata/01660_test_toDayOfYear_mysql_compatibility/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "DAYOFYEAR", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01661_arraySlice_ubsan/ast.json b/parser/testdata/01661_arraySlice_ubsan/ast.json new file mode 100644 index 0000000000..5b065e1c8e --- /dev/null +++ b/parser/testdata/01661_arraySlice_ubsan/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySlice", + "arguments": [ + { + "type": "Array", + "value": null + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01661_extract_all_groups_throw_fast/ast.json b/parser/testdata/01661_extract_all_groups_throw_fast/ast.json new file mode 100644 index 0000000000..6d0522ad8d --- /dev/null +++ b/parser/testdata/01661_extract_all_groups_throw_fast/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "abcdefghijklmnopqrstuvwxyz" + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 100 + } + } + ], + "alias": "haystack" + }, + { + "name": "extractAllGroupsHorizontal", + "arguments": [ + { + "parts": [ + "haystack" + ] + }, + { + "type": "String", + "value": "(\\w)" + } + ], + "alias": "matches" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1023 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01661_test_toDayOfWeek_mysql_compatibility/ast.json b/parser/testdata/01661_test_toDayOfWeek_mysql_compatibility/ast.json new file mode 100644 index 0000000000..78b05959d9 --- /dev/null +++ b/parser/testdata/01661_test_toDayOfWeek_mysql_compatibility/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "DAYOFWEEK", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01661_week_functions_string_args/ast.json b/parser/testdata/01661_week_functions_string_args/ast.json new file mode 100644 index 0000000000..41aa8284c0 --- /dev/null +++ b/parser/testdata/01661_week_functions_string_args/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Constant argument" + } + ] + } + ] +} diff --git a/parser/testdata/01662_date_ubsan/ast.json b/parser/testdata/01662_date_ubsan/ast.json new file mode 100644 index 0000000000..c63a04816e --- /dev/null +++ b/parser/testdata/01662_date_ubsan/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "addMinutes", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-01-01 00:00:00" + }, + { + "type": "String", + "value": "GMT" + } + ] + }, + { + "type": "Integer", + "value": 9223372036854775807 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01662_join_mixed/ast.json b/parser/testdata/01662_join_mixed/ast.json new file mode 100644 index 0000000000..ee7dab4697 --- /dev/null +++ b/parser/testdata/01662_join_mixed/ast.json @@ -0,0 +1,121 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "a" + }, + "alias": "a" + }, + { + "expr": { + "type": "String", + "value": "b" + }, + "alias": "b" + }, + { + "expr": { + "type": "Integer", + "value": 42 + }, + "alias": "forty_two" + } + ] + } + ] + } + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "a" + }, + "alias": "a" + }, + { + "expr": { + "type": "String", + "value": "b" + }, + "alias": "b" + }, + { + "expr": { + "type": "Integer", + "value": 42 + }, + "alias": "forty_two" + } + ] + } + ] + } + }, + "alias": "t2" + }, + "join": { + "type": "INNER", + "on": { + "left": { + "left": { + "parts": [ + "t1", + "b" + ] + }, + "op": "=", + "right": { + "parts": [ + "t2", + "a" + ] + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "t1", + "forty_two" + ] + }, + "op": "=", + "right": { + "parts": [ + "t2", + "forty_two" + ] + } + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01662_test_toDayOfMonth_mysql_compatibility/ast.json b/parser/testdata/01662_test_toDayOfMonth_mysql_compatibility/ast.json new file mode 100644 index 0000000000..59e1fe91fc --- /dev/null +++ b/parser/testdata/01662_test_toDayOfMonth_mysql_compatibility/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "DAYOFMONTH", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01663_aes_msan/ast.json b/parser/testdata/01663_aes_msan/ast.json new file mode 100644 index 0000000000..144eb83c95 --- /dev/null +++ b/parser/testdata/01663_aes_msan/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "encrypt", + "arguments": [ + { + "type": "String", + "value": "aes-128-cbc" + }, + { + "type": "String", + "value": "text" + }, + { + "type": "String", + "value": "keykeykeykeykeyk" + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01663_quantile_weighted_overflow/ast.json b/parser/testdata/01663_quantile_weighted_overflow/ast.json new file mode 100644 index 0000000000..e8099c537b --- /dev/null +++ b/parser/testdata/01663_quantile_weighted_overflow/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileExactWeighted", + "parameters": [ + { + "type": "Integer", + "value": 1 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 9223372036854775807 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 6 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01663_test_toDate_mysql_compatibility/ast.json b/parser/testdata/01663_test_toDate_mysql_compatibility/ast.json new file mode 100644 index 0000000000..18b2143476 --- /dev/null +++ b/parser/testdata/01663_test_toDate_mysql_compatibility/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "DATE", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01664_array_slice_ubsan/ast.json b/parser/testdata/01664_array_slice_ubsan/ast.json new file mode 100644 index 0000000000..7f7366ef44 --- /dev/null +++ b/parser/testdata/01664_array_slice_ubsan/ast.json @@ -0,0 +1,91 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySlice", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "type": "Null", + "value": null + } + ], + "alias": "y" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "6553.5" + }, + { + "name": "uniqState", + "arguments": [ + { + "type": "Null", + "value": null + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01664_ntoa_aton_mysql_compatibility/ast.json b/parser/testdata/01664_ntoa_aton_mysql_compatibility/ast.json new file mode 100644 index 0000000000..28a26c9900 --- /dev/null +++ b/parser/testdata/01664_ntoa_aton_mysql_compatibility/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "INET6_NTOA", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "2A0206B8000000000000000000000011" + } + ] + }, + { + "type": "Integer", + "value": 16 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01665_merge_tree_min_for_concurrent_read/ast.json b/parser/testdata/01665_merge_tree_min_for_concurrent_read/ast.json new file mode 100644 index 0000000000..76720f016e --- /dev/null +++ b/parser/testdata/01665_merge_tree_min_for_concurrent_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01655", + "tables": [ + { + "table": "data_01655" + } + ] +} diff --git a/parser/testdata/01665_running_difference_ubsan/ast.json b/parser/testdata/01665_running_difference_ubsan/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/01665_running_difference_ubsan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01665_substring_ubsan/ast.json b/parser/testdata/01665_substring_ubsan/ast.json new file mode 100644 index 0000000000..14f8d6c9c5 --- /dev/null +++ b/parser/testdata/01665_substring_ubsan/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "substringUTF8", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01666_date_lut_buffer_overflow/ast.json b/parser/testdata/01666_date_lut_buffer_overflow/ast.json new file mode 100644 index 0000000000..a8d63fd8f3 --- /dev/null +++ b/parser/testdata/01666_date_lut_buffer_overflow/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2105-12-31" + } + ] + }, + "op": "+", + "right": { + "value": { + "parts": [ + "number" + ] + }, + "unit": "MONTH" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 25000 + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01666_gcd_ubsan/ast.json b/parser/testdata/01666_gcd_ubsan/ast.json new file mode 100644 index 0000000000..a4fe1bebf0 --- /dev/null +++ b/parser/testdata/01666_gcd_ubsan/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "gcd", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01666_great_circle_distance_ubsan/ast.json b/parser/testdata/01666_great_circle_distance_ubsan/ast.json new file mode 100644 index 0000000000..d4cbe64a1a --- /dev/null +++ b/parser/testdata/01666_great_circle_distance_ubsan/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "greatCircleAngle", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01666_lcm_ubsan/ast.json b/parser/testdata/01666_lcm_ubsan/ast.json new file mode 100644 index 0000000000..d77b427e37 --- /dev/null +++ b/parser/testdata/01666_lcm_ubsan/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "lcm", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01668_test_toMonth_mysql_dialect/ast.json b/parser/testdata/01668_test_toMonth_mysql_dialect/ast.json new file mode 100644 index 0000000000..bad2382d2b --- /dev/null +++ b/parser/testdata/01668_test_toMonth_mysql_dialect/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "MONTH", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01669_join_or_duplicates/ast.json b/parser/testdata/01669_join_or_duplicates/ast.json new file mode 100644 index 0000000000..7f8efa1c26 --- /dev/null +++ b/parser/testdata/01669_join_or_duplicates/ast.json @@ -0,0 +1,124 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "1 left" + }, + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "y" + } + ] + } + ] + } + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "xx" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "yy" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "t2" + }, + "join": { + "type": "LEFT", + "on": { + "left": { + "left": { + "parts": [ + "x" + ] + }, + "op": "=", + "right": { + "parts": [ + "xx" + ] + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "y" + ] + }, + "op": "=", + "right": { + "parts": [ + "yy" + ] + } + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01669_test_toYear_mysql_dialect/ast.json b/parser/testdata/01669_test_toYear_mysql_dialect/ast.json new file mode 100644 index 0000000000..bbe295fd6c --- /dev/null +++ b/parser/testdata/01669_test_toYear_mysql_dialect/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "YEAR", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01670_dictionary_create_key_expression/ast.json b/parser/testdata/01670_dictionary_create_key_expression/ast.json new file mode 100644 index 0000000000..ac46de4ecc --- /dev/null +++ b/parser/testdata/01670_dictionary_create_key_expression/ast.json @@ -0,0 +1,4 @@ +{ + "database": "database_dictionary_test_key_expression", + "create_database": true +} diff --git a/parser/testdata/01670_distributed_bytes_to_throw_insert/ast.json b/parser/testdata/01670_distributed_bytes_to_throw_insert/ast.json new file mode 100644 index 0000000000..b671095183 --- /dev/null +++ b/parser/testdata/01670_distributed_bytes_to_throw_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dist_01670", + "tables": [ + { + "table": "dist_01670" + } + ] +} diff --git a/parser/testdata/01670_log_comment/ast.json b/parser/testdata/01670_log_comment/ast.json new file mode 100644 index 0000000000..b1c5f823e2 --- /dev/null +++ b/parser/testdata/01670_log_comment/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "log_comment", + "value": { + "type": "String", + "value": "log_comment test" + } + }, + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01670_neighbor_lc_bug/ast.json b/parser/testdata/01670_neighbor_lc_bug/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/01670_neighbor_lc_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01670_sign_function/ast.json b/parser/testdata/01670_sign_function/ast.json new file mode 100644 index 0000000000..7e84f2a01d --- /dev/null +++ b/parser/testdata/01670_sign_function/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sign", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01670_test_repeat_mysql_dialect/ast.json b/parser/testdata/01670_test_repeat_mysql_dialect/ast.json new file mode 100644 index 0000000000..5fc6555d8f --- /dev/null +++ b/parser/testdata/01670_test_repeat_mysql_dialect/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "REPEAT", + "arguments": [ + { + "type": "String", + "value": "Test" + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01671_aggregate_function_group_bitmap_data/ast.json b/parser/testdata/01671_aggregate_function_group_bitmap_data/ast.json new file mode 100644 index 0000000000..8c5fd5a201 --- /dev/null +++ b/parser/testdata/01671_aggregate_function_group_bitmap_data/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "group_by_two_level_threshold", + "value": { + "type": "Integer", + "value": 10000 + } + } + ] +} diff --git a/parser/testdata/01671_merge_join_and_constants/ast.json b/parser/testdata/01671_merge_join_and_constants/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/01671_merge_join_and_constants/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01671_test_toQuarter_mysql_dialect/ast.json b/parser/testdata/01671_test_toQuarter_mysql_dialect/ast.json new file mode 100644 index 0000000000..9273219f85 --- /dev/null +++ b/parser/testdata/01671_test_toQuarter_mysql_dialect/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "QUARTER", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01672_test_toSecond_mysql_dialect/ast.json b/parser/testdata/01672_test_toSecond_mysql_dialect/ast.json new file mode 100644 index 0000000000..49c08e7226 --- /dev/null +++ b/parser/testdata/01672_test_toSecond_mysql_dialect/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "SECOND", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01673_test_toMinute_mysql_dialect/ast.json b/parser/testdata/01673_test_toMinute_mysql_dialect/ast.json new file mode 100644 index 0000000000..3534a9a60b --- /dev/null +++ b/parser/testdata/01673_test_toMinute_mysql_dialect/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "MINUTE", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2016-06-15 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01674_executable_dictionary_implicit_key/ast.json b/parser/testdata/01674_executable_dictionary_implicit_key/ast.json new file mode 100644 index 0000000000..003c36beb0 --- /dev/null +++ b/parser/testdata/01674_executable_dictionary_implicit_key/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dictGet", + "arguments": [ + { + "type": "String", + "value": "simple_executable_cache_dictionary_no_implicit_key" + }, + { + "type": "String", + "value": "value" + }, + { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01674_filter_by_uint8/ast.json b/parser/testdata/01674_filter_by_uint8/ast.json new file mode 100644 index 0000000000..7f958ea065 --- /dev/null +++ b/parser/testdata/01674_filter_by_uint8/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ignore", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 256 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "name": "arrayFilter", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 255 + } + ] + } + }, + { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 257 + } + ] + } + ] + } + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01674_htm_xml_coarse_parse/ast.json b/parser/testdata/01674_htm_xml_coarse_parse/ast.json new file mode 100644 index 0000000000..195cf3e3c0 --- /dev/null +++ b/parser/testdata/01674_htm_xml_coarse_parse/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractTextFromHTML", + "arguments": [ + { + "type": "String", + "value": "\u003cscript\u003eHere is script.\u003c/script\u003e" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01674_where_prewhere_array_crash/ast.json b/parser/testdata/01674_where_prewhere_array_crash/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01674_where_prewhere_array_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01676_dictget_in_default_expression/ast.json b/parser/testdata/01676_dictget_in_default_expression/ast.json new file mode 100644 index 0000000000..1dc73e7ae0 --- /dev/null +++ b/parser/testdata/01676_dictget_in_default_expression/ast.json @@ -0,0 +1,6 @@ +{ + "if_exists": true, + "database": "test_01676", + "drop_database": true, + "sync": true +} diff --git a/parser/testdata/01676_range_hashed_dictionary/ast.json b/parser/testdata/01676_range_hashed_dictionary/ast.json new file mode 100644 index 0000000000..476a152288 --- /dev/null +++ b/parser/testdata/01676_range_hashed_dictionary/ast.json @@ -0,0 +1,40 @@ +{ + "table": "date_table", + "columns": [ + { + "name": "CountryID", + "type": { + "name": "UInt64" + } + }, + { + "name": "StartDate", + "type": { + "name": "Date" + } + }, + { + "name": "EndDate", + "type": { + "name": "Date" + } + }, + { + "name": "Tax", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "CountryID" + ] + } + ] +} diff --git a/parser/testdata/01676_reinterpret_as/ast.json b/parser/testdata/01676_reinterpret_as/ast.json new file mode 100644 index 0000000000..f97a168c43 --- /dev/null +++ b/parser/testdata/01676_reinterpret_as/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Into String" + } + ] + } + ] +} diff --git a/parser/testdata/01676_round_int_ubsan/ast.json b/parser/testdata/01676_round_int_ubsan/ast.json new file mode 100644 index 0000000000..38a76d43ef --- /dev/null +++ b/parser/testdata/01676_round_int_ubsan/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01677_array_enumerate_bug/ast.json b/parser/testdata/01677_array_enumerate_bug/ast.json new file mode 100644 index 0000000000..d04234a77d --- /dev/null +++ b/parser/testdata/01677_array_enumerate_bug/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayEnumerateUniq", + "arguments": [ + { + "name": "arrayEnumerateUniq", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toInt256", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "name": "toInt256", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + }, + { + "name": "toInt256", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toInt256", + "arguments": [ + { + "type": "Integer", + "value": 123 + } + ] + }, + { + "name": "toInt256", + "arguments": [ + { + "type": "Integer", + "value": 1023 + } + ] + }, + { + "name": "toInt256", + "arguments": [ + { + "type": "Integer", + "value": 123 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01678_great_circle_angle/ast.json b/parser/testdata/01678_great_circle_angle/ast.json new file mode 100644 index 0000000000..8b865b485c --- /dev/null +++ b/parser/testdata/01678_great_circle_angle/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "geo_distance_returns_float64_on_float64_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01680_date_time_add_ubsan/ast.json b/parser/testdata/01680_date_time_add_ubsan/ast.json new file mode 100644 index 0000000000..986ddb814f --- /dev/null +++ b/parser/testdata/01680_date_time_add_ubsan/ast.json @@ -0,0 +1,119 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "parts": [ + "result" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toStartOfFifteenMinutes", + "arguments": [ + { + "left": { + "name": "toDateTime", + "arguments": [ + { + "name": "toStartOfFifteenMinutes", + "arguments": [ + { + "left": { + "name": "toDateTime", + "arguments": [ + { + "type": "Float", + "value": 1000.0001220703125 + } + ] + }, + "op": "+", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 65536 + } + } + } + ] + } + ] + }, + "op": "+", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 9223372036854775807 + } + } + } + ], + "alias": "result" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1048576 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "result" + ] + }, + "descending": true, + "nulls_first": true + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01680_predicate_pushdown_union_distinct_subquery/ast.json b/parser/testdata/01680_predicate_pushdown_union_distinct_subquery/ast.json new file mode 100644 index 0000000000..013926f66f --- /dev/null +++ b/parser/testdata/01680_predicate_pushdown_union_distinct_subquery/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2000 + }, + "alias": "d_year" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2000 + }, + "alias": "d_year" + } + ] + } + ], + "union_modes": [ + "UNION DISTINCT" + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "d_year" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2002 + } + } + } + ] +} diff --git a/parser/testdata/01681_bloom_filter_nullable_column/ast.json b/parser/testdata/01681_bloom_filter_nullable_column/ast.json new file mode 100644 index 0000000000..b037b329b3 --- /dev/null +++ b/parser/testdata/01681_bloom_filter_nullable_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bloom_filter_nullable_index", + "tables": [ + { + "table": "bloom_filter_nullable_index" + } + ] +} diff --git a/parser/testdata/01681_cache_dictionary_simple_key/ast.json b/parser/testdata/01681_cache_dictionary_simple_key/ast.json new file mode 100644 index 0000000000..5d395ae99e --- /dev/null +++ b/parser/testdata/01681_cache_dictionary_simple_key/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01681_database_for_cache_dictionary", + "drop_database": true +} diff --git a/parser/testdata/01682_cache_dictionary_complex_key/ast.json b/parser/testdata/01682_cache_dictionary_complex_key/ast.json new file mode 100644 index 0000000000..6c3f0c4477 --- /dev/null +++ b/parser/testdata/01682_cache_dictionary_complex_key/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01682_database_for_cache_dictionary", + "drop_database": true +} diff --git a/parser/testdata/01682_gather_utils_ubsan/ast.json b/parser/testdata/01682_gather_utils_ubsan/ast.json new file mode 100644 index 0000000000..ceb8617750 --- /dev/null +++ b/parser/testdata/01682_gather_utils_ubsan/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayResize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01683_codec_encrypted/ast.json b/parser/testdata/01683_codec_encrypted/ast.json new file mode 100644 index 0000000000..950f4fd48b --- /dev/null +++ b/parser/testdata/01683_codec_encrypted/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "encryption_test", + "tables": [ + { + "table": "encryption_test" + } + ] +} diff --git a/parser/testdata/01683_dist_INSERT_block_structure_mismatch/ast.json b/parser/testdata/01683_dist_INSERT_block_structure_mismatch/ast.json new file mode 100644 index 0000000000..916a5b51e5 --- /dev/null +++ b/parser/testdata/01683_dist_INSERT_block_structure_mismatch/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tmp_01683", + "tables": [ + { + "table": "tmp_01683" + } + ] +} diff --git a/parser/testdata/01683_flat_dictionary/ast.json b/parser/testdata/01683_flat_dictionary/ast.json new file mode 100644 index 0000000000..f3680114eb --- /dev/null +++ b/parser/testdata/01683_flat_dictionary/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01681_database_for_flat_dictionary", + "drop_database": true +} diff --git a/parser/testdata/01684_geohash_ubsan/ast.json b/parser/testdata/01684_geohash_ubsan/ast.json new file mode 100644 index 0000000000..ecbe013b50 --- /dev/null +++ b/parser/testdata/01684_geohash_ubsan/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "geohashesInBox", + "arguments": [ + { + "type": "Float", + "value": 100.0000991821289 + }, + { + "type": "Float", + "value": 100.0000991821289 + }, + { + "type": "Float", + "value": 1000.0001220703125 + }, + { + "type": "Float", + "value": 1000.0001220703125 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01684_insert_specify_shard_id/ast.json b/parser/testdata/01684_insert_specify_shard_id/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/01684_insert_specify_shard_id/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/01686_rocksdb/ast.json b/parser/testdata/01686_rocksdb/ast.json new file mode 100644 index 0000000000..0c1fd2c117 --- /dev/null +++ b/parser/testdata/01686_rocksdb/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "01686_test", + "tables": [ + { + "table": "01686_test" + } + ] +} diff --git a/parser/testdata/01690_quantilesTiming_ubsan/ast.json b/parser/testdata/01690_quantilesTiming_ubsan/ast.json new file mode 100644 index 0000000000..154833adbd --- /dev/null +++ b/parser/testdata/01690_quantilesTiming_ubsan/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantilesTimingWeighted", + "parameters": [ + { + "type": "Float", + "value": 0.1 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 9223372036854775807 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01691_DateTime64_clamp/ast.json b/parser/testdata/01691_DateTime64_clamp/ast.json new file mode 100644 index 0000000000..85346288ef --- /dev/null +++ b/parser/testdata/01691_DateTime64_clamp/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTimeZone", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01692_DateTime64_from_DateTime/ast.json b/parser/testdata/01692_DateTime64_from_DateTime/ast.json new file mode 100644 index 0000000000..6f268bece8 --- /dev/null +++ b/parser/testdata/01692_DateTime64_from_DateTime/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01698_map_populate_overflow/ast.json b/parser/testdata/01698_map_populate_overflow/ast.json new file mode 100644 index 0000000000..18eabd9e23 --- /dev/null +++ b/parser/testdata/01698_map_populate_overflow/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "mapPopulateSeries", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 18446744073709551615 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Integer", + "value": 18446744073709551615 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01700_deltasum/ast.json b/parser/testdata/01700_deltasum/ast.json new file mode 100644 index 0000000000..4f5ddce2a1 --- /dev/null +++ b/parser/testdata/01700_deltasum/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "deltaSum", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01700_mod_negative_type_promotion/ast.json b/parser/testdata/01700_mod_negative_type_promotion/ast.json new file mode 100644 index 0000000000..7f13331b11 --- /dev/null +++ b/parser/testdata/01700_mod_negative_type_promotion/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "name": "toInt32", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 199 + } + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 200 + } + }, + "alias": "k" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "k" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01700_system_zookeeper_path_in/ast.json b/parser/testdata/01700_system_zookeeper_path_in/ast.json new file mode 100644 index 0000000000..570e5593f6 --- /dev/null +++ b/parser/testdata/01700_system_zookeeper_path_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sample_table", + "tables": [ + { + "table": "sample_table" + } + ] +} diff --git a/parser/testdata/01701_clear_projection_and_part_remove/ast.json b/parser/testdata/01701_clear_projection_and_part_remove/ast.json new file mode 100644 index 0000000000..34a0490624 --- /dev/null +++ b/parser/testdata/01701_clear_projection_and_part_remove/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tp_1", + "tables": [ + { + "table": "tp_1" + } + ] +} diff --git a/parser/testdata/01701_if_tuple_segfault/ast.json b/parser/testdata/01701_if_tuple_segfault/ast.json new file mode 100644 index 0000000000..7ed6498aaa --- /dev/null +++ b/parser/testdata/01701_if_tuple_segfault/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "agg_table", + "tables": [ + { + "table": "agg_table" + } + ] +} diff --git a/parser/testdata/01702_bitmap_native_integers/ast.json b/parser/testdata/01702_bitmap_native_integers/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01702_bitmap_native_integers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01702_rewrite_avg_for_algebraic_optimization/ast.json b/parser/testdata/01702_rewrite_avg_for_algebraic_optimization/ast.json new file mode 100644 index 0000000000..b3ea2bad96 --- /dev/null +++ b/parser/testdata/01702_rewrite_avg_for_algebraic_optimization/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "SELECT avg(number + 2) FROM numbers(10)" + } + ] + } + ] +} diff --git a/parser/testdata/01702_system_numbers_scientific_notation/ast.json b/parser/testdata/01702_system_numbers_scientific_notation/ast.json new file mode 100644 index 0000000000..a7c0effc28 --- /dev/null +++ b/parser/testdata/01702_system_numbers_scientific_notation/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Float", + "value": 100 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01702_system_query_log/ast.json b/parser/testdata/01702_system_query_log/ast.json new file mode 100644 index 0000000000..4c39950e94 --- /dev/null +++ b/parser/testdata/01702_system_query_log/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_comment", + "value": { + "type": "String", + "value": "system.query_log logging test" + } + } + ] +} diff --git a/parser/testdata/01702_toDateTime_from_string_clamping/ast.json b/parser/testdata/01702_toDateTime_from_string_clamping/ast.json new file mode 100644 index 0000000000..a29dd59de2 --- /dev/null +++ b/parser/testdata/01702_toDateTime_from_string_clamping/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "-922337203.6854775808" + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01703_rewrite_aggregate_function_case_insensitive/ast.json b/parser/testdata/01703_rewrite_aggregate_function_case_insensitive/ast.json new file mode 100644 index 0000000000..68fffeee56 --- /dev/null +++ b/parser/testdata/01703_rewrite_aggregate_function_case_insensitive/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "/", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01704_transform_with_float_key/ast.json b/parser/testdata/01704_transform_with_float_key/ast.json new file mode 100644 index 0000000000..8ab347d186 --- /dev/null +++ b/parser/testdata/01704_transform_with_float_key/ast.json @@ -0,0 +1,72 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "/", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 1.5 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "String", + "value": "World" + } + ] + }, + { + "type": "String", + "value": "-" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01705_normalize_case_insensitive_function_names/ast.json b/parser/testdata/01705_normalize_case_insensitive_function_names/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01705_normalize_case_insensitive_function_names/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01705_normalize_create_alter_function_names/ast.json b/parser/testdata/01705_normalize_create_alter_function_names/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/01705_normalize_create_alter_function_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/01706_optimize_normalize_count_variants/ast.json b/parser/testdata/01706_optimize_normalize_count_variants/ast.json new file mode 100644 index 0000000000..4bc44db6b3 --- /dev/null +++ b/parser/testdata/01706_optimize_normalize_count_variants/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_normalize_count_variants", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01707_join_use_nulls/ast.json b/parser/testdata/01707_join_use_nulls/ast.json new file mode 100644 index 0000000000..26e34cc2e5 --- /dev/null +++ b/parser/testdata/01707_join_use_nulls/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "X", + "tables": [ + { + "table": "X" + } + ] +} diff --git a/parser/testdata/01709_inactive_parts_to_throw_insert/ast.json b/parser/testdata/01709_inactive_parts_to_throw_insert/ast.json new file mode 100644 index 0000000000..eeb818f949 --- /dev/null +++ b/parser/testdata/01709_inactive_parts_to_throw_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01709", + "tables": [ + { + "table": "data_01709" + } + ] +} diff --git a/parser/testdata/01710_aggregate_projection_with_grouping_set/ast.json b/parser/testdata/01710_aggregate_projection_with_grouping_set/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01710_aggregate_projection_with_grouping_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01710_aggregate_projection_with_hashing/ast.json b/parser/testdata/01710_aggregate_projection_with_hashing/ast.json new file mode 100644 index 0000000000..d7cbe3b99f --- /dev/null +++ b/parser/testdata/01710_aggregate_projection_with_hashing/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "optimize_use_projections", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "force_optimize_projection", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01710_aggregate_projection_with_monotonic_key_expr/ast.json b/parser/testdata/01710_aggregate_projection_with_monotonic_key_expr/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01710_aggregate_projection_with_monotonic_key_expr/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01710_aggregate_projection_with_normalized_states/ast.json b/parser/testdata/01710_aggregate_projection_with_normalized_states/ast.json new file mode 100644 index 0000000000..73dfbc9980 --- /dev/null +++ b/parser/testdata/01710_aggregate_projection_with_normalized_states/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "r", + "tables": [ + { + "table": "r" + } + ] +} diff --git a/parser/testdata/01710_force_use_projection/ast.json b/parser/testdata/01710_force_use_projection/ast.json new file mode 100644 index 0000000000..1e0f923590 --- /dev/null +++ b/parser/testdata/01710_force_use_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tp", + "tables": [ + { + "table": "tp" + } + ] +} diff --git a/parser/testdata/01710_minmax_count_projection/ast.json b/parser/testdata/01710_minmax_count_projection/ast.json new file mode 100644 index 0000000000..721e12752c --- /dev/null +++ b/parser/testdata/01710_minmax_count_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "d", + "tables": [ + { + "table": "d" + } + ] +} diff --git a/parser/testdata/01710_minmax_count_projection_constant_query/ast.json b/parser/testdata/01710_minmax_count_projection_constant_query/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_minmax_count_projection_constant_query/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_minmax_count_projection_count_nullable/ast.json b/parser/testdata/01710_minmax_count_projection_count_nullable/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01710_minmax_count_projection_count_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01710_minmax_count_projection_distributed_query/ast.json b/parser/testdata/01710_minmax_count_projection_distributed_query/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_minmax_count_projection_distributed_query/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_minmax_count_projection_modify_partition_key/ast.json b/parser/testdata/01710_minmax_count_projection_modify_partition_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01710_minmax_count_projection_modify_partition_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01710_normal_projection_fix1/ast.json b/parser/testdata/01710_normal_projection_fix1/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_normal_projection_fix1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_normal_projection_format/ast.json b/parser/testdata/01710_normal_projection_format/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01710_normal_projection_format/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01710_normal_projection_join_plan_fix/ast.json b/parser/testdata/01710_normal_projection_join_plan_fix/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01710_normal_projection_join_plan_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01710_normal_projection_with_query_plan_optimization/ast.json b/parser/testdata/01710_normal_projection_with_query_plan_optimization/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_normal_projection_with_query_plan_optimization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_order_by_projections_complete/ast.json b/parser/testdata/01710_order_by_projections_complete/ast.json new file mode 100644 index 0000000000..adaeef75b3 --- /dev/null +++ b/parser/testdata/01710_order_by_projections_complete/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_order_by_proj_comp", + "tables": [ + { + "table": "data_order_by_proj_comp" + } + ] +} diff --git a/parser/testdata/01710_order_by_projections_incomplete/ast.json b/parser/testdata/01710_order_by_projections_incomplete/ast.json new file mode 100644 index 0000000000..34093c85f4 --- /dev/null +++ b/parser/testdata/01710_order_by_projections_incomplete/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_order_by_proj_incomp", + "tables": [ + { + "table": "data_order_by_proj_incomp" + } + ] +} diff --git a/parser/testdata/01710_projection_additional_filters/ast.json b/parser/testdata/01710_projection_additional_filters/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_additional_filters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_aggregate_functions_null_for_empty/ast.json b/parser/testdata/01710_projection_aggregate_functions_null_for_empty/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01710_projection_aggregate_functions_null_for_empty/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01710_projection_aggregation_in_order/ast.json b/parser/testdata/01710_projection_aggregation_in_order/ast.json new file mode 100644 index 0000000000..7280de9500 --- /dev/null +++ b/parser/testdata/01710_projection_aggregation_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "normal", + "tables": [ + { + "table": "normal" + } + ] +} diff --git a/parser/testdata/01710_projection_array_join/ast.json b/parser/testdata/01710_projection_array_join/ast.json new file mode 100644 index 0000000000..9dcab88739 --- /dev/null +++ b/parser/testdata/01710_projection_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_use_projections", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01710_projection_detach_part/ast.json b/parser/testdata/01710_projection_detach_part/ast.json new file mode 100644 index 0000000000..9dcab88739 --- /dev/null +++ b/parser/testdata/01710_projection_detach_part/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_use_projections", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01710_projection_drop_if_exists/ast.json b/parser/testdata/01710_projection_drop_if_exists/ast.json new file mode 100644 index 0000000000..1e0f923590 --- /dev/null +++ b/parser/testdata/01710_projection_drop_if_exists/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tp", + "tables": [ + { + "table": "tp" + } + ] +} diff --git a/parser/testdata/01710_projection_external_aggregate/ast.json b/parser/testdata/01710_projection_external_aggregate/ast.json new file mode 100644 index 0000000000..7d5511211b --- /dev/null +++ b/parser/testdata/01710_projection_external_aggregate/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "agg", + "tables": [ + { + "table": "agg" + } + ] +} diff --git a/parser/testdata/01710_projection_fetch_long/ast.json b/parser/testdata/01710_projection_fetch_long/ast.json new file mode 100644 index 0000000000..34a0490624 --- /dev/null +++ b/parser/testdata/01710_projection_fetch_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tp_1", + "tables": [ + { + "table": "tp_1" + } + ] +} diff --git a/parser/testdata/01710_projection_group_by_order_by/ast.json b/parser/testdata/01710_projection_group_by_order_by/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_group_by_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_in_index/ast.json b/parser/testdata/01710_projection_in_index/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/01710_projection_in_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01710_projection_in_set/ast.json b/parser/testdata/01710_projection_in_set/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/01710_projection_in_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/01710_projection_materialize_with_missing_columns/ast.json b/parser/testdata/01710_projection_materialize_with_missing_columns/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/01710_projection_materialize_with_missing_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/01710_projection_mutation/ast.json b/parser/testdata/01710_projection_mutation/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_mutation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_optimize_aggregators_of_group_by_keys/ast.json b/parser/testdata/01710_projection_optimize_aggregators_of_group_by_keys/ast.json new file mode 100644 index 0000000000..4fdadece6e --- /dev/null +++ b/parser/testdata/01710_projection_optimize_aggregators_of_group_by_keys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "proj", + "tables": [ + { + "table": "proj" + } + ] +} diff --git a/parser/testdata/01710_projection_optimize_group_by_function_keys/ast.json b/parser/testdata/01710_projection_optimize_group_by_function_keys/ast.json new file mode 100644 index 0000000000..4fdadece6e --- /dev/null +++ b/parser/testdata/01710_projection_optimize_group_by_function_keys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "proj", + "tables": [ + { + "table": "proj" + } + ] +} diff --git a/parser/testdata/01710_projection_optimize_materialize/ast.json b/parser/testdata/01710_projection_optimize_materialize/ast.json new file mode 100644 index 0000000000..c596d16a26 --- /dev/null +++ b/parser/testdata/01710_projection_optimize_materialize/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "z", + "tables": [ + { + "table": "z" + } + ] +} diff --git a/parser/testdata/01710_projection_part_check/ast.json b/parser/testdata/01710_projection_part_check/ast.json new file mode 100644 index 0000000000..1e0f923590 --- /dev/null +++ b/parser/testdata/01710_projection_part_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tp", + "tables": [ + { + "table": "tp" + } + ] +} diff --git a/parser/testdata/01710_projection_pk_trivial_count/ast.json b/parser/testdata/01710_projection_pk_trivial_count/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/01710_projection_pk_trivial_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/01710_projection_query_plan_optimization_misc/ast.json b/parser/testdata/01710_projection_query_plan_optimization_misc/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_query_plan_optimization_misc/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_row_policy/ast.json b/parser/testdata/01710_projection_row_policy/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_row_policy/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_vertical_merges/ast.json b/parser/testdata/01710_projection_vertical_merges/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_vertical_merges/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_with_alter_conversions/ast.json b/parser/testdata/01710_projection_with_alter_conversions/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_with_alter_conversions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_with_ast_rewrite_settings/ast.json b/parser/testdata/01710_projection_with_ast_rewrite_settings/ast.json new file mode 100644 index 0000000000..57ca344341 --- /dev/null +++ b/parser/testdata/01710_projection_with_ast_rewrite_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "aggregate_functions_null_for_empty", + "tables": [ + { + "table": "aggregate_functions_null_for_empty" + } + ] +} diff --git a/parser/testdata/01710_projection_with_column_transformers/ast.json b/parser/testdata/01710_projection_with_column_transformers/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/01710_projection_with_column_transformers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/01710_projection_with_joins/ast.json b/parser/testdata/01710_projection_with_joins/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_with_joins/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_with_mixed_pipeline/ast.json b/parser/testdata/01710_projection_with_mixed_pipeline/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01710_projection_with_mixed_pipeline/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01710_projection_with_nullable_keys/ast.json b/parser/testdata/01710_projection_with_nullable_keys/ast.json new file mode 100644 index 0000000000..45241a89cf --- /dev/null +++ b/parser/testdata/01710_projection_with_nullable_keys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sales", + "tables": [ + { + "table": "sales" + } + ] +} diff --git a/parser/testdata/01710_projections/ast.json b/parser/testdata/01710_projections/ast.json new file mode 100644 index 0000000000..135e8e434d --- /dev/null +++ b/parser/testdata/01710_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "projection_test", + "tables": [ + { + "table": "projection_test" + } + ] +} diff --git a/parser/testdata/01710_projections_and_duplicate_columms/ast.json b/parser/testdata/01710_projections_and_duplicate_columms/ast.json new file mode 100644 index 0000000000..d7f507e523 --- /dev/null +++ b/parser/testdata/01710_projections_and_duplicate_columms/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "projection_test__fuzz_0", + "tables": [ + { + "table": "projection_test__fuzz_0" + } + ] +} diff --git a/parser/testdata/01710_projections_group_by_no_key/ast.json b/parser/testdata/01710_projections_group_by_no_key/ast.json new file mode 100644 index 0000000000..3bb0554647 --- /dev/null +++ b/parser/testdata/01710_projections_group_by_no_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "projection_without_key", + "tables": [ + { + "table": "projection_without_key" + } + ] +} diff --git a/parser/testdata/01710_projections_in_distributed_query/ast.json b/parser/testdata/01710_projections_in_distributed_query/ast.json new file mode 100644 index 0000000000..e0ffff1924 --- /dev/null +++ b/parser/testdata/01710_projections_in_distributed_query/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_memory_bound_merging_of_aggregation_results", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01710_projections_order_by_complete/ast.json b/parser/testdata/01710_projections_order_by_complete/ast.json new file mode 100644 index 0000000000..9478b86e2d --- /dev/null +++ b/parser/testdata/01710_projections_order_by_complete/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_proj_order_by_comp", + "tables": [ + { + "table": "data_proj_order_by_comp" + } + ] +} diff --git a/parser/testdata/01710_projections_order_by_incomplete/ast.json b/parser/testdata/01710_projections_order_by_incomplete/ast.json new file mode 100644 index 0000000000..08df2c3ce5 --- /dev/null +++ b/parser/testdata/01710_projections_order_by_incomplete/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_proj_order_by_incomp", + "tables": [ + { + "table": "data_proj_order_by_incomp" + } + ] +} diff --git a/parser/testdata/01710_query_log_with_projection_info/ast.json b/parser/testdata/01710_query_log_with_projection_info/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01710_query_log_with_projection_info/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01711_cte_subquery_fix/ast.json b/parser/testdata/01711_cte_subquery_fix/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01711_cte_subquery_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01711_decimal_multiplication/ast.json b/parser/testdata/01711_decimal_multiplication/ast.json new file mode 100644 index 0000000000..51d2b8bd46 --- /dev/null +++ b/parser/testdata/01711_decimal_multiplication/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "materialize", + "arguments": [ + { + "name": "toDecimal64", + "arguments": [ + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + }, + "op": "-", + "right": { + "name": "materialize", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01712_no_adaptive_granularity_vertical_merge/ast.json b/parser/testdata/01712_no_adaptive_granularity_vertical_merge/ast.json new file mode 100644 index 0000000000..676eaa0ea7 --- /dev/null +++ b/parser/testdata/01712_no_adaptive_granularity_vertical_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "old_school_table", + "tables": [ + { + "table": "old_school_table" + } + ] +} diff --git a/parser/testdata/01713_table_ttl_old_syntax_zookeeper/ast.json b/parser/testdata/01713_table_ttl_old_syntax_zookeeper/ast.json new file mode 100644 index 0000000000..7969279fc9 --- /dev/null +++ b/parser/testdata/01713_table_ttl_old_syntax_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_table", + "tables": [ + { + "table": "ttl_table" + } + ] +} diff --git a/parser/testdata/01714_alter_drop_version/ast.json b/parser/testdata/01714_alter_drop_version/ast.json new file mode 100644 index 0000000000..3f97516e36 --- /dev/null +++ b/parser/testdata/01714_alter_drop_version/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_drop_version", + "tables": [ + { + "table": "alter_drop_version" + } + ] +} diff --git a/parser/testdata/01715_background_checker_blather_zookeeper_long/ast.json b/parser/testdata/01715_background_checker_blather_zookeeper_long/ast.json new file mode 100644 index 0000000000..29a8326ff6 --- /dev/null +++ b/parser/testdata/01715_background_checker_blather_zookeeper_long/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "i20203_1", + "tables": [ + { + "table": "i20203_1" + } + ], + "sync": true +} diff --git a/parser/testdata/01715_tuple_insert_null_as_default/ast.json b/parser/testdata/01715_tuple_insert_null_as_default/ast.json new file mode 100644 index 0000000000..b2df79e429 --- /dev/null +++ b/parser/testdata/01715_tuple_insert_null_as_default/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Tuple" + } + ] + } + ] +} diff --git a/parser/testdata/01716_decimal_comparison_ubsan/ast.json b/parser/testdata/01716_decimal_comparison_ubsan/ast.json new file mode 100644 index 0000000000..2033a81513 --- /dev/null +++ b/parser/testdata/01716_decimal_comparison_ubsan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "decimal_check_overflow", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01716_drop_rename_sign_column/ast.json b/parser/testdata/01716_drop_rename_sign_column/ast.json new file mode 100644 index 0000000000..efe846cfcf --- /dev/null +++ b/parser/testdata/01716_drop_rename_sign_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "signed_table", + "tables": [ + { + "table": "signed_table" + } + ] +} diff --git a/parser/testdata/01717_int_div_float_too_large_ubsan/ast.json b/parser/testdata/01717_int_div_float_too_large_ubsan/ast.json new file mode 100644 index 0000000000..0cebf39a27 --- /dev/null +++ b/parser/testdata/01717_int_div_float_too_large_ubsan/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "type": "Integer", + "value": 18446744073709551615 + }, + { + "type": "Float", + "value": 0.9998999834060669 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01718_subtract_seconds_date/ast.json b/parser/testdata/01718_subtract_seconds_date/ast.json new file mode 100644 index 0000000000..ae87776105 --- /dev/null +++ b/parser/testdata/01718_subtract_seconds_date/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "subtractSeconds", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2021-02-15" + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01719_join_timezone/ast.json b/parser/testdata/01719_join_timezone/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01719_join_timezone/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01720_constraints_complex_types/ast.json b/parser/testdata/01720_constraints_complex_types/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/01720_constraints_complex_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01720_dictionary_create_source_with_functions/ast.json b/parser/testdata/01720_dictionary_create_source_with_functions/ast.json new file mode 100644 index 0000000000..adb385b2fd --- /dev/null +++ b/parser/testdata/01720_dictionary_create_source_with_functions/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01720_dictionary_db", + "drop_database": true +} diff --git a/parser/testdata/01720_engine_file_empty_if_not_exists/ast.json b/parser/testdata/01720_engine_file_empty_if_not_exists/ast.json new file mode 100644 index 0000000000..ca26203896 --- /dev/null +++ b/parser/testdata/01720_engine_file_empty_if_not_exists/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "file_engine_table", + "tables": [ + { + "table": "file_engine_table" + } + ] +} diff --git a/parser/testdata/01720_type_map_and_casts/ast.json b/parser/testdata/01720_type_map_and_casts/ast.json new file mode 100644 index 0000000000..16e0d989d0 --- /dev/null +++ b/parser/testdata/01720_type_map_and_casts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_map_with_key_integer", + "tables": [ + { + "table": "table_map_with_key_integer" + } + ] +} diff --git a/parser/testdata/01720_union_distinct_with_limit/ast.json b/parser/testdata/01720_union_distinct_with_limit/ast.json new file mode 100644 index 0000000000..51898b7ad8 --- /dev/null +++ b/parser/testdata/01720_union_distinct_with_limit/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "union_modes": [ + "UNION DISTINCT" + ] + } + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01721_constraints_constant_expressions/ast.json b/parser/testdata/01721_constraints_constant_expressions/ast.json new file mode 100644 index 0000000000..c3c7083333 --- /dev/null +++ b/parser/testdata/01721_constraints_constant_expressions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "constraint_constant_number_expression", + "tables": [ + { + "table": "constraint_constant_number_expression" + } + ] +} diff --git a/parser/testdata/01721_dictionary_decimal_p_s/ast.json b/parser/testdata/01721_dictionary_decimal_p_s/ast.json new file mode 100644 index 0000000000..08d08612dd --- /dev/null +++ b/parser/testdata/01721_dictionary_decimal_p_s/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_decimal_dict", + "tables": [ + { + "table": "table_decimal_dict" + } + ] +} diff --git a/parser/testdata/01721_engine_file_truncate_on_insert/ast.json b/parser/testdata/01721_engine_file_truncate_on_insert/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01721_engine_file_truncate_on_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01730_distributed_group_by_no_merge_order_by_long/ast.json b/parser/testdata/01730_distributed_group_by_no_merge_order_by_long/ast.json new file mode 100644 index 0000000000..d28a4230ba --- /dev/null +++ b/parser/testdata/01730_distributed_group_by_no_merge_order_by_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01730", + "tables": [ + { + "table": "data_01730" + } + ] +} diff --git a/parser/testdata/01732_alters_bad_conversions/ast.json b/parser/testdata/01732_alters_bad_conversions/ast.json new file mode 100644 index 0000000000..82d0dc1723 --- /dev/null +++ b/parser/testdata/01732_alters_bad_conversions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bad_conversions", + "tables": [ + { + "table": "bad_conversions" + } + ] +} diff --git a/parser/testdata/01732_bigint_ubsan/ast.json b/parser/testdata/01732_bigint_ubsan/ast.json new file mode 100644 index 0000000000..cd034d1faa --- /dev/null +++ b/parser/testdata/01732_bigint_ubsan/ast.json @@ -0,0 +1,23 @@ +{ + "temporary": true, + "table": "decimal", + "columns": [ + { + "name": "f", + "type": { + "name": "dec", + "parameters": [ + { + "type": "Integer", + "value": 38 + }, + { + "type": "Integer", + "value": 38 + } + ], + "has_parentheses": true + } + } + ] +} diff --git a/parser/testdata/01732_more_consistent_datetime64_parsing/ast.json b/parser/testdata/01732_more_consistent_datetime64_parsing/ast.json new file mode 100644 index 0000000000..e9d6b0d23e --- /dev/null +++ b/parser/testdata/01732_more_consistent_datetime64_parsing/ast.json @@ -0,0 +1,29 @@ +{ + "temporary": true, + "table": "t", + "columns": [ + { + "name": "i", + "type": { + "name": "UInt8" + } + }, + { + "name": "x", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + } + ] +} diff --git a/parser/testdata/01732_union_and_union_all/ast.json b/parser/testdata/01732_union_and_union_all/ast.json new file mode 100644 index 0000000000..83599444ad --- /dev/null +++ b/parser/testdata/01732_union_and_union_all/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ", + "UNION ALL" + ] +} diff --git a/parser/testdata/01734_datetime64_from_float/ast.json b/parser/testdata/01734_datetime64_from_float/ast.json new file mode 100644 index 0000000000..0dd0c6bbbb --- /dev/null +++ b/parser/testdata/01734_datetime64_from_float/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Float", + "value": 1111111111.222 + }, + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/01735_join_get_low_card_fix/ast.json b/parser/testdata/01735_join_get_low_card_fix/ast.json new file mode 100644 index 0000000000..f79ae52bbd --- /dev/null +++ b/parser/testdata/01735_join_get_low_card_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join_tbl", + "tables": [ + { + "table": "join_tbl" + } + ] +} diff --git a/parser/testdata/01735_to_datetime64/ast.json b/parser/testdata/01735_to_datetime64/ast.json new file mode 100644 index 0000000000..4643bc0823 --- /dev/null +++ b/parser/testdata/01735_to_datetime64/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toDate", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "name": "today" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + }, + "op": "=", + "right": { + "name": "toDate", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "name": "today" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01736_null_as_default/ast.json b/parser/testdata/01736_null_as_default/ast.json new file mode 100644 index 0000000000..3e31854201 --- /dev/null +++ b/parser/testdata/01736_null_as_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_enum", + "tables": [ + { + "table": "test_enum" + } + ] +} diff --git a/parser/testdata/01737_move_order_key_to_prewhere_select_final/ast.json b/parser/testdata/01737_move_order_key_to_prewhere_select_final/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/01737_move_order_key_to_prewhere_select_final/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01739_index_hint/ast.json b/parser/testdata/01739_index_hint/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/01739_index_hint/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/01745_alter_delete_view/ast.json b/parser/testdata/01745_alter_delete_view/ast.json new file mode 100644 index 0000000000..a7f52cf17e --- /dev/null +++ b/parser/testdata/01745_alter_delete_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_view", + "tables": [ + { + "table": "test_view" + } + ] +} diff --git a/parser/testdata/01746_convert_type_with_default/ast.json b/parser/testdata/01746_convert_type_with_default/ast.json new file mode 100644 index 0000000000..1a4679fa1b --- /dev/null +++ b/parser/testdata/01746_convert_type_with_default/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt8OrDefault", + "arguments": [ + { + "type": "String", + "value": "1" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "type": { + "name": "UInt8" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01746_executable_pool_dictionary/ast.json b/parser/testdata/01746_executable_pool_dictionary/ast.json new file mode 100644 index 0000000000..059dada6a7 --- /dev/null +++ b/parser/testdata/01746_executable_pool_dictionary/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "executable_pool_simple" + } + ] + } + ] +} diff --git a/parser/testdata/01746_extract_text_from_html/ast.json b/parser/testdata/01746_extract_text_from_html/ast.json new file mode 100644 index 0000000000..eab80aad54 --- /dev/null +++ b/parser/testdata/01746_extract_text_from_html/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "extractTextFromHTML", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01746_forbid_drop_column_referenced_by_mv/ast.json b/parser/testdata/01746_forbid_drop_column_referenced_by_mv/ast.json new file mode 100644 index 0000000000..ab69fa1484 --- /dev/null +++ b/parser/testdata/01746_forbid_drop_column_referenced_by_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "01746_merge_tree", + "tables": [ + { + "table": "01746_merge_tree" + } + ] +} diff --git a/parser/testdata/01746_lc_values_format_bug/ast.json b/parser/testdata/01746_lc_values_format_bug/ast.json new file mode 100644 index 0000000000..1d6c1a01a5 --- /dev/null +++ b/parser/testdata/01746_lc_values_format_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_test", + "tables": [ + { + "table": "lc_test" + } + ] +} diff --git a/parser/testdata/01746_test_for_tupleElement_must_be_constant_issue/ast.json b/parser/testdata/01746_test_for_tupleElement_must_be_constant_issue/ast.json new file mode 100644 index 0000000000..115d0c4d0b --- /dev/null +++ b/parser/testdata/01746_test_for_tupleElement_must_be_constant_issue/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttt01746", + "tables": [ + { + "table": "ttt01746" + } + ] +} diff --git a/parser/testdata/01747_alter_partition_key_enum_zookeeper_long/ast.json b/parser/testdata/01747_alter_partition_key_enum_zookeeper_long/ast.json new file mode 100644 index 0000000000..8423e7ae4f --- /dev/null +++ b/parser/testdata/01747_alter_partition_key_enum_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "report", + "tables": [ + { + "table": "report" + } + ] +} diff --git a/parser/testdata/01747_executable_pool_dictionary_implicit_key/ast.json b/parser/testdata/01747_executable_pool_dictionary_implicit_key/ast.json new file mode 100644 index 0000000000..1958471a0d --- /dev/null +++ b/parser/testdata/01747_executable_pool_dictionary_implicit_key/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "executable_pool_simple_implicit_key" + } + ] + } + ] +} diff --git a/parser/testdata/01747_join_view_filter_dictionary/ast.json b/parser/testdata/01747_join_view_filter_dictionary/ast.json new file mode 100644 index 0000000000..2b862b02d3 --- /dev/null +++ b/parser/testdata/01747_join_view_filter_dictionary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "summing_table01747", + "tables": [ + { + "table": "summing_table01747" + } + ] +} diff --git a/parser/testdata/01747_transform_empty_arrays/ast.json b/parser/testdata/01747_transform_empty_arrays/ast.json new file mode 100644 index 0000000000..4c9e2bbd4d --- /dev/null +++ b/parser/testdata/01747_transform_empty_arrays/ast.json @@ -0,0 +1,176 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "with": [ + { + "name": "keys", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + } + ] + } + ] + } + } + } + } + ] + } + } + ] + } + } + }, + { + "name": "values", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "a" + } + ] + } + ] + } + } + } + } + ] + } + } + ] + } + } + } + ], + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + } + ] + } + ] + } + } + } + } + ] + }, + "where": { + "name": "transform", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "keys" + ] + }, + { + "parts": [ + "values" + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + } + ] + } + }, + "alias": "wrap" + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01748_dictionary_table_dot/ast.json b/parser/testdata/01748_dictionary_table_dot/ast.json new file mode 100644 index 0000000000..e9d6cb7fb7 --- /dev/null +++ b/parser/testdata/01748_dictionary_table_dot/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_01748", + "drop_database": true +} diff --git a/parser/testdata/01748_partition_id_pruning/ast.json b/parser/testdata/01748_partition_id_pruning/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/01748_partition_id_pruning/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01752_distributed_query_sigsegv/ast.json b/parser/testdata/01752_distributed_query_sigsegv/ast.json new file mode 100644 index 0000000000..6df42383a1 --- /dev/null +++ b/parser/testdata/01752_distributed_query_sigsegv/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "throwIf", + "arguments": [ + { + "left": { + "parts": [ + "dummy" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.1" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01753_direct_dictionary_simple_key/ast.json b/parser/testdata/01753_direct_dictionary_simple_key/ast.json new file mode 100644 index 0000000000..c7c08181fc --- /dev/null +++ b/parser/testdata/01753_direct_dictionary_simple_key/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01753_dictionary_db", + "drop_database": true +} diff --git a/parser/testdata/01753_mutate_table_predicated_with_table/ast.json b/parser/testdata/01753_mutate_table_predicated_with_table/ast.json new file mode 100644 index 0000000000..96c5271603 --- /dev/null +++ b/parser/testdata/01753_mutate_table_predicated_with_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mmm", + "tables": [ + { + "table": "mmm" + } + ] +} diff --git a/parser/testdata/01754_cluster_all_replicas_shard_num/ast.json b/parser/testdata/01754_cluster_all_replicas_shard_num/ast.json new file mode 100644 index 0000000000..ca440c15da --- /dev/null +++ b/parser/testdata/01754_cluster_all_replicas_shard_num/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "_shard_num" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "cluster", + "arguments": [ + { + "type": "String", + "value": "test_shard_localhost" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01754_direct_dictionary_complex_key/ast.json b/parser/testdata/01754_direct_dictionary_complex_key/ast.json new file mode 100644 index 0000000000..5ad4eeb2c4 --- /dev/null +++ b/parser/testdata/01754_direct_dictionary_complex_key/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01754_dictionary_db", + "drop_database": true +} diff --git a/parser/testdata/01755_shard_pruning_with_literal/ast.json b/parser/testdata/01755_shard_pruning_with_literal/ast.json new file mode 100644 index 0000000000..a7f6f9e84b --- /dev/null +++ b/parser/testdata/01755_shard_pruning_with_literal/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01756_optimize_skip_unused_shards_rewrite_in/ast.json b/parser/testdata/01756_optimize_skip_unused_shards_rewrite_in/ast.json new file mode 100644 index 0000000000..e0596362d4 --- /dev/null +++ b/parser/testdata/01756_optimize_skip_unused_shards_rewrite_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dist_01756", + "tables": [ + { + "table": "dist_01756" + } + ] +} diff --git a/parser/testdata/01757_optimize_skip_unused_shards_limit/ast.json b/parser/testdata/01757_optimize_skip_unused_shards_limit/ast.json new file mode 100644 index 0000000000..e4392b02b0 --- /dev/null +++ b/parser/testdata/01757_optimize_skip_unused_shards_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dist_01757", + "tables": [ + { + "table": "dist_01757" + } + ] +} diff --git a/parser/testdata/01759_dictionary_unique_attribute_names/ast.json b/parser/testdata/01759_dictionary_unique_attribute_names/ast.json new file mode 100644 index 0000000000..3adbf6892d --- /dev/null +++ b/parser/testdata/01759_dictionary_unique_attribute_names/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01759_db", + "drop_database": true +} diff --git a/parser/testdata/01759_optimize_skip_unused_shards_zero_shards/ast.json b/parser/testdata/01759_optimize_skip_unused_shards_zero_shards/ast.json new file mode 100644 index 0000000000..7ff4e2cb29 --- /dev/null +++ b/parser/testdata/01759_optimize_skip_unused_shards_zero_shards/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.{1,2}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + }, + { + "parts": [ + "dummy" + ] + } + ] + } + } + } + ] + }, + "where": { + "type": "Integer", + "value": 0 + }, + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "force_optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/01760_ddl_dictionary_use_current_database_name/ast.json b/parser/testdata/01760_ddl_dictionary_use_current_database_name/ast.json new file mode 100644 index 0000000000..9e73553d36 --- /dev/null +++ b/parser/testdata/01760_ddl_dictionary_use_current_database_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ddl_dictonary_test_source", + "tables": [ + { + "table": "ddl_dictonary_test_source" + } + ] +} diff --git a/parser/testdata/01760_modulo_negative/ast.json b/parser/testdata/01760_modulo_negative/ast.json new file mode 100644 index 0000000000..5c18bf7fd1 --- /dev/null +++ b/parser/testdata/01760_modulo_negative/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "op": "-", + "operand": { + "parts": [ + "number" + ] + } + }, + "op": "%", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01760_polygon_dictionaries/ast.json b/parser/testdata/01760_polygon_dictionaries/ast.json new file mode 100644 index 0000000000..8f2bb7614b --- /dev/null +++ b/parser/testdata/01760_polygon_dictionaries/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01760_db", + "drop_database": true +} diff --git a/parser/testdata/01760_system_dictionaries/ast.json b/parser/testdata/01760_system_dictionaries/ast.json new file mode 100644 index 0000000000..8f2bb7614b --- /dev/null +++ b/parser/testdata/01760_system_dictionaries/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01760_db", + "drop_database": true +} diff --git a/parser/testdata/01761_alter_decimal_zookeeper_long/ast.json b/parser/testdata/01761_alter_decimal_zookeeper_long/ast.json new file mode 100644 index 0000000000..e3e5531d10 --- /dev/null +++ b/parser/testdata/01761_alter_decimal_zookeeper_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_decimal", + "tables": [ + { + "table": "test_alter_decimal" + } + ] +} diff --git a/parser/testdata/01761_round_year_bounds/ast.json b/parser/testdata/01761_round_year_bounds/ast.json new file mode 100644 index 0000000000..4f52201ad5 --- /dev/null +++ b/parser/testdata/01761_round_year_bounds/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfInterval", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + }, + { + "name": "toIntervalYear", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01762_datetime64_extended_parsing/ast.json b/parser/testdata/01762_datetime64_extended_parsing/ast.json new file mode 100644 index 0000000000..4d74a076ea --- /dev/null +++ b/parser/testdata/01762_datetime64_extended_parsing/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1925-01-02 03:04:05.678901" + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01763_filter_push_down_bugs/ast.json b/parser/testdata/01763_filter_push_down_bugs/ast.json new file mode 100644 index 0000000000..84bcf25f7f --- /dev/null +++ b/parser/testdata/01763_filter_push_down_bugs/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_statistics_optimize", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01763_long_ttl_group_by/ast.json b/parser/testdata/01763_long_ttl_group_by/ast.json new file mode 100644 index 0000000000..901c7ab723 --- /dev/null +++ b/parser/testdata/01763_long_ttl_group_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_ttl_group_by01763", + "tables": [ + { + "table": "test_ttl_group_by01763" + } + ] +} diff --git a/parser/testdata/01763_max_distributed_depth/ast.json b/parser/testdata/01763_max_distributed_depth/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/01763_max_distributed_depth/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01763_support_map_lowcardinality_type/ast.json b/parser/testdata/01763_support_map_lowcardinality_type/ast.json new file mode 100644 index 0000000000..a68ad6fb3c --- /dev/null +++ b/parser/testdata/01763_support_map_lowcardinality_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_lc", + "tables": [ + { + "table": "map_lc" + } + ] +} diff --git a/parser/testdata/01764_collapsing_merge_adaptive_granularity/ast.json b/parser/testdata/01764_collapsing_merge_adaptive_granularity/ast.json new file mode 100644 index 0000000000..14749b4a89 --- /dev/null +++ b/parser/testdata/01764_collapsing_merge_adaptive_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "collapsing_table", + "tables": [ + { + "table": "collapsing_table" + } + ] +} diff --git a/parser/testdata/01764_prefer_column_name_to_alias/ast.json b/parser/testdata/01764_prefer_column_name_to_alias/ast.json new file mode 100644 index 0000000000..8f168771f2 --- /dev/null +++ b/parser/testdata/01764_prefer_column_name_to_alias/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "avg", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "number" + }, + { + "name": "max", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01764_table_function_dictionary/ast.json b/parser/testdata/01764_table_function_dictionary/ast.json new file mode 100644 index 0000000000..fa6ebe042d --- /dev/null +++ b/parser/testdata/01764_table_function_dictionary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_function_dictionary_source_table", + "tables": [ + { + "table": "table_function_dictionary_source_table" + } + ] +} diff --git a/parser/testdata/01765_hashed_dictionary_simple_key/ast.json b/parser/testdata/01765_hashed_dictionary_simple_key/ast.json new file mode 100644 index 0000000000..db74462db2 --- /dev/null +++ b/parser/testdata/01765_hashed_dictionary_simple_key/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01765_db", + "drop_database": true +} diff --git a/parser/testdata/01765_move_to_table_overlapping_block_number/ast.json b/parser/testdata/01765_move_to_table_overlapping_block_number/ast.json new file mode 100644 index 0000000000..be46309074 --- /dev/null +++ b/parser/testdata/01765_move_to_table_overlapping_block_number/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_src", + "tables": [ + { + "table": "t_src" + } + ] +} diff --git a/parser/testdata/01765_tehran_dst/ast.json b/parser/testdata/01765_tehran_dst/ast.json new file mode 100644 index 0000000000..f3b662796f --- /dev/null +++ b/parser/testdata/01765_tehran_dst/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTimeZone", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2021-03-22 18:45:11" + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "type": "String", + "value": "Asia/Tehran" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01766_hashed_dictionary_complex_key/ast.json b/parser/testdata/01766_hashed_dictionary_complex_key/ast.json new file mode 100644 index 0000000000..7cca59c321 --- /dev/null +++ b/parser/testdata/01766_hashed_dictionary_complex_key/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01766_db", + "drop_database": true +} diff --git a/parser/testdata/01766_todatetime64_no_timezone_arg/ast.json b/parser/testdata/01766_todatetime64_no_timezone_arg/ast.json new file mode 100644 index 0000000000..582bfbc3fc --- /dev/null +++ b/parser/testdata/01766_todatetime64_no_timezone_arg/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2021-03-23" + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01768_array_product/ast.json b/parser/testdata/01768_array_product/ast.json new file mode 100644 index 0000000000..f5a994198d --- /dev/null +++ b/parser/testdata/01768_array_product/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Array product with constant column" + } + ] + } + ] +} diff --git a/parser/testdata/01768_extended_range/ast.json b/parser/testdata/01768_extended_range/ast.json new file mode 100644 index 0000000000..ec233f2c4a --- /dev/null +++ b/parser/testdata/01768_extended_range/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toYear", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1968-12-12 11:22:33" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01769_extended_range_2/ast.json b/parser/testdata/01769_extended_range_2/ast.json new file mode 100644 index 0000000000..e931140e4a --- /dev/null +++ b/parser/testdata/01769_extended_range_2/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1969-12-31 18:00:12" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "America/Phoenix" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01770_add_months_ubsan/ast.json b/parser/testdata/01770_add_months_ubsan/ast.json new file mode 100644 index 0000000000..ef11170cab --- /dev/null +++ b/parser/testdata/01770_add_months_ubsan/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ignore", + "arguments": [ + { + "left": { + "name": "now" + }, + "op": "+", + "right": { + "value": { + "type": "Integer", + "value": 9223372036854775807 + }, + "unit": "MONTH" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01770_extended_range_3/ast.json b/parser/testdata/01770_extended_range_3/ast.json new file mode 100644 index 0000000000..7edfa7e8d0 --- /dev/null +++ b/parser/testdata/01770_extended_range_3/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "addHours", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1984-03-31 23:00:00" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "Asia/Novosibirsk" + } + ] + }, + { + "type": "Integer", + "value": 8 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01771_bloom_filter_not_has/ast.json b/parser/testdata/01771_bloom_filter_not_has/ast.json new file mode 100644 index 0000000000..407a2afd21 --- /dev/null +++ b/parser/testdata/01771_bloom_filter_not_has/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bloom_filter_null_array", + "tables": [ + { + "table": "bloom_filter_null_array" + } + ] +} diff --git a/parser/testdata/01771_datetime64_no_time_part/ast.json b/parser/testdata/01771_datetime64_no_time_part/ast.json new file mode 100644 index 0000000000..827611b29d --- /dev/null +++ b/parser/testdata/01771_datetime64_no_time_part/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1985-03-31" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "Europe/Helsinki" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01772_intdiv_minus_one_ubsan/ast.json b/parser/testdata/01772_intdiv_minus_one_ubsan/ast.json new file mode 100644 index 0000000000..1625708e98 --- /dev/null +++ b/parser/testdata/01772_intdiv_minus_one_ubsan/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "name": "toInt64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01772_to_start_of_hour_align/ast.json b/parser/testdata/01772_to_start_of_hour_align/ast.json new file mode 100644 index 0000000000..1a9e3a9ef8 --- /dev/null +++ b/parser/testdata/01772_to_start_of_hour_align/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfInterval", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2021-03-23 03:58:00" + } + ] + }, + { + "value": { + "type": "Integer", + "value": 11 + }, + "unit": "HOUR" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01773_case_sensitive_revision/ast.json b/parser/testdata/01773_case_sensitive_revision/ast.json new file mode 100644 index 0000000000..27b73e6970 --- /dev/null +++ b/parser/testdata/01773_case_sensitive_revision/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "revision" + }, + "op": "=", + "right": { + "name": "Revision" + } + }, + { + "left": { + "name": "REVISION" + }, + "op": "=", + "right": { + "name": "Revision" + } + }, + { + "left": { + "name": "revisiON" + }, + "op": "=", + "right": { + "name": "reVision" + } + } + ] + } + ] +} diff --git a/parser/testdata/01773_case_sensitive_version/ast.json b/parser/testdata/01773_case_sensitive_version/ast.json new file mode 100644 index 0000000000..81b8ddbe84 --- /dev/null +++ b/parser/testdata/01773_case_sensitive_version/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "version" + }, + "op": "=", + "right": { + "name": "Version" + } + }, + { + "left": { + "name": "VERSION" + }, + "op": "=", + "right": { + "name": "Version" + } + }, + { + "left": { + "name": "vErSiOn" + }, + "op": "=", + "right": { + "name": "VeRsIoN" + } + } + ] + } + ] +} diff --git a/parser/testdata/01773_min_max_time_system_parts_datetime64/ast.json b/parser/testdata/01773_min_max_time_system_parts_datetime64/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01773_min_max_time_system_parts_datetime64/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01774_case_sensitive_connection_id/ast.json b/parser/testdata/01774_case_sensitive_connection_id/ast.json new file mode 100644 index 0000000000..a1a50bacaa --- /dev/null +++ b/parser/testdata/01774_case_sensitive_connection_id/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "connection_id" + }, + { + "name": "CONNECTION_ID" + }, + { + "name": "CoNnEcTiOn_Id" + }, + { + "name": "connectionid" + }, + { + "name": "CONNECTIONID" + }, + { + "name": "CoNnEcTiOnId" + } + ] + } + ] +} diff --git a/parser/testdata/01774_ip_address_in_range/ast.json b/parser/testdata/01774_ip_address_in_range/ast.json new file mode 100644 index 0000000000..e6d5f02d7a --- /dev/null +++ b/parser/testdata/01774_ip_address_in_range/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "# Invocation with constants" + } + ] + } + ] +} diff --git a/parser/testdata/01774_ip_address_in_range_2/ast.json b/parser/testdata/01774_ip_address_in_range_2/ast.json new file mode 100644 index 0000000000..e6d5f02d7a --- /dev/null +++ b/parser/testdata/01774_ip_address_in_range_2/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "# Invocation with constants" + } + ] + } + ] +} diff --git a/parser/testdata/01776_decrypt_aead_size_check/ast.json b/parser/testdata/01776_decrypt_aead_size_check/ast.json new file mode 100644 index 0000000000..bcfb501e9f --- /dev/null +++ b/parser/testdata/01776_decrypt_aead_size_check/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "decrypt", + "arguments": [ + { + "type": "String", + "value": "aes-128-gcm" + }, + { + "type": "String", + "value": "text" + }, + { + "type": "String", + "value": "key" + }, + { + "type": "String", + "value": "IV" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01777_map_populate_series_ubsan/ast.json b/parser/testdata/01777_map_populate_series_ubsan/ast.json new file mode 100644 index 0000000000..26956cd118 --- /dev/null +++ b/parser/testdata/01777_map_populate_series_ubsan/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "mapPopulateSeries", + "arguments": [ + { + "type": "Array", + "value": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + }, + { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 1023 + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01778_hierarchical_dictionaries/ast.json b/parser/testdata/01778_hierarchical_dictionaries/ast.json new file mode 100644 index 0000000000..868cb7204d --- /dev/null +++ b/parser/testdata/01778_hierarchical_dictionaries/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01778_db", + "drop_database": true +} diff --git a/parser/testdata/01778_mmap_cache_infra/ast.json b/parser/testdata/01778_mmap_cache_infra/ast.json new file mode 100644 index 0000000000..8bdedd2ab2 --- /dev/null +++ b/parser/testdata/01778_mmap_cache_infra/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP MMAP CACHE" +} diff --git a/parser/testdata/01778_test_LowCardinality_FixedString_pk/ast.json b/parser/testdata/01778_test_LowCardinality_FixedString_pk/ast.json new file mode 100644 index 0000000000..07af3015f7 --- /dev/null +++ b/parser/testdata/01778_test_LowCardinality_FixedString_pk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01778", + "tables": [ + { + "table": "test_01778" + } + ] +} diff --git a/parser/testdata/01778_where_with_column_name/ast.json b/parser/testdata/01778_where_with_column_name/ast.json new file mode 100644 index 0000000000..faa0a776da --- /dev/null +++ b/parser/testdata/01778_where_with_column_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttt01778", + "tables": [ + { + "table": "ttt01778" + } + ] +} diff --git a/parser/testdata/01779_quantile_deterministic_msan/ast.json b/parser/testdata/01779_quantile_deterministic_msan/ast.json new file mode 100644 index 0000000000..b1a17ec56c --- /dev/null +++ b/parser/testdata/01779_quantile_deterministic_msan/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "cityHash64", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "name": "quantileDeterministicState", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "name": "sipHash64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 8193 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01780_clickhouse_dictionary_source_loop/ast.json b/parser/testdata/01780_clickhouse_dictionary_source_loop/ast.json new file mode 100644 index 0000000000..e33cf79e1a --- /dev/null +++ b/parser/testdata/01780_clickhouse_dictionary_source_loop/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01780_db", + "drop_database": true +} diff --git a/parser/testdata/01780_column_sparse/ast.json b/parser/testdata/01780_column_sparse/ast.json new file mode 100644 index 0000000000..3ab7297144 --- /dev/null +++ b/parser/testdata/01780_column_sparse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse", + "tables": [ + { + "table": "t_sparse" + } + ] +} diff --git a/parser/testdata/01780_column_sparse_alter/ast.json b/parser/testdata/01780_column_sparse_alter/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/01780_column_sparse_alter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/01780_column_sparse_distinct/ast.json b/parser/testdata/01780_column_sparse_distinct/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/01780_column_sparse_distinct/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01780_column_sparse_filter/ast.json b/parser/testdata/01780_column_sparse_filter/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/01780_column_sparse_filter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01780_column_sparse_full/ast.json b/parser/testdata/01780_column_sparse_full/ast.json new file mode 100644 index 0000000000..e450092ad7 --- /dev/null +++ b/parser/testdata/01780_column_sparse_full/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_full", + "tables": [ + { + "table": "t_sparse_full" + } + ] +} diff --git a/parser/testdata/01780_column_sparse_materialize/ast.json b/parser/testdata/01780_column_sparse_materialize/ast.json new file mode 100644 index 0000000000..11445a570b --- /dev/null +++ b/parser/testdata/01780_column_sparse_materialize/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sparse_t", + "tables": [ + { + "table": "sparse_t" + } + ] +} diff --git a/parser/testdata/01780_column_sparse_pk/ast.json b/parser/testdata/01780_column_sparse_pk/ast.json new file mode 100644 index 0000000000..ff89a01082 --- /dev/null +++ b/parser/testdata/01780_column_sparse_pk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_pk", + "tables": [ + { + "table": "t_sparse_pk" + } + ] +} diff --git a/parser/testdata/01780_column_sparse_tuple/ast.json b/parser/testdata/01780_column_sparse_tuple/ast.json new file mode 100644 index 0000000000..140dceaf49 --- /dev/null +++ b/parser/testdata/01780_column_sparse_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sparse_tuple", + "tables": [ + { + "table": "sparse_tuple" + } + ] +} diff --git a/parser/testdata/01780_dict_get_or_null/ast.json b/parser/testdata/01780_dict_get_or_null/ast.json new file mode 100644 index 0000000000..b4d672eadf --- /dev/null +++ b/parser/testdata/01780_dict_get_or_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple_key_dictionary_source_table", + "tables": [ + { + "table": "simple_key_dictionary_source_table" + } + ] +} diff --git a/parser/testdata/01780_range_msan/ast.json b/parser/testdata/01780_range_msan/ast.json new file mode 100644 index 0000000000..d6a2b15239 --- /dev/null +++ b/parser/testdata/01780_range_msan/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "range", + "arguments": [ + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01781_merge_tree_deduplication/ast.json b/parser/testdata/01781_merge_tree_deduplication/ast.json new file mode 100644 index 0000000000..eea0bbacc7 --- /dev/null +++ b/parser/testdata/01781_merge_tree_deduplication/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree_deduplication", + "tables": [ + { + "table": "merge_tree_deduplication" + } + ] +} diff --git a/parser/testdata/01781_token_extractor_buffer_overflow/ast.json b/parser/testdata/01781_token_extractor_buffer_overflow/ast.json new file mode 100644 index 0000000000..617c5da276 --- /dev/null +++ b/parser/testdata/01781_token_extractor_buffer_overflow/ast.json @@ -0,0 +1,32 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "min_insert_block_size_rows", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "min_insert_block_size_bytes", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 20 + } + } + ] +} diff --git a/parser/testdata/01782_field_oom/ast.json b/parser/testdata/01782_field_oom/ast.json new file mode 100644 index 0000000000..01dd74f71f --- /dev/null +++ b/parser/testdata/01782_field_oom/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "String", + "value": "500M" + } + } + ] +} diff --git a/parser/testdata/01783_merge_engine_join_key_condition/ast.json b/parser/testdata/01783_merge_engine_join_key_condition/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/01783_merge_engine_join_key_condition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/01784_parallel_formatting_memory/ast.json b/parser/testdata/01784_parallel_formatting_memory/ast.json new file mode 100644 index 0000000000..cb1966be4f --- /dev/null +++ b/parser/testdata/01784_parallel_formatting_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "String", + "value": "1G" + } + } + ] +} diff --git a/parser/testdata/01785_dictionary_element_count/ast.json b/parser/testdata/01785_dictionary_element_count/ast.json new file mode 100644 index 0000000000..c134093b6c --- /dev/null +++ b/parser/testdata/01785_dictionary_element_count/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01785_db", + "drop_database": true +} diff --git a/parser/testdata/01785_pmj_lc_bug/ast.json b/parser/testdata/01785_pmj_lc_bug/ast.json new file mode 100644 index 0000000000..ac5c54b4e8 --- /dev/null +++ b/parser/testdata/01785_pmj_lc_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/01786_group_by_pk_many_streams/ast.json b/parser/testdata/01786_group_by_pk_many_streams/ast.json new file mode 100644 index 0000000000..f5b368ab7b --- /dev/null +++ b/parser/testdata/01786_group_by_pk_many_streams/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "group_by_pk", + "tables": [ + { + "table": "group_by_pk" + } + ] +} diff --git a/parser/testdata/01787_arena_assert_column_nothing/ast.json b/parser/testdata/01787_arena_assert_column_nothing/ast.json new file mode 100644 index 0000000000..ecf633d4a6 --- /dev/null +++ b/parser/testdata/01787_arena_assert_column_nothing/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "group_by": [ + { + "name": "emptyArrayToSingle", + "arguments": [ + { + "name": "arrayFilter", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01787_map_remote/ast.json b/parser/testdata/01787_map_remote/ast.json new file mode 100644 index 0000000000..e7e96ff595 --- /dev/null +++ b/parser/testdata/01787_map_remote/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "map", + "arguments": [ + { + "type": "String", + "value": "a" + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "b" + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01788_update_nested_type_subcolumn_check/ast.json b/parser/testdata/01788_update_nested_type_subcolumn_check/ast.json new file mode 100644 index 0000000000..b0b8a91518 --- /dev/null +++ b/parser/testdata/01788_update_nested_type_subcolumn_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_wide_nested", + "tables": [ + { + "table": "test_wide_nested" + } + ] +} diff --git a/parser/testdata/01790_dist_INSERT_block_structure_mismatch_types_and_names/ast.json b/parser/testdata/01790_dist_INSERT_block_structure_mismatch_types_and_names/ast.json new file mode 100644 index 0000000000..d1c224fe7f --- /dev/null +++ b/parser/testdata/01790_dist_INSERT_block_structure_mismatch_types_and_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tmp_01781", + "tables": [ + { + "table": "tmp_01781" + } + ] +} diff --git a/parser/testdata/01795_TinyLog_rwlock_ub/ast.json b/parser/testdata/01795_TinyLog_rwlock_ub/ast.json new file mode 100644 index 0000000000..b56a10b7fd --- /dev/null +++ b/parser/testdata/01795_TinyLog_rwlock_ub/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "underlying_01795", + "tables": [ + { + "table": "underlying_01795" + } + ] +} diff --git a/parser/testdata/01796_Log_rwlock_ub/ast.json b/parser/testdata/01796_Log_rwlock_ub/ast.json new file mode 100644 index 0000000000..21c9a2e170 --- /dev/null +++ b/parser/testdata/01796_Log_rwlock_ub/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "underlying_01796", + "tables": [ + { + "table": "underlying_01796" + } + ] +} diff --git a/parser/testdata/01797_StripeLog_rwlock_ub/ast.json b/parser/testdata/01797_StripeLog_rwlock_ub/ast.json new file mode 100644 index 0000000000..866400dc6e --- /dev/null +++ b/parser/testdata/01797_StripeLog_rwlock_ub/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "underlying_01797", + "tables": [ + { + "table": "underlying_01797" + } + ] +} diff --git a/parser/testdata/01798_having_push_down/ast.json b/parser/testdata/01798_having_push_down/ast.json new file mode 100644 index 0000000000..3ccd684a67 --- /dev/null +++ b/parser/testdata/01798_having_push_down/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_having", + "tables": [ + { + "table": "t_having" + } + ] +} diff --git a/parser/testdata/01798_uniq_theta_sketch/ast.json b/parser/testdata/01798_uniq_theta_sketch/ast.json new file mode 100644 index 0000000000..585e011091 --- /dev/null +++ b/parser/testdata/01798_uniq_theta_sketch/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 65505 + } + } + ] +} diff --git a/parser/testdata/01798_uniq_theta_union_intersect_not/ast.json b/parser/testdata/01798_uniq_theta_union_intersect_not/ast.json new file mode 100644 index 0000000000..9cc30ec98f --- /dev/null +++ b/parser/testdata/01798_uniq_theta_union_intersect_not/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "uniqTheta union test" + } + ] + } + ] +} diff --git a/parser/testdata/01799_long_uniq_theta_sketch/ast.json b/parser/testdata/01799_long_uniq_theta_sketch/ast.json new file mode 100644 index 0000000000..6a925e5bf3 --- /dev/null +++ b/parser/testdata/01799_long_uniq_theta_sketch/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_bytes_ratio_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01800_log_nested/ast.json b/parser/testdata/01800_log_nested/ast.json new file mode 100644 index 0000000000..f420f2bd2e --- /dev/null +++ b/parser/testdata/01800_log_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested_01800_tiny_log", + "tables": [ + { + "table": "nested_01800_tiny_log" + } + ] +} diff --git a/parser/testdata/01801_approx_total_rows_mergetree_reverse/ast.json b/parser/testdata/01801_approx_total_rows_mergetree_reverse/ast.json new file mode 100644 index 0000000000..fd30d80d69 --- /dev/null +++ b/parser/testdata/01801_approx_total_rows_mergetree_reverse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01801", + "tables": [ + { + "table": "data_01801" + } + ] +} diff --git a/parser/testdata/01801_dateDiff_DateTime64/ast.json b/parser/testdata/01801_dateDiff_DateTime64/ast.json new file mode 100644 index 0000000000..b30301b44a --- /dev/null +++ b/parser/testdata/01801_dateDiff_DateTime64/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dateDiff", + "arguments": [ + { + "type": "String", + "value": "second" + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1927-01-01 00:00:00" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1927-01-01 00:00:10" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01801_distinct_group_by_shard/ast.json b/parser/testdata/01801_distinct_group_by_shard/ast.json new file mode 100644 index 0000000000..767024306f --- /dev/null +++ b/parser/testdata/01801_distinct_group_by_shard/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2,3}" + }, + { + "name": "values", + "arguments": [ + { + "type": "String", + "value": "a UInt8, b UInt8" + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ] +} diff --git a/parser/testdata/01801_s3_cluster/ast.json b/parser/testdata/01801_s3_cluster/ast.json new file mode 100644 index 0000000000..895f0c09da --- /dev/null +++ b/parser/testdata/01801_s3_cluster/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "type": "String", + "value": "http://localhost:11111/test/{a,b,c}.tsv" + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "c1" + ] + } + }, + { + "expression": { + "parts": [ + "c2" + ] + } + }, + { + "expression": { + "parts": [ + "c3" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01801_s3_cluster_count/ast.json b/parser/testdata/01801_s3_cluster_count/ast.json new file mode 100644 index 0000000000..ac406e3289 --- /dev/null +++ b/parser/testdata/01801_s3_cluster_count/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "COUNT" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3Cluster", + "arguments": [ + { + "type": "String", + "value": "test_cluster_two_shards_localhost" + }, + { + "type": "String", + "value": "http://localhost:11111/test/{a,b,c}.tsv" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01802_formatDateTime_DateTime64_century/ast.json b/parser/testdata/01802_formatDateTime_DateTime64_century/ast.json new file mode 100644 index 0000000000..8a1e171c95 --- /dev/null +++ b/parser/testdata/01802_formatDateTime_DateTime64_century/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1935-12-12 12:12:12" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + }, + { + "type": "String", + "value": "%C" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01802_rank_corr_mann_whitney_over_window/ast.json b/parser/testdata/01802_rank_corr_mann_whitney_over_window/ast.json new file mode 100644 index 0000000000..8b373570be --- /dev/null +++ b/parser/testdata/01802_rank_corr_mann_whitney_over_window/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "01802_empsalary", + "tables": [ + { + "table": "01802_empsalary" + } + ] +} diff --git a/parser/testdata/01802_toDateTime64_large_values/ast.json b/parser/testdata/01802_toDateTime64_large_values/ast.json new file mode 100644 index 0000000000..c476b550f7 --- /dev/null +++ b/parser/testdata/01802_toDateTime64_large_values/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2205-12-12 12:12:12" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01803_const_nullable_map/ast.json b/parser/testdata/01803_const_nullable_map/ast.json new file mode 100644 index 0000000000..448d741222 --- /dev/null +++ b/parser/testdata/01803_const_nullable_map/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_map_null", + "tables": [ + { + "table": "t_map_null" + } + ] +} diff --git a/parser/testdata/01804_dictionary_decimal256_type/ast.json b/parser/testdata/01804_dictionary_decimal256_type/ast.json new file mode 100644 index 0000000000..ae6baf4718 --- /dev/null +++ b/parser/testdata/01804_dictionary_decimal256_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_decimal_source_table", + "tables": [ + { + "table": "dictionary_decimal_source_table" + } + ] +} diff --git a/parser/testdata/01809_inactive_parts_to_delay_throw_insert/ast.json b/parser/testdata/01809_inactive_parts_to_delay_throw_insert/ast.json new file mode 100644 index 0000000000..dfaa2e75d4 --- /dev/null +++ b/parser/testdata/01809_inactive_parts_to_delay_throw_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01809", + "tables": [ + { + "table": "data_01809" + } + ] +} diff --git a/parser/testdata/01811_filter_by_null/ast.json b/parser/testdata/01811_filter_by_null/ast.json new file mode 100644 index 0000000000..c0944893c9 --- /dev/null +++ b/parser/testdata/01811_filter_by_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_01344", + "tables": [ + { + "table": "test_01344" + } + ] +} diff --git a/parser/testdata/01812_has_generic/ast.json b/parser/testdata/01812_has_generic/ast.json new file mode 100644 index 0000000000..64c09c4285 --- /dev/null +++ b/parser/testdata/01812_has_generic/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "has", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01813_distributed_scalar_subqueries_alias/ast.json b/parser/testdata/01813_distributed_scalar_subqueries_alias/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/01813_distributed_scalar_subqueries_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/01817_storage_buffer_parameters/ast.json b/parser/testdata/01817_storage_buffer_parameters/ast.json new file mode 100644 index 0000000000..4a55f74baf --- /dev/null +++ b/parser/testdata/01817_storage_buffer_parameters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01817", + "tables": [ + { + "table": "data_01817" + } + ] +} diff --git a/parser/testdata/01818_move_partition_simple/ast.json b/parser/testdata/01818_move_partition_simple/ast.json new file mode 100644 index 0000000000..b370438193 --- /dev/null +++ b/parser/testdata/01818_move_partition_simple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "main_table_01818", + "tables": [ + { + "table": "main_table_01818" + } + ] +} diff --git a/parser/testdata/01820_unhex_case_insensitive/ast.json b/parser/testdata/01820_unhex_case_insensitive/ast.json new file mode 100644 index 0000000000..bdbe0dafff --- /dev/null +++ b/parser/testdata/01820_unhex_case_insensitive/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "303132" + } + ] + }, + { + "name": "UNHEX", + "arguments": [ + { + "type": "String", + "value": "4D7953514C" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01821_dictionary_primary_key_wrong_order/ast.json b/parser/testdata/01821_dictionary_primary_key_wrong_order/ast.json new file mode 100644 index 0000000000..5fb67edc80 --- /dev/null +++ b/parser/testdata/01821_dictionary_primary_key_wrong_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_primary_key_source_table", + "tables": [ + { + "table": "dictionary_primary_key_source_table" + } + ] +} diff --git a/parser/testdata/01821_join_table_mutation/ast.json b/parser/testdata/01821_join_table_mutation/ast.json new file mode 100644 index 0000000000..c7ee2558ca --- /dev/null +++ b/parser/testdata/01821_join_table_mutation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join_table_mutation", + "tables": [ + { + "table": "join_table_mutation" + } + ] +} diff --git a/parser/testdata/01821_table_comment/ast.json b/parser/testdata/01821_table_comment/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01821_table_comment/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01821_to_date_time_ubsan/ast.json b/parser/testdata/01821_to_date_time_ubsan/ast.json new file mode 100644 index 0000000000..a44f85101f --- /dev/null +++ b/parser/testdata/01821_to_date_time_ubsan/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "9223372036854775806" + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01822_short_circuit/ast.json b/parser/testdata/01822_short_circuit/ast.json new file mode 100644 index 0000000000..3bc0ac5b84 --- /dev/null +++ b/parser/testdata/01822_short_circuit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "short_circuit_function_evaluation", + "value": { + "type": "String", + "value": "enable" + } + } + ] +} diff --git a/parser/testdata/01822_union_and_constans_error/ast.json b/parser/testdata/01822_union_and_constans_error/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/01822_union_and_constans_error/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/01824_move_to_prewhere_many_columns/ast.json b/parser/testdata/01824_move_to_prewhere_many_columns/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/01824_move_to_prewhere_many_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01824_prefer_global_in_and_join/ast.json b/parser/testdata/01824_prefer_global_in_and_join/ast.json new file mode 100644 index 0000000000..c116b9045b --- /dev/null +++ b/parser/testdata/01824_prefer_global_in_and_join/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "test_01824", + "create_database": true +} diff --git a/parser/testdata/01825_new_type_json_10/ast.json b/parser/testdata/01825_new_type_json_10/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_10/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_18/ast.json b/parser/testdata/01825_new_type_json_18/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_18/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_2/ast.json b/parser/testdata/01825_new_type_json_2/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_9/ast.json b/parser/testdata/01825_new_type_json_9/ast.json new file mode 100644 index 0000000000..52ce3044c2 --- /dev/null +++ b/parser/testdata/01825_new_type_json_9/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_json", + "tables": [ + { + "table": "t_json" + } + ] +} diff --git a/parser/testdata/01825_new_type_json_bools/ast.json b/parser/testdata/01825_new_type_json_bools/ast.json new file mode 100644 index 0000000000..b7e3b2f7e5 --- /dev/null +++ b/parser/testdata/01825_new_type_json_bools/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_json_bools", + "tables": [ + { + "table": "t_json_bools" + } + ] +} diff --git a/parser/testdata/01825_new_type_json_distributed/ast.json b/parser/testdata/01825_new_type_json_distributed/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_ephemeral/ast.json b/parser/testdata/01825_new_type_json_ephemeral/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_ephemeral/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_in_array/ast.json b/parser/testdata/01825_new_type_json_in_array/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_in_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_insert_select/ast.json b/parser/testdata/01825_new_type_json_insert_select/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_insert_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_missed_values/ast.json b/parser/testdata/01825_new_type_json_missed_values/ast.json new file mode 100644 index 0000000000..52ce3044c2 --- /dev/null +++ b/parser/testdata/01825_new_type_json_missed_values/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_json", + "tables": [ + { + "table": "t_json" + } + ] +} diff --git a/parser/testdata/01825_new_type_json_mutations/ast.json b/parser/testdata/01825_new_type_json_mutations/ast.json new file mode 100644 index 0000000000..61944a3de0 --- /dev/null +++ b/parser/testdata/01825_new_type_json_mutations/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_json_mutations", + "tables": [ + { + "table": "t_json_mutations" + } + ] +} diff --git a/parser/testdata/01825_new_type_json_order_by/ast.json b/parser/testdata/01825_new_type_json_order_by/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/01825_new_type_json_order_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01825_new_type_json_parallel_insert/ast.json b/parser/testdata/01825_new_type_json_parallel_insert/ast.json new file mode 100644 index 0000000000..09d1e2e36e --- /dev/null +++ b/parser/testdata/01825_new_type_json_parallel_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_json_parallel", + "tables": [ + { + "table": "t_json_parallel" + } + ] +} diff --git a/parser/testdata/01825_new_type_json_partitions/ast.json b/parser/testdata/01825_new_type_json_partitions/ast.json new file mode 100644 index 0000000000..6d92cf0462 --- /dev/null +++ b/parser/testdata/01825_new_type_json_partitions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_json_partitions", + "tables": [ + { + "table": "t_json_partitions" + } + ] +} diff --git a/parser/testdata/01825_replacing_vertical_merge/ast.json b/parser/testdata/01825_replacing_vertical_merge/ast.json new file mode 100644 index 0000000000..55f18f3d96 --- /dev/null +++ b/parser/testdata/01825_replacing_vertical_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_on_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01831_max_streams/ast.json b/parser/testdata/01831_max_streams/ast.json new file mode 100644 index 0000000000..a5ab73d70b --- /dev/null +++ b/parser/testdata/01831_max_streams/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.1" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "max_distributed_connections", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/01832_memory_write_suffix/ast.json b/parser/testdata/01832_memory_write_suffix/ast.json new file mode 100644 index 0000000000..4c317b56c8 --- /dev/null +++ b/parser/testdata/01832_memory_write_suffix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01832", + "tables": [ + { + "table": "data_01832" + } + ] +} diff --git a/parser/testdata/01833_test_collation_alvarotuso/ast.json b/parser/testdata/01833_test_collation_alvarotuso/ast.json new file mode 100644 index 0000000000..20338dde60 --- /dev/null +++ b/parser/testdata/01833_test_collation_alvarotuso/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_collation", + "tables": [ + { + "table": "test_collation" + } + ] +} diff --git a/parser/testdata/01835_alias_to_primary_key_cyfdecyf/ast.json b/parser/testdata/01835_alias_to_primary_key_cyfdecyf/ast.json new file mode 100644 index 0000000000..652adbe128 --- /dev/null +++ b/parser/testdata/01835_alias_to_primary_key_cyfdecyf/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "db", + "tables": [ + { + "table": "db" + } + ] +} diff --git a/parser/testdata/01836_date_time_keep_default_timezone_on_operations_den_crane/ast.json b/parser/testdata/01836_date_time_keep_default_timezone_on_operations_den_crane/ast.json new file mode 100644 index 0000000000..16fd48ff56 --- /dev/null +++ b/parser/testdata/01836_date_time_keep_default_timezone_on_operations_den_crane/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "now" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01837_cast_to_array_from_empty_array/ast.json b/parser/testdata/01837_cast_to_array_from_empty_array/ast.json new file mode 100644 index 0000000000..2100cc9914 --- /dev/null +++ b/parser/testdata/01837_cast_to_array_from_empty_array/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Array", + "value": null + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/01837_database_memory_ddl_dictionaries/ast.json b/parser/testdata/01837_database_memory_ddl_dictionaries/ast.json new file mode 100644 index 0000000000..0cc89f9488 --- /dev/null +++ b/parser/testdata/01837_database_memory_ddl_dictionaries/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01837_db", + "drop_database": true +} diff --git a/parser/testdata/01838_system_dictionaries_virtual_key_column/ast.json b/parser/testdata/01838_system_dictionaries_virtual_key_column/ast.json new file mode 100644 index 0000000000..1be3f83db8 --- /dev/null +++ b/parser/testdata/01838_system_dictionaries_virtual_key_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "example_simple_key_dictionary", + "tables": [ + { + "table": "example_simple_key_dictionary" + } + ] +} diff --git a/parser/testdata/01845_add_testcase_for_arrayElement/ast.json b/parser/testdata/01845_add_testcase_for_arrayElement/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01845_add_testcase_for_arrayElement/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01846_alter_column_without_type_bugfix/ast.json b/parser/testdata/01846_alter_column_without_type_bugfix/ast.json new file mode 100644 index 0000000000..8a154714d2 --- /dev/null +++ b/parser/testdata/01846_alter_column_without_type_bugfix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_test", + "tables": [ + { + "table": "alter_test" + } + ] +} diff --git a/parser/testdata/01846_null_as_default_for_insert_select/ast.json b/parser/testdata/01846_null_as_default_for_insert_select/ast.json new file mode 100644 index 0000000000..e8ef3116c0 --- /dev/null +++ b/parser/testdata/01846_null_as_default_for_insert_select/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_null_as_default", + "tables": [ + { + "table": "test_null_as_default" + } + ] +} diff --git a/parser/testdata/01848_partition_value_column/ast.json b/parser/testdata/01848_partition_value_column/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/01848_partition_value_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/01849_geoToS2/ast.json b/parser/testdata/01849_geoToS2/ast.json new file mode 100644 index 0000000000..ac2980c8ed --- /dev/null +++ b/parser/testdata/01849_geoToS2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "s2_indexes", + "tables": [ + { + "table": "s2_indexes" + } + ] +} diff --git a/parser/testdata/01850_dist_INSERT_preserve_error/ast.json b/parser/testdata/01850_dist_INSERT_preserve_error/ast.json new file mode 100644 index 0000000000..093b2a33f5 --- /dev/null +++ b/parser/testdata/01850_dist_INSERT_preserve_error/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "shard_0", + "create_database": true +} diff --git a/parser/testdata/01851_array_difference_decimal_overflow_ubsan/ast.json b/parser/testdata/01851_array_difference_decimal_overflow_ubsan/ast.json new file mode 100644 index 0000000000..a37c90a5b9 --- /dev/null +++ b/parser/testdata/01851_array_difference_decimal_overflow_ubsan/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayDifference", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Float", + "value": 100.0000991821289 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2147483647 + } + } + ] + } + ], + "alias": "x" + } + ] + } + ] +} diff --git a/parser/testdata/01851_clear_column_referenced_by_mv/ast.json b/parser/testdata/01851_clear_column_referenced_by_mv/ast.json new file mode 100644 index 0000000000..c11fb6a978 --- /dev/null +++ b/parser/testdata/01851_clear_column_referenced_by_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "01851_merge_tree", + "tables": [ + { + "table": "01851_merge_tree" + } + ] +} diff --git a/parser/testdata/01851_fix_row_policy_empty_result/ast.json b/parser/testdata/01851_fix_row_policy_empty_result/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/01851_fix_row_policy_empty_result/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/01851_hedged_connections_external_tables/ast.json b/parser/testdata/01851_hedged_connections_external_tables/ast.json new file mode 100644 index 0000000000..05da265392 --- /dev/null +++ b/parser/testdata/01851_hedged_connections_external_tables/ast.json @@ -0,0 +1,107 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{3|2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "number" + ] + }, + "global": true, + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] + } + }, + "settings": [ + { + "name": "async_socket_for_remote", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "use_hedged_requests", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "sleep_in_send_data_ms", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "receive_data_timeout_ms", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/01851_s2_to_geo/ast.json b/parser/testdata/01851_s2_to_geo/ast.json new file mode 100644 index 0000000000..7e79f3941f --- /dev/null +++ b/parser/testdata/01851_s2_to_geo/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "s2ToGeo", + "arguments": [ + { + "type": "Integer", + "value": 4573520603753570041 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01852_cast_operator_4/ast.json b/parser/testdata/01852_cast_operator_4/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01852_cast_operator_4/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01852_dictionary_query_count_long/ast.json b/parser/testdata/01852_dictionary_query_count_long/ast.json new file mode 100644 index 0000000000..53b564d43f --- /dev/null +++ b/parser/testdata/01852_dictionary_query_count_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple_key_source_table_01862", + "tables": [ + { + "table": "simple_key_source_table_01862" + } + ] +} diff --git a/parser/testdata/01852_jit_if/ast.json b/parser/testdata/01852_jit_if/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/01852_jit_if/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01852_map_combinator/ast.json b/parser/testdata/01852_map_combinator/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/01852_map_combinator/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/01852_multiple_joins_with_union_join/ast.json b/parser/testdata/01852_multiple_joins_with_union_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01852_multiple_joins_with_union_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01852_s2_get_neighbours/ast.json b/parser/testdata/01852_s2_get_neighbours/ast.json new file mode 100644 index 0000000000..f69a8ef191 --- /dev/null +++ b/parser/testdata/01852_s2_get_neighbours/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "s2GetNeighbors", + "arguments": [ + { + "type": "Integer", + "value": 5074766849661468672 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01853_s2_cells_intersect/ast.json b/parser/testdata/01853_s2_cells_intersect/ast.json new file mode 100644 index 0000000000..95706c3b08 --- /dev/null +++ b/parser/testdata/01853_s2_cells_intersect/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "s2CellsIntersect", + "arguments": [ + { + "type": "Integer", + "value": 9926595209846587392 + }, + { + "type": "Integer", + "value": 9926594385212866560 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01854_dictionary_range_hashed_min_max_attr/ast.json b/parser/testdata/01854_dictionary_range_hashed_min_max_attr/ast.json new file mode 100644 index 0000000000..eb384dbd05 --- /dev/null +++ b/parser/testdata/01854_dictionary_range_hashed_min_max_attr/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict_01864", + "tables": [ + { + "table": "dict_01864" + } + ] +} diff --git a/parser/testdata/01854_s2_cap_contains/ast.json b/parser/testdata/01854_s2_cap_contains/ast.json new file mode 100644 index 0000000000..51823094b8 --- /dev/null +++ b/parser/testdata/01854_s2_cap_contains/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "s2CapContains", + "arguments": [ + { + "type": "Integer", + "value": 1157339245694594829 + }, + { + "type": "Float", + "value": 1 + }, + { + "type": "Integer", + "value": 1157347770437378819 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01854_s2_cap_union/ast.json b/parser/testdata/01854_s2_cap_union/ast.json new file mode 100644 index 0000000000..43e2228250 --- /dev/null +++ b/parser/testdata/01854_s2_cap_union/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "s2CapUnion", + "arguments": [ + { + "type": "Integer", + "value": 3814912406305146967 + }, + { + "type": "Float", + "value": 1 + }, + { + "type": "Integer", + "value": 1157347770437378819 + }, + { + "type": "Float", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01855_jit_comparison_constant_result/ast.json b/parser/testdata/01855_jit_comparison_constant_result/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/01855_jit_comparison_constant_result/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01860_Distributed__shard_num_GROUP_BY/ast.json b/parser/testdata/01860_Distributed__shard_num_GROUP_BY/ast.json new file mode 100644 index 0000000000..03b446165e --- /dev/null +++ b/parser/testdata/01860_Distributed__shard_num_GROUP_BY/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "_shard_num" + ] + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "_shard_num" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "_shard_num" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01861_explain_pipeline/ast.json b/parser/testdata/01861_explain_pipeline/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01861_explain_pipeline/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01865_aggregator_overflow_row/ast.json b/parser/testdata/01865_aggregator_overflow_row/ast.json new file mode 100644 index 0000000000..bec6c41b68 --- /dev/null +++ b/parser/testdata/01865_aggregator_overflow_row/ast.json @@ -0,0 +1,122 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqCombined", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10000 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + }, + "descending": true + } + ], + "limit": { + "type": "Integer", + "value": 10 + }, + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_bytes_ratio_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_rows_to_group_by", + "value": { + "type": "Integer", + "value": 10000000000 + } + }, + { + "name": "group_by_overflow_mode", + "value": { + "type": "String", + "value": "any" + } + }, + { + "name": "totals_mode", + "value": { + "type": "String", + "value": "before_having" + } + }, + { + "name": "max_untracked_memory", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "group_by_two_level_threshold", + "value": { + "type": "Integer", + "value": 10000 + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1000 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/01866_aggregate_function_interval_length_sum/ast.json b/parser/testdata/01866_aggregate_function_interval_length_sum/ast.json new file mode 100644 index 0000000000..d4d2c5aa66 --- /dev/null +++ b/parser/testdata/01866_aggregate_function_interval_length_sum/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "interval", + "tables": [ + { + "table": "interval" + } + ] +} diff --git a/parser/testdata/01866_bit_positions_to_array/ast.json b/parser/testdata/01866_bit_positions_to_array/ast.json new file mode 100644 index 0000000000..e6ad0128fc --- /dev/null +++ b/parser/testdata/01866_bit_positions_to_array/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Int8" + } + ] + } + ] +} diff --git a/parser/testdata/01866_datetime64_cmp_with_constant/ast.json b/parser/testdata/01866_datetime64_cmp_with_constant/ast.json new file mode 100644 index 0000000000..d567054aba --- /dev/null +++ b/parser/testdata/01866_datetime64_cmp_with_constant/ast.json @@ -0,0 +1,55 @@ +{ + "table": "dt64test", + "columns": [ + { + "name": "dt64_column", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + }, + { + "name": "dt_column", + "type": { + "name": "DateTime" + }, + "default": { + "name": "toDateTime", + "arguments": [ + { + "parts": [ + "dt64_column" + ] + } + ] + }, + "default_kind": "DEFAULT" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "dt64_column" + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "dt64_column" + ] + } + ] + } +} diff --git a/parser/testdata/01866_split_by_regexp/ast.json b/parser/testdata/01866_split_by_regexp/ast.json new file mode 100644 index 0000000000..56712f0615 --- /dev/null +++ b/parser/testdata/01866_split_by_regexp/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "splitByRegexp", + "arguments": [ + { + "type": "String", + "value": "\\d+" + }, + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a1ba5ba8b" + }, + { + "type": "String", + "value": "a11ba5689ba891011b" + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01866_view_persist_settings/ast.json b/parser/testdata/01866_view_persist_settings/ast.json new file mode 100644 index 0000000000..dadde98e44 --- /dev/null +++ b/parser/testdata/01866_view_persist_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "view_no_nulls", + "tables": [ + { + "table": "view_no_nulls" + } + ] +} diff --git a/parser/testdata/01867_fix_storage_memory_mutation/ast.json b/parser/testdata/01867_fix_storage_memory_mutation/ast.json new file mode 100644 index 0000000000..d9e839002f --- /dev/null +++ b/parser/testdata/01867_fix_storage_memory_mutation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mem_test", + "tables": [ + { + "table": "mem_test" + } + ] +} diff --git a/parser/testdata/01867_support_datetime64_version_column/ast.json b/parser/testdata/01867_support_datetime64_version_column/ast.json new file mode 100644 index 0000000000..dcfb8d7ce8 --- /dev/null +++ b/parser/testdata/01867_support_datetime64_version_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replacing", + "tables": [ + { + "table": "replacing" + } + ] +} diff --git a/parser/testdata/01869_function_modulo_legacy/ast.json b/parser/testdata/01869_function_modulo_legacy/ast.json new file mode 100644 index 0000000000..3132d4a59b --- /dev/null +++ b/parser/testdata/01869_function_modulo_legacy/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "moduloLegacy", + "arguments": [ + { + "type": "Integer", + "value": 199 + }, + { + "type": "Integer", + "value": 200 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01869_reinterpret_as_fixed_string_uuid/ast.json b/parser/testdata/01869_reinterpret_as_fixed_string_uuid/ast.json new file mode 100644 index 0000000000..5d424fa781 --- /dev/null +++ b/parser/testdata/01869_reinterpret_as_fixed_string_uuid/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "reinterpretAsFixedString", + "arguments": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "61f0c404-5cb3-11e7-907b-a6006ad3dba0" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01870_buffer_flush/ast.json b/parser/testdata/01870_buffer_flush/ast.json new file mode 100644 index 0000000000..91a6394a9d --- /dev/null +++ b/parser/testdata/01870_buffer_flush/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "db_01870", + "drop_database": true +} diff --git a/parser/testdata/01870_modulo_partition_key/ast.json b/parser/testdata/01870_modulo_partition_key/ast.json new file mode 100644 index 0000000000..81b9de0395 --- /dev/null +++ b/parser/testdata/01870_modulo_partition_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_max_retries", + "value": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/01871_merge_tree_compile_expressions/ast.json b/parser/testdata/01871_merge_tree_compile_expressions/ast.json new file mode 100644 index 0000000000..e6cf9e8e7f --- /dev/null +++ b/parser/testdata/01871_merge_tree_compile_expressions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01875_1", + "tables": [ + { + "table": "data_01875_1" + } + ] +} diff --git a/parser/testdata/01872_functions_to_subcolumns_analyzer/ast.json b/parser/testdata/01872_functions_to_subcolumns_analyzer/ast.json new file mode 100644 index 0000000000..2b6887060d --- /dev/null +++ b/parser/testdata/01872_functions_to_subcolumns_analyzer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_func_to_subcolumns", + "tables": [ + { + "table": "t_func_to_subcolumns" + } + ] +} diff --git a/parser/testdata/01880_materialized_view_to_table_type_check/ast.json b/parser/testdata/01880_materialized_view_to_table_type_check/ast.json new file mode 100644 index 0000000000..7628ec2dd7 --- /dev/null +++ b/parser/testdata/01880_materialized_view_to_table_type_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_mv", + "tables": [ + { + "table": "test_mv" + } + ] +} diff --git a/parser/testdata/01880_remote_ipv6/ast.json b/parser/testdata/01880_remote_ipv6/ast.json new file mode 100644 index 0000000000..d9dec1eb1b --- /dev/null +++ b/parser/testdata/01880_remote_ipv6/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "connections_with_failover_max_tries", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01881_aggregate_functions_versioning/ast.json b/parser/testdata/01881_aggregate_functions_versioning/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/01881_aggregate_functions_versioning/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/01881_create_as_tuple/ast.json b/parser/testdata/01881_create_as_tuple/ast.json new file mode 100644 index 0000000000..f3430fd59a --- /dev/null +++ b/parser/testdata/01881_create_as_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_create_as_tuple", + "tables": [ + { + "table": "t_create_as_tuple" + } + ] +} diff --git a/parser/testdata/01881_to_week_monotonic_fix/ast.json b/parser/testdata/01881_to_week_monotonic_fix/ast.json new file mode 100644 index 0000000000..0ef2141170 --- /dev/null +++ b/parser/testdata/01881_to_week_monotonic_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tbl", + "tables": [ + { + "table": "test_tbl" + } + ] +} diff --git a/parser/testdata/01881_total_bytes_storage_buffer/ast.json b/parser/testdata/01881_total_bytes_storage_buffer/ast.json new file mode 100644 index 0000000000..21c08d021c --- /dev/null +++ b/parser/testdata/01881_total_bytes_storage_buffer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_buffer_table", + "tables": [ + { + "table": "test_buffer_table" + } + ] +} diff --git a/parser/testdata/01881_union_header_mismatch_bug/ast.json b/parser/testdata/01881_union_header_mismatch_bug/ast.json new file mode 100644 index 0000000000..57709ca7f2 --- /dev/null +++ b/parser/testdata/01881_union_header_mismatch_bug/ast.json @@ -0,0 +1,109 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "table" + }, + "alias": "table" + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ], + "alias": "rows" + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 101 + } + ], + "alias": "elements" + } + ] + }, + { + "columns": [ + { + "expr": { + "type": "String", + "value": "another table" + }, + "alias": "table" + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ], + "alias": "rows" + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ], + "alias": "elements" + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "rows" + ] + }, + "op": "-", + "right": { + "parts": [ + "elements" + ] + } + }, + "op": "\u003c\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/01882_check_max_parts_to_merge_at_once/ast.json b/parser/testdata/01882_check_max_parts_to_merge_at_once/ast.json new file mode 100644 index 0000000000..04b32dbcbe --- /dev/null +++ b/parser/testdata/01882_check_max_parts_to_merge_at_once/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "limited_merge_table", + "tables": [ + { + "table": "limited_merge_table" + } + ] +} diff --git a/parser/testdata/01882_scalar_subquery_exception/ast.json b/parser/testdata/01882_scalar_subquery_exception/ast.json new file mode 100644 index 0000000000..0ee3ffa656 --- /dev/null +++ b/parser/testdata/01882_scalar_subquery_exception/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nums_in_mem", + "tables": [ + { + "table": "nums_in_mem" + } + ] +} diff --git a/parser/testdata/01883_grouping_sets_crash/ast.json b/parser/testdata/01883_grouping_sets_crash/ast.json new file mode 100644 index 0000000000..65e12bd3c7 --- /dev/null +++ b/parser/testdata/01883_grouping_sets_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "grouping_sets", + "tables": [ + { + "table": "grouping_sets" + } + ] +} diff --git a/parser/testdata/01883_subcolumns_distributed/ast.json b/parser/testdata/01883_subcolumns_distributed/ast.json new file mode 100644 index 0000000000..e1e0b10bb7 --- /dev/null +++ b/parser/testdata/01883_subcolumns_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_subcolumns_local", + "tables": [ + { + "table": "t_subcolumns_local" + } + ] +} diff --git a/parser/testdata/01883_with_grouping_sets/ast.json b/parser/testdata/01883_with_grouping_sets/ast.json new file mode 100644 index 0000000000..f3a8480211 --- /dev/null +++ b/parser/testdata/01883_with_grouping_sets/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 8 + } + } + ] +} diff --git a/parser/testdata/01888_read_int_safe/ast.json b/parser/testdata/01888_read_int_safe/ast.json new file mode 100644 index 0000000000..aaf8bcdaa5 --- /dev/null +++ b/parser/testdata/01888_read_int_safe/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toInt64", + "arguments": [ + { + "type": "String", + "value": "--1" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01889_key_condition_function_chains/ast.json b/parser/testdata/01889_key_condition_function_chains/ast.json new file mode 100644 index 0000000000..0118545cd0 --- /dev/null +++ b/parser/testdata/01889_key_condition_function_chains/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "force_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01889_sql_json_functions/ast.json b/parser/testdata/01889_sql_json_functions/ast.json new file mode 100644 index 0000000000..7401a2cb05 --- /dev/null +++ b/parser/testdata/01889_sql_json_functions/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--JSON_VALUE--" + } + ] + } + ] +} diff --git a/parser/testdata/01889_tokenize/ast.json b/parser/testdata/01889_tokenize/ast.json new file mode 100644 index 0000000000..d6eb296192 --- /dev/null +++ b/parser/testdata/01889_tokenize/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_nlp_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01890_cross_join_explain_crash/ast.json b/parser/testdata/01890_cross_join_explain_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01890_cross_join_explain_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01890_jit_aggregation_function_sum_long/ast.json b/parser/testdata/01890_jit_aggregation_function_sum_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01890_jit_aggregation_function_sum_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01890_state_of_state/ast.json b/parser/testdata/01890_state_of_state/ast.json new file mode 100644 index 0000000000..d303fad06d --- /dev/null +++ b/parser/testdata/01890_state_of_state/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqExact", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "uniqState", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01890_stem/ast.json b/parser/testdata/01890_stem/ast.json new file mode 100644 index 0000000000..d6eb296192 --- /dev/null +++ b/parser/testdata/01890_stem/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_nlp_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01891_echo/ast.json b/parser/testdata/01891_echo/ast.json new file mode 100644 index 0000000000..4cb6f0f6f9 --- /dev/null +++ b/parser/testdata/01891_echo/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] +} diff --git a/parser/testdata/01891_jit_aggregation_function_any_long/ast.json b/parser/testdata/01891_jit_aggregation_function_any_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01891_jit_aggregation_function_any_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01891_not_in_partition_prune/ast.json b/parser/testdata/01891_not_in_partition_prune/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/01891_not_in_partition_prune/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/01891_not_like_partition_prune/ast.json b/parser/testdata/01891_not_like_partition_prune/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01891_not_like_partition_prune/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01891_partition_by_uuid/ast.json b/parser/testdata/01891_partition_by_uuid/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01891_partition_by_uuid/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01891_partition_hash/ast.json b/parser/testdata/01891_partition_hash/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01891_partition_hash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01891_partition_hash_no_long_int/ast.json b/parser/testdata/01891_partition_hash_no_long_int/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01891_partition_hash_no_long_int/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01892_jit_aggregation_function_any_last_long/ast.json b/parser/testdata/01892_jit_aggregation_function_any_last_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01892_jit_aggregation_function_any_last_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01892_setting_limit_offset_distributed/ast.json b/parser/testdata/01892_setting_limit_offset_distributed/ast.json new file mode 100644 index 0000000000..e0d0b62d31 --- /dev/null +++ b/parser/testdata/01892_setting_limit_offset_distributed/ast.json @@ -0,0 +1,72 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "limit" + }, + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.1" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + ] + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "limit", + "value": { + "type": "Integer", + "value": 5 + } + } + ] + } + ] +} diff --git a/parser/testdata/01893_jit_aggregation_function_min_long/ast.json b/parser/testdata/01893_jit_aggregation_function_min_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01893_jit_aggregation_function_min_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01894_jit_aggregation_function_max_long/ast.json b/parser/testdata/01894_jit_aggregation_function_max_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01894_jit_aggregation_function_max_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01895_jit_aggregation_function_avg_long/ast.json b/parser/testdata/01895_jit_aggregation_function_avg_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01895_jit_aggregation_function_avg_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01896_jit_aggregation_function_if_long/ast.json b/parser/testdata/01896_jit_aggregation_function_if_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01896_jit_aggregation_function_if_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01897_jit_aggregation_function_avg_weighted_long/ast.json b/parser/testdata/01897_jit_aggregation_function_avg_weighted_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01897_jit_aggregation_function_avg_weighted_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01901_in_literal_shard_prune/ast.json b/parser/testdata/01901_in_literal_shard_prune/ast.json new file mode 100644 index 0000000000..a7f6f9e84b --- /dev/null +++ b/parser/testdata/01901_in_literal_shard_prune/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01901_test_attach_partition_from/ast.json b/parser/testdata/01901_test_attach_partition_from/ast.json new file mode 100644 index 0000000000..c160988cfb --- /dev/null +++ b/parser/testdata/01901_test_attach_partition_from/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_attach_01901S", + "tables": [ + { + "table": "test_alter_attach_01901S" + } + ] +} diff --git a/parser/testdata/01902_dictionary_array_type/ast.json b/parser/testdata/01902_dictionary_array_type/ast.json new file mode 100644 index 0000000000..6b33b1c97e --- /dev/null +++ b/parser/testdata/01902_dictionary_array_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_array_source_table", + "tables": [ + { + "table": "dictionary_array_source_table" + } + ] +} diff --git a/parser/testdata/01902_self_aliases_in_columns/ast.json b/parser/testdata/01902_self_aliases_in_columns/ast.json new file mode 100644 index 0000000000..95c24a29ec --- /dev/null +++ b/parser/testdata/01902_self_aliases_in_columns/ast.json @@ -0,0 +1,31 @@ +{ + "table": "a", + "columns": [ + { + "name": "number", + "type": { + "name": "UInt64" + } + }, + { + "name": "x", + "type": null, + "default": { + "parts": [ + "x" + ] + }, + "default_kind": "MATERIALIZED" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "number" + ] + } + ] +} diff --git a/parser/testdata/01902_table_function_merge_db_params/ast.json b/parser/testdata/01902_table_function_merge_db_params/ast.json new file mode 100644 index 0000000000..69f314a792 --- /dev/null +++ b/parser/testdata/01902_table_function_merge_db_params/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01902_db_params", + "drop_database": true +} diff --git a/parser/testdata/01902_table_function_merge_db_repr/ast.json b/parser/testdata/01902_table_function_merge_db_repr/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01902_table_function_merge_db_repr/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01904_dictionary_default_nullable_type/ast.json b/parser/testdata/01904_dictionary_default_nullable_type/ast.json new file mode 100644 index 0000000000..5c9203ef43 --- /dev/null +++ b/parser/testdata/01904_dictionary_default_nullable_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_nullable_source_table", + "tables": [ + { + "table": "dictionary_nullable_source_table" + } + ] +} diff --git a/parser/testdata/01906_h3_to_geo/ast.json b/parser/testdata/01906_h3_to_geo/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/01906_h3_to_geo/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/01906_lc_in_bug/ast.json b/parser/testdata/01906_lc_in_bug/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/01906_lc_in_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/01906_partition_by_multiply_by_zero/ast.json b/parser/testdata/01906_partition_by_multiply_by_zero/ast.json new file mode 100644 index 0000000000..a7dbbca3a4 --- /dev/null +++ b/parser/testdata/01906_partition_by_multiply_by_zero/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_01906", + "tables": [ + { + "table": "t_01906" + } + ] +} diff --git a/parser/testdata/01907_multiple_aliases/ast.json b/parser/testdata/01907_multiple_aliases/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/01907_multiple_aliases/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/01908_with_unknown_column/ast.json b/parser/testdata/01908_with_unknown_column/ast.json new file mode 100644 index 0000000000..dbe6580b07 --- /dev/null +++ b/parser/testdata/01908_with_unknown_column/ast.json @@ -0,0 +1,123 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "with": [ + { + "name": "aa", + "query": { + "left": { + "parts": [ + "a" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + }, + { + "name": "aaif", + "query": { + "name": "sumIf", + "arguments": [ + { + "parts": [ + "aa" + ] + }, + { + "left": { + "parts": [ + "b" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + } + ], + "columns": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "aaif" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "b" + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "a" + ] + } + ] + } + ] + } + }, + "alias": "V" + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01909_mbtolou/ast.json b/parser/testdata/01909_mbtolou/ast.json new file mode 100644 index 0000000000..df5a365387 --- /dev/null +++ b/parser/testdata/01909_mbtolou/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "DATE_INFO_DICT", + "tables": [ + { + "table": "DATE_INFO_DICT" + } + ] +} diff --git a/parser/testdata/01910_memory_tracking_topk/ast.json b/parser/testdata/01910_memory_tracking_topk/ast.json new file mode 100644 index 0000000000..db3a7570ec --- /dev/null +++ b/parser/testdata/01910_memory_tracking_topk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "String", + "value": "100M" + } + } + ] +} diff --git a/parser/testdata/01910_view_dictionary/ast.json b/parser/testdata/01910_view_dictionary/ast.json new file mode 100644 index 0000000000..e97f0faa79 --- /dev/null +++ b/parser/testdata/01910_view_dictionary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_source_en", + "tables": [ + { + "table": "dictionary_source_en" + } + ] +} diff --git a/parser/testdata/01910_view_dictionary_check_refresh/ast.json b/parser/testdata/01910_view_dictionary_check_refresh/ast.json new file mode 100644 index 0000000000..c869e16223 --- /dev/null +++ b/parser/testdata/01910_view_dictionary_check_refresh/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "TestTblDict", + "tables": [ + { + "table": "TestTblDict" + } + ] +} diff --git a/parser/testdata/01911_logical_error_minus/ast.json b/parser/testdata/01911_logical_error_minus/ast.json new file mode 100644 index 0000000000..a1c86ef7af --- /dev/null +++ b/parser/testdata/01911_logical_error_minus/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cross_to_inner_join_rewrite", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01913_exact_rows_before_limit/ast.json b/parser/testdata/01913_exact_rows_before_limit/ast.json new file mode 100644 index 0000000000..4195107c76 --- /dev/null +++ b/parser/testdata/01913_exact_rows_before_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_rows_compact_part", + "tables": [ + { + "table": "test_rows_compact_part" + } + ] +} diff --git a/parser/testdata/01913_exact_rows_before_limit_full/ast.json b/parser/testdata/01913_exact_rows_before_limit_full/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01913_exact_rows_before_limit_full/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01913_fix_column_transformer_replace_format/ast.json b/parser/testdata/01913_fix_column_transformer_replace_format/ast.json new file mode 100644 index 0000000000..f04a093eda --- /dev/null +++ b/parser/testdata/01913_fix_column_transformer_replace_format/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "my_table", + "tables": [ + { + "table": "my_table" + } + ] +} diff --git a/parser/testdata/01913_if_int_decimal/ast.json b/parser/testdata/01913_if_int_decimal/ast.json new file mode 100644 index 0000000000..aab936a9df --- /dev/null +++ b/parser/testdata/01913_if_int_decimal/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 18 + }, + { + "type": "Integer", + "value": 10 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "else": { + "type": "Integer", + "value": 2 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01913_join_push_down_bug/ast.json b/parser/testdata/01913_join_push_down_bug/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01913_join_push_down_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01913_replace_dictionary/ast.json b/parser/testdata/01913_replace_dictionary/ast.json new file mode 100644 index 0000000000..e48bea3f56 --- /dev/null +++ b/parser/testdata/01913_replace_dictionary/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01913_db", + "drop_database": true +} diff --git a/parser/testdata/01913_summing_mt_and_simple_agg_function_with_lc/ast.json b/parser/testdata/01913_summing_mt_and_simple_agg_function_with_lc/ast.json new file mode 100644 index 0000000000..49b9b4ff8c --- /dev/null +++ b/parser/testdata/01913_summing_mt_and_simple_agg_function_with_lc/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "smta", + "tables": [ + { + "table": "smta" + } + ] +} diff --git a/parser/testdata/01914_exchange_dictionaries/ast.json b/parser/testdata/01914_exchange_dictionaries/ast.json new file mode 100644 index 0000000000..b6b4854458 --- /dev/null +++ b/parser/testdata/01914_exchange_dictionaries/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01914_db", + "drop_database": true +} diff --git a/parser/testdata/01914_index_bgranvea/ast.json b/parser/testdata/01914_index_bgranvea/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/01914_index_bgranvea/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/01915_create_or_replace_dictionary/ast.json b/parser/testdata/01915_create_or_replace_dictionary/ast.json new file mode 100644 index 0000000000..393282601d --- /dev/null +++ b/parser/testdata/01915_create_or_replace_dictionary/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_01915_db", + "drop_database": true +} diff --git a/parser/testdata/01915_json_extract_raw_string/ast.json b/parser/testdata/01915_json_extract_raw_string/ast.json new file mode 100644 index 0000000000..4f28684b89 --- /dev/null +++ b/parser/testdata/01915_json_extract_raw_string/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONExtract", + "arguments": [ + { + "type": "String", + "value": "{\"a\": \"123\", \"b\": 456, \"c\": [7, 8, 9]}" + }, + { + "type": "String", + "value": "Tuple(a String, b String, c String)" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01915_merge_prewhere_virtual_column_rand_chao_wang/ast.json b/parser/testdata/01915_merge_prewhere_virtual_column_rand_chao_wang/ast.json new file mode 100644 index 0000000000..ac9584c9be --- /dev/null +++ b/parser/testdata/01915_merge_prewhere_virtual_column_rand_chao_wang/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "abc", + "tables": [ + { + "table": "abc" + } + ] +} diff --git a/parser/testdata/01916_low_cardinality_interval/ast.json b/parser/testdata/01916_low_cardinality_interval/ast.json new file mode 100644 index 0000000000..08c20bcc19 --- /dev/null +++ b/parser/testdata/01916_low_cardinality_interval/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toIntervalSecond", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01916_lowcard_dict_type/ast.json b/parser/testdata/01916_lowcard_dict_type/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01916_lowcard_dict_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01916_multiple_join_view_optimize_predicate_chertus/ast.json b/parser/testdata/01916_multiple_join_view_optimize_predicate_chertus/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/01916_multiple_join_view_optimize_predicate_chertus/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/01917_prewhere_column_type/ast.json b/parser/testdata/01917_prewhere_column_type/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/01917_prewhere_column_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01917_system_data_skipping_indices/ast.json b/parser/testdata/01917_system_data_skipping_indices/ast.json new file mode 100644 index 0000000000..adf76c1b44 --- /dev/null +++ b/parser/testdata/01917_system_data_skipping_indices/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01917", + "tables": [ + { + "table": "data_01917" + } + ] +} diff --git a/parser/testdata/01920_not_chain_format/ast.json b/parser/testdata/01920_not_chain_format/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01920_not_chain_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01921_datatype_date32/ast.json b/parser/testdata/01921_datatype_date32/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01921_datatype_date32/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01921_not_chain/ast.json b/parser/testdata/01921_not_chain/ast.json new file mode 100644 index 0000000000..5383988953 --- /dev/null +++ b/parser/testdata/01921_not_chain/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "!=", + "right": { + "op": "NOT", + "operand": { + "type": "Integer", + "value": 1 + } + } + } + ] + } + ] +} diff --git a/parser/testdata/01922_array_join_with_index/ast.json b/parser/testdata/01922_array_join_with_index/ast.json new file mode 100644 index 0000000000..a218d7d215 --- /dev/null +++ b/parser/testdata/01922_array_join_with_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_array_index", + "tables": [ + { + "table": "t_array_index" + } + ] +} diff --git a/parser/testdata/01922_sum_null_for_remote/ast.json b/parser/testdata/01922_sum_null_for_remote/ast.json new file mode 100644 index 0000000000..80dde14afd --- /dev/null +++ b/parser/testdata/01922_sum_null_for_remote/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "type": "String", + "value": "system" + }, + { + "type": "String", + "value": "one" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01923_different_expression_name_alias/ast.json b/parser/testdata/01923_different_expression_name_alias/ast.json new file mode 100644 index 0000000000..685c7ba03e --- /dev/null +++ b/parser/testdata/01923_different_expression_name_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "distributed_tbl", + "tables": [ + { + "table": "distributed_tbl" + } + ] +} diff --git a/parser/testdata/01923_ttl_with_modify_column/ast.json b/parser/testdata/01923_ttl_with_modify_column/ast.json new file mode 100644 index 0000000000..6973b27c66 --- /dev/null +++ b/parser/testdata/01923_ttl_with_modify_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_ttl_modify_column", + "tables": [ + { + "table": "t_ttl_modify_column" + } + ] +} diff --git a/parser/testdata/01924_argmax_bitmap_state/ast.json b/parser/testdata/01924_argmax_bitmap_state/ast.json new file mode 100644 index 0000000000..327c2dca5b --- /dev/null +++ b/parser/testdata/01924_argmax_bitmap_state/ast.json @@ -0,0 +1,106 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitmapMax", + "arguments": [ + { + "name": "argMax", + "arguments": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupBitmapState", + "arguments": [ + { + "name": "toUInt32", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "x" + }, + { + "parts": [ + "number" + ], + "alias": "y" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01925_broken_partition_id_zookeeper/ast.json b/parser/testdata/01925_broken_partition_id_zookeeper/ast.json new file mode 100644 index 0000000000..7691a743c7 --- /dev/null +++ b/parser/testdata/01925_broken_partition_id_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "broken_partition", + "tables": [ + { + "table": "broken_partition" + } + ] +} diff --git a/parser/testdata/01925_date_date_time_comparison/ast.json b/parser/testdata/01925_date_date_time_comparison/ast.json new file mode 100644 index 0000000000..fad2a4dd69 --- /dev/null +++ b/parser/testdata/01925_date_date_time_comparison/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2000-01-01" + } + ] + }, + "op": "\u003c", + "right": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2000-01-01 00:00:01" + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01925_jit_aggregation_function_count_long/ast.json b/parser/testdata/01925_jit_aggregation_function_count_long/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/01925_jit_aggregation_function_count_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01925_join_materialized_columns/ast.json b/parser/testdata/01925_join_materialized_columns/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/01925_join_materialized_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/01925_json_as_string_data_in_square_brackets/ast.json b/parser/testdata/01925_json_as_string_data_in_square_brackets/ast.json new file mode 100644 index 0000000000..8ebe3d63c3 --- /dev/null +++ b/parser/testdata/01925_json_as_string_data_in_square_brackets/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "json_square_brackets", + "tables": [ + { + "table": "json_square_brackets" + } + ] +} diff --git a/parser/testdata/01925_map_populate_series_on_map/ast.json b/parser/testdata/01925_map_populate_series_on_map/ast.json new file mode 100644 index 0000000000..ea07bcd0cc --- /dev/null +++ b/parser/testdata/01925_map_populate_series_on_map/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_test", + "tables": [ + { + "table": "map_test" + } + ] +} diff --git a/parser/testdata/01925_merge_prewhere_table/ast.json b/parser/testdata/01925_merge_prewhere_table/ast.json new file mode 100644 index 0000000000..d31fe4a50e --- /dev/null +++ b/parser/testdata/01925_merge_prewhere_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x_1", + "tables": [ + { + "table": "x_1" + } + ] +} diff --git a/parser/testdata/01925_test_group_by_const_consistency/ast.json b/parser/testdata/01925_test_group_by_const_consistency/ast.json new file mode 100644 index 0000000000..b1dab08ac3 --- /dev/null +++ b/parser/testdata/01925_test_group_by_const_consistency/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "where": { + "type": "Integer", + "value": 0 + }, + "group_by": [ + { + "parts": [ + "a" + ] + } + ] + } + ] +} diff --git a/parser/testdata/01925_test_storage_merge_aliases/ast.json b/parser/testdata/01925_test_storage_merge_aliases/ast.json new file mode 100644 index 0000000000..615a4c2c01 --- /dev/null +++ b/parser/testdata/01925_test_storage_merge_aliases/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge", + "tables": [ + { + "table": "merge" + } + ] +} diff --git a/parser/testdata/01925_test_storage_merge_aliases_analyzer/ast.json b/parser/testdata/01925_test_storage_merge_aliases_analyzer/ast.json new file mode 100644 index 0000000000..615a4c2c01 --- /dev/null +++ b/parser/testdata/01925_test_storage_merge_aliases_analyzer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge", + "tables": [ + { + "table": "merge" + } + ] +} diff --git a/parser/testdata/01926_bin_unbin/ast.json b/parser/testdata/01926_bin_unbin/ast.json new file mode 100644 index 0000000000..8b36605e11 --- /dev/null +++ b/parser/testdata/01926_bin_unbin/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bin", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01926_date_date_time_supertype/ast.json b/parser/testdata/01926_date_date_time_supertype/ast.json new file mode 100644 index 0000000000..bcc2159c1f --- /dev/null +++ b/parser/testdata/01926_date_date_time_supertype/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Array" + } + ] + } + ] +} diff --git a/parser/testdata/01926_order_by_desc_limit/ast.json b/parser/testdata/01926_order_by_desc_limit/ast.json new file mode 100644 index 0000000000..d222a7f891 --- /dev/null +++ b/parser/testdata/01926_order_by_desc_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "order_by_desc", + "tables": [ + { + "table": "order_by_desc" + } + ] +} diff --git a/parser/testdata/01927_query_views_log_current_database/ast.json b/parser/testdata/01927_query_views_log_current_database/ast.json new file mode 100644 index 0000000000..923d575f4c --- /dev/null +++ b/parser/testdata/01927_query_views_log_current_database/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01930_optimize_skip_unused_shards_rewrite_in/ast.json b/parser/testdata/01930_optimize_skip_unused_shards_rewrite_in/ast.json new file mode 100644 index 0000000000..a7f6f9e84b --- /dev/null +++ b/parser/testdata/01930_optimize_skip_unused_shards_rewrite_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01931_storage_merge_no_columns/ast.json b/parser/testdata/01931_storage_merge_no_columns/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/01931_storage_merge_no_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/01932_alter_index_with_order/ast.json b/parser/testdata/01932_alter_index_with_order/ast.json new file mode 100644 index 0000000000..918c65b399 --- /dev/null +++ b/parser/testdata/01932_alter_index_with_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_index_test", + "tables": [ + { + "table": "alter_index_test" + } + ] +} diff --git a/parser/testdata/01932_global_in_function/ast.json b/parser/testdata/01932_global_in_function/ast.json new file mode 100644 index 0000000000..996b4e351e --- /dev/null +++ b/parser/testdata/01932_global_in_function/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "cluster", + "arguments": [ + { + "parts": [ + "test_cluster_two_shards_localhost" + ] + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "number" + ] + }, + "global": true, + "list": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + } + ] +} diff --git a/parser/testdata/01932_null_valid_identifier/ast.json b/parser/testdata/01932_null_valid_identifier/ast.json new file mode 100644 index 0000000000..c9742a4b67 --- /dev/null +++ b/parser/testdata/01932_null_valid_identifier/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "null" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.2" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "null" + } + ] + } + ] + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01932_remote_sharding_key_column/ast.json b/parser/testdata/01932_remote_sharding_key_column/ast.json new file mode 100644 index 0000000000..ae466426bd --- /dev/null +++ b/parser/testdata/01932_remote_sharding_key_column/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.1" + }, + { + "parts": [ + "system", + "one" + ] + }, + { + "parts": [ + "dummy" + ] + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/01933_invalid_date/ast.json b/parser/testdata/01933_invalid_date/ast.json new file mode 100644 index 0000000000..e79b4ae35b --- /dev/null +++ b/parser/testdata/01933_invalid_date/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "07-08-2019" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01934_constexpr_aggregate_function_parameters/ast.json b/parser/testdata/01934_constexpr_aggregate_function_parameters/ast.json new file mode 100644 index 0000000000..6bf048c506 --- /dev/null +++ b/parser/testdata/01934_constexpr_aggregate_function_parameters/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "parameters": [ + { + "left": { + "type": "Integer", + "value": 2 + }, + "op": "+", + "right": { + "type": "Integer", + "value": 3 + } + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01936_empty_function_support_uuid/ast.json b/parser/testdata/01936_empty_function_support_uuid/ast.json new file mode 100644 index 0000000000..25c824d823 --- /dev/null +++ b/parser/testdata/01936_empty_function_support_uuid/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "empty", + "arguments": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "00000000-0000-0000-0000-000000000000" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/01936_quantiles_cannot_return_null/ast.json b/parser/testdata/01936_quantiles_cannot_return_null/ast.json new file mode 100644 index 0000000000..7e69f9d4e5 --- /dev/null +++ b/parser/testdata/01936_quantiles_cannot_return_null/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "aggregate_functions_null_for_empty", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01936_three_parts_identifiers_in_wrong_places/ast.json b/parser/testdata/01936_three_parts_identifiers_in_wrong_places/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/01936_three_parts_identifiers_in_wrong_places/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01937_nested_chinese/ast.json b/parser/testdata/01937_nested_chinese/ast.json new file mode 100644 index 0000000000..7cd02da0fa --- /dev/null +++ b/parser/testdata/01937_nested_chinese/ast.json @@ -0,0 +1,45 @@ +{ + "temporary": true, + "table": "test", + "columns": [ + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "products", + "type": { + "name": "Nested", + "parameters": [ + { + "name": "产品", + "type": { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "销量", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Int32" + } + ], + "has_parentheses": true + } + } + ], + "has_parentheses": true + } + } + ] +} diff --git a/parser/testdata/01938_joins_identifiers/ast.json b/parser/testdata/01938_joins_identifiers/ast.json new file mode 100644 index 0000000000..d46a6f93b0 --- /dev/null +++ b/parser/testdata/01938_joins_identifiers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "/t0", + "tables": [ + { + "table": "/t0" + } + ] +} diff --git a/parser/testdata/01939_type_map_json/ast.json b/parser/testdata/01939_type_map_json/ast.json new file mode 100644 index 0000000000..328b85c20d --- /dev/null +++ b/parser/testdata/01939_type_map_json/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ], + "alias": "m" + } + ], + "format": { + "parts": [ + "JSONEachRow" + ] + } + } + ] +} diff --git a/parser/testdata/01940_custom_tld_sharding_key/ast.json b/parser/testdata/01940_custom_tld_sharding_key/ast.json new file mode 100644 index 0000000000..052d6f318a --- /dev/null +++ b/parser/testdata/01940_custom_tld_sharding_key/ast.json @@ -0,0 +1,95 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.{1,2}" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "foo.com" + }, + "alias": "key" + } + ] + } + ] + } + } + ] + }, + { + "name": "cityHash64", + "arguments": [ + { + "parts": [ + "key" + ] + } + ] + } + ] + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "key" + ] + }, + "op": "=", + "right": { + "name": "cutToFirstSignificantSubdomainCustom", + "arguments": [ + { + "type": "String", + "value": "foo.com" + }, + { + "type": "String", + "value": "public_suffix_list" + } + ] + } + }, + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "force_optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/01940_pad_string/ast.json b/parser/testdata/01940_pad_string/ast.json new file mode 100644 index 0000000000..3bf94af35e --- /dev/null +++ b/parser/testdata/01940_pad_string/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "leftPad" + } + ] + } + ] +} diff --git a/parser/testdata/01940_point_in_polygon_ubsan/ast.json b/parser/testdata/01940_point_in_polygon_ubsan/ast.json new file mode 100644 index 0000000000..98d4d8c6dc --- /dev/null +++ b/parser/testdata/01940_point_in_polygon_ubsan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "validate_polygons", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01940_totimezone_operator_monotonicity/ast.json b/parser/testdata/01940_totimezone_operator_monotonicity/ast.json new file mode 100644 index 0000000000..fcad7cb211 --- /dev/null +++ b/parser/testdata/01940_totimezone_operator_monotonicity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "totimezone_op_mono", + "tables": [ + { + "table": "totimezone_op_mono" + } + ] +} diff --git a/parser/testdata/01941_dict_get_has_complex_single_key/ast.json b/parser/testdata/01941_dict_get_has_complex_single_key/ast.json new file mode 100644 index 0000000000..cfb47be801 --- /dev/null +++ b/parser/testdata/01941_dict_get_has_complex_single_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_dictionary_source", + "tables": [ + { + "table": "test_dictionary_source" + } + ] +} diff --git a/parser/testdata/01942_create_table_with_sample/ast.json b/parser/testdata/01942_create_table_with_sample/ast.json new file mode 100644 index 0000000000..ea2f0172de --- /dev/null +++ b/parser/testdata/01942_create_table_with_sample/ast.json @@ -0,0 +1,32 @@ +{ + "if_not_exists": true, + "table": "sample_incorrect", + "columns": [ + { + "name": "x", + "type": { + "name": "UUID" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "sample_by": { + "parts": [ + "x" + ] + } +} diff --git a/parser/testdata/01942_dateTimeToSnowflake/ast.json b/parser/testdata/01942_dateTimeToSnowflake/ast.json new file mode 100644 index 0000000000..a623c965d4 --- /dev/null +++ b/parser/testdata/01942_dateTimeToSnowflake/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_snowflake_conversion_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01942_dateTimeToSnowflakeID/ast.json b/parser/testdata/01942_dateTimeToSnowflakeID/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/01942_dateTimeToSnowflakeID/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/01942_snowflakeIDToDateTime/ast.json b/parser/testdata/01942_snowflakeIDToDateTime/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/01942_snowflakeIDToDateTime/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/01942_snowflakeToDateTime/ast.json b/parser/testdata/01942_snowflakeToDateTime/ast.json new file mode 100644 index 0000000000..a623c965d4 --- /dev/null +++ b/parser/testdata/01942_snowflakeToDateTime/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_snowflake_conversion_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01943_log_column_sizes/ast.json b/parser/testdata/01943_log_column_sizes/ast.json new file mode 100644 index 0000000000..1448c123d4 --- /dev/null +++ b/parser/testdata/01943_log_column_sizes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_log", + "tables": [ + { + "table": "test_log" + } + ] +} diff --git a/parser/testdata/01943_non_deterministic_order_key/ast.json b/parser/testdata/01943_non_deterministic_order_key/ast.json new file mode 100644 index 0000000000..251a29842b --- /dev/null +++ b/parser/testdata/01943_non_deterministic_order_key/ast.json @@ -0,0 +1,54 @@ +{ + "table": "a", + "columns": [ + { + "name": "number", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "if", + "arguments": [ + { + "left": { + "name": "now" + }, + "op": "\u003e", + "right": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-06-01 13:31:40" + } + ] + } + }, + { + "name": "toInt64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "op": "-", + "operand": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/01943_query_id_check/ast.json b/parser/testdata/01943_query_id_check/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/01943_query_id_check/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01944_range_max_elements/ast.json b/parser/testdata/01944_range_max_elements/ast.json new file mode 100644 index 0000000000..39dfb25681 --- /dev/null +++ b/parser/testdata/01944_range_max_elements/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "function_range_max_elements_in_block", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/01946_profile_sleep/ast.json b/parser/testdata/01946_profile_sleep/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01946_profile_sleep/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01947_mv_subquery/ast.json b/parser/testdata/01947_mv_subquery/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/01947_mv_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01948_dictionary_quoted_database_name/ast.json b/parser/testdata/01948_dictionary_quoted_database_name/ast.json new file mode 100644 index 0000000000..618479d2c7 --- /dev/null +++ b/parser/testdata/01948_dictionary_quoted_database_name/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "01945.db", + "drop_database": true +} diff --git a/parser/testdata/01948_group_bitmap_and_or_xor_fix/ast.json b/parser/testdata/01948_group_bitmap_and_or_xor_fix/ast.json new file mode 100644 index 0000000000..293c770015 --- /dev/null +++ b/parser/testdata/01948_group_bitmap_and_or_xor_fix/ast.json @@ -0,0 +1,107 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupBitmapAnd", + "arguments": [ + { + "name": "bitmapBuild", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + }, + { + "name": "groupBitmapOr", + "arguments": [ + { + "name": "bitmapBuild", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + }, + { + "name": "groupBitmapXor", + "arguments": [ + { + "name": "bitmapBuild", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "cluster", + "arguments": [ + { + "parts": [ + "test_cluster_two_shards" + ] + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01948_heredoc/ast.json b/parser/testdata/01948_heredoc/ast.json new file mode 100644 index 0000000000..b5b4669fce --- /dev/null +++ b/parser/testdata/01948_heredoc/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "" + } + ] + } + ] +} diff --git a/parser/testdata/01950_aliases_bad_cast/ast.json b/parser/testdata/01950_aliases_bad_cast/ast.json new file mode 100644 index 0000000000..3c2b5e83d0 --- /dev/null +++ b/parser/testdata/01950_aliases_bad_cast/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + }, + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Null", + "value": null + }, + "alias": "1" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/01951_distributed_push_down_limit/ast.json b/parser/testdata/01951_distributed_push_down_limit/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/01951_distributed_push_down_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01952_optimize_distributed_group_by_sharding_key/ast.json b/parser/testdata/01952_optimize_distributed_group_by_sharding_key/ast.json new file mode 100644 index 0000000000..a7f6f9e84b --- /dev/null +++ b/parser/testdata/01952_optimize_distributed_group_by_sharding_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_skip_unused_shards", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/01958_partial_hour_timezone/ast.json b/parser/testdata/01958_partial_hour_timezone/ast.json new file mode 100644 index 0000000000..a805056b35 --- /dev/null +++ b/parser/testdata/01958_partial_hour_timezone/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_single_large_number_tip_threshold", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01961_roaring_memory_tracking/ast.json b/parser/testdata/01961_roaring_memory_tracking/ast.json new file mode 100644 index 0000000000..5dd0e1cc44 --- /dev/null +++ b/parser/testdata/01961_roaring_memory_tracking/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/01999_grant_with_replace/ast.json b/parser/testdata/01999_grant_with_replace/ast.json new file mode 100644 index 0000000000..a8b02eddfd --- /dev/null +++ b/parser/testdata/01999_grant_with_replace/ast.json @@ -0,0 +1,4 @@ +{ + "if_exists": true, + "user": "test_user_01999" +} diff --git a/parser/testdata/02000_default_from_default_empty_column/ast.json b/parser/testdata/02000_default_from_default_empty_column/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02000_default_from_default_empty_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02000_join_on_const/ast.json b/parser/testdata/02000_join_on_const/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02000_join_on_const/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02000_map_full_text_bloom_filter_index/ast.json b/parser/testdata/02000_map_full_text_bloom_filter_index/ast.json new file mode 100644 index 0000000000..65bb312b55 --- /dev/null +++ b/parser/testdata/02000_map_full_text_bloom_filter_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bf_tokenbf_map_keys_test", + "tables": [ + { + "table": "bf_tokenbf_map_keys_test" + } + ] +} diff --git a/parser/testdata/02000_table_function_cluster_macros/ast.json b/parser/testdata/02000_table_function_cluster_macros/ast.json new file mode 100644 index 0000000000..56b2670df3 --- /dev/null +++ b/parser/testdata/02000_table_function_cluster_macros/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "_shard_num" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "cluster", + "arguments": [ + { + "parts": [ + "{default_cluster_macro}" + ] + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02001_dist_on_dist_WithMergeableStateAfterAggregation/ast.json b/parser/testdata/02001_dist_on_dist_WithMergeableStateAfterAggregation/ast.json new file mode 100644 index 0000000000..373e19c293 --- /dev/null +++ b/parser/testdata/02001_dist_on_dist_WithMergeableStateAfterAggregation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dist", + "tables": [ + { + "table": "dist" + } + ] +} diff --git a/parser/testdata/02001_hostname_test/ast.json b/parser/testdata/02001_hostname_test/ast.json new file mode 100644 index 0000000000..ee56318706 --- /dev/null +++ b/parser/testdata/02001_hostname_test/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hostname" + } + ] + } + ] +} diff --git a/parser/testdata/02001_join_on_const/ast.json b/parser/testdata/02001_join_on_const/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02001_join_on_const/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02001_shard_num_shard_count/ast.json b/parser/testdata/02001_shard_num_shard_count/ast.json new file mode 100644 index 0000000000..ad7209a69a --- /dev/null +++ b/parser/testdata/02001_shard_num_shard_count/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "shardNum", + "alias": "n" + }, + { + "name": "shardCount", + "alias": "c" + } + ] + } + ] +} diff --git a/parser/testdata/02002_parse_map_int_key/ast.json b/parser/testdata/02002_parse_map_int_key/ast.json new file mode 100644 index 0000000000..a02a04c75c --- /dev/null +++ b/parser/testdata/02002_parse_map_int_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_map_int_key", + "tables": [ + { + "table": "t_map_int_key" + } + ] +} diff --git a/parser/testdata/02002_sampling_and_unknown_column_bug/ast.json b/parser/testdata/02002_sampling_and_unknown_column_bug/ast.json new file mode 100644 index 0000000000..a972121bef --- /dev/null +++ b/parser/testdata/02002_sampling_and_unknown_column_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sessions", + "tables": [ + { + "table": "sessions" + } + ] +} diff --git a/parser/testdata/02003_WithMergeableStateAfterAggregationAndLimit_LIMIT_BY_LIMIT_OFFSET/ast.json b/parser/testdata/02003_WithMergeableStateAfterAggregationAndLimit_LIMIT_BY_LIMIT_OFFSET/ast.json new file mode 100644 index 0000000000..ca63e02402 --- /dev/null +++ b/parser/testdata/02003_WithMergeableStateAfterAggregationAndLimit_LIMIT_BY_LIMIT_OFFSET/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "" + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/02003_bug_from_23515/ast.json b/parser/testdata/02003_bug_from_23515/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02003_bug_from_23515/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02004_intersect_except_distinct_operators/ast.json b/parser/testdata/02004_intersect_except_distinct_operators/ast.json new file mode 100644 index 0000000000..89f4cb40b0 --- /dev/null +++ b/parser/testdata/02004_intersect_except_distinct_operators/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "intersect_default_mode", + "value": { + "type": "String", + "value": "DISTINCT" + } + } + ] +} diff --git a/parser/testdata/02004_invalid_partition_mutation_stuck/ast.json b/parser/testdata/02004_invalid_partition_mutation_stuck/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02004_invalid_partition_mutation_stuck/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02004_max_hyperscan_regex_length/ast.json b/parser/testdata/02004_max_hyperscan_regex_length/ast.json new file mode 100644 index 0000000000..b8401c378b --- /dev/null +++ b/parser/testdata/02004_max_hyperscan_regex_length/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_hyperscan_regexp_length", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02005_log_formatted_queries/ast.json b/parser/testdata/02005_log_formatted_queries/ast.json new file mode 100644 index 0000000000..88f7308457 --- /dev/null +++ b/parser/testdata/02005_log_formatted_queries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_formatted_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02006_client_test_hint_error_name/ast.json b/parser/testdata/02006_client_test_hint_error_name/ast.json new file mode 100644 index 0000000000..580dd1ebb8 --- /dev/null +++ b/parser/testdata/02006_client_test_hint_error_name/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "throwIf", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02006_h3_to_geo_boundary/ast.json b/parser/testdata/02006_h3_to_geo_boundary/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02006_h3_to_geo_boundary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02006_test_positional_arguments/ast.json b/parser/testdata/02006_test_positional_arguments/ast.json new file mode 100644 index 0000000000..075492e9d5 --- /dev/null +++ b/parser/testdata/02006_test_positional_arguments/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "group_by_two_level_threshold", + "value": { + "type": "Integer", + "value": 100000 + } + } + ] +} diff --git a/parser/testdata/02006_todatetime64_from_string/ast.json b/parser/testdata/02006_todatetime64_from_string/ast.json new file mode 100644 index 0000000000..9b1fed1512 --- /dev/null +++ b/parser/testdata/02006_todatetime64_from_string/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2021-03-22" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "Asia/Tehran" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02007_join_use_nulls/ast.json b/parser/testdata/02007_join_use_nulls/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/02007_join_use_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02008_aliased_column_distributed_bug/ast.json b/parser/testdata/02008_aliased_column_distributed_bug/ast.json new file mode 100644 index 0000000000..ee016082e8 --- /dev/null +++ b/parser/testdata/02008_aliased_column_distributed_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "click_storage", + "tables": [ + { + "table": "click_storage" + } + ] +} diff --git a/parser/testdata/02008_complex_key_range_hashed_dictionary/ast.json b/parser/testdata/02008_complex_key_range_hashed_dictionary/ast.json new file mode 100644 index 0000000000..889792ab6f --- /dev/null +++ b/parser/testdata/02008_complex_key_range_hashed_dictionary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "date_table", + "tables": [ + { + "table": "date_table" + } + ] +} diff --git a/parser/testdata/02008_materialize_column/ast.json b/parser/testdata/02008_materialize_column/ast.json new file mode 100644 index 0000000000..03dac8cb94 --- /dev/null +++ b/parser/testdata/02008_materialize_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tmp", + "tables": [ + { + "table": "tmp" + } + ] +} diff --git a/parser/testdata/02008_test_union_distinct_in_subquery/ast.json b/parser/testdata/02008_test_union_distinct_in_subquery/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02008_test_union_distinct_in_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02008_tuple_to_name_value_pairs/ast.json b/parser/testdata/02008_tuple_to_name_value_pairs/ast.json new file mode 100644 index 0000000000..f25ea932dc --- /dev/null +++ b/parser/testdata/02008_tuple_to_name_value_pairs/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleToNameValuePairs", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02009_array_join_partition/ast.json b/parser/testdata/02009_array_join_partition/ast.json new file mode 100644 index 0000000000..285ffb72c4 --- /dev/null +++ b/parser/testdata/02009_array_join_partition/ast.json @@ -0,0 +1,43 @@ +{ + "table": "table_2009_part", + "columns": [ + { + "name": "i", + "type": { + "name": "Int64" + } + }, + { + "name": "d", + "type": { + "name": "Date" + } + }, + { + "name": "s", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "i" + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "d" + ] + } + ] + } +} diff --git a/parser/testdata/02009_decimal_no_trailing_zeros/ast.json b/parser/testdata/02009_decimal_no_trailing_zeros/ast.json new file mode 100644 index 0000000000..c93adf94aa --- /dev/null +++ b/parser/testdata/02009_decimal_no_trailing_zeros/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Float", + "value": 1.123 + }, + "type": { + "name": "Decimal64", + "parameters": [ + { + "type": "Integer", + "value": 1 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ] +} diff --git a/parser/testdata/02010_array_index_bad_cast/ast.json b/parser/testdata/02010_array_index_bad_cast/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02010_array_index_bad_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02011_dictionary_empty_attribute_list/ast.json b/parser/testdata/02011_dictionary_empty_attribute_list/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02011_dictionary_empty_attribute_list/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02011_normalize_utf8/ast.json b/parser/testdata/02011_normalize_utf8/ast.json new file mode 100644 index 0000000000..48191ee08c --- /dev/null +++ b/parser/testdata/02011_normalize_utf8/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "normalize_test", + "tables": [ + { + "table": "normalize_test" + } + ] +} diff --git a/parser/testdata/02011_tuple_vector_functions/ast.json b/parser/testdata/02011_tuple_vector_functions/ast.json new file mode 100644 index 0000000000..da362999ca --- /dev/null +++ b/parser/testdata/02011_tuple_vector_functions/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleHammingDistance", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02012_changed_enum_type_non_replicated/ast.json b/parser/testdata/02012_changed_enum_type_non_replicated/ast.json new file mode 100644 index 0000000000..bc2d421c56 --- /dev/null +++ b/parser/testdata/02012_changed_enum_type_non_replicated/ast.json @@ -0,0 +1,47 @@ +{ + "table": "enum_alter_issue", + "columns": [ + { + "name": "a", + "type": { + "name": "Enum8", + "parameters": [ + { + "left": { + "type": "String", + "value": "one" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "type": "String", + "value": "two" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ] +} diff --git a/parser/testdata/02012_get_server_port/ast.json b/parser/testdata/02012_get_server_port/ast.json new file mode 100644 index 0000000000..c3d59c87bb --- /dev/null +++ b/parser/testdata/02012_get_server_port/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "getServerPort", + "arguments": [ + { + "type": "String", + "value": "tcp_port" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02012_low_cardinality_uuid_with_extremes/ast.json b/parser/testdata/02012_low_cardinality_uuid_with_extremes/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/02012_low_cardinality_uuid_with_extremes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/02012_settings_clause_for_s3/ast.json b/parser/testdata/02012_settings_clause_for_s3/ast.json new file mode 100644 index 0000000000..ec90f5d907 --- /dev/null +++ b/parser/testdata/02012_settings_clause_for_s3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_with_range", + "tables": [ + { + "table": "table_with_range" + } + ] +} diff --git a/parser/testdata/02012_sha512_fixedstring/ast.json b/parser/testdata/02012_sha512_fixedstring/ast.json new file mode 100644 index 0000000000..d8b5cc9f6e --- /dev/null +++ b/parser/testdata/02012_sha512_fixedstring/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "SHA512", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02012_zookeeper_changed_enum_type_incompatible/ast.json b/parser/testdata/02012_zookeeper_changed_enum_type_incompatible/ast.json new file mode 100644 index 0000000000..53fc186f4f --- /dev/null +++ b/parser/testdata/02012_zookeeper_changed_enum_type_incompatible/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "enum_alter_issue", + "tables": [ + { + "table": "enum_alter_issue" + } + ] +} diff --git a/parser/testdata/02013_bloom_filter_hasAll/ast.json b/parser/testdata/02013_bloom_filter_hasAll/ast.json new file mode 100644 index 0000000000..78b299db67 --- /dev/null +++ b/parser/testdata/02013_bloom_filter_hasAll/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bftest", + "tables": [ + { + "table": "bftest" + } + ] +} diff --git a/parser/testdata/02013_emptystring_cast/ast.json b/parser/testdata/02013_emptystring_cast/ast.json new file mode 100644 index 0000000000..9c41d19154 --- /dev/null +++ b/parser/testdata/02013_emptystring_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_uint64", + "tables": [ + { + "table": "test_uint64" + } + ] +} diff --git a/parser/testdata/02013_json_function_null_column/ast.json b/parser/testdata/02013_json_function_null_column/ast.json new file mode 100644 index 0000000000..deab36deeb --- /dev/null +++ b/parser/testdata/02013_json_function_null_column/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONExtract", + "arguments": [ + { + "type": "String", + "value": "{\"string_value\":null}" + }, + { + "type": "String", + "value": "string_value" + }, + { + "type": "String", + "value": "Nullable(String)" + } + ], + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02013_lc_nullable_and_infinity/ast.json b/parser/testdata/02013_lc_nullable_and_infinity/ast.json new file mode 100644 index 0000000000..8f411c1442 --- /dev/null +++ b/parser/testdata/02013_lc_nullable_and_infinity/ast.json @@ -0,0 +1,60 @@ +{ + "settings": [ + { + "name": "receive_timeout", + "value": { + "type": "String", + "value": "10" + } + }, + { + "name": "receive_data_timeout_ms", + "value": { + "type": "String", + "value": "10000" + } + }, + { + "name": "extremes", + "value": { + "type": "String", + "value": "1" + } + }, + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "String", + "value": "1" + } + }, + { + "name": "force_primary_key", + "value": { + "type": "String", + "value": "1" + } + }, + { + "name": "join_use_nulls", + "value": { + "type": "String", + "value": "1" + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "2" + } + }, + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/02014_dict_get_nullable_key/ast.json b/parser/testdata/02014_dict_get_nullable_key/ast.json new file mode 100644 index 0000000000..7fce71e9f0 --- /dev/null +++ b/parser/testdata/02014_dict_get_nullable_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_non_nullable_source_table", + "tables": [ + { + "table": "dictionary_non_nullable_source_table" + } + ] +} diff --git a/parser/testdata/02014_map_different_keys/ast.json b/parser/testdata/02014_map_different_keys/ast.json new file mode 100644 index 0000000000..bb6b3252ff --- /dev/null +++ b/parser/testdata/02014_map_different_keys/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "...const maps..." + } + ] + } + ] +} diff --git a/parser/testdata/02014_storage_merge_order_by/ast.json b/parser/testdata/02014_storage_merge_order_by/ast.json new file mode 100644 index 0000000000..1feb7639af --- /dev/null +++ b/parser/testdata/02014_storage_merge_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "short", + "tables": [ + { + "table": "short" + } + ] +} diff --git a/parser/testdata/02015_column_default_dict_get_identifier/ast.json b/parser/testdata/02015_column_default_dict_get_identifier/ast.json new file mode 100644 index 0000000000..0f5cf66703 --- /dev/null +++ b/parser/testdata/02015_column_default_dict_get_identifier/ast.json @@ -0,0 +1,33 @@ +{ + "table": "test_table", + "columns": [ + { + "name": "key_column", + "type": { + "name": "UInt64" + } + }, + { + "name": "data_column_1", + "type": { + "name": "UInt64" + } + }, + { + "name": "data_column_2", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "key_column" + ] + } + ] +} diff --git a/parser/testdata/02015_division_by_nullable/ast.json b/parser/testdata/02015_division_by_nullable/ast.json new file mode 100644 index 0000000000..a6063e84ca --- /dev/null +++ b/parser/testdata/02015_division_by_nullable/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "/", + "right": { + "expr": { + "type": "Null", + "value": null + }, + "type": { + "name": "Nullable(Decimal(7, 2))" + } + } + } + ] + } + ] +} diff --git a/parser/testdata/02015_executable_user_defined_functions/ast.json b/parser/testdata/02015_executable_user_defined_functions/ast.json new file mode 100644 index 0000000000..be87af43a3 --- /dev/null +++ b/parser/testdata/02015_executable_user_defined_functions/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "test_function", + "arguments": [ + { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02016_agg_empty_result_bug_28880/ast.json b/parser/testdata/02016_agg_empty_result_bug_28880/ast.json new file mode 100644 index 0000000000..8a82f18847 --- /dev/null +++ b/parser/testdata/02016_agg_empty_result_bug_28880/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "alias": "cnt" + } + ], + "where": { + "type": "Integer", + "value": 0 + }, + "having": { + "left": { + "parts": [ + "cnt" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/02016_aggregation_spark_bar/ast.json b/parser/testdata/02016_aggregation_spark_bar/ast.json new file mode 100644 index 0000000000..0da3f35f5a --- /dev/null +++ b/parser/testdata/02016_aggregation_spark_bar/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "spark_bar_test", + "tables": [ + { + "table": "spark_bar_test" + } + ] +} diff --git a/parser/testdata/02016_bit_shift_right_for_string_integer/ast.json b/parser/testdata/02016_bit_shift_right_for_string_integer/ast.json new file mode 100644 index 0000000000..abe85aed08 --- /dev/null +++ b/parser/testdata/02016_bit_shift_right_for_string_integer/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "String ConstConst" + } + ] + } + ] +} diff --git a/parser/testdata/02016_order_by_with_fill_monotonic_functions_removal/ast.json b/parser/testdata/02016_order_by_with_fill_monotonic_functions_removal/ast.json new file mode 100644 index 0000000000..e0c7c60fe3 --- /dev/null +++ b/parser/testdata/02016_order_by_with_fill_monotonic_functions_removal/ast.json @@ -0,0 +1,79 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfMinute", + "arguments": [ + { + "parts": [ + "some_time" + ] + } + ], + "alias": "ts" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2021-07-07 15:21:05" + } + ], + "alias": "some_time" + } + ] + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "ts" + ] + }, + "with_fill": true, + "fill_from": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2021-07-07 15:21:00" + } + ] + }, + "fill_to": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2021-07-07 15:21:15" + } + ] + }, + "fill_step": { + "type": "Integer", + "value": 5 + } + } + ] + } + ] +} diff --git a/parser/testdata/02016_summing_mt_aggregating_column/ast.json b/parser/testdata/02016_summing_mt_aggregating_column/ast.json new file mode 100644 index 0000000000..e1fcba5b43 --- /dev/null +++ b/parser/testdata/02016_summing_mt_aggregating_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "summing_mt_aggregating_column", + "tables": [ + { + "table": "summing_mt_aggregating_column" + } + ] +} diff --git a/parser/testdata/02017_bit_shift_left_for_string_integer/ast.json b/parser/testdata/02017_bit_shift_left_for_string_integer/ast.json new file mode 100644 index 0000000000..abe85aed08 --- /dev/null +++ b/parser/testdata/02017_bit_shift_left_for_string_integer/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "String ConstConst" + } + ] + } + ] +} diff --git a/parser/testdata/02017_columns_with_dot/ast.json b/parser/testdata/02017_columns_with_dot/ast.json new file mode 100644 index 0000000000..c27a3d5b6d --- /dev/null +++ b/parser/testdata/02017_columns_with_dot/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_with_dots", + "tables": [ + { + "table": "t_with_dots" + } + ] +} diff --git a/parser/testdata/02017_columns_with_dot_2/ast.json b/parser/testdata/02017_columns_with_dot_2/ast.json new file mode 100644 index 0000000000..6093e04173 --- /dev/null +++ b/parser/testdata/02017_columns_with_dot_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_nested", + "tables": [ + { + "table": "test_nested" + } + ] +} diff --git a/parser/testdata/02017_create_distributed_table_coredump/ast.json b/parser/testdata/02017_create_distributed_table_coredump/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02017_create_distributed_table_coredump/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02020_cast_integer_overflow/ast.json b/parser/testdata/02020_cast_integer_overflow/ast.json new file mode 100644 index 0000000000..578d46d7d1 --- /dev/null +++ b/parser/testdata/02020_cast_integer_overflow/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toInt32", + "arguments": [ + { + "type": "String", + "value": "-2147483648" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02020_exponential_smoothing/ast.json b/parser/testdata/02020_exponential_smoothing/ast.json new file mode 100644 index 0000000000..3d5c5dd149 --- /dev/null +++ b/parser/testdata/02020_exponential_smoothing/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "exponentialMovingAverage" + } + ] + } + ] +} diff --git a/parser/testdata/02021_exponential_sum/ast.json b/parser/testdata/02021_exponential_sum/ast.json new file mode 100644 index 0000000000..9545525bcf --- /dev/null +++ b/parser/testdata/02021_exponential_sum/ast.json @@ -0,0 +1,79 @@ +{ + "selects": [ + { + "with": [ + { + "name": "value", + "query": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + }, + { + "name": "time", + "query": { + "parts": [ + "number" + ] + } + } + ], + "columns": [ + { + "name": "exponentialMovingAverage", + "parameters": [ + { + "type": "Integer", + "value": 1 + } + ], + "arguments": [ + { + "parts": [ + "value" + ] + }, + { + "parts": [ + "time" + ] + } + ], + "alias": "exp_smooth" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02021_exponential_sum_shard/ast.json b/parser/testdata/02021_exponential_sum_shard/ast.json new file mode 100644 index 0000000000..a76e9fc564 --- /dev/null +++ b/parser/testdata/02021_exponential_sum_shard/ast.json @@ -0,0 +1,88 @@ +{ + "selects": [ + { + "with": [ + { + "name": "value", + "query": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + }, + { + "name": "time", + "query": { + "parts": [ + "number" + ] + } + } + ], + "columns": [ + { + "name": "exponentialMovingAverage", + "parameters": [ + { + "type": "Integer", + "value": 1 + } + ], + "arguments": [ + { + "parts": [ + "value" + ] + }, + { + "parts": [ + "time" + ] + } + ], + "alias": "exp_smooth" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1..10}" + }, + { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02021_h3_get_faces/ast.json b/parser/testdata/02021_h3_get_faces/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02021_h3_get_faces/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02021_h3_is_pentagon/ast.json b/parser/testdata/02021_h3_is_pentagon/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02021_h3_is_pentagon/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02021_h3_is_res_classIII/ast.json b/parser/testdata/02021_h3_is_res_classIII/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02021_h3_is_res_classIII/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02021_map_bloom_filter_index/ast.json b/parser/testdata/02021_map_bloom_filter_index/ast.json new file mode 100644 index 0000000000..7f1fe40eae --- /dev/null +++ b/parser/testdata/02021_map_bloom_filter_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_test_index_map_keys", + "tables": [ + { + "table": "map_test_index_map_keys" + } + ] +} diff --git a/parser/testdata/02021_map_has/ast.json b/parser/testdata/02021_map_has/ast.json new file mode 100644 index 0000000000..58f0e16bf8 --- /dev/null +++ b/parser/testdata/02021_map_has/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_map", + "tables": [ + { + "table": "test_map" + } + ] +} diff --git a/parser/testdata/02021_prewhere_always_true_where/ast.json b/parser/testdata/02021_prewhere_always_true_where/ast.json new file mode 100644 index 0000000000..6fa6a03633 --- /dev/null +++ b/parser/testdata/02021_prewhere_always_true_where/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02021", + "tables": [ + { + "table": "data_02021" + } + ] +} diff --git a/parser/testdata/02021_prewhere_column_optimization/ast.json b/parser/testdata/02021_prewhere_column_optimization/ast.json new file mode 100644 index 0000000000..6fa6a03633 --- /dev/null +++ b/parser/testdata/02021_prewhere_column_optimization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02021", + "tables": [ + { + "table": "data_02021" + } + ] +} diff --git a/parser/testdata/02022_array_full_text_bloom_filter_index/ast.json b/parser/testdata/02022_array_full_text_bloom_filter_index/ast.json new file mode 100644 index 0000000000..be8f73d0cb --- /dev/null +++ b/parser/testdata/02022_array_full_text_bloom_filter_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bf_tokenbf_array_test", + "tables": [ + { + "table": "bf_tokenbf_array_test" + } + ] +} diff --git a/parser/testdata/02023_nullable_int_uint_where/ast.json b/parser/testdata/02023_nullable_int_uint_where/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02023_nullable_int_uint_where/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02023_parser_number_binary_literal/ast.json b/parser/testdata/02023_parser_number_binary_literal/ast.json new file mode 100644 index 0000000000..43cd4f763b --- /dev/null +++ b/parser/testdata/02023_parser_number_binary_literal/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "number" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02023_transform_or_to_in/ast.json b/parser/testdata/02023_transform_or_to_in/ast.json new file mode 100644 index 0000000000..3aa223c887 --- /dev/null +++ b/parser/testdata/02023_transform_or_to_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_transform_or", + "tables": [ + { + "table": "t_transform_or" + } + ] +} diff --git a/parser/testdata/02024_compile_expressions_with_short_circuit_evaluation/ast.json b/parser/testdata/02024_compile_expressions_with_short_circuit_evaluation/ast.json new file mode 100644 index 0000000000..bc53b15d21 --- /dev/null +++ b/parser/testdata/02024_compile_expressions_with_short_circuit_evaluation/ast.json @@ -0,0 +1,88 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "+", + "right": { + "parts": [ + "number" + ] + } + }, + "op": "+", + "right": { + "name": "multiIf", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "==", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "cityHash64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "min_count_to_compile_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02024_create_dictionary_with_comment/ast.json b/parser/testdata/02024_create_dictionary_with_comment/ast.json new file mode 100644 index 0000000000..e4f59ac268 --- /dev/null +++ b/parser/testdata/02024_create_dictionary_with_comment/ast.json @@ -0,0 +1,21 @@ +{ + "table": "source_table", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/02024_merge_regexp_assert/ast.json b/parser/testdata/02024_merge_regexp_assert/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02024_merge_regexp_assert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02025_dictionary_array_nested_map/ast.json b/parser/testdata/02025_dictionary_array_nested_map/ast.json new file mode 100644 index 0000000000..f6ad688841 --- /dev/null +++ b/parser/testdata/02025_dictionary_array_nested_map/ast.json @@ -0,0 +1,66 @@ +{ + "table": "dict_nested_map_test_table", + "columns": [ + { + "name": "test_id", + "type": { + "name": "UInt32" + } + }, + { + "name": "type", + "type": { + "name": "String" + } + }, + { + "name": "test_config", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "String" + }, + { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 28 + }, + { + "type": "Integer", + "value": 12 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "ncp", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "test_id" + ] + } + ] +} diff --git a/parser/testdata/02025_dictionary_view_different_db/ast.json b/parser/testdata/02025_dictionary_view_different_db/ast.json new file mode 100644 index 0000000000..7d0b9fc50a --- /dev/null +++ b/parser/testdata/02025_dictionary_view_different_db/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_db_2025", + "drop_database": true +} diff --git a/parser/testdata/02025_having_filter_column/ast.json b/parser/testdata/02025_having_filter_column/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02025_having_filter_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02025_nested_func_for_if_combinator/ast.json b/parser/testdata/02025_nested_func_for_if_combinator/ast.json new file mode 100644 index 0000000000..7b40716297 --- /dev/null +++ b/parser/testdata/02025_nested_func_for_if_combinator/ast.json @@ -0,0 +1,87 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqCombinedIfMerge", + "arguments": [ + { + "parts": [ + "n" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "uniqCombinedIfState", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ], + "alias": "n" + }, + { + "name": "max", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "last" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02025_subcolumns_compact_parts/ast.json b/parser/testdata/02025_subcolumns_compact_parts/ast.json new file mode 100644 index 0000000000..29dfcaaccb --- /dev/null +++ b/parser/testdata/02025_subcolumns_compact_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_comp_subcolumns", + "tables": [ + { + "table": "t_comp_subcolumns" + } + ] +} diff --git a/parser/testdata/02026_accurate_cast_or_default/ast.json b/parser/testdata/02026_accurate_cast_or_default/ast.json new file mode 100644 index 0000000000..ef841bf46a --- /dev/null +++ b/parser/testdata/02026_accurate_cast_or_default/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "accurateCastOrDefault", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "String", + "value": "UInt8" + } + ] + }, + { + "name": "accurateCastOrDefault", + "arguments": [ + { + "type": "Integer", + "value": 5 + }, + { + "type": "String", + "value": "UInt8" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02026_arrayDifference_const/ast.json b/parser/testdata/02026_arrayDifference_const/ast.json new file mode 100644 index 0000000000..4a5e905303 --- /dev/null +++ b/parser/testdata/02026_arrayDifference_const/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "name": "arrayDifference", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Integer", + "value": 0 + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02026_describe_include_subcolumns/ast.json b/parser/testdata/02026_describe_include_subcolumns/ast.json new file mode 100644 index 0000000000..49f7ff4b71 --- /dev/null +++ b/parser/testdata/02026_describe_include_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_fallback_to_vertical", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02027_arrayCumSumNonNegative_const/ast.json b/parser/testdata/02027_arrayCumSumNonNegative_const/ast.json new file mode 100644 index 0000000000..7eef100fb1 --- /dev/null +++ b/parser/testdata/02027_arrayCumSumNonNegative_const/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "name": "arrayCumSumNonNegative", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Integer", + "value": 0 + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02027_ngrams/ast.json b/parser/testdata/02027_ngrams/ast.json new file mode 100644 index 0000000000..2a2edb0371 --- /dev/null +++ b/parser/testdata/02027_ngrams/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ngrams", + "arguments": [ + { + "type": "String", + "value": "Test" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/ast.json b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/ast.json new file mode 100644 index 0000000000..8396f31e2c --- /dev/null +++ b/parser/testdata/02028_add_default_database_for_alterquery_on_cluster/ast.json @@ -0,0 +1,6 @@ +{ + "if_exists": true, + "database": "02028_db", + "on_cluster": "test_shard_localhost", + "drop_database": true +} diff --git a/parser/testdata/02028_create_select_settings/ast.json b/parser/testdata/02028_create_select_settings/ast.json new file mode 100644 index 0000000000..12647d859e --- /dev/null +++ b/parser/testdata/02028_create_select_settings/ast.json @@ -0,0 +1,104 @@ +{ + "table": "test_table", + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "a_table", + "a" + ] + }, + { + "parts": [ + "b_table", + "b_arr" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 10000 + } + ] + } + ], + "alias": "a" + } + ] + } + ] + } + }, + "alias": "a_table" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 10000 + } + ], + "alias": "b_arr" + } + ] + } + ] + } + }, + "alias": "b_table" + }, + "join": { + "type": "CROSS" + } + } + ] + }, + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } +} diff --git a/parser/testdata/02028_system_data_skipping_indices_size/ast.json b/parser/testdata/02028_system_data_skipping_indices_size/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02028_system_data_skipping_indices_size/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02028_tokens/ast.json b/parser/testdata/02028_tokens/ast.json new file mode 100644 index 0000000000..c643a977fa --- /dev/null +++ b/parser/testdata/02028_tokens/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tokens", + "arguments": [ + { + "type": "String", + "value": "test" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02029_output_csv_null_representation/ast.json b/parser/testdata/02029_output_csv_null_representation/ast.json new file mode 100644 index 0000000000..4991bdfd17 --- /dev/null +++ b/parser/testdata/02029_output_csv_null_representation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_data", + "tables": [ + { + "table": "test_data" + } + ] +} diff --git a/parser/testdata/02030_function_mapContainsKeyLike/ast.json b/parser/testdata/02030_function_mapContainsKeyLike/ast.json new file mode 100644 index 0000000000..405ab89ac4 --- /dev/null +++ b/parser/testdata/02030_function_mapContainsKeyLike/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_containsKeyLike_test", + "tables": [ + { + "table": "map_containsKeyLike_test" + } + ] +} diff --git a/parser/testdata/02030_tuple_filter/ast.json b/parser/testdata/02030_tuple_filter/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02030_tuple_filter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02032_short_circuit_least_greatest_bug/ast.json b/parser/testdata/02032_short_circuit_least_greatest_bug/ast.json new file mode 100644 index 0000000000..00c935bbdb --- /dev/null +++ b/parser/testdata/02032_short_circuit_least_greatest_bug/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "AND", + "right": { + "name": "greatest", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02035_isNull_isNotNull_format/ast.json b/parser/testdata/02035_isNull_isNotNull_format/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02035_isNull_isNotNull_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02036_jit_short_circuit/ast.json b/parser/testdata/02036_jit_short_circuit/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/02036_jit_short_circuit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02039_group_by_with_totals_having/ast.json b/parser/testdata/02039_group_by_with_totals_having/ast.json new file mode 100644 index 0000000000..2dd55a43f8 --- /dev/null +++ b/parser/testdata/02039_group_by_with_totals_having/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true, + "having": { + "left": { + "name": "count", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/02041_conversion_between_date32_and_datetime64/ast.json b/parser/testdata/02041_conversion_between_date32_and_datetime64/ast.json new file mode 100644 index 0000000000..790f2d2d2f --- /dev/null +++ b/parser/testdata/02041_conversion_between_date32_and_datetime64/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDate32", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2019-01-01 00:00:00" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + ] + }, + { + "name": "toDateTime64", + "arguments": [ + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "2019-01-01" + } + ] + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "Asia/Istanbul" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02041_openssl_hash_functions_test/ast.json b/parser/testdata/02041_openssl_hash_functions_test/ast.json new file mode 100644 index 0000000000..586143ae26 --- /dev/null +++ b/parser/testdata/02041_openssl_hash_functions_test/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "halfMD5", + "arguments": [ + { + "type": "String", + "value": "test" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02041_test_fuzzy_alter/ast.json b/parser/testdata/02041_test_fuzzy_alter/ast.json new file mode 100644 index 0000000000..05cadc20a5 --- /dev/null +++ b/parser/testdata/02041_test_fuzzy_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_table", + "tables": [ + { + "table": "alter_table" + } + ] +} diff --git a/parser/testdata/02042_map_get_non_const_key/ast.json b/parser/testdata/02042_map_get_non_const_key/ast.json new file mode 100644 index 0000000000..7f6a931bdf --- /dev/null +++ b/parser/testdata/02042_map_get_non_const_key/ast.json @@ -0,0 +1,79 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "parts": [ + "map" + ] + }, + "index": { + "parts": [ + "key" + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "key" + } + ], + "alias": "key" + }, + { + "expr": { + "expr": { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "key" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "value" + } + ] + } + ] + }, + "type": { + "name": "Map(String, String)" + } + }, + "alias": "map" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02043_user_defined_executable_function_implicit_cast/ast.json b/parser/testdata/02043_user_defined_executable_function_implicit_cast/ast.json new file mode 100644 index 0000000000..f6fb95d622 --- /dev/null +++ b/parser/testdata/02043_user_defined_executable_function_implicit_cast/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "test_function", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02044_exists_operator/ast.json b/parser/testdata/02044_exists_operator/ast.json new file mode 100644 index 0000000000..1ea05894a1 --- /dev/null +++ b/parser/testdata/02044_exists_operator/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02046_remote_table_function_named_collections/ast.json b/parser/testdata/02046_remote_table_function_named_collections/ast.json new file mode 100644 index 0000000000..3fedd761ac --- /dev/null +++ b/parser/testdata/02046_remote_table_function_named_collections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "remote_test", + "tables": [ + { + "table": "remote_test" + } + ] +} diff --git a/parser/testdata/02047_alias_for_table_and_database_name/ast.json b/parser/testdata/02047_alias_for_table_and_database_name/ast.json new file mode 100644 index 0000000000..42e70da1fe --- /dev/null +++ b/parser/testdata/02047_alias_for_table_and_database_name/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + }, + { + "parts": [ + "table" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "tables" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "system" + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "numbers" + } + } + } + } + ] +} diff --git a/parser/testdata/02049_lowcardinality_shortcircuit_crash/ast.json b/parser/testdata/02049_lowcardinality_shortcircuit_crash/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02049_lowcardinality_shortcircuit_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02053_INSERT_SELECT_MATERIALIZED/ast.json b/parser/testdata/02053_INSERT_SELECT_MATERIALIZED/ast.json new file mode 100644 index 0000000000..89c255da12 --- /dev/null +++ b/parser/testdata/02053_INSERT_SELECT_MATERIALIZED/ast.json @@ -0,0 +1,57 @@ +{ + "table": "data_02053", + "columns": [ + { + "name": "id", + "type": { + "name": "Int64" + } + }, + { + "name": "A", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Int64" + } + ], + "has_parentheses": true + } + }, + { + "name": "X", + "type": { + "name": "Int64" + }, + "default": { + "name": "coalesce", + "arguments": [ + { + "parts": [ + "A" + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + }, + "default_kind": "MATERIALIZED" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/02067_lost_part_s3/ast.json b/parser/testdata/02067_lost_part_s3/ast.json new file mode 100644 index 0000000000..c801264391 --- /dev/null +++ b/parser/testdata/02067_lost_part_s3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "partslost_0", + "tables": [ + { + "table": "partslost_0" + } + ] +} diff --git a/parser/testdata/02070_join_on_disk/ast.json b/parser/testdata/02070_join_on_disk/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/02070_join_on_disk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02071_lower_upper_utf8_row_overlaps/ast.json b/parser/testdata/02071_lower_upper_utf8_row_overlaps/ast.json new file mode 100644 index 0000000000..76107bd112 --- /dev/null +++ b/parser/testdata/02071_lower_upper_utf8_row_overlaps/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "utf8_overlap", + "tables": [ + { + "table": "utf8_overlap" + } + ] +} diff --git a/parser/testdata/02095_function_get_os_kernel_version/ast.json b/parser/testdata/02095_function_get_os_kernel_version/ast.json new file mode 100644 index 0000000000..53565af5be --- /dev/null +++ b/parser/testdata/02095_function_get_os_kernel_version/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "with": [ + { + "name": "version_pair", + "query": { + "name": "splitByChar", + "arguments": [ + { + "type": "String", + "value": " " + }, + { + "name": "getOSKernelVersion" + } + ] + } + } + ], + "columns": [ + { + "array": { + "parts": [ + "version_pair" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02096_date_time_1970_saturation/ast.json b/parser/testdata/02096_date_time_1970_saturation/ast.json new file mode 100644 index 0000000000..8110c2ed8f --- /dev/null +++ b/parser/testdata/02096_date_time_1970_saturation/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDate", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02096_date_time_1970_saturation2/ast.json b/parser/testdata/02096_date_time_1970_saturation2/ast.json new file mode 100644 index 0000000000..f7b44b98dc --- /dev/null +++ b/parser/testdata/02096_date_time_1970_saturation2/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "America/Paramaribo" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02096_join_unusual_identifier_begin/ast.json b/parser/testdata/02096_join_unusual_identifier_begin/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02096_join_unusual_identifier_begin/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02096_rename_atomic_hang/ast.json b/parser/testdata/02096_rename_atomic_hang/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/02096_rename_atomic_hang/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/02096_sample_by_tuple/ast.json b/parser/testdata/02096_sample_by_tuple/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02096_sample_by_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02096_totals_global_in_bug/ast.json b/parser/testdata/02096_totals_global_in_bug/ast.json new file mode 100644 index 0000000000..98fd1b14ad --- /dev/null +++ b/parser/testdata/02096_totals_global_in_bug/ast.json @@ -0,0 +1,112 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{2,3}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "number" + ] + }, + "global": true, + "query": { + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true + } + ] + } + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02097_default_dict_get_add_database/ast.json b/parser/testdata/02097_default_dict_get_add_database/ast.json new file mode 100644 index 0000000000..b11b2e7130 --- /dev/null +++ b/parser/testdata/02097_default_dict_get_add_database/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "db_02097", + "drop_database": true +} diff --git a/parser/testdata/02097_initializeAggregationNullable/ast.json b/parser/testdata/02097_initializeAggregationNullable/ast.json new file mode 100644 index 0000000000..556aa31331 --- /dev/null +++ b/parser/testdata/02097_initializeAggregationNullable/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "finalizeAggregation", + "arguments": [ + { + "name": "initializeAggregation", + "arguments": [ + { + "type": "String", + "value": "uniqExactState" + }, + { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "foo" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02097_polygon_dictionary_store_key/ast.json b/parser/testdata/02097_polygon_dictionary_store_key/ast.json new file mode 100644 index 0000000000..ef267a1e8f --- /dev/null +++ b/parser/testdata/02097_polygon_dictionary_store_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "polygons_test_table", + "tables": [ + { + "table": "polygons_test_table" + } + ] +} diff --git a/parser/testdata/02097_remove_sample_by/ast.json b/parser/testdata/02097_remove_sample_by/ast.json new file mode 100644 index 0000000000..3694e2e874 --- /dev/null +++ b/parser/testdata/02097_remove_sample_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_remove_sample_by", + "tables": [ + { + "table": "t_remove_sample_by" + } + ] +} diff --git a/parser/testdata/02098_date32_comparison/ast.json b/parser/testdata/02098_date32_comparison/ast.json new file mode 100644 index 0000000000..863c0bfdac --- /dev/null +++ b/parser/testdata/02098_date32_comparison/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1990-02-01" + } + ] + }, + "op": "=", + "right": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "1990-02-01" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02100_alter_scalar_circular_deadlock/ast.json b/parser/testdata/02100_alter_scalar_circular_deadlock/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/02100_alter_scalar_circular_deadlock/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/02100_limit_push_down_bug/ast.json b/parser/testdata/02100_limit_push_down_bug/ast.json new file mode 100644 index 0000000000..b20f764e4a --- /dev/null +++ b/parser/testdata/02100_limit_push_down_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl_repr", + "tables": [ + { + "table": "tbl_repr" + } + ] +} diff --git a/parser/testdata/02100_now64_types_bug/ast.json b/parser/testdata/02100_now64_types_bug/ast.json new file mode 100644 index 0000000000..a8bab4de34 --- /dev/null +++ b/parser/testdata/02100_now64_types_bug/ast.json @@ -0,0 +1,393 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Null", + "value": null + } + }, + "op": "=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 2147483648 + } + } + }, + { + "type": "Null", + "value": null + }, + { + "name": "if", + "arguments": [ + { + "left": { + "name": "toInt64", + "arguments": [ + { + "name": "toInt64", + "arguments": [ + { + "name": "now64", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Null", + "value": null + } + }, + "op": "=", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 2147483648 + } + } + }, + { + "type": "Null", + "value": null + }, + { + "name": "if", + "arguments": [ + { + "left": { + "name": "toInt64", + "arguments": [ + { + "name": "now64", + "arguments": [ + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "name": "now64", + "arguments": [ + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + "op": "=", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Null", + "value": null + } + } + }, + { + "type": "Float", + "value": "NaN" + }, + { + "name": "toFloat64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "name": "now64", + "arguments": [ + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + { + "name": "now64", + "arguments": [ + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + { + "name": "now64", + "arguments": [ + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "name": "now64", + "arguments": [ + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + { + "name": "now64", + "arguments": [ + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + { + "name": "plus", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + "op": "=", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Null", + "value": null + } + } + }, + { + "type": "Float", + "value": "NaN" + }, + { + "name": "toFloat64", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 3 + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + }, + "descending": true, + "nulls_first": false + } + ] + } + ] +} diff --git a/parser/testdata/02100_replaceRegexpAll_bug/ast.json b/parser/testdata/02100_replaceRegexpAll_bug/ast.json new file mode 100644 index 0000000000..a63273d620 --- /dev/null +++ b/parser/testdata/02100_replaceRegexpAll_bug/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "type": "String", + "value": "aaaabb " + }, + "op": "==", + "right": { + "name": "trimLeft", + "arguments": [ + { + "type": "String", + "value": "b aaaabb " + }, + { + "type": "String", + "value": "b " + } + ] + } + }, + "alias": "x" + } + ] + } + ] +} diff --git a/parser/testdata/02111_function_mapExtractKeyLike/ast.json b/parser/testdata/02111_function_mapExtractKeyLike/ast.json new file mode 100644 index 0000000000..ba722b7b9a --- /dev/null +++ b/parser/testdata/02111_function_mapExtractKeyLike/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_extractKeyLike_test", + "tables": [ + { + "table": "map_extractKeyLike_test" + } + ] +} diff --git a/parser/testdata/02111_global_context_temporary_tables/ast.json b/parser/testdata/02111_global_context_temporary_tables/ast.json new file mode 100644 index 0000000000..ccd14e0e28 --- /dev/null +++ b/parser/testdata/02111_global_context_temporary_tables/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.1" + }, + { + "parts": [ + "system", + "one" + ] + }, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "list": [ + { + "parts": [ + "id" + ] + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02111_json_column_name_encoding/ast.json b/parser/testdata/02111_json_column_name_encoding/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/02111_json_column_name_encoding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02111_modify_table_comment/ast.json b/parser/testdata/02111_modify_table_comment/ast.json new file mode 100644 index 0000000000..05773d16a2 --- /dev/null +++ b/parser/testdata/02111_modify_table_comment/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "02111_modify_table_comment", + "drop_database": true +} diff --git a/parser/testdata/02111_with_fill_no_rows/ast.json b/parser/testdata/02111_with_fill_no_rows/ast.json new file mode 100644 index 0000000000..c066b56712 --- /dev/null +++ b/parser/testdata/02111_with_fill_no_rows/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toYear", + "arguments": [ + { + "parts": [ + "d" + ] + } + ], + "alias": "y" + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "today", + "alias": "d" + } + ], + "where": { + "type": "Integer", + "value": 0 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "y" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "y" + ] + }, + "with_fill": true, + "fill_from": { + "type": "Integer", + "value": 2019 + }, + "fill_to": { + "type": "Integer", + "value": 2023 + } + } + ] + } + ] +} diff --git a/parser/testdata/02112_skip_index_set_and_or/ast.json b/parser/testdata/02112_skip_index_set_and_or/ast.json new file mode 100644 index 0000000000..5b8aaf7357 --- /dev/null +++ b/parser/testdata/02112_skip_index_set_and_or/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "set_index", + "tables": [ + { + "table": "set_index" + } + ] +} diff --git a/parser/testdata/02112_with_fill_interval/ast.json b/parser/testdata/02112_with_fill_interval/ast.json new file mode 100644 index 0000000000..85bc2e6f18 --- /dev/null +++ b/parser/testdata/02112_with_fill_interval/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "with_fill_date", + "tables": [ + { + "table": "with_fill_date" + } + ] +} diff --git a/parser/testdata/02113_base64encode_trailing_bytes/ast.json b/parser/testdata/02113_base64encode_trailing_bytes/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/02113_base64encode_trailing_bytes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02113_format_row/ast.json b/parser/testdata/02113_format_row/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/02113_format_row/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02113_format_row_bug/ast.json b/parser/testdata/02113_format_row_bug/ast.json new file mode 100644 index 0000000000..172d53da2a --- /dev/null +++ b/parser/testdata/02113_format_row_bug/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatRow", + "arguments": [ + { + "type": "String", + "value": "ORC" + }, + { + "parts": [ + "number" + ] + }, + { + "name": "toDate", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02114_bool_type/ast.json b/parser/testdata/02114_bool_type/ast.json new file mode 100644 index 0000000000..98789cb725 --- /dev/null +++ b/parser/testdata/02114_bool_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bool_test", + "tables": [ + { + "table": "bool_test" + } + ] +} diff --git a/parser/testdata/02115_map_contains_analyzer/ast.json b/parser/testdata/02115_map_contains_analyzer/ast.json new file mode 100644 index 0000000000..d626484c7a --- /dev/null +++ b/parser/testdata/02115_map_contains_analyzer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_map_contains", + "tables": [ + { + "table": "t_map_contains" + } + ] +} diff --git a/parser/testdata/02115_rewrite_local_join_right_distribute_table/ast.json b/parser/testdata/02115_rewrite_local_join_right_distribute_table/ast.json new file mode 100644 index 0000000000..d746b1fbb1 --- /dev/null +++ b/parser/testdata/02115_rewrite_local_join_right_distribute_table/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "test_02115", + "create_database": true +} diff --git a/parser/testdata/02116_tuple_element_analyzer/ast.json b/parser/testdata/02116_tuple_element_analyzer/ast.json new file mode 100644 index 0000000000..d41d18dbac --- /dev/null +++ b/parser/testdata/02116_tuple_element_analyzer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_tuple_element", + "tables": [ + { + "table": "t_tuple_element" + } + ] +} diff --git a/parser/testdata/02123_MySQLWire_regression/ast.json b/parser/testdata/02123_MySQLWire_regression/ast.json new file mode 100644 index 0000000000..294e53c008 --- /dev/null +++ b/parser/testdata/02123_MySQLWire_regression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_MySQLWire", + "tables": [ + { + "table": "table_MySQLWire" + } + ] +} diff --git a/parser/testdata/02124_clickhouse_dictionary_with_predefined_configuration/ast.json b/parser/testdata/02124_clickhouse_dictionary_with_predefined_configuration/ast.json new file mode 100644 index 0000000000..0984b1b711 --- /dev/null +++ b/parser/testdata/02124_clickhouse_dictionary_with_predefined_configuration/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict", + "tables": [ + { + "table": "dict" + } + ] +} diff --git a/parser/testdata/02124_comparison_betwwen_decimal_and_float/ast.json b/parser/testdata/02124_comparison_betwwen_decimal_and_float/ast.json new file mode 100644 index 0000000000..c4a341b83a --- /dev/null +++ b/parser/testdata/02124_comparison_betwwen_decimal_and_float/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "expr": { + "type": "Float", + "value": 1 + }, + "type": { + "name": "Decimal(15,2)" + } + }, + "op": "\u003e", + "right": { + "expr": { + "type": "Integer", + "value": 1 + }, + "type": { + "name": "Float64" + } + } + } + ] + } + ] +} diff --git a/parser/testdata/02124_encrypt_decrypt_nullable/ast.json b/parser/testdata/02124_encrypt_decrypt_nullable/ast.json new file mode 100644 index 0000000000..b2f617a567 --- /dev/null +++ b/parser/testdata/02124_encrypt_decrypt_nullable/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "aes_encrypt_mysql" + } + ] + } + ] +} diff --git a/parser/testdata/02124_insert_deduplication_token/ast.json b/parser/testdata/02124_insert_deduplication_token/ast.json new file mode 100644 index 0000000000..22a7abba83 --- /dev/null +++ b/parser/testdata/02124_insert_deduplication_token/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "insert_dedup_token", + "tables": [ + { + "table": "insert_dedup_token" + } + ], + "sync": true +} diff --git a/parser/testdata/02124_insert_deduplication_token_materialized_views/ast.json b/parser/testdata/02124_insert_deduplication_token_materialized_views/ast.json new file mode 100644 index 0000000000..dc0aeb9393 --- /dev/null +++ b/parser/testdata/02124_insert_deduplication_token_materialized_views/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "deduplicate_blocks_in_dependent_materialized_views=0, insert_deduplication_token = no, results: test_mv_a and test_mv_c have all data, test_mv_b has data obly with max_partitions_per_insert_block=0" + } + ] + } + ] +} diff --git a/parser/testdata/02124_insert_deduplication_token_replica/ast.json b/parser/testdata/02124_insert_deduplication_token_replica/ast.json new file mode 100644 index 0000000000..eb0f8b2dcd --- /dev/null +++ b/parser/testdata/02124_insert_deduplication_token_replica/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "insert_dedup_token1", + "tables": [ + { + "table": "insert_dedup_token1" + } + ], + "sync": true +} diff --git a/parser/testdata/02124_uncompressed_cache/ast.json b/parser/testdata/02124_uncompressed_cache/ast.json new file mode 100644 index 0000000000..69dab67039 --- /dev/null +++ b/parser/testdata/02124_uncompressed_cache/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_uncompressed_cache", + "tables": [ + { + "table": "t_uncompressed_cache" + } + ] +} diff --git a/parser/testdata/02125_constant_if_condition_and_not_existing_column/ast.json b/parser/testdata/02125_constant_if_condition_and_not_existing_column/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02125_constant_if_condition_and_not_existing_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02125_dict_get_type_nullable_fix/ast.json b/parser/testdata/02125_dict_get_type_nullable_fix/ast.json new file mode 100644 index 0000000000..01ae3d68a7 --- /dev/null +++ b/parser/testdata/02125_dict_get_type_nullable_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02125_test_table", + "tables": [ + { + "table": "02125_test_table" + } + ] +} diff --git a/parser/testdata/02125_fix_storage_filelog/ast.json b/parser/testdata/02125_fix_storage_filelog/ast.json new file mode 100644 index 0000000000..f3c4bda5dc --- /dev/null +++ b/parser/testdata/02125_fix_storage_filelog/ast.json @@ -0,0 +1,25 @@ +{ + "table": "log", + "columns": [ + { + "name": "A", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "FileLog", + "parameters": [ + { + "type": "String", + "value": "/tmp/aaa.csv" + }, + { + "type": "String", + "value": "CSV" + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/02125_low_cardinality_int256/ast.json b/parser/testdata/02125_low_cardinality_int256/ast.json new file mode 100644 index 0000000000..9fbe6717aa --- /dev/null +++ b/parser/testdata/02125_low_cardinality_int256/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toInt256", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02125_query_views_log/ast.json b/parser/testdata/02125_query_views_log/ast.json new file mode 100644 index 0000000000..a805056b35 --- /dev/null +++ b/parser/testdata/02125_query_views_log/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_single_large_number_tip_threshold", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02125_transform_decimal_bug/ast.json b/parser/testdata/02125_transform_decimal_bug/ast.json new file mode 100644 index 0000000000..c56ac7ad48 --- /dev/null +++ b/parser/testdata/02125_transform_decimal_bug/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02126_lc_window_functions/ast.json b/parser/testdata/02126_lc_window_functions/ast.json new file mode 100644 index 0000000000..6a41f8e5c6 --- /dev/null +++ b/parser/testdata/02126_lc_window_functions/ast.json @@ -0,0 +1,75 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "max", + "arguments": [ + { + "parts": [ + "id" + ] + } + ], + "over": {}, + "alias": "aid" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "aaaa" + } + ] + } + ], + "alias": "id" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 1000000 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/02127_storage_join_settings_with_persistency/ast.json b/parser/testdata/02127_storage_join_settings_with_persistency/ast.json new file mode 100644 index 0000000000..e2b251e719 --- /dev/null +++ b/parser/testdata/02127_storage_join_settings_with_persistency/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02127_join_settings_with_persistency_1", + "tables": [ + { + "table": "02127_join_settings_with_persistency_1" + } + ] +} diff --git a/parser/testdata/02128_cast_nullable/ast.json b/parser/testdata/02128_cast_nullable/ast.json new file mode 100644 index 0000000000..d305cc4f68 --- /dev/null +++ b/parser/testdata/02128_cast_nullable/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt32OrDefault", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "name": "toUInt32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ], + "settings": [ + { + "name": "cast_keep_nullable", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02128_hex_bin_on_uuid/ast.json b/parser/testdata/02128_hex_bin_on_uuid/ast.json new file mode 100644 index 0000000000..5246178a49 --- /dev/null +++ b/parser/testdata/02128_hex_bin_on_uuid/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "length", + "arguments": [ + { + "name": "hex", + "arguments": [ + { + "name": "generateUUIDv4" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02129_add_column_add_ttl/ast.json b/parser/testdata/02129_add_column_add_ttl/ast.json new file mode 100644 index 0000000000..5203904244 --- /dev/null +++ b/parser/testdata/02129_add_column_add_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_test_02129", + "tables": [ + { + "table": "ttl_test_02129" + } + ] +} diff --git a/parser/testdata/02129_window_functions_disable_optimizations/ast.json b/parser/testdata/02129_window_functions_disable_optimizations/ast.json new file mode 100644 index 0000000000..b2c9ecb93a --- /dev/null +++ b/parser/testdata/02129_window_functions_disable_optimizations/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_rewrite_sum_if_to_count_if", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02131_materialize_column_cast/ast.json b/parser/testdata/02131_materialize_column_cast/ast.json new file mode 100644 index 0000000000..1181a4fbb4 --- /dev/null +++ b/parser/testdata/02131_materialize_column_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_materialize_column", + "tables": [ + { + "table": "t_materialize_column" + } + ] +} diff --git a/parser/testdata/02131_mv_many_chunks_bug/ast.json b/parser/testdata/02131_mv_many_chunks_bug/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02131_mv_many_chunks_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02131_remove_columns_in_subquery/ast.json b/parser/testdata/02131_remove_columns_in_subquery/ast.json new file mode 100644 index 0000000000..ceb6ff9434 --- /dev/null +++ b/parser/testdata/02131_remove_columns_in_subquery/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "name": "count", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02131_row_policies_combination/ast.json b/parser/testdata/02131_row_policies_combination/ast.json new file mode 100644 index 0000000000..21f640aad3 --- /dev/null +++ b/parser/testdata/02131_row_policies_combination/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02131_rptable", + "tables": [ + { + "table": "02131_rptable" + } + ] +} diff --git a/parser/testdata/02131_skip_index_not_materialized/ast.json b/parser/testdata/02131_skip_index_not_materialized/ast.json new file mode 100644 index 0000000000..2cc43d66d6 --- /dev/null +++ b/parser/testdata/02131_skip_index_not_materialized/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_index_non_materialized", + "tables": [ + { + "table": "t_index_non_materialized" + } + ] +} diff --git a/parser/testdata/02131_used_row_policies_in_query_log/ast.json b/parser/testdata/02131_used_row_policies_in_query_log/ast.json new file mode 100644 index 0000000000..c8630c1bf9 --- /dev/null +++ b/parser/testdata/02131_used_row_policies_in_query_log/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02131_rqtable", + "tables": [ + { + "table": "02131_rqtable" + } + ] +} diff --git a/parser/testdata/02132_empty_mutation_livelock/ast.json b/parser/testdata/02132_empty_mutation_livelock/ast.json new file mode 100644 index 0000000000..dc86c712ba --- /dev/null +++ b/parser/testdata/02132_empty_mutation_livelock/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a8x", + "tables": [ + { + "table": "a8x" + } + ] +} diff --git a/parser/testdata/02133_classification/ast.json b/parser/testdata/02133_classification/ast.json new file mode 100644 index 0000000000..d6eb296192 --- /dev/null +++ b/parser/testdata/02133_classification/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_nlp_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02133_distributed_queries_formatting/ast.json b/parser/testdata/02133_distributed_queries_formatting/ast.json new file mode 100644 index 0000000000..2c056b0a42 --- /dev/null +++ b/parser/testdata/02133_distributed_queries_formatting/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "cluster", + "arguments": [ + { + "parts": [ + "test_cluster_two_shards" + ] + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "Hello" + }, + "alias": "all" + }, + { + "expr": { + "type": "String", + "value": "World" + }, + "alias": "distinct" + } + ] + } + ] + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02133_final_prewhere_where_lowcardinality_replacing/ast.json b/parser/testdata/02133_final_prewhere_where_lowcardinality_replacing/ast.json new file mode 100644 index 0000000000..17ca215b0e --- /dev/null +++ b/parser/testdata/02133_final_prewhere_where_lowcardinality_replacing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "errors_local", + "tables": [ + { + "table": "errors_local" + } + ] +} diff --git a/parser/testdata/02133_issue_32458/ast.json b/parser/testdata/02133_issue_32458/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02133_issue_32458/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02137_mv_into_join/ast.json b/parser/testdata/02137_mv_into_join/ast.json new file mode 100644 index 0000000000..0f29e2dd72 --- /dev/null +++ b/parser/testdata/02137_mv_into_join/ast.json @@ -0,0 +1,37 @@ +{ + "table": "main", + "columns": [ + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "color", + "type": { + "name": "String" + } + }, + { + "name": "section", + "type": { + "name": "String" + } + }, + { + "name": "description", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02139_MV_with_scalar_subquery/ast.json b/parser/testdata/02139_MV_with_scalar_subquery/ast.json new file mode 100644 index 0000000000..c412daf920 --- /dev/null +++ b/parser/testdata/02139_MV_with_scalar_subquery/ast.json @@ -0,0 +1,20 @@ +{ + "table": "source", + "columns": [ + { + "name": "a", + "type": { + "name": "Int32" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02144_avg_ubsan/ast.json b/parser/testdata/02144_avg_ubsan/ast.json new file mode 100644 index 0000000000..c5feca777f --- /dev/null +++ b/parser/testdata/02144_avg_ubsan/ast.json @@ -0,0 +1,77 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "avg", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 8000000000000000000 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {}, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 65535 + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ] + } + ] +} diff --git a/parser/testdata/02146_mv_non_phys/ast.json b/parser/testdata/02146_mv_non_phys/ast.json new file mode 100644 index 0000000000..a329adbc09 --- /dev/null +++ b/parser/testdata/02146_mv_non_phys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv_02146", + "tables": [ + { + "table": "mv_02146" + } + ] +} diff --git a/parser/testdata/02148_issue_32737/ast.json b/parser/testdata/02148_issue_32737/ast.json new file mode 100644 index 0000000000..8e80144951 --- /dev/null +++ b/parser/testdata/02148_issue_32737/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "fuzzBits", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "type": "Integer", + "value": 200 + } + ] + }, + { + "type": "Float", + "value": 0.99 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/02149_issue_32487/ast.json b/parser/testdata/02149_issue_32487/ast.json new file mode 100644 index 0000000000..43c6f7b78b --- /dev/null +++ b/parser/testdata/02149_issue_32487/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "topKWeightedState", + "parameters": [ + { + "type": "Integer", + "value": 2 + } + ], + "arguments": [ + { + "name": "now" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/02149_read_in_order_fixed_prefix/ast.json b/parser/testdata/02149_read_in_order_fixed_prefix/ast.json new file mode 100644 index 0000000000..25f6700092 --- /dev/null +++ b/parser/testdata/02149_read_in_order_fixed_prefix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02150_replace_regexp_all_empty_match/ast.json b/parser/testdata/02150_replace_regexp_all_empty_match/ast.json new file mode 100644 index 0000000000..3aeaad154b --- /dev/null +++ b/parser/testdata/02150_replace_regexp_all_empty_match/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "replaceRegexpAll", + "arguments": [ + { + "type": "String", + "value": "Hello, World!" + }, + { + "type": "String", + "value": "^" + }, + { + "type": "String", + "value": "here: " + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02151_lc_prefetch/ast.json b/parser/testdata/02151_lc_prefetch/ast.json new file mode 100644 index 0000000000..614472d3e5 --- /dev/null +++ b/parser/testdata/02151_lc_prefetch/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_lc", + "tables": [ + { + "table": "tab_lc" + } + ] +} diff --git a/parser/testdata/02151_replace_regexp_all_empty_match_alternative/ast.json b/parser/testdata/02151_replace_regexp_all_empty_match_alternative/ast.json new file mode 100644 index 0000000000..57f07cb943 --- /dev/null +++ b/parser/testdata/02151_replace_regexp_all_empty_match_alternative/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "replaceRegexpAll", + "arguments": [ + { + "type": "String", + "value": ",,1,," + }, + { + "type": "String", + "value": "^[,]*|[,]*$" + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02152_bool_type/ast.json b/parser/testdata/02152_bool_type/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/02152_bool_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02152_count_distinct_optimization/ast.json b/parser/testdata/02152_count_distinct_optimization/ast.json new file mode 100644 index 0000000000..557a1c753c --- /dev/null +++ b/parser/testdata/02152_count_distinct_optimization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_02152", + "tables": [ + { + "table": "table_02152" + } + ] +} diff --git a/parser/testdata/02152_csv_tuple/ast.json b/parser/testdata/02152_csv_tuple/ast.json new file mode 100644 index 0000000000..7d81b3ac06 --- /dev/null +++ b/parser/testdata/02152_csv_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02152", + "tables": [ + { + "table": "test_02152" + } + ] +} diff --git a/parser/testdata/02152_dictionary_date32_type/ast.json b/parser/testdata/02152_dictionary_date32_type/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02152_dictionary_date32_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02152_short_circuit_throw_if/ast.json b/parser/testdata/02152_short_circuit_throw_if/ast.json new file mode 100644 index 0000000000..fbbe2db490 --- /dev/null +++ b/parser/testdata/02152_short_circuit_throw_if/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + }, + { + "name": "throwIf", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "Executing FALSE branch" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02154_bit_slice_for_fixedstring/ast.json b/parser/testdata/02154_bit_slice_for_fixedstring/ast.json new file mode 100644 index 0000000000..584f0687c5 --- /dev/null +++ b/parser/testdata/02154_bit_slice_for_fixedstring/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Const Offset" + } + ] + } + ] +} diff --git a/parser/testdata/02154_bit_slice_for_string/ast.json b/parser/testdata/02154_bit_slice_for_string/ast.json new file mode 100644 index 0000000000..584f0687c5 --- /dev/null +++ b/parser/testdata/02154_bit_slice_for_string/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Const Offset" + } + ] + } + ] +} diff --git a/parser/testdata/02154_bitmap_contains/ast.json b/parser/testdata/02154_bitmap_contains/ast.json new file mode 100644 index 0000000000..9366c1076a --- /dev/null +++ b/parser/testdata/02154_bitmap_contains/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitmapContains", + "arguments": [ + { + "name": "bitmapBuild", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 9 + } + ] + } + ] + }, + { + "type": "Integer", + "value": 964291337 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02154_default_keyword_insert/ast.json b/parser/testdata/02154_default_keyword_insert/ast.json new file mode 100644 index 0000000000..4b793471ed --- /dev/null +++ b/parser/testdata/02154_default_keyword_insert/ast.json @@ -0,0 +1,38 @@ +{ + "if_not_exists": true, + "temporary": true, + "table": "default_table", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt32" + } + }, + { + "name": "y", + "type": { + "name": "UInt32" + }, + "default": { + "type": "Integer", + "value": 42 + }, + "default_kind": "DEFAULT" + }, + { + "name": "z", + "type": { + "name": "UInt32" + }, + "default": { + "type": "Integer", + "value": 33 + }, + "default_kind": "DEFAULT" + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02155_binary_op_between_float_and_decimal/ast.json b/parser/testdata/02155_binary_op_between_float_and_decimal/ast.json new file mode 100644 index 0000000000..cc1c9e95a2 --- /dev/null +++ b/parser/testdata/02155_binary_op_between_float_and_decimal/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "expr": { + "type": "Float", + "value": 1.5 + }, + "type": { + "name": "Decimal32", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "op": "+", + "right": { + "type": "Float", + "value": 1.5 + } + } + ] + } + ] +} diff --git a/parser/testdata/02155_dictionary_comment/ast.json b/parser/testdata/02155_dictionary_comment/ast.json new file mode 100644 index 0000000000..32c294f350 --- /dev/null +++ b/parser/testdata/02155_dictionary_comment/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02155_test_table", + "tables": [ + { + "table": "02155_test_table" + } + ] +} diff --git a/parser/testdata/02155_h3_to_center_child/ast.json b/parser/testdata/02155_h3_to_center_child/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02155_h3_to_center_child/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02155_multiple_inserts_for_formats_with_suffix/ast.json b/parser/testdata/02155_multiple_inserts_for_formats_with_suffix/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02155_multiple_inserts_for_formats_with_suffix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02155_nested_lc_defalut_bug/ast.json b/parser/testdata/02155_nested_lc_defalut_bug/ast.json new file mode 100644 index 0000000000..b6c833a814 --- /dev/null +++ b/parser/testdata/02155_nested_lc_defalut_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested_test", + "tables": [ + { + "table": "nested_test" + } + ] +} diff --git a/parser/testdata/02155_parse_date_lowcard_default_throw/ast.json b/parser/testdata/02155_parse_date_lowcard_default_throw/ast.json new file mode 100644 index 0000000000..a592a0cc3b --- /dev/null +++ b/parser/testdata/02155_parse_date_lowcard_default_throw/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTimeBestEffort", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "15-JUL-16" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02155_read_in_order_max_rows_to_read/ast.json b/parser/testdata/02155_read_in_order_max_rows_to_read/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02155_read_in_order_max_rows_to_read/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02156_storage_merge_prewhere/ast.json b/parser/testdata/02156_storage_merge_prewhere/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/02156_storage_merge_prewhere/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02156_storage_merge_prewhere_2/ast.json b/parser/testdata/02156_storage_merge_prewhere_2/ast.json new file mode 100644 index 0000000000..072dd1037c --- /dev/null +++ b/parser/testdata/02156_storage_merge_prewhere_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_02156_ololo_1", + "tables": [ + { + "table": "t_02156_ololo_1" + } + ] +} diff --git a/parser/testdata/02156_storage_merge_prewhere_not_ready_set_bug/ast.json b/parser/testdata/02156_storage_merge_prewhere_not_ready_set_bug/ast.json new file mode 100644 index 0000000000..c8b14dd335 --- /dev/null +++ b/parser/testdata/02156_storage_merge_prewhere_not_ready_set_bug/ast.json @@ -0,0 +1,27 @@ +{ + "table": "merge_kek_1", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt32" + } + }, + { + "name": "y", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/02157_line_as_string_output_format/ast.json b/parser/testdata/02157_line_as_string_output_format/ast.json new file mode 100644 index 0000000000..9c1e1cf46f --- /dev/null +++ b/parser/testdata/02157_line_as_string_output_format/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Hello \\ World" + } + ], + "format": { + "parts": [ + "LineAsString" + ] + } + } + ] +} diff --git a/parser/testdata/02158_contingency/ast.json b/parser/testdata/02158_contingency/ast.json new file mode 100644 index 0000000000..1773abadf9 --- /dev/null +++ b/parser/testdata/02158_contingency/ast.json @@ -0,0 +1,193 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "cramersV", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "name": "cramersVBiasCorrected", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "name": "theilsU", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "name": "theilsU", + "arguments": [ + { + "parts": [ + "b" + ] + }, + { + "parts": [ + "a" + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "round", + "arguments": [ + { + "name": "contingency", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + "alias": "a" + }, + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + }, + "alias": "b" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 150 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02158_proportions_ztest/ast.json b/parser/testdata/02158_proportions_ztest/ast.json new file mode 100644 index 0000000000..4ae705d4e8 --- /dev/null +++ b/parser/testdata/02158_proportions_ztest/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "proportionsZTest", + "arguments": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 11 + }, + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 101 + }, + { + "type": "Float", + "value": 0.95 + }, + { + "type": "String", + "value": "unpooled" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02158_ztest/ast.json b/parser/testdata/02158_ztest/ast.json new file mode 100644 index 0000000000..f41c2b98e1 --- /dev/null +++ b/parser/testdata/02158_ztest/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mean_ztest", + "tables": [ + { + "table": "mean_ztest" + } + ] +} diff --git a/parser/testdata/02159_left_right/ast.json b/parser/testdata/02159_left_right/ast.json new file mode 100644 index 0000000000..827bff3c6d --- /dev/null +++ b/parser/testdata/02159_left_right/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "left", + "arguments": [ + { + "type": "String", + "value": "Hello" + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02160_h3_cell_area_m2/ast.json b/parser/testdata/02160_h3_cell_area_m2/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02160_h3_cell_area_m2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02160_h3_cell_area_rads2/ast.json b/parser/testdata/02160_h3_cell_area_rads2/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02160_h3_cell_area_rads2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02160_h3_hex_area_Km2/ast.json b/parser/testdata/02160_h3_hex_area_Km2/ast.json new file mode 100644 index 0000000000..38746d7fc8 --- /dev/null +++ b/parser/testdata/02160_h3_hex_area_Km2/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3HexAreaKm2", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02160_special_functions/ast.json b/parser/testdata/02160_special_functions/ast.json new file mode 100644 index 0000000000..08e7aa221e --- /dev/null +++ b/parser/testdata/02160_special_functions/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "type": { + "name": "UInt8" + } + } + ] + } + ] +} diff --git a/parser/testdata/02161_addressToLineWithInlines/ast.json b/parser/testdata/02161_addressToLineWithInlines/ast.json new file mode 100644 index 0000000000..00582b6cc7 --- /dev/null +++ b/parser/testdata/02161_addressToLineWithInlines/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_introspection_functions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02161_array_first_last/ast.json b/parser/testdata/02161_array_first_last/ast.json new file mode 100644 index 0000000000..5615b8d732 --- /dev/null +++ b/parser/testdata/02161_array_first_last/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "ArrayFirst constant predicate" + } + ] + } + ] +} diff --git a/parser/testdata/02162_array_first_last_index/ast.json b/parser/testdata/02162_array_first_last_index/ast.json new file mode 100644 index 0000000000..2c39993b21 --- /dev/null +++ b/parser/testdata/02162_array_first_last_index/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "ArrayFirstIndex constant predicate" + } + ] + } + ] +} diff --git a/parser/testdata/02162_range_hashed_dictionary_ddl_expression/ast.json b/parser/testdata/02162_range_hashed_dictionary_ddl_expression/ast.json new file mode 100644 index 0000000000..6eae008203 --- /dev/null +++ b/parser/testdata/02162_range_hashed_dictionary_ddl_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02162_test_table", + "tables": [ + { + "table": "02162_test_table" + } + ] +} diff --git a/parser/testdata/02163_shard_num/ast.json b/parser/testdata/02163_shard_num/ast.json new file mode 100644 index 0000000000..1aaf0a4e33 --- /dev/null +++ b/parser/testdata/02163_shard_num/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "shardNum", + "alias": "shard_num" + }, + { + "name": "sum", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "rows" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.{1,2}" + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "_shard_num" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "_shard_num" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02164_materialized_view_support_virtual_column/ast.json b/parser/testdata/02164_materialized_view_support_virtual_column/ast.json new file mode 100644 index 0000000000..e6da8884d6 --- /dev/null +++ b/parser/testdata/02164_materialized_view_support_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tb", + "tables": [ + { + "table": "test_tb" + } + ] +} diff --git a/parser/testdata/02165_h3_edge_length_km/ast.json b/parser/testdata/02165_h3_edge_length_km/ast.json new file mode 100644 index 0000000000..824c3e3968 --- /dev/null +++ b/parser/testdata/02165_h3_edge_length_km/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3EdgeLengthKm", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02165_h3_exact_edge_length_Km/ast.json b/parser/testdata/02165_h3_exact_edge_length_Km/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02165_h3_exact_edge_length_Km/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02165_h3_exact_edge_length_m/ast.json b/parser/testdata/02165_h3_exact_edge_length_m/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02165_h3_exact_edge_length_m/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02165_h3_exact_edge_length_rads/ast.json b/parser/testdata/02165_h3_exact_edge_length_rads/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02165_h3_exact_edge_length_rads/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02165_h3_num_hexagons/ast.json b/parser/testdata/02165_h3_num_hexagons/ast.json new file mode 100644 index 0000000000..83e3612488 --- /dev/null +++ b/parser/testdata/02165_h3_num_hexagons/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3NumHexagons", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02167_columns_with_dots_default_values/ast.json b/parser/testdata/02167_columns_with_dots_default_values/ast.json new file mode 100644 index 0000000000..644e7322a1 --- /dev/null +++ b/parser/testdata/02167_columns_with_dots_default_values/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_nested_default", + "tables": [ + { + "table": "test_nested_default" + } + ] +} diff --git a/parser/testdata/02168_avro_bug/ast.json b/parser/testdata/02168_avro_bug/ast.json new file mode 100644 index 0000000000..10787a81ed --- /dev/null +++ b/parser/testdata/02168_avro_bug/ast.json @@ -0,0 +1,55 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "02168_avro_bug.avro" + }, + { + "type": "String", + "value": "Parquet" + }, + { + "type": "String", + "value": "x UInt64" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02169_fix_view_offset_limit_setting/ast.json b/parser/testdata/02169_fix_view_offset_limit_setting/ast.json new file mode 100644 index 0000000000..a4c6a7ab20 --- /dev/null +++ b/parser/testdata/02169_fix_view_offset_limit_setting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "counter", + "tables": [ + { + "table": "counter" + } + ] +} diff --git a/parser/testdata/02169_map_functions/ast.json b/parser/testdata/02169_map_functions/ast.json new file mode 100644 index 0000000000..a0169426a5 --- /dev/null +++ b/parser/testdata/02169_map_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_map", + "tables": [ + { + "table": "table_map" + } + ] +} diff --git a/parser/testdata/02174_cte_scalar_cache/ast.json b/parser/testdata/02174_cte_scalar_cache/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02174_cte_scalar_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02174_cte_scalar_cache_mv/ast.json b/parser/testdata/02174_cte_scalar_cache_mv/ast.json new file mode 100644 index 0000000000..a074a42da1 --- /dev/null +++ b/parser/testdata/02174_cte_scalar_cache_mv/ast.json @@ -0,0 +1,20 @@ +{ + "table": "t1", + "columns": [ + { + "name": "i", + "type": { + "name": "Int64" + } + }, + { + "name": "j", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02175_distributed_join_current_database/ast.json b/parser/testdata/02175_distributed_join_current_database/ast.json new file mode 100644 index 0000000000..350ec76668 --- /dev/null +++ b/parser/testdata/02175_distributed_join_current_database/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_02175", + "tables": [ + { + "table": "local_02175" + } + ] +} diff --git a/parser/testdata/02176_dict_get_has_implicit_key_cast/ast.json b/parser/testdata/02176_dict_get_has_implicit_key_cast/ast.json new file mode 100644 index 0000000000..0cbf36eb19 --- /dev/null +++ b/parser/testdata/02176_dict_get_has_implicit_key_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02176_test_simple_key_table", + "tables": [ + { + "table": "02176_test_simple_key_table" + } + ] +} diff --git a/parser/testdata/02176_optimize_aggregation_in_order_empty/ast.json b/parser/testdata/02176_optimize_aggregation_in_order_empty/ast.json new file mode 100644 index 0000000000..4422205a39 --- /dev/null +++ b/parser/testdata/02176_optimize_aggregation_in_order_empty/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02176", + "tables": [ + { + "table": "data_02176" + } + ] +} diff --git a/parser/testdata/02176_toStartOfWeek_overflow_pruning/ast.json b/parser/testdata/02176_toStartOfWeek_overflow_pruning/ast.json new file mode 100644 index 0000000000..41b6cc3928 --- /dev/null +++ b/parser/testdata/02176_toStartOfWeek_overflow_pruning/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfWeek", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "1970-01-01 00:00:00" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02177_issue_31009/ast.json b/parser/testdata/02177_issue_31009/ast.json new file mode 100644 index 0000000000..25f6700092 --- /dev/null +++ b/parser/testdata/02177_issue_31009/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02177_merge_optimize_aggregation_in_order/ast.json b/parser/testdata/02177_merge_optimize_aggregation_in_order/ast.json new file mode 100644 index 0000000000..51f0dbe7f1 --- /dev/null +++ b/parser/testdata/02177_merge_optimize_aggregation_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02177", + "tables": [ + { + "table": "data_02177" + } + ] +} diff --git a/parser/testdata/02177_sum_if_not_found/ast.json b/parser/testdata/02177_sum_if_not_found/ast.json new file mode 100644 index 0000000000..40b2c3dd1f --- /dev/null +++ b/parser/testdata/02177_sum_if_not_found/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumIf", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02178_column_function_insert_from/ast.json b/parser/testdata/02178_column_function_insert_from/ast.json new file mode 100644 index 0000000000..e64983bd1f --- /dev/null +++ b/parser/testdata/02178_column_function_insert_from/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "TESTTABLE", + "tables": [ + { + "table": "TESTTABLE" + } + ] +} diff --git a/parser/testdata/02179_bool_type/ast.json b/parser/testdata/02179_bool_type/ast.json new file mode 100644 index 0000000000..d8c6fdfbf2 --- /dev/null +++ b/parser/testdata/02179_bool_type/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "type": "Boolean", + "value": true + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02179_degrees_radians/ast.json b/parser/testdata/02179_degrees_radians/ast.json new file mode 100644 index 0000000000..5c28490730 --- /dev/null +++ b/parser/testdata/02179_degrees_radians/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_degs_to_rads", + "tables": [ + { + "table": "test_degs_to_rads" + } + ] +} diff --git a/parser/testdata/02179_key_condition_no_common_type/ast.json b/parser/testdata/02179_key_condition_no_common_type/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02179_key_condition_no_common_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02179_range_hashed_dictionary_invalid_interval/ast.json b/parser/testdata/02179_range_hashed_dictionary_invalid_interval/ast.json new file mode 100644 index 0000000000..d83824e238 --- /dev/null +++ b/parser/testdata/02179_range_hashed_dictionary_invalid_interval/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02179_test_table", + "tables": [ + { + "table": "02179_test_table" + } + ] +} diff --git a/parser/testdata/02179_sparse_columns_detach/ast.json b/parser/testdata/02179_sparse_columns_detach/ast.json new file mode 100644 index 0000000000..8b9f2c69bf --- /dev/null +++ b/parser/testdata/02179_sparse_columns_detach/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_detach", + "tables": [ + { + "table": "t_sparse_detach" + } + ] +} diff --git a/parser/testdata/02180_insert_into_values_settings/ast.json b/parser/testdata/02180_insert_into_values_settings/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02180_insert_into_values_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02181_dictionary_attach_detach/ast.json b/parser/testdata/02181_dictionary_attach_detach/ast.json new file mode 100644 index 0000000000..0d686f8896 --- /dev/null +++ b/parser/testdata/02181_dictionary_attach_detach/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02181_test_table", + "tables": [ + { + "table": "02181_test_table" + } + ] +} diff --git a/parser/testdata/02183_array_tuple_literals_remote/ast.json b/parser/testdata/02183_array_tuple_literals_remote/ast.json new file mode 100644 index 0000000000..aa577a8687 --- /dev/null +++ b/parser/testdata/02183_array_tuple_literals_remote/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "any", + "arguments": [ + { + "name": "array", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02183_combinator_if/ast.json b/parser/testdata/02183_combinator_if/ast.json new file mode 100644 index 0000000000..a8bf80828f --- /dev/null +++ b/parser/testdata/02183_combinator_if/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "anyIf", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "Hello" + } + ] + }, + { + "left": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02183_dictionary_date_types/ast.json b/parser/testdata/02183_dictionary_date_types/ast.json new file mode 100644 index 0000000000..55ab86ef99 --- /dev/null +++ b/parser/testdata/02183_dictionary_date_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02183_dictionary_source_table", + "tables": [ + { + "table": "02183_dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02183_dictionary_no_attributes/ast.json b/parser/testdata/02183_dictionary_no_attributes/ast.json new file mode 100644 index 0000000000..8fe709fbd5 --- /dev/null +++ b/parser/testdata/02183_dictionary_no_attributes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02183_dictionary_test_table", + "tables": [ + { + "table": "02183_dictionary_test_table" + } + ] +} diff --git a/parser/testdata/02184_default_table_engine/ast.json b/parser/testdata/02184_default_table_engine/ast.json new file mode 100644 index 0000000000..8bd3a046da --- /dev/null +++ b/parser/testdata/02184_default_table_engine/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "create_table_empty_primary_key_by_default", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02184_hash_functions_and_ip_types/ast.json b/parser/testdata/02184_hash_functions_and_ip_types/ast.json new file mode 100644 index 0000000000..a805056b35 --- /dev/null +++ b/parser/testdata/02184_hash_functions_and_ip_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_single_large_number_tip_threshold", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02184_ipv6_cast_test/ast.json b/parser/testdata/02184_ipv6_cast_test/ast.json new file mode 100644 index 0000000000..ed2a1f12b5 --- /dev/null +++ b/parser/testdata/02184_ipv6_cast_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ipv6_test26473", + "tables": [ + { + "table": "ipv6_test26473" + } + ] +} diff --git a/parser/testdata/02184_ipv6_select_parsing/ast.json b/parser/testdata/02184_ipv6_select_parsing/ast.json new file mode 100644 index 0000000000..38d6350788 --- /dev/null +++ b/parser/testdata/02184_ipv6_select_parsing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ips_v6", + "tables": [ + { + "table": "ips_v6" + } + ] +} diff --git a/parser/testdata/02184_nested_tuple/ast.json b/parser/testdata/02184_nested_tuple/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02184_nested_tuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02184_range_hashed_dictionary_outside_range_values/ast.json b/parser/testdata/02184_range_hashed_dictionary_outside_range_values/ast.json new file mode 100644 index 0000000000..b65b3b2ec4 --- /dev/null +++ b/parser/testdata/02184_range_hashed_dictionary_outside_range_values/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02184_range_dictionary_source_table", + "tables": [ + { + "table": "02184_range_dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02184_storage_add_support_ttl/ast.json b/parser/testdata/02184_storage_add_support_ttl/ast.json new file mode 100644 index 0000000000..6a03464b48 --- /dev/null +++ b/parser/testdata/02184_storage_add_support_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mergeTree_02184", + "tables": [ + { + "table": "mergeTree_02184" + } + ] +} diff --git a/parser/testdata/02185_arraySlice_negative_offset_size/ast.json b/parser/testdata/02185_arraySlice_negative_offset_size/ast.json new file mode 100644 index 0000000000..4748d9d767 --- /dev/null +++ b/parser/testdata/02185_arraySlice_negative_offset_size/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arraySlice", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 8 + } + ] + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02185_range_hashed_dictionary_open_ranges/ast.json b/parser/testdata/02185_range_hashed_dictionary_open_ranges/ast.json new file mode 100644 index 0000000000..0bc3d35c2b --- /dev/null +++ b/parser/testdata/02185_range_hashed_dictionary_open_ranges/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02185_range_dictionary_source_table", + "tables": [ + { + "table": "02185_range_dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02185_split_by_char/ast.json b/parser/testdata/02185_split_by_char/ast.json new file mode 100644 index 0000000000..97f7a8fe0b --- /dev/null +++ b/parser/testdata/02185_split_by_char/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "splitByChar", + "arguments": [ + { + "type": "String", + "value": "," + }, + { + "type": "String", + "value": "1,2,3" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02186_range_hashed_dictionary_intersecting_intervals/ast.json b/parser/testdata/02186_range_hashed_dictionary_intersecting_intervals/ast.json new file mode 100644 index 0000000000..284c6aa527 --- /dev/null +++ b/parser/testdata/02186_range_hashed_dictionary_intersecting_intervals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02186_range_dictionary_source_table", + "tables": [ + { + "table": "02186_range_dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02187_insert_values_with_mv/ast.json b/parser/testdata/02187_insert_values_with_mv/ast.json new file mode 100644 index 0000000000..a53d7e33a7 --- /dev/null +++ b/parser/testdata/02187_insert_values_with_mv/ast.json @@ -0,0 +1,15 @@ +{ + "if_not_exists": true, + "table": "data_a_02187", + "columns": [ + { + "name": "a", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02187_test_final_and_limit_modifier/ast.json b/parser/testdata/02187_test_final_and_limit_modifier/ast.json new file mode 100644 index 0000000000..c4c7bdaf1e --- /dev/null +++ b/parser/testdata/02187_test_final_and_limit_modifier/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02187", + "tables": [ + { + "table": "test_02187" + } + ] +} diff --git a/parser/testdata/02188_parser_dictionary_primary_key/ast.json b/parser/testdata/02188_parser_dictionary_primary_key/ast.json new file mode 100644 index 0000000000..aaf434dc7d --- /dev/null +++ b/parser/testdata/02188_parser_dictionary_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02188_test_dictionary_source", + "tables": [ + { + "table": "02188_test_dictionary_source" + } + ] +} diff --git a/parser/testdata/02190_current_metrics_query/ast.json b/parser/testdata/02190_current_metrics_query/ast.json new file mode 100644 index 0000000000..054476d950 --- /dev/null +++ b/parser/testdata/02190_current_metrics_query/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "parts": [ + "value" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "metrics" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "metric" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "Query" + } + } + } + ] +} diff --git a/parser/testdata/02191_nested_with_dots/ast.json b/parser/testdata/02191_nested_with_dots/ast.json new file mode 100644 index 0000000000..89d4076916 --- /dev/null +++ b/parser/testdata/02191_nested_with_dots/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_nested_with_dots", + "tables": [ + { + "table": "t_nested_with_dots" + } + ] +} diff --git a/parser/testdata/02191_parse_date_time_best_effort_more_cases/ast.json b/parser/testdata/02191_parse_date_time_best_effort_more_cases/ast.json new file mode 100644 index 0000000000..4b39f2e5b5 --- /dev/null +++ b/parser/testdata/02191_parse_date_time_best_effort_more_cases/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTimeBestEffort", + "arguments": [ + { + "type": "String", + "value": "20220101-010203" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02193_async_insert_tcp_client_1/ast.json b/parser/testdata/02193_async_insert_tcp_client_1/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/02193_async_insert_tcp_client_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02205_ephemeral_1/ast.json b/parser/testdata/02205_ephemeral_1/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02205_ephemeral_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02205_map_populate_series_non_const/ast.json b/parser/testdata/02205_map_populate_series_non_const/ast.json new file mode 100644 index 0000000000..46933766f2 --- /dev/null +++ b/parser/testdata/02205_map_populate_series_non_const/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02005_test_table", + "tables": [ + { + "table": "02005_test_table" + } + ] +} diff --git a/parser/testdata/02205_postgresql_functions/ast.json b/parser/testdata/02205_postgresql_functions/ast.json new file mode 100644 index 0000000000..253ad9b3d4 --- /dev/null +++ b/parser/testdata/02205_postgresql_functions/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "match", + "arguments": [ + { + "type": "String", + "value": "a key=\"v\" " + }, + { + "type": "String", + "value": "key=\"(.*?)\"" + } + ] + }, + { + "name": "REGEXP_MATCHES", + "arguments": [ + { + "type": "String", + "value": "a key=\"v\" " + }, + { + "type": "String", + "value": "key=\"(.*?)\"" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02206_array_starts_ends_with/ast.json b/parser/testdata/02206_array_starts_ends_with/ast.json new file mode 100644 index 0000000000..760128921e --- /dev/null +++ b/parser/testdata/02206_array_starts_ends_with/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "startsWith", + "arguments": [ + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02206_minimum_sample_size/ast.json b/parser/testdata/02206_minimum_sample_size/ast.json new file mode 100644 index 0000000000..2a8c3cafbf --- /dev/null +++ b/parser/testdata/02206_minimum_sample_size/ast.json @@ -0,0 +1,102 @@ +{ + "selects": [ + { + "with": [ + { + "name": "res", + "query": { + "name": "minSampleSizeContinous", + "arguments": [ + { + "type": "Integer", + "value": 20 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Float", + "value": 0.05 + }, + { + "type": "Float", + "value": 0.8 + }, + { + "type": "Float", + "value": 0.05 + } + ] + } + } + ], + "columns": [ + { + "type": "String", + "value": "continous const 1" + }, + { + "name": "roundBankers", + "arguments": [ + { + "tuple": { + "parts": [ + "res" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "roundBankers", + "arguments": [ + { + "tuple": { + "parts": [ + "res" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "roundBankers", + "arguments": [ + { + "tuple": { + "parts": [ + "res" + ] + }, + "index": { + "type": "Integer", + "value": 3 + } + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02207_key_condition_floats/ast.json b/parser/testdata/02207_key_condition_floats/ast.json new file mode 100644 index 0000000000..08c74aaecd --- /dev/null +++ b/parser/testdata/02207_key_condition_floats/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_key_condition_float", + "tables": [ + { + "table": "t_key_condition_float" + } + ] +} diff --git a/parser/testdata/02207_subseconds_intervals/ast.json b/parser/testdata/02207_subseconds_intervals/ast.json new file mode 100644 index 0000000000..4ed3aedb17 --- /dev/null +++ b/parser/testdata/02207_subseconds_intervals/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "test intervals" + } + ] + } + ] +} diff --git a/parser/testdata/02207_ttl_move_if_exists/ast.json b/parser/testdata/02207_ttl_move_if_exists/ast.json new file mode 100644 index 0000000000..13d8622d33 --- /dev/null +++ b/parser/testdata/02207_ttl_move_if_exists/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_ttl_move_if_exists", + "tables": [ + { + "table": "t_ttl_move_if_exists" + } + ] +} diff --git a/parser/testdata/02209_short_circuit_node_without_parents/ast.json b/parser/testdata/02209_short_circuit_node_without_parents/ast.json new file mode 100644 index 0000000000..8ac3fcb44f --- /dev/null +++ b/parser/testdata/02209_short_circuit_node_without_parents/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "name": "empty", + "arguments": [ + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02210_append_to_dev_dull/ast.json b/parser/testdata/02210_append_to_dev_dull/ast.json new file mode 100644 index 0000000000..cb4714cffc --- /dev/null +++ b/parser/testdata/02210_append_to_dev_dull/ast.json @@ -0,0 +1,45 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "/dev/null" + }, + { + "type": "String", + "value": "Parquet" + }, + { + "type": "String", + "value": "number UInt64" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02210_toColumnTypeName_toLowCardinality_const/ast.json b/parser/testdata/02210_toColumnTypeName_toLowCardinality_const/ast.json new file mode 100644 index 0000000000..b46c00c27f --- /dev/null +++ b/parser/testdata/02210_toColumnTypeName_toLowCardinality_const/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toColumnTypeName", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02211_jsonl_format_extension/ast.json b/parser/testdata/02211_jsonl_format_extension/ast.json new file mode 100644 index 0000000000..647117b723 --- /dev/null +++ b/parser/testdata/02211_jsonl_format_extension/ast.json @@ -0,0 +1,55 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "data.jsonl" + }, + { + "type": "String", + "value": "JSONEachRow" + }, + { + "type": "String", + "value": "x UInt32" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02212_cte_and_table_alias/ast.json b/parser/testdata/02212_cte_and_table_alias/ast.json new file mode 100644 index 0000000000..73b8d35028 --- /dev/null +++ b/parser/testdata/02212_cte_and_table_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_global_with_statement", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02212_h3_get_pentagon_indexes/ast.json b/parser/testdata/02212_h3_get_pentagon_indexes/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/02212_h3_get_pentagon_indexes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/02212_h3_get_res0_indexes/ast.json b/parser/testdata/02212_h3_get_res0_indexes/ast.json new file mode 100644 index 0000000000..9a211b7b5b --- /dev/null +++ b/parser/testdata/02212_h3_get_res0_indexes/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3GetRes0Indexes" + } + ] + } + ] +} diff --git a/parser/testdata/02212_h3_point_dist/ast.json b/parser/testdata/02212_h3_point_dist/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/02212_h3_point_dist/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/02222_allow_experimental_projection_optimization__enable_global_with_statement/ast.json b/parser/testdata/02222_allow_experimental_projection_optimization__enable_global_with_statement/ast.json new file mode 100644 index 0000000000..b90bb423c0 --- /dev/null +++ b/parser/testdata/02222_allow_experimental_projection_optimization__enable_global_with_statement/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02222", + "tables": [ + { + "table": "data_02222" + } + ] +} diff --git a/parser/testdata/02223_h3_test_const_columns/ast.json b/parser/testdata/02223_h3_test_const_columns/ast.json new file mode 100644 index 0000000000..fa0b374d10 --- /dev/null +++ b/parser/testdata/02223_h3_test_const_columns/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "geoToH3", + "arguments": [ + { + "name": "toFloat64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toFloat64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02223_insert_select_schema_inference/ast.json b/parser/testdata/02223_insert_select_schema_inference/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02223_insert_select_schema_inference/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02224_parallel_distributed_insert_select_cluster/ast.json b/parser/testdata/02224_parallel_distributed_insert_select_cluster/ast.json new file mode 100644 index 0000000000..b51f75428a --- /dev/null +++ b/parser/testdata/02224_parallel_distributed_insert_select_cluster/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dst_02224", + "tables": [ + { + "table": "dst_02224" + } + ] +} diff --git a/parser/testdata/02224_s2_test_const_columns/ast.json b/parser/testdata/02224_s2_test_const_columns/ast.json new file mode 100644 index 0000000000..1b4a70d559 --- /dev/null +++ b/parser/testdata/02224_s2_test_const_columns/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "geoToS2", + "arguments": [ + { + "type": "Float", + "value": 37.79506683 + }, + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 55.71290588 + }, + { + "type": "Float", + "value": 37.79506683 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02226_analyzer_or_like_combine/ast.json b/parser/testdata/02226_analyzer_or_like_combine/ast.json new file mode 100644 index 0000000000..9308dc7d03 --- /dev/null +++ b/parser/testdata/02226_analyzer_or_like_combine/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "allow_hyperscan", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_hyperscan_regexp_length", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_hyperscan_regexp_total_length", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02226_async_insert_table_function/ast.json b/parser/testdata/02226_async_insert_table_function/ast.json new file mode 100644 index 0000000000..367b6a5b46 --- /dev/null +++ b/parser/testdata/02226_async_insert_table_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_async_insert_table_function", + "tables": [ + { + "table": "t_async_insert_table_function" + } + ] +} diff --git a/parser/testdata/02226_in_untuple_issue_34810/ast.json b/parser/testdata/02226_in_untuple_issue_34810/ast.json new file mode 100644 index 0000000000..115e0d88f9 --- /dev/null +++ b/parser/testdata/02226_in_untuple_issue_34810/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "calendar", + "tables": [ + { + "table": "calendar" + } + ] +} diff --git a/parser/testdata/02226_low_cardinality_text_bloom_filter_index/ast.json b/parser/testdata/02226_low_cardinality_text_bloom_filter_index/ast.json new file mode 100644 index 0000000000..f05e89909b --- /dev/null +++ b/parser/testdata/02226_low_cardinality_text_bloom_filter_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bf_tokenbf_lowcard_test", + "tables": [ + { + "table": "bf_tokenbf_lowcard_test" + } + ] +} diff --git a/parser/testdata/02227_union_match_by_name/ast.json b/parser/testdata/02227_union_match_by_name/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02227_union_match_by_name/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02228_merge_tree_insert_memory_usage/ast.json b/parser/testdata/02228_merge_tree_insert_memory_usage/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/02228_merge_tree_insert_memory_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02230_create_table_as_ignore_ttl/ast.json b/parser/testdata/02230_create_table_as_ignore_ttl/ast.json new file mode 100644 index 0000000000..dcb7a24d09 --- /dev/null +++ b/parser/testdata/02230_create_table_as_ignore_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02230_ttl", + "tables": [ + { + "table": "data_02230_ttl" + } + ] +} diff --git a/parser/testdata/02231_bloom_filter_sizing/ast.json b/parser/testdata/02231_bloom_filter_sizing/ast.json new file mode 100644 index 0000000000..ff4122bcf5 --- /dev/null +++ b/parser/testdata/02231_bloom_filter_sizing/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Bloom filter on sort key" + } + ] + } + ] +} diff --git a/parser/testdata/02231_buffer_aggregate_states_leak/ast.json b/parser/testdata/02231_buffer_aggregate_states_leak/ast.json new file mode 100644 index 0000000000..ba1e00ae78 --- /dev/null +++ b/parser/testdata/02231_buffer_aggregate_states_leak/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "buffer_02231", + "tables": [ + { + "table": "buffer_02231" + } + ] +} diff --git a/parser/testdata/02231_hierarchical_dictionaries_constant/ast.json b/parser/testdata/02231_hierarchical_dictionaries_constant/ast.json new file mode 100644 index 0000000000..65fe336542 --- /dev/null +++ b/parser/testdata/02231_hierarchical_dictionaries_constant/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "hierarchy_source_table", + "tables": [ + { + "table": "hierarchy_source_table" + } + ] +} diff --git a/parser/testdata/02232_functions_to_subcolumns_alias/ast.json b/parser/testdata/02232_functions_to_subcolumns_alias/ast.json new file mode 100644 index 0000000000..baad2393de --- /dev/null +++ b/parser/testdata/02232_functions_to_subcolumns_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_functions_to_subcolumns_alias", + "tables": [ + { + "table": "t_functions_to_subcolumns_alias" + } + ] +} diff --git a/parser/testdata/02232_partition_pruner_mixed_constant_type/ast.json b/parser/testdata/02232_partition_pruner_mixed_constant_type/ast.json new file mode 100644 index 0000000000..b211dfff47 --- /dev/null +++ b/parser/testdata/02232_partition_pruner_mixed_constant_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "broken", + "tables": [ + { + "table": "broken" + } + ] +} diff --git a/parser/testdata/02232_partition_pruner_single_point/ast.json b/parser/testdata/02232_partition_pruner_single_point/ast.json new file mode 100644 index 0000000000..4345ad112e --- /dev/null +++ b/parser/testdata/02232_partition_pruner_single_point/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lower_test", + "tables": [ + { + "table": "lower_test" + } + ] +} diff --git a/parser/testdata/02233_optimize_aggregation_in_order_prefix/ast.json b/parser/testdata/02233_optimize_aggregation_in_order_prefix/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02233_optimize_aggregation_in_order_prefix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02233_optimize_aggregation_in_order_prefix_with_merge/ast.json b/parser/testdata/02233_optimize_aggregation_in_order_prefix_with_merge/ast.json new file mode 100644 index 0000000000..b67903486e --- /dev/null +++ b/parser/testdata/02233_optimize_aggregation_in_order_prefix_with_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02233", + "tables": [ + { + "table": "data_02233" + } + ] +} diff --git a/parser/testdata/02233_set_enable_with_statement_cte_perf/ast.json b/parser/testdata/02233_set_enable_with_statement_cte_perf/ast.json new file mode 100644 index 0000000000..71b1a52dd6 --- /dev/null +++ b/parser/testdata/02233_set_enable_with_statement_cte_perf/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ev", + "tables": [ + { + "table": "ev" + } + ] +} diff --git a/parser/testdata/02233_with_total_empty_chunk/ast.json b/parser/testdata/02233_with_total_empty_chunk/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02233_with_total_empty_chunk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02234_cast_to_ip_address/ast.json b/parser/testdata/02234_cast_to_ip_address/ast.json new file mode 100644 index 0000000000..b82a70df75 --- /dev/null +++ b/parser/testdata/02234_cast_to_ip_address/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "IPv4 functions" + } + ] + } + ] +} diff --git a/parser/testdata/02234_column_function_short_circuit/ast.json b/parser/testdata/02234_column_function_short_circuit/ast.json new file mode 100644 index 0000000000..6de10424b8 --- /dev/null +++ b/parser/testdata/02234_column_function_short_circuit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict_table", + "tables": [ + { + "table": "dict_table" + } + ] +} diff --git a/parser/testdata/02235_add_part_offset_virtual_column/ast.json b/parser/testdata/02235_add_part_offset_virtual_column/ast.json new file mode 100644 index 0000000000..119fff4640 --- /dev/null +++ b/parser/testdata/02235_add_part_offset_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_1", + "tables": [ + { + "table": "t_1" + } + ] +} diff --git a/parser/testdata/02235_check_table_sparse_serialization/ast.json b/parser/testdata/02235_check_table_sparse_serialization/ast.json new file mode 100644 index 0000000000..4e4da2b875 --- /dev/null +++ b/parser/testdata/02235_check_table_sparse_serialization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_02235", + "tables": [ + { + "table": "t_sparse_02235" + } + ] +} diff --git a/parser/testdata/02236_explain_pipeline_join/ast.json b/parser/testdata/02236_explain_pipeline_join/ast.json new file mode 100644 index 0000000000..6b49942a87 --- /dev/null +++ b/parser/testdata/02236_explain_pipeline_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_join_swap_table", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/02236_json_each_row_empty_map_schema_inference/ast.json b/parser/testdata/02236_json_each_row_empty_map_schema_inference/ast.json new file mode 100644 index 0000000000..bfb9156238 --- /dev/null +++ b/parser/testdata/02236_json_each_row_empty_map_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_try_infer_named_tuples_from_objects", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02240_asof_join_biginteger/ast.json b/parser/testdata/02240_asof_join_biginteger/ast.json new file mode 100644 index 0000000000..d0ce1adf99 --- /dev/null +++ b/parser/testdata/02240_asof_join_biginteger/ast.json @@ -0,0 +1,93 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "k" + }, + { + "name": "toInt128", + "arguments": [ + { + "type": "String", + "value": "18446744073709551617" + } + ], + "alias": "v" + } + ] + } + ] + } + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "k" + }, + { + "name": "toInt128", + "arguments": [ + { + "type": "String", + "value": "18446744073709551616" + } + ], + "alias": "v" + } + ] + } + ] + } + }, + "alias": "t2" + }, + "join": { + "type": "INNER", + "strictness": "ASOF", + "using": [ + { + "parts": [ + "k" + ] + }, + { + "parts": [ + "v" + ] + } + ] + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02240_filesystem_cache_bypass_cache_threshold/ast.json b/parser/testdata/02240_filesystem_cache_bypass_cache_threshold/ast.json new file mode 100644 index 0000000000..4442e8566b --- /dev/null +++ b/parser/testdata/02240_filesystem_cache_bypass_cache_threshold/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP FILESYSTEM CACHE" +} diff --git a/parser/testdata/02240_filesystem_query_cache/ast.json b/parser/testdata/02240_filesystem_query_cache/ast.json new file mode 100644 index 0000000000..4442e8566b --- /dev/null +++ b/parser/testdata/02240_filesystem_query_cache/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP FILESYSTEM CACHE" +} diff --git a/parser/testdata/02240_get_type_serialization_streams/ast.json b/parser/testdata/02240_get_type_serialization_streams/ast.json new file mode 100644 index 0000000000..bce012d27d --- /dev/null +++ b/parser/testdata/02240_get_type_serialization_streams/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "getTypeSerializationStreams", + "arguments": [ + { + "type": "String", + "value": "Array(Int8)" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02241_array_first_last_or_null/ast.json b/parser/testdata/02241_array_first_last_or_null/ast.json new file mode 100644 index 0000000000..5615b8d732 --- /dev/null +++ b/parser/testdata/02241_array_first_last_or_null/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "ArrayFirst constant predicate" + } + ] + } + ] +} diff --git a/parser/testdata/02242_if_then_else_null_bug/ast.json b/parser/testdata/02242_if_then_else_null_bug/ast.json new file mode 100644 index 0000000000..3d675e44b6 --- /dev/null +++ b/parser/testdata/02242_if_then_else_null_bug/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "expr": { + "type": "Null", + "value": null + }, + "type": { + "name": "Nullable(Int64)" + } + }, + { + "name": "materialize", + "arguments": [ + { + "name": "toInt32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02242_join_rocksdb/ast.json b/parser/testdata/02242_join_rocksdb/ast.json new file mode 100644 index 0000000000..9396556435 --- /dev/null +++ b/parser/testdata/02242_join_rocksdb/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rdb", + "tables": [ + { + "table": "rdb" + } + ] +} diff --git a/parser/testdata/02242_make_date/ast.json b/parser/testdata/02242_make_date/ast.json new file mode 100644 index 0000000000..7598e0c947 --- /dev/null +++ b/parser/testdata/02242_make_date/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "makeDate", + "arguments": [ + { + "type": "Integer", + "value": 1991 + }, + { + "type": "Integer", + "value": 8 + }, + { + "type": "Integer", + "value": 24 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02242_make_date_mysql/ast.json b/parser/testdata/02242_make_date_mysql/ast.json new file mode 100644 index 0000000000..371964ae17 --- /dev/null +++ b/parser/testdata/02242_make_date_mysql/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "makeDate", + "arguments": [ + { + "type": "Integer", + "value": 1991 + }, + { + "type": "Integer", + "value": 8 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02242_negative_datetime64/ast.json b/parser/testdata/02242_negative_datetime64/ast.json new file mode 100644 index 0000000000..10e11e92ae --- /dev/null +++ b/parser/testdata/02242_negative_datetime64/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1965-12-12 12:12:12.123" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + "type": { + "name": "Decimal64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + } + ] + } + ] +} diff --git a/parser/testdata/02242_optimize_to_subcolumns_no_storage/ast.json b/parser/testdata/02242_optimize_to_subcolumns_no_storage/ast.json new file mode 100644 index 0000000000..5db256c789 --- /dev/null +++ b/parser/testdata/02242_optimize_to_subcolumns_no_storage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_functions_to_subcolumns", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02242_subcolumns_sizes/ast.json b/parser/testdata/02242_subcolumns_sizes/ast.json new file mode 100644 index 0000000000..a9a1c89d35 --- /dev/null +++ b/parser/testdata/02242_subcolumns_sizes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_subcolumns_sizes", + "tables": [ + { + "table": "t_subcolumns_sizes" + } + ] +} diff --git a/parser/testdata/02242_throw_if_constant_argument/ast.json b/parser/testdata/02242_throw_if_constant_argument/ast.json new file mode 100644 index 0000000000..91ec7a484b --- /dev/null +++ b/parser/testdata/02242_throw_if_constant_argument/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "throwIf", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "AND", + "right": { + "type": "Integer", + "value": 2147483646 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/02243_in_ip_address/ast.json b/parser/testdata/02243_in_ip_address/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02243_in_ip_address/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02243_ipv6_long_parsing/ast.json b/parser/testdata/02243_ipv6_long_parsing/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02243_ipv6_long_parsing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02243_make_date32/ast.json b/parser/testdata/02243_make_date32/ast.json new file mode 100644 index 0000000000..9e825da795 --- /dev/null +++ b/parser/testdata/02243_make_date32/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "makeDate32", + "arguments": [ + { + "type": "Integer", + "value": 1991 + }, + { + "type": "Integer", + "value": 8 + }, + { + "type": "Integer", + "value": 24 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02243_make_date32_mysql/ast.json b/parser/testdata/02243_make_date32_mysql/ast.json new file mode 100644 index 0000000000..35bf70c0c8 --- /dev/null +++ b/parser/testdata/02243_make_date32_mysql/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "makeDate32", + "arguments": [ + { + "type": "Integer", + "value": 1991 + }, + { + "type": "Integer", + "value": 8 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02244_casewithexpression_return_type/ast.json b/parser/testdata/02244_casewithexpression_return_type/ast.json new file mode 100644 index 0000000000..5731f55aee --- /dev/null +++ b/parser/testdata/02244_casewithexpression_return_type/ast.json @@ -0,0 +1,113 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "operand": { + "parts": [ + "number" + ] + }, + "whens": [ + { + "condition": { + "type": "Integer", + "value": 3 + }, + "result": { + "type": "Integer", + "value": 55 + } + }, + { + "condition": { + "type": "Integer", + "value": 6 + }, + "result": { + "type": "Integer", + "value": 77 + } + }, + { + "condition": { + "type": "Integer", + "value": 9 + }, + "result": { + "type": "Integer", + "value": 95 + } + } + ], + "else": { + "whens": [ + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + "result": { + "type": "Integer", + "value": 10 + } + }, + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 10 + } + }, + "result": { + "type": "Integer", + "value": 100 + } + } + ], + "else": { + "type": "Integer", + "value": 555555 + } + }, + "alias": "LONG_COL_0" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 20 + } + } + ] +} diff --git a/parser/testdata/02244_column_names_in_shcmea_inference/ast.json b/parser/testdata/02244_column_names_in_shcmea_inference/ast.json new file mode 100644 index 0000000000..6dd29b540a --- /dev/null +++ b/parser/testdata/02244_column_names_in_shcmea_inference/ast.json @@ -0,0 +1,51 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_test_02244" + } + }, + { + "type": "String", + "value": "TSV" + }, + { + "type": "String", + "value": "x String, y UInt32" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Hello, world!" + }, + { + "type": "Integer", + "value": 42 + } + ], + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02244_ip_address_invalid_insert/ast.json b/parser/testdata/02244_ip_address_invalid_insert/ast.json new file mode 100644 index 0000000000..d62fd8141e --- /dev/null +++ b/parser/testdata/02244_ip_address_invalid_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_ipv4", + "tables": [ + { + "table": "test_table_ipv4" + } + ] +} diff --git a/parser/testdata/02244_lowcardinality_hash_join/ast.json b/parser/testdata/02244_lowcardinality_hash_join/ast.json new file mode 100644 index 0000000000..8ce7063f98 --- /dev/null +++ b/parser/testdata/02244_lowcardinality_hash_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_table", + "tables": [ + { + "table": "lc_table" + } + ] +} diff --git a/parser/testdata/02244_make_datetime/ast.json b/parser/testdata/02244_make_datetime/ast.json new file mode 100644 index 0000000000..ecf3ecfe94 --- /dev/null +++ b/parser/testdata/02244_make_datetime/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "makeDateTime", + "arguments": [ + { + "type": "Integer", + "value": 1991 + }, + { + "type": "Integer", + "value": 8 + }, + { + "type": "Integer", + "value": 24 + }, + { + "type": "Integer", + "value": 21 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02244_url_engine_headers_test/ast.json b/parser/testdata/02244_url_engine_headers_test/ast.json new file mode 100644 index 0000000000..58703aa85c --- /dev/null +++ b/parser/testdata/02244_url_engine_headers_test/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "url", + "arguments": [ + { + "parts": [ + "url_with_headers" + ] + }, + { + "left": { + "parts": [ + "url" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "http://127.0.0.1:8123?query=select+12" + } + }, + { + "left": { + "parts": [ + "format" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "RawBLOB" + } + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02245_format_string_stack_overflow/ast.json b/parser/testdata/02245_format_string_stack_overflow/ast.json new file mode 100644 index 0000000000..46b405c1e3 --- /dev/null +++ b/parser/testdata/02245_format_string_stack_overflow/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "format", + "arguments": [ + { + "type": "String", + "value": "{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}{0}" + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "str" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02245_join_with_nullable_lowcardinality_crash/ast.json b/parser/testdata/02245_join_with_nullable_lowcardinality_crash/ast.json new file mode 100644 index 0000000000..529e91d47b --- /dev/null +++ b/parser/testdata/02245_join_with_nullable_lowcardinality_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "with_nullable", + "tables": [ + { + "table": "with_nullable" + } + ] +} diff --git a/parser/testdata/02245_make_datetime64/ast.json b/parser/testdata/02245_make_datetime64/ast.json new file mode 100644 index 0000000000..ce5b8c4434 --- /dev/null +++ b/parser/testdata/02245_make_datetime64/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "makeDateTime64", + "arguments": [ + { + "type": "Integer", + "value": 1991 + }, + { + "type": "Integer", + "value": 8 + }, + { + "type": "Integer", + "value": 24 + }, + { + "type": "Integer", + "value": 21 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02245_s3_support_read_nested_column/ast.json b/parser/testdata/02245_s3_support_read_nested_column/ast.json new file mode 100644 index 0000000000..b6e50b2185 --- /dev/null +++ b/parser/testdata/02245_s3_support_read_nested_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02245_s3_nested_parquet1", + "tables": [ + { + "table": "test_02245_s3_nested_parquet1" + } + ] +} diff --git a/parser/testdata/02245_s3_virtual_columns/ast.json b/parser/testdata/02245_s3_virtual_columns/ast.json new file mode 100644 index 0000000000..a848f75aec --- /dev/null +++ b/parser/testdata/02245_s3_virtual_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02245", + "tables": [ + { + "table": "test_02245" + } + ] +} diff --git a/parser/testdata/02245_weird_partitions_pruning/ast.json b/parser/testdata/02245_weird_partitions_pruning/ast.json new file mode 100644 index 0000000000..4371fa52e2 --- /dev/null +++ b/parser/testdata/02245_weird_partitions_pruning/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "weird_partitions_02245", + "tables": [ + { + "table": "weird_partitions_02245" + } + ] +} diff --git a/parser/testdata/02246_flatten_tuple/ast.json b/parser/testdata/02246_flatten_tuple/ast.json new file mode 100644 index 0000000000..5808e373a0 --- /dev/null +++ b/parser/testdata/02246_flatten_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_flatten_tuple", + "tables": [ + { + "table": "t_flatten_tuple" + } + ] +} diff --git a/parser/testdata/02247_fix_extract_parser/ast.json b/parser/testdata/02247_fix_extract_parser/ast.json new file mode 100644 index 0000000000..2f72ec1e2b --- /dev/null +++ b/parser/testdata/02247_fix_extract_parser/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "with": [ + { + "name": "year", + "query": { + "type": "String", + "value": "number: 1" + } + } + ], + "columns": [ + { + "name": "extract", + "arguments": [ + { + "parts": [ + "year" + ] + }, + { + "type": "String", + "value": "\\d+" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02248_nullable_custom_types_to_string/ast.json b/parser/testdata/02248_nullable_custom_types_to_string/ast.json new file mode 100644 index 0000000000..34f9e88411 --- /dev/null +++ b/parser/testdata/02248_nullable_custom_types_to_string/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Boolean", + "value": true + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02249_insert_select_from_input_schema_inference/ast.json b/parser/testdata/02249_insert_select_from_input_schema_inference/ast.json new file mode 100644 index 0000000000..a3499455bf --- /dev/null +++ b/parser/testdata/02249_insert_select_from_input_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_structure_from_insertion_table_in_table_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02249_parse_date_time_basic/ast.json b/parser/testdata/02249_parse_date_time_basic/ast.json new file mode 100644 index 0000000000..a16c8310e4 --- /dev/null +++ b/parser/testdata/02249_parse_date_time_basic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "date_time_output_format", + "value": { + "type": "String", + "value": "iso" + } + } + ] +} diff --git a/parser/testdata/02250_insert_select_from_file_schema_inference/ast.json b/parser/testdata/02250_insert_select_from_file_schema_inference/ast.json new file mode 100644 index 0000000000..a3499455bf --- /dev/null +++ b/parser/testdata/02250_insert_select_from_file_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_structure_from_insertion_table_in_table_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02251_alter_enum_nested_struct/ast.json b/parser/testdata/02251_alter_enum_nested_struct/ast.json new file mode 100644 index 0000000000..550180da78 --- /dev/null +++ b/parser/testdata/02251_alter_enum_nested_struct/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_enum_array", + "tables": [ + { + "table": "alter_enum_array" + } + ] +} diff --git a/parser/testdata/02252_executable_user_defined_function_short_circuit/ast.json b/parser/testdata/02252_executable_user_defined_function_short_circuit/ast.json new file mode 100644 index 0000000000..b08b3a7e08 --- /dev/null +++ b/parser/testdata/02252_executable_user_defined_function_short_circuit/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 15 + } + }, + "op": "AND", + "right": { + "left": { + "name": "test_function", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + }, + "op": "==", + "right": { + "type": "Integer", + "value": 4 + } + } + } + } + ] +} diff --git a/parser/testdata/02252_jit_profile_events/ast.json b/parser/testdata/02252_jit_profile_events/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/02252_jit_profile_events/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02252_reset_non_existing_setting/ast.json b/parser/testdata/02252_reset_non_existing_setting/ast.json new file mode 100644 index 0000000000..e2e7619a65 --- /dev/null +++ b/parser/testdata/02252_reset_non_existing_setting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "most_ordinary_mt", + "tables": [ + { + "table": "most_ordinary_mt" + } + ] +} diff --git a/parser/testdata/02265_column_ttl/ast.json b/parser/testdata/02265_column_ttl/ast.json new file mode 100644 index 0000000000..d6c50bcba2 --- /dev/null +++ b/parser/testdata/02265_column_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_02265", + "tables": [ + { + "table": "ttl_02265" + } + ] +} diff --git a/parser/testdata/02265_per_table_ttl_mutation_on_change/ast.json b/parser/testdata/02265_per_table_ttl_mutation_on_change/ast.json new file mode 100644 index 0000000000..3bf9de4fd0 --- /dev/null +++ b/parser/testdata/02265_per_table_ttl_mutation_on_change/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "per_table_ttl_02265", + "tables": [ + { + "table": "per_table_ttl_02265" + } + ] +} diff --git a/parser/testdata/02265_rename_join_ordinary_to_atomic/ast.json b/parser/testdata/02265_rename_join_ordinary_to_atomic/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/02265_rename_join_ordinary_to_atomic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/02266_auto_add_nullable/ast.json b/parser/testdata/02266_auto_add_nullable/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02266_auto_add_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02267_empty_arrays_read_reverse/ast.json b/parser/testdata/02267_empty_arrays_read_reverse/ast.json new file mode 100644 index 0000000000..8a473d16f7 --- /dev/null +++ b/parser/testdata/02267_empty_arrays_read_reverse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_02267", + "tables": [ + { + "table": "t_02267" + } + ] +} diff --git a/parser/testdata/02267_insert_empty_data/ast.json b/parser/testdata/02267_insert_empty_data/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02267_insert_empty_data/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02267_jsonlines_ndjson_format/ast.json b/parser/testdata/02267_jsonlines_ndjson_format/ast.json new file mode 100644 index 0000000000..3eba7a1ff2 --- /dev/null +++ b/parser/testdata/02267_jsonlines_ndjson_format/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "JSONLines" + ] + } + } + ] +} diff --git a/parser/testdata/02267_special_operator_parse_alias_check/ast.json b/parser/testdata/02267_special_operator_parse_alias_check/ast.json new file mode 100644 index 0000000000..08bd20c3b5 --- /dev/null +++ b/parser/testdata/02267_special_operator_parse_alias_check/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "1234" + }, + "type": { + "name": "UInt32" + } + } + ] + } + ] +} diff --git a/parser/testdata/02267_type_inference_for_insert_into_function_null/ast.json b/parser/testdata/02267_type_inference_for_insert_into_function_null/ast.json new file mode 100644 index 0000000000..a7bf89e742 --- /dev/null +++ b/parser/testdata/02267_type_inference_for_insert_into_function_null/ast.json @@ -0,0 +1,17 @@ +{ + "function": { + "name": "null" + }, + "select": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } +} diff --git a/parser/testdata/02268_json_wrong_root_type_in_schema_inference/ast.json b/parser/testdata/02268_json_wrong_root_type_in_schema_inference/ast.json new file mode 100644 index 0000000000..5b5a75507a --- /dev/null +++ b/parser/testdata/02268_json_wrong_root_type_in_schema_inference/ast.json @@ -0,0 +1,33 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_02268_data.jsonl" + } + }, + { + "type": "String", + "value": "TSV" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } +} diff --git a/parser/testdata/02269_insert_select_with_format_without_schema_inference/ast.json b/parser/testdata/02269_insert_select_with_format_without_schema_inference/ast.json new file mode 100644 index 0000000000..26035093f8 --- /dev/null +++ b/parser/testdata/02269_insert_select_with_format_without_schema_inference/ast.json @@ -0,0 +1,43 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_02269_data" + } + }, + { + "type": "String", + "value": "RowBinary" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02269_to_start_of_interval_overflow/ast.json b/parser/testdata/02269_to_start_of_interval_overflow/ast.json new file mode 100644 index 0000000000..636924da7b --- /dev/null +++ b/parser/testdata/02269_to_start_of_interval_overflow/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfInterval", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "\u0000930-12-12 12:12:12.1234567" + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "name": "toIntervalNanosecond", + "arguments": [ + { + "type": "Integer", + "value": 1024 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02271_fix_column_matcher_and_column_transformer/ast.json b/parser/testdata/02271_fix_column_matcher_and_column_transformer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02271_fix_column_matcher_and_column_transformer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02271_replace_partition_many_tables/ast.json b/parser/testdata/02271_replace_partition_many_tables/ast.json new file mode 100644 index 0000000000..dfd94fca5a --- /dev/null +++ b/parser/testdata/02271_replace_partition_many_tables/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "replace_partition_source", + "tables": [ + { + "table": "replace_partition_source" + } + ] +} diff --git a/parser/testdata/02271_temporary_table_show_rows_bytes/ast.json b/parser/testdata/02271_temporary_table_show_rows_bytes/ast.json new file mode 100644 index 0000000000..0f8f0a3691 --- /dev/null +++ b/parser/testdata/02271_temporary_table_show_rows_bytes/ast.json @@ -0,0 +1,41 @@ +{ + "temporary": true, + "table": "02271_temporary_table_show_rows_bytes", + "columns": [ + { + "name": "A", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "Memory" + }, + "as_select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02276_full_sort_join_unsupported/ast.json b/parser/testdata/02276_full_sort_join_unsupported/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02276_full_sort_join_unsupported/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02277_full_sort_join_misc/ast.json b/parser/testdata/02277_full_sort_join_misc/ast.json new file mode 100644 index 0000000000..78aa8b9181 --- /dev/null +++ b/parser/testdata/02277_full_sort_join_misc/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "full_sorting_merge" + } + } + ] +} diff --git a/parser/testdata/02280_add_query_level_settings/ast.json b/parser/testdata/02280_add_query_level_settings/ast.json new file mode 100644 index 0000000000..5c06716578 --- /dev/null +++ b/parser/testdata/02280_add_query_level_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_for_alter", + "tables": [ + { + "table": "table_for_alter" + } + ] +} diff --git a/parser/testdata/02281_limit_by_distributed/ast.json b/parser/testdata/02281_limit_by_distributed/ast.json new file mode 100644 index 0000000000..66ca711d72 --- /dev/null +++ b/parser/testdata/02281_limit_by_distributed/ast.json @@ -0,0 +1,119 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "k" + ] + }, + { + "name": "abs", + "arguments": [ + { + "parts": [ + "v" + ] + } + ], + "alias": "_v" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.{1,2}" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "foo" + } + ], + "alias": "k" + }, + { + "expr": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + "alias": "v" + } + ] + } + ] + } + } + ] + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "_v" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ] + } + ] +} diff --git a/parser/testdata/02282_array_distance/ast.json b/parser/testdata/02282_array_distance/ast.json new file mode 100644 index 0000000000..2d1570031a --- /dev/null +++ b/parser/testdata/02282_array_distance/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "hash" + } + } + ] +} diff --git a/parser/testdata/02283_array_norm/ast.json b/parser/testdata/02283_array_norm/ast.json new file mode 100644 index 0000000000..4088c0c705 --- /dev/null +++ b/parser/testdata/02283_array_norm/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "L1Norm", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02285_executable_user_defined_function_group_by/ast.json b/parser/testdata/02285_executable_user_defined_function_group_by/ast.json new file mode 100644 index 0000000000..8657608f2f --- /dev/null +++ b/parser/testdata/02285_executable_user_defined_function_group_by/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "test_function", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "a" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "a" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "a" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02285_hex_bin_support_more_types/ast.json b/parser/testdata/02285_hex_bin_support_more_types/ast.json new file mode 100644 index 0000000000..ea75861438 --- /dev/null +++ b/parser/testdata/02285_hex_bin_support_more_types/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "toUInt128", + "arguments": [ + { + "type": "Integer", + "value": 100000000000 + } + ] + } + ], + "alias": "res" + } + ] + } + ] +} diff --git a/parser/testdata/02286_convert_decimal_type/ast.json b/parser/testdata/02286_convert_decimal_type/ast.json new file mode 100644 index 0000000000..7a51ed54bb --- /dev/null +++ b/parser/testdata/02286_convert_decimal_type/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "VALUES", + "arguments": [ + { + "type": "String", + "value": "x Decimal32(0)" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02286_function_wyhash/ast.json b/parser/testdata/02286_function_wyhash/ast.json new file mode 100644 index 0000000000..47d2fe4eac --- /dev/null +++ b/parser/testdata/02286_function_wyhash/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "wyHash64", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02286_quantile_tdigest_infinity/ast.json b/parser/testdata/02286_quantile_tdigest_infinity/ast.json new file mode 100644 index 0000000000..26fdfd9893 --- /dev/null +++ b/parser/testdata/02286_quantile_tdigest_infinity/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "1" + } + ] + } + ] +} diff --git a/parser/testdata/02286_tuple_numeric_identifier/ast.json b/parser/testdata/02286_tuple_numeric_identifier/ast.json new file mode 100644 index 0000000000..bd4d71d2d6 --- /dev/null +++ b/parser/testdata/02286_tuple_numeric_identifier/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_tuple_numeric", + "tables": [ + { + "table": "t_tuple_numeric" + } + ] +} diff --git a/parser/testdata/02286_vertical_merges_missed_column/ast.json b/parser/testdata/02286_vertical_merges_missed_column/ast.json new file mode 100644 index 0000000000..834d818e14 --- /dev/null +++ b/parser/testdata/02286_vertical_merges_missed_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_vertical_merges", + "tables": [ + { + "table": "t_vertical_merges" + } + ] +} diff --git a/parser/testdata/02287_legacy_column_name_of_tuple_literal_over_distributed/ast.json b/parser/testdata/02287_legacy_column_name_of_tuple_literal_over_distributed/ast.json new file mode 100644 index 0000000000..df8010d7c7 --- /dev/null +++ b/parser/testdata/02287_legacy_column_name_of_tuple_literal_over_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "legacy_column_name_of_tuple_literal", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02291_dictionary_scalar_subquery_reload/ast.json b/parser/testdata/02291_dictionary_scalar_subquery_reload/ast.json new file mode 100644 index 0000000000..17d711a11b --- /dev/null +++ b/parser/testdata/02291_dictionary_scalar_subquery_reload/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_dictionary_source_table", + "tables": [ + { + "table": "test_dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02291_join_const_literal_36279/ast.json b/parser/testdata/02291_join_const_literal_36279/ast.json new file mode 100644 index 0000000000..7b6b454796 --- /dev/null +++ b/parser/testdata/02291_join_const_literal_36279/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_distributed", + "tables": [ + { + "table": "test_distributed" + } + ] +} diff --git a/parser/testdata/02292_h3_unidirectional_funcs/ast.json b/parser/testdata/02292_h3_unidirectional_funcs/ast.json new file mode 100644 index 0000000000..09e92fc59b --- /dev/null +++ b/parser/testdata/02292_h3_unidirectional_funcs/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3GetDestinationIndexFromUnidirectionalEdge", + "arguments": [ + { + "type": "Integer", + "value": 1248204388774707197 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02292_hash_array_tuples/ast.json b/parser/testdata/02292_hash_array_tuples/ast.json new file mode 100644 index 0000000000..2d11247488 --- /dev/null +++ b/parser/testdata/02292_hash_array_tuples/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "arrays" + } + ] + } + ] +} diff --git a/parser/testdata/02292_nested_not_flattened_detach/ast.json b/parser/testdata/02292_nested_not_flattened_detach/ast.json new file mode 100644 index 0000000000..209d216029 --- /dev/null +++ b/parser/testdata/02292_nested_not_flattened_detach/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_nested_detach", + "tables": [ + { + "table": "t_nested_detach" + } + ] +} diff --git a/parser/testdata/02293_arrow_dictionary_indexes/ast.json b/parser/testdata/02293_arrow_dictionary_indexes/ast.json new file mode 100644 index 0000000000..c258166a18 --- /dev/null +++ b/parser/testdata/02293_arrow_dictionary_indexes/ast.json @@ -0,0 +1,74 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_02293_data.arrow" + } + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 300 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "output_format_arrow_low_cardinality_as_dictionary", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02293_grouping_function/ast.json b/parser/testdata/02293_grouping_function/ast.json new file mode 100644 index 0000000000..8502d50e3b --- /dev/null +++ b/parser/testdata/02293_grouping_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_group_by_function_keys", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02293_grouping_function_group_by/ast.json b/parser/testdata/02293_grouping_function_group_by/ast.json new file mode 100644 index 0000000000..8502d50e3b --- /dev/null +++ b/parser/testdata/02293_grouping_function_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_group_by_function_keys", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02293_h3_distance/ast.json b/parser/testdata/02293_h3_distance/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02293_h3_distance/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02293_h3_hex_ring/ast.json b/parser/testdata/02293_h3_hex_ring/ast.json new file mode 100644 index 0000000000..861f31c3eb --- /dev/null +++ b/parser/testdata/02293_h3_hex_ring/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3HexRing", + "arguments": [ + { + "type": "Integer", + "value": 581276613233082367 + }, + { + "name": "toUInt16", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02293_h3_line/ast.json b/parser/testdata/02293_h3_line/ast.json new file mode 100644 index 0000000000..eb76eb72d2 --- /dev/null +++ b/parser/testdata/02293_h3_line/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "h3_indexes", + "tables": [ + { + "table": "h3_indexes" + } + ] +} diff --git a/parser/testdata/02293_ilike_on_fixed_strings/ast.json b/parser/testdata/02293_ilike_on_fixed_strings/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02293_ilike_on_fixed_strings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02293_optimize_aggregation_in_order_Array_functions/ast.json b/parser/testdata/02293_optimize_aggregation_in_order_Array_functions/ast.json new file mode 100644 index 0000000000..692cf1bf1c --- /dev/null +++ b/parser/testdata/02293_optimize_aggregation_in_order_Array_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02293", + "tables": [ + { + "table": "data_02293" + } + ] +} diff --git a/parser/testdata/02294_decimal_second_errors/ast.json b/parser/testdata/02294_decimal_second_errors/ast.json new file mode 100644 index 0000000000..7e4da0eac2 --- /dev/null +++ b/parser/testdata/02294_decimal_second_errors/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "settings": [ + { + "name": "max_execution_time", + "value": { + "type": "Float", + "value": "NaN" + } + } + ] + } + ] +} diff --git a/parser/testdata/02294_dictionaries_hierarchical_index/ast.json b/parser/testdata/02294_dictionaries_hierarchical_index/ast.json new file mode 100644 index 0000000000..7896e3f7a9 --- /dev/null +++ b/parser/testdata/02294_dictionaries_hierarchical_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_hierarchy_source_table", + "tables": [ + { + "table": "test_hierarchy_source_table" + } + ] +} diff --git a/parser/testdata/02294_fp_seconds_profile/ast.json b/parser/testdata/02294_fp_seconds_profile/ast.json new file mode 100644 index 0000000000..eb813b5981 --- /dev/null +++ b/parser/testdata/02294_fp_seconds_profile/ast.json @@ -0,0 +1,12 @@ +{ + "if_exists": true, + "table": "02294_profile1", + "tables": [ + { + "table": "02294_profile1" + }, + { + "table": "02294_profile2" + } + ] +} diff --git a/parser/testdata/02294_nothing_arguments_in_functions/ast.json b/parser/testdata/02294_nothing_arguments_in_functions/ast.json new file mode 100644 index 0000000000..5b02884838 --- /dev/null +++ b/parser/testdata/02294_nothing_arguments_in_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_named_columns_in_function_tuple", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02294_optimize_aggregation_in_order_prefix_Array_functions/ast.json b/parser/testdata/02294_optimize_aggregation_in_order_prefix_Array_functions/ast.json new file mode 100644 index 0000000000..f2bbe892f9 --- /dev/null +++ b/parser/testdata/02294_optimize_aggregation_in_order_prefix_Array_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02294", + "tables": [ + { + "table": "data_02294" + } + ] +} diff --git a/parser/testdata/02294_stringsearch_with_nonconst_needle/ast.json b/parser/testdata/02294_stringsearch_with_nonconst_needle/ast.json new file mode 100644 index 0000000000..cb407ae780 --- /dev/null +++ b/parser/testdata/02294_stringsearch_with_nonconst_needle/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "non_const_needle", + "tables": [ + { + "table": "non_const_needle" + } + ] +} diff --git a/parser/testdata/02295_GROUP_BY_AggregateFunction/ast.json b/parser/testdata/02295_GROUP_BY_AggregateFunction/ast.json new file mode 100644 index 0000000000..1731de5a50 --- /dev/null +++ b/parser/testdata/02295_GROUP_BY_AggregateFunction/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02295", + "tables": [ + { + "table": "data_02295" + } + ] +} diff --git a/parser/testdata/02296_nullable_arguments_in_array_filter/ast.json b/parser/testdata/02296_nullable_arguments_in_array_filter/ast.json new file mode 100644 index 0000000000..adea9366a1 --- /dev/null +++ b/parser/testdata/02296_nullable_arguments_in_array_filter/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFilter", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "left": { + "type": "Integer", + "value": 2 + }, + "op": "*", + "right": { + "parts": [ + "x" + ] + } + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02296_ttl_non_deterministic/ast.json b/parser/testdata/02296_ttl_non_deterministic/ast.json new file mode 100644 index 0000000000..ce3ec53186 --- /dev/null +++ b/parser/testdata/02296_ttl_non_deterministic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_ttl_non_deterministic", + "tables": [ + { + "table": "t_ttl_non_deterministic" + } + ] +} diff --git a/parser/testdata/02302_clash_const_aggegate_join/ast.json b/parser/testdata/02302_clash_const_aggegate_join/ast.json new file mode 100644 index 0000000000..6c51602ea9 --- /dev/null +++ b/parser/testdata/02302_clash_const_aggegate_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "e", + "tables": [ + { + "table": "e" + } + ] +} diff --git a/parser/testdata/02302_join_auto_lc_nullable_bug/ast.json b/parser/testdata/02302_join_auto_lc_nullable_bug/ast.json new file mode 100644 index 0000000000..d724f086b5 --- /dev/null +++ b/parser/testdata/02302_join_auto_lc_nullable_bug/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_bytes_in_join", + "value": { + "type": "String", + "value": "100" + } + }, + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "auto" + } + } + ] +} diff --git a/parser/testdata/02302_lc_nullable_string_insert_as_number/ast.json b/parser/testdata/02302_lc_nullable_string_insert_as_number/ast.json new file mode 100644 index 0000000000..87c053dd92 --- /dev/null +++ b/parser/testdata/02302_lc_nullable_string_insert_as_number/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lc_nullable_string", + "tables": [ + { + "table": "lc_nullable_string" + } + ] +} diff --git a/parser/testdata/02302_projections_GROUP_BY_ORDERY_BY_optimize_aggregation_in_order/ast.json b/parser/testdata/02302_projections_GROUP_BY_ORDERY_BY_optimize_aggregation_in_order/ast.json new file mode 100644 index 0000000000..238bb2b052 --- /dev/null +++ b/parser/testdata/02302_projections_GROUP_BY_ORDERY_BY_optimize_aggregation_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_agg_proj_02302", + "tables": [ + { + "table": "test_agg_proj_02302" + } + ] +} diff --git a/parser/testdata/02302_s3_file_pruning/ast.json b/parser/testdata/02302_s3_file_pruning/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02302_s3_file_pruning/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02303_cast_nullable_to_custom_types/ast.json b/parser/testdata/02303_cast_nullable_to_custom_types/ast.json new file mode 100644 index 0000000000..9e560629f5 --- /dev/null +++ b/parser/testdata/02303_cast_nullable_to_custom_types/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Null", + "value": null + }, + "type": { + "name": "Nullable(String)" + } + }, + "type": { + "name": "Nullable(Bool)" + } + } + ] + } + ] +} diff --git a/parser/testdata/02304_grouping_set_order_by/ast.json b/parser/testdata/02304_grouping_set_order_by/ast.json new file mode 100644 index 0000000000..16684916ef --- /dev/null +++ b/parser/testdata/02304_grouping_set_order_by/ast.json @@ -0,0 +1,154 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfHour", + "arguments": [ + { + "parts": [ + "time" + ] + } + ], + "alias": "timex" + }, + { + "parts": [ + "id" + ] + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "id" + }, + { + "name": "toString", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ] + } + ], + "alias": "id" + }, + { + "expr": { + "left": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-01-01" + } + ] + }, + "op": "+", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 60 + } + } + }, + "alias": "time" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "timex" + ] + }, + { + "parts": [ + "id" + ] + } + ] + }, + { + "parts": [ + "timex" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "timex" + ] + } + }, + { + "expression": { + "parts": [ + "id" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02304_orc_arrow_parquet_string_as_string/ast.json b/parser/testdata/02304_orc_arrow_parquet_string_as_string/ast.json new file mode 100644 index 0000000000..acf1e390ab --- /dev/null +++ b/parser/testdata/02304_orc_arrow_parquet_string_as_string/ast.json @@ -0,0 +1,66 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_data_02304.parquet" + } + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "hello" + }, + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_parquet_string_as_string", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02306_part_types_profile_events/ast.json b/parser/testdata/02306_part_types_profile_events/ast.json new file mode 100644 index 0000000000..778fa3c068 --- /dev/null +++ b/parser/testdata/02306_part_types_profile_events/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_parts_profile_events", + "tables": [ + { + "table": "t_parts_profile_events" + } + ] +} diff --git a/parser/testdata/02307_join_get_array_null/ast.json b/parser/testdata/02307_join_get_array_null/ast.json new file mode 100644 index 0000000000..aa22c2a4f6 --- /dev/null +++ b/parser/testdata/02307_join_get_array_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "id_val", + "tables": [ + { + "table": "id_val" + } + ] +} diff --git a/parser/testdata/02310_generate_multi_columns_with_uuid/ast.json b/parser/testdata/02310_generate_multi_columns_with_uuid/ast.json new file mode 100644 index 0000000000..d073bc334b --- /dev/null +++ b/parser/testdata/02310_generate_multi_columns_with_uuid/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "generateUUIDv4", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "op": "=", + "right": { + "name": "generateUUIDv4", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02310_uuid_v7/ast.json b/parser/testdata/02310_uuid_v7/ast.json new file mode 100644 index 0000000000..5e7cc3c914 --- /dev/null +++ b/parser/testdata/02310_uuid_v7/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "generateUUIDv7" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02311_create_table_with_unknown_format/ast.json b/parser/testdata/02311_create_table_with_unknown_format/ast.json new file mode 100644 index 0000000000..a0b4342b64 --- /dev/null +++ b/parser/testdata/02311_create_table_with_unknown_format/ast.json @@ -0,0 +1,22 @@ +{ + "table": "test_02311", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "File", + "parameters": [ + { + "parts": [ + "UnknownFormat" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/02311_range_hashed_dictionary_range_cast/ast.json b/parser/testdata/02311_range_hashed_dictionary_range_cast/ast.json new file mode 100644 index 0000000000..7052bf8d47 --- /dev/null +++ b/parser/testdata/02311_range_hashed_dictionary_range_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_source_table", + "tables": [ + { + "table": "dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02311_system_zookeeper_insert/ast.json b/parser/testdata/02311_system_zookeeper_insert/ast.json new file mode 100644 index 0000000000..9b8420768d --- /dev/null +++ b/parser/testdata/02311_system_zookeeper_insert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_unrestricted_reads_from_keeper", + "value": { + "type": "String", + "value": "true" + } + } + ] +} diff --git a/parser/testdata/02312_is_not_null_prewhere/ast.json b/parser/testdata/02312_is_not_null_prewhere/ast.json new file mode 100644 index 0000000000..29b0748bf4 --- /dev/null +++ b/parser/testdata/02312_is_not_null_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bug_36995", + "tables": [ + { + "table": "bug_36995" + } + ] +} diff --git a/parser/testdata/02312_parquet_orc_arrow_names_tuples/ast.json b/parser/testdata/02312_parquet_orc_arrow_names_tuples/ast.json new file mode 100644 index 0000000000..e59c2b614d --- /dev/null +++ b/parser/testdata/02312_parquet_orc_arrow_names_tuples/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02312", + "tables": [ + { + "table": "test_02312" + } + ] +} diff --git a/parser/testdata/02313_cross_join_dup_col_names/ast.json b/parser/testdata/02313_cross_join_dup_col_names/ast.json new file mode 100644 index 0000000000..82bc18ba50 --- /dev/null +++ b/parser/testdata/02313_cross_join_dup_col_names/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Null", + "value": null + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + }, + "alias": "s1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "count", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + }, + "alias": "s2" + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02313_displayname/ast.json b/parser/testdata/02313_displayname/ast.json new file mode 100644 index 0000000000..459fae8641 --- /dev/null +++ b/parser/testdata/02313_displayname/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "displayName" + } + ] + } + ] +} diff --git a/parser/testdata/02313_group_by_modifiers_with_non_default_types/ast.json b/parser/testdata/02313_group_by_modifiers_with_non_default_types/ast.json new file mode 100644 index 0000000000..a82b3a6fb6 --- /dev/null +++ b/parser/testdata/02313_group_by_modifiers_with_non_default_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test02313", + "tables": [ + { + "table": "test02313" + } + ] +} diff --git a/parser/testdata/02313_multiple_limits/ast.json b/parser/testdata/02313_multiple_limits/ast.json new file mode 100644 index 0000000000..bc20533b8d --- /dev/null +++ b/parser/testdata/02313_multiple_limits/ast.json @@ -0,0 +1,123 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "read_overflow_mode", + "value": { + "type": "String", + "value": "break" + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + } + } + } + } + ] + }, + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 20 + } + }, + { + "name": "read_overflow_mode", + "value": { + "type": "String", + "value": "break" + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02313_test_fpc_codec/ast.json b/parser/testdata/02313_test_fpc_codec/ast.json new file mode 100644 index 0000000000..7ac5fba392 --- /dev/null +++ b/parser/testdata/02313_test_fpc_codec/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "codecTest", + "tables": [ + { + "table": "codecTest" + } + ] +} diff --git a/parser/testdata/02314_csv_tsv_skip_first_lines/ast.json b/parser/testdata/02314_csv_tsv_skip_first_lines/ast.json new file mode 100644 index 0000000000..e3d0e682e8 --- /dev/null +++ b/parser/testdata/02314_csv_tsv_skip_first_lines/ast.json @@ -0,0 +1,69 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_data_02314.csv" + } + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02315_grouping_constant_folding/ast.json b/parser/testdata/02315_grouping_constant_folding/ast.json new file mode 100644 index 0000000000..da752fcfb6 --- /dev/null +++ b/parser/testdata/02315_grouping_constant_folding/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test02315", + "tables": [ + { + "table": "test02315" + } + ] +} diff --git a/parser/testdata/02315_pmj_union_ubsan_35857/ast.json b/parser/testdata/02315_pmj_union_ubsan_35857/ast.json new file mode 100644 index 0000000000..ac5c54b4e8 --- /dev/null +++ b/parser/testdata/02315_pmj_union_ubsan_35857/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/02316_cast_to_ip_address_default_column/ast.json b/parser/testdata/02316_cast_to_ip_address_default_column/ast.json new file mode 100644 index 0000000000..e93967b09a --- /dev/null +++ b/parser/testdata/02316_cast_to_ip_address_default_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "cast_ipv4_ipv6_default_on_conversion_error", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02316_literal_no_octal/ast.json b/parser/testdata/02316_literal_no_octal/ast.json new file mode 100644 index 0000000000..7a286b27c8 --- /dev/null +++ b/parser/testdata/02316_literal_no_octal/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 77 + }, + { + "type": "Integer", + "value": 78 + } + ] + } + ] +} diff --git a/parser/testdata/02316_values_table_func_bug/ast.json b/parser/testdata/02316_values_table_func_bug/ast.json new file mode 100644 index 0000000000..5651449839 --- /dev/null +++ b/parser/testdata/02316_values_table_func_bug/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Float", + "value": 2.2 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02317_distinct_in_order_optimization/ast.json b/parser/testdata/02317_distinct_in_order_optimization/ast.json new file mode 100644 index 0000000000..4a64b49de1 --- /dev/null +++ b/parser/testdata/02317_distinct_in_order_optimization/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- enable distinct in order optimization" + } + ] + } + ] +} diff --git a/parser/testdata/02317_functions_with_nothing/ast.json b/parser/testdata/02317_functions_with_nothing/ast.json new file mode 100644 index 0000000000..688eefa184 --- /dev/null +++ b/parser/testdata/02317_functions_with_nothing/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONExtractKeysAndValuesRaw", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02317_like_with_trailing_escape/ast.json b/parser/testdata/02317_like_with_trailing_escape/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02317_like_with_trailing_escape/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02318_template_schema_inference_bug/ast.json b/parser/testdata/02318_template_schema_inference_bug/ast.json new file mode 100644 index 0000000000..1e8abf6396 --- /dev/null +++ b/parser/testdata/02318_template_schema_inference_bug/ast.json @@ -0,0 +1,43 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_data_02318.tsv" + } + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02319_dict_get_check_arguments_size/ast.json b/parser/testdata/02319_dict_get_check_arguments_size/ast.json new file mode 100644 index 0000000000..7052bf8d47 --- /dev/null +++ b/parser/testdata/02319_dict_get_check_arguments_size/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_source_table", + "tables": [ + { + "table": "dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02319_lightweight_delete_on_merge_tree/ast.json b/parser/testdata/02319_lightweight_delete_on_merge_tree/ast.json new file mode 100644 index 0000000000..cc338cec75 --- /dev/null +++ b/parser/testdata/02319_lightweight_delete_on_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_table_standard_delete", + "tables": [ + { + "table": "merge_table_standard_delete" + } + ] +} diff --git a/parser/testdata/02319_lightweight_delete_on_merge_tree_compact_parts/ast.json b/parser/testdata/02319_lightweight_delete_on_merge_tree_compact_parts/ast.json new file mode 100644 index 0000000000..cc338cec75 --- /dev/null +++ b/parser/testdata/02319_lightweight_delete_on_merge_tree_compact_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_table_standard_delete", + "tables": [ + { + "table": "merge_table_standard_delete" + } + ] +} diff --git a/parser/testdata/02319_quantile_interpolated_weighted/ast.json b/parser/testdata/02319_quantile_interpolated_weighted/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/02319_quantile_interpolated_weighted/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/02319_sql_standard_create_drop_index/ast.json b/parser/testdata/02319_sql_standard_create_drop_index/ast.json new file mode 100644 index 0000000000..702aeb7c59 --- /dev/null +++ b/parser/testdata/02319_sql_standard_create_drop_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_index", + "tables": [ + { + "table": "t_index" + } + ] +} diff --git a/parser/testdata/02319_timeslots_dt64/ast.json b/parser/testdata/02319_timeslots_dt64/ast.json new file mode 100644 index 0000000000..0b4c58893e --- /dev/null +++ b/parser/testdata/02319_timeslots_dt64/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "timeSlots", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2000-01-02 03:04:05.12" + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "name": "toDecimal64", + "arguments": [ + { + "type": "Integer", + "value": 10000 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02320_alter_columns_with_dots/ast.json b/parser/testdata/02320_alter_columns_with_dots/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02320_alter_columns_with_dots/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02320_mapped_array_witn_const_nullable/ast.json b/parser/testdata/02320_mapped_array_witn_const_nullable/ast.json new file mode 100644 index 0000000000..7ed7d727c9 --- /dev/null +++ b/parser/testdata/02320_mapped_array_witn_const_nullable/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02321_nested_short_circuit_functions/ast.json b/parser/testdata/02321_nested_short_circuit_functions/ast.json new file mode 100644 index 0000000000..7f1c87e5dd --- /dev/null +++ b/parser/testdata/02321_nested_short_circuit_functions/ast.json @@ -0,0 +1,75 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "op": "AND", + "right": { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "intDiv", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "parts": [ + "number" + ] + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02322_sql_insert_format/ast.json b/parser/testdata/02322_sql_insert_format/ast.json new file mode 100644 index 0000000000..5882ee647b --- /dev/null +++ b/parser/testdata/02322_sql_insert_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "schema_inference_use_cache_for_file", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02323_null_modifier_in_table_function/ast.json b/parser/testdata/02323_null_modifier_in_table_function/ast.json new file mode 100644 index 0000000000..3d4de782b2 --- /dev/null +++ b/parser/testdata/02323_null_modifier_in_table_function/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "String", + "value": "x UInt8 NOT NULL" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02324_map_combinator_bug/ast.json b/parser/testdata/02324_map_combinator_bug/ast.json new file mode 100644 index 0000000000..999e1ca0a5 --- /dev/null +++ b/parser/testdata/02324_map_combinator_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "segfault", + "tables": [ + { + "table": "segfault" + } + ] +} diff --git a/parser/testdata/02325_compatibility_setting_2/ast.json b/parser/testdata/02325_compatibility_setting_2/ast.json new file mode 100644 index 0000000000..3e673b1d95 --- /dev/null +++ b/parser/testdata/02325_compatibility_setting_2/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "value" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "allow_settings_after_format_in_insert" + } + } + } + ] +} diff --git a/parser/testdata/02325_dates_schema_inference/ast.json b/parser/testdata/02325_dates_schema_inference/ast.json new file mode 100644 index 0000000000..3fe936330b --- /dev/null +++ b/parser/testdata/02325_dates_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_try_infer_dates", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02326_numbers_from_json_strings_schema_inference/ast.json b/parser/testdata/02326_numbers_from_json_strings_schema_inference/ast.json new file mode 100644 index 0000000000..0a95182900 --- /dev/null +++ b/parser/testdata/02326_numbers_from_json_strings_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_try_infer_numbers_from_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02327_try_infer_integers_schema_inference/ast.json b/parser/testdata/02327_try_infer_integers_schema_inference/ast.json new file mode 100644 index 0000000000..7d0a95435c --- /dev/null +++ b/parser/testdata/02327_try_infer_integers_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_try_infer_integers", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02336_sparse_columns_s3/ast.json b/parser/testdata/02336_sparse_columns_s3/ast.json new file mode 100644 index 0000000000..4035154b94 --- /dev/null +++ b/parser/testdata/02336_sparse_columns_s3/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_s3", + "tables": [ + { + "table": "t_sparse_s3" + } + ] +} diff --git a/parser/testdata/02337_analyzer_columns_basic/ast.json b/parser/testdata/02337_analyzer_columns_basic/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02337_analyzer_columns_basic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02337_base58/ast.json b/parser/testdata/02337_base58/ast.json new file mode 100644 index 0000000000..f52f78726d --- /dev/null +++ b/parser/testdata/02337_base58/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "base58Encode", + "arguments": [ + { + "type": "String", + "value": "Hold my beer..." + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02337_check_translate_qualified_names_matcher/ast.json b/parser/testdata/02337_check_translate_qualified_names_matcher/ast.json new file mode 100644 index 0000000000..5490998fac --- /dev/null +++ b/parser/testdata/02337_check_translate_qualified_names_matcher/ast.json @@ -0,0 +1,44 @@ +{ + "table": "nested_name_tuples", + "columns": [ + { + "name": "a", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "x", + "type": { + "name": "String" + } + }, + { + "name": "y", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "i", + "type": { + "name": "Int32" + } + }, + { + "name": "j", + "type": { + "name": "String" + } + } + ], + "has_parentheses": true + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02337_multiple_joins_original_names/ast.json b/parser/testdata/02337_multiple_joins_original_names/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02337_multiple_joins_original_names/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02338_analyzer_constants_basic/ast.json b/parser/testdata/02338_analyzer_constants_basic/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02338_analyzer_constants_basic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02339_analyzer_matcher_basic/ast.json b/parser/testdata/02339_analyzer_matcher_basic/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02339_analyzer_matcher_basic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02340_analyzer_functions/ast.json b/parser/testdata/02340_analyzer_functions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02340_analyzer_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02340_union_header/ast.json b/parser/testdata/02340_union_header/ast.json new file mode 100644 index 0000000000..38a8983f28 --- /dev/null +++ b/parser/testdata/02340_union_header/ast.json @@ -0,0 +1,98 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + }, + { + "parts": [ + "c" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 2147483647 + }, + "alias": "b" + }, + { + "expr": { + "type": "Integer", + "value": 1048575 + }, + "alias": "c" + } + ] + }, + { + "columns": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Null", + "value": null + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + }, + "alias": "js1" + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "a" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02341_analyzer_aliases_basics/ast.json b/parser/testdata/02341_analyzer_aliases_basics/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02341_analyzer_aliases_basics/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02342_analyzer_compound_types/ast.json b/parser/testdata/02342_analyzer_compound_types/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02342_analyzer_compound_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02343_aggregation_pipeline/ast.json b/parser/testdata/02343_aggregation_pipeline/ast.json new file mode 100644 index 0000000000..e0ffff1924 --- /dev/null +++ b/parser/testdata/02343_aggregation_pipeline/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_memory_bound_merging_of_aggregation_results", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02343_analyzer_column_transformers_strict/ast.json b/parser/testdata/02343_analyzer_column_transformers_strict/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02343_analyzer_column_transformers_strict/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02343_analyzer_lambdas/ast.json b/parser/testdata/02343_analyzer_lambdas/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02343_analyzer_lambdas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02343_analyzer_lambdas_issue_28083/ast.json b/parser/testdata/02343_analyzer_lambdas_issue_28083/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02343_analyzer_lambdas_issue_28083/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02343_analyzer_lambdas_issue_36677/ast.json b/parser/testdata/02343_analyzer_lambdas_issue_36677/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02343_analyzer_lambdas_issue_36677/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02343_group_by_use_nulls/ast.json b/parser/testdata/02343_group_by_use_nulls/ast.json new file mode 100644 index 0000000000..8502d50e3b --- /dev/null +++ b/parser/testdata/02343_group_by_use_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_group_by_function_keys", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02343_group_by_use_nulls_distributed/ast.json b/parser/testdata/02343_group_by_use_nulls_distributed/ast.json new file mode 100644 index 0000000000..8502d50e3b --- /dev/null +++ b/parser/testdata/02343_group_by_use_nulls_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_group_by_function_keys", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02343_read_from_s3_compressed_blocks/ast.json b/parser/testdata/02343_read_from_s3_compressed_blocks/ast.json new file mode 100644 index 0000000000..30efaeae9d --- /dev/null +++ b/parser/testdata/02343_read_from_s3_compressed_blocks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_s3_compressed_blocks", + "tables": [ + { + "table": "t_s3_compressed_blocks" + } + ] +} diff --git a/parser/testdata/02344_analyzer_multiple_aliases_for_expression/ast.json b/parser/testdata/02344_analyzer_multiple_aliases_for_expression/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02344_analyzer_multiple_aliases_for_expression/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02344_distinct_limit_distiributed/ast.json b/parser/testdata/02344_distinct_limit_distiributed/ast.json new file mode 100644 index 0000000000..045e7cb924 --- /dev/null +++ b/parser/testdata/02344_distinct_limit_distiributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_distinct_limit", + "tables": [ + { + "table": "t_distinct_limit" + } + ] +} diff --git a/parser/testdata/02344_insert_profile_events_stress/ast.json b/parser/testdata/02344_insert_profile_events_stress/ast.json new file mode 100644 index 0000000000..7006d487f6 --- /dev/null +++ b/parser/testdata/02344_insert_profile_events_stress/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02345_analyzer_subqueries/ast.json b/parser/testdata/02345_analyzer_subqueries/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02345_analyzer_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02345_create_table_allow_trailing_comma/ast.json b/parser/testdata/02345_create_table_allow_trailing_comma/ast.json new file mode 100644 index 0000000000..d2d0c5be77 --- /dev/null +++ b/parser/testdata/02345_create_table_allow_trailing_comma/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "trailing_comma_1", + "tables": [ + { + "table": "trailing_comma_1" + } + ], + "sync": true +} diff --git a/parser/testdata/02345_implicit_transaction/ast.json b/parser/testdata/02345_implicit_transaction/ast.json new file mode 100644 index 0000000000..4ba1d1a6df --- /dev/null +++ b/parser/testdata/02345_implicit_transaction/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "landing_to_target", + "tables": [ + { + "table": "landing_to_target" + } + ] +} diff --git a/parser/testdata/02345_partial_sort_transform_optimization/ast.json b/parser/testdata/02345_partial_sort_transform_optimization/ast.json new file mode 100644 index 0000000000..987a70958d --- /dev/null +++ b/parser/testdata/02345_partial_sort_transform_optimization/ast.json @@ -0,0 +1,125 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "a" + }, + { + "name": "toNullable", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "b" + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Float", + "value": 1000000 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "a" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "b" + ] + }, + "descending": true + }, + { + "expression": { + "parts": [ + "c" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1500 + } + } + ] + } + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/02346_additional_filters/ast.json b/parser/testdata/02346_additional_filters/ast.json new file mode 100644 index 0000000000..6a056e024c --- /dev/null +++ b/parser/testdata/02346_additional_filters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_1", + "tables": [ + { + "table": "table_1" + } + ] +} diff --git a/parser/testdata/02346_additional_filters_distr/ast.json b/parser/testdata/02346_additional_filters_distr/ast.json new file mode 100644 index 0000000000..093b2a33f5 --- /dev/null +++ b/parser/testdata/02346_additional_filters_distr/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "shard_0", + "create_database": true +} diff --git a/parser/testdata/02346_additional_filters_index/ast.json b/parser/testdata/02346_additional_filters_index/ast.json new file mode 100644 index 0000000000..7ebef89e6f --- /dev/null +++ b/parser/testdata/02346_additional_filters_index/ast.json @@ -0,0 +1,58 @@ +{ + "table": "table_1", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt32" + } + }, + { + "name": "y", + "type": { + "name": "String" + } + } + ], + "indexes": [ + { + "name": "a", + "expression": { + "name": "length", + "arguments": [ + { + "parts": [ + "y" + ] + } + ] + }, + "type": { + "name": "minmax" + }, + "granularity": { + "type": "Integer", + "value": 1 + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02346_exclude_materialize_skip_indexes_on_insert/ast.json b/parser/testdata/02346_exclude_materialize_skip_indexes_on_insert/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/02346_exclude_materialize_skip_indexes_on_insert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_exclude_materialize_skip_indexes_on_merge/ast.json b/parser/testdata/02346_exclude_materialize_skip_indexes_on_merge/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/02346_exclude_materialize_skip_indexes_on_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_non_negative_derivative/ast.json b/parser/testdata/02346_non_negative_derivative/ast.json new file mode 100644 index 0000000000..cc48143789 --- /dev/null +++ b/parser/testdata/02346_non_negative_derivative/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nnd", + "tables": [ + { + "table": "nnd" + } + ] +} diff --git a/parser/testdata/02346_position_countsubstrings_zero_byte/ast.json b/parser/testdata/02346_position_countsubstrings_zero_byte/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02346_position_countsubstrings_zero_byte/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02346_text_index_array_support/ast.json b/parser/testdata/02346_text_index_array_support/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02346_text_index_array_support/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug47393/ast.json b/parser/testdata/02346_text_index_bug47393/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug47393/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug54541/ast.json b/parser/testdata/02346_text_index_bug54541/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug54541/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug59039/ast.json b/parser/testdata/02346_text_index_bug59039/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug59039/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug62681/ast.json b/parser/testdata/02346_text_index_bug62681/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug62681/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug84805/ast.json b/parser/testdata/02346_text_index_bug84805/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug84805/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug87887/ast.json b/parser/testdata/02346_text_index_bug87887/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug87887/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug88080/ast.json b/parser/testdata/02346_text_index_bug88080/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug88080/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_bug89605/ast.json b/parser/testdata/02346_text_index_bug89605/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_bug89605/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_coalescingmergetree/ast.json b/parser/testdata/02346_text_index_coalescingmergetree/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_coalescingmergetree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_collapsingmergetree/ast.json b/parser/testdata/02346_text_index_collapsingmergetree/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_collapsingmergetree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_creation/ast.json b/parser/testdata/02346_text_index_creation/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_creation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_default_granularity/ast.json b/parser/testdata/02346_text_index_default_granularity/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_default_granularity/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_detach_attach/ast.json b/parser/testdata/02346_text_index_detach_attach/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_detach_attach/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_dictionary_cache/ast.json b/parser/testdata/02346_text_index_dictionary_cache/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02346_text_index_dictionary_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_dictionary_frontcoding/ast.json b/parser/testdata/02346_text_index_dictionary_frontcoding/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_dictionary_frontcoding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_direct_read/ast.json b/parser/testdata/02346_text_index_direct_read/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/02346_text_index_direct_read/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_direct_read_crash/ast.json b/parser/testdata/02346_text_index_direct_read_crash/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_direct_read_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_direct_read_with_query_condition_cache/ast.json b/parser/testdata/02346_text_index_direct_read_with_query_condition_cache/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_direct_read_with_query_condition_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_experimental_flag/ast.json b/parser/testdata/02346_text_index_experimental_flag/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02346_text_index_experimental_flag/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02346_text_index_function_hasAnyAllTokens/ast.json b/parser/testdata/02346_text_index_function_hasAnyAllTokens/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02346_text_index_function_hasAnyAllTokens/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_function_hasAnyAllTokens_partially_materialized/ast.json b/parser/testdata/02346_text_index_function_hasAnyAllTokens_partially_materialized/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_function_hasAnyAllTokens_partially_materialized/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_functions_with_empty_needle/ast.json b/parser/testdata/02346_text_index_functions_with_empty_needle/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_functions_with_empty_needle/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_header_cache/ast.json b/parser/testdata/02346_text_index_header_cache/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02346_text_index_header_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_hits/ast.json b/parser/testdata/02346_text_index_hits/ast.json new file mode 100644 index 0000000000..3795809323 --- /dev/null +++ b/parser/testdata/02346_text_index_hits/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "hits_text", + "tables": [ + { + "table": "hits_text" + } + ] +} diff --git a/parser/testdata/02346_text_index_map_support/ast.json b/parser/testdata/02346_text_index_map_support/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02346_text_index_map_support/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_match_predicate/ast.json b/parser/testdata/02346_text_index_match_predicate/ast.json new file mode 100644 index 0000000000..bf389eb38e --- /dev/null +++ b/parser/testdata/02346_text_index_match_predicate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/02346_text_index_on_lower_column/ast.json b/parser/testdata/02346_text_index_on_lower_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02346_text_index_on_lower_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_parallel_replicas/ast.json b/parser/testdata/02346_text_index_parallel_replicas/ast.json new file mode 100644 index 0000000000..b253921876 --- /dev/null +++ b/parser/testdata/02346_text_index_parallel_replicas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_parallel_replicas", + "value": { + "type": "Integer", + "value": 3 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_part_format/ast.json b/parser/testdata/02346_text_index_part_format/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_part_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_postings_cache/ast.json b/parser/testdata/02346_text_index_postings_cache/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02346_text_index_postings_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_prefetch/ast.json b/parser/testdata/02346_text_index_prefetch/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_prefetch/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_preprocessor/ast.json b/parser/testdata/02346_text_index_preprocessor/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_preprocessor/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_queries/ast.json b/parser/testdata/02346_text_index_queries/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_queries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_replacingmergetree/ast.json b/parser/testdata/02346_text_index_replacingmergetree/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_replacingmergetree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_text_index_summingmergetree/ast.json b/parser/testdata/02346_text_index_summingmergetree/ast.json new file mode 100644 index 0000000000..61cb754f22 --- /dev/null +++ b/parser/testdata/02346_text_index_summingmergetree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_full_text_index", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02346_to_hour_monotonicity_fix/ast.json b/parser/testdata/02346_to_hour_monotonicity_fix/ast.json new file mode 100644 index 0000000000..ccf0760f38 --- /dev/null +++ b/parser/testdata/02346_to_hour_monotonicity_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tz_hour", + "tables": [ + { + "table": "test_tz_hour" + } + ] +} diff --git a/parser/testdata/02346_to_hour_monotonicity_fix_2/ast.json b/parser/testdata/02346_to_hour_monotonicity_fix_2/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02346_to_hour_monotonicity_fix_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02347_rank_corr_size_overflow/ast.json b/parser/testdata/02347_rank_corr_size_overflow/ast.json new file mode 100644 index 0000000000..153fc8d76d --- /dev/null +++ b/parser/testdata/02347_rank_corr_size_overflow/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "rankCorr", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "op": "-", + "operand": { + "parts": [ + "number" + ] + } + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5000000 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02350_views_max_insert_threads/ast.json b/parser/testdata/02350_views_max_insert_threads/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02350_views_max_insert_threads/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02351_Map_combinator_dist/ast.json b/parser/testdata/02351_Map_combinator_dist/ast.json new file mode 100644 index 0000000000..43b3351dad --- /dev/null +++ b/parser/testdata/02351_Map_combinator_dist/ast.json @@ -0,0 +1,218 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 67 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "A" + ] + }, + { + "name": "sumMap", + "arguments": [ + { + "expr": { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "type": "Tuple", + "value": [ + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + }, + { + "parts": [ + "r" + ] + } + ] + }, + "type": { + "name": "Map(UInt8,Int64)" + } + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.{1,1}" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "A" + }, + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 150 + } + ], + "alias": "r" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 60 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "A" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "name": "shardNum" + } + } + } + ] + } + } + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "A" + ] + } + ], + "limit": { + "type": "Integer", + "value": 100000000 + } + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "A" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 53 + } + }, + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "distributed_aggregation_memory_efficient", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "group_by_two_level_threshold", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "group_by_two_level_threshold_bytes", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02352_grouby_shadows_arg/ast.json b/parser/testdata/02352_grouby_shadows_arg/ast.json new file mode 100644 index 0000000000..50fba7e33b --- /dev/null +++ b/parser/testdata/02352_grouby_shadows_arg/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "dummy" + ] + } + ], + "alias": "dummy" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.{1,1}" + }, + { + "type": "String", + "value": "system.one" + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "dummy" + ] + } + ] + } + ] +} diff --git a/parser/testdata/02352_lightweight_delete/ast.json b/parser/testdata/02352_lightweight_delete/ast.json new file mode 100644 index 0000000000..f27c115b84 --- /dev/null +++ b/parser/testdata/02352_lightweight_delete/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lwd_test", + "tables": [ + { + "table": "lwd_test" + } + ] +} diff --git a/parser/testdata/02352_lightweight_delete_in_partition/ast.json b/parser/testdata/02352_lightweight_delete_in_partition/ast.json new file mode 100644 index 0000000000..473d82e2af --- /dev/null +++ b/parser/testdata/02352_lightweight_delete_in_partition/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_merge_tree", + "tables": [ + { + "table": "t_merge_tree" + } + ], + "sync": true +} diff --git a/parser/testdata/02352_lightweight_delete_on_replicated_merge_tree/ast.json b/parser/testdata/02352_lightweight_delete_on_replicated_merge_tree/ast.json new file mode 100644 index 0000000000..b0d1363d6e --- /dev/null +++ b/parser/testdata/02352_lightweight_delete_on_replicated_merge_tree/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "replicated_table_r1", + "tables": [ + { + "table": "replicated_table_r1" + } + ], + "sync": true +} diff --git a/parser/testdata/02353_ascii/ast.json b/parser/testdata/02353_ascii/ast.json new file mode 100644 index 0000000000..3ec5c19cf2 --- /dev/null +++ b/parser/testdata/02353_ascii/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ascii", + "arguments": [ + { + "type": "String", + "value": "234" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02353_isnullable/ast.json b/parser/testdata/02353_isnullable/ast.json new file mode 100644 index 0000000000..ffb5076409 --- /dev/null +++ b/parser/testdata/02353_isnullable/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isNullable", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02353_partition_prune_nullable_key/ast.json b/parser/testdata/02353_partition_prune_nullable_key/ast.json new file mode 100644 index 0000000000..f1d2c74f0f --- /dev/null +++ b/parser/testdata/02353_partition_prune_nullable_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "n", + "tables": [ + { + "table": "n" + } + ] +} diff --git a/parser/testdata/02353_simdjson_buffer_overflow/ast.json b/parser/testdata/02353_simdjson_buffer_overflow/ast.json new file mode 100644 index 0000000000..b879f8b8c3 --- /dev/null +++ b/parser/testdata/02353_simdjson_buffer_overflow/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_execution_time", + "value": { + "type": "Integer", + "value": 3 + } + } + ] +} diff --git a/parser/testdata/02353_translate/ast.json b/parser/testdata/02353_translate/ast.json new file mode 100644 index 0000000000..f82e7e2363 --- /dev/null +++ b/parser/testdata/02353_translate/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "translate", + "arguments": [ + { + "type": "String", + "value": "Hello? world." + }, + { + "type": "String", + "value": ".?" + }, + { + "type": "String", + "value": "!," + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02354_array_lowcardinality/ast.json b/parser/testdata/02354_array_lowcardinality/ast.json new file mode 100644 index 0000000000..d9a4c00eea --- /dev/null +++ b/parser/testdata/02354_array_lowcardinality/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "1" + } + ] + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "2" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02354_distributed_with_external_aggregation_memory_usage/ast.json b/parser/testdata/02354_distributed_with_external_aggregation_memory_usage/ast.json new file mode 100644 index 0000000000..ccacf824eb --- /dev/null +++ b/parser/testdata/02354_distributed_with_external_aggregation_memory_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "101M" + } + } + ] +} diff --git a/parser/testdata/02354_numeric_literals_with_underscores/ast.json b/parser/testdata/02354_numeric_literals_with_underscores/ast.json new file mode 100644 index 0000000000..afecf23983 --- /dev/null +++ b/parser/testdata/02354_numeric_literals_with_underscores/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + ] +} diff --git a/parser/testdata/02354_parse_timedelta/ast.json b/parser/testdata/02354_parse_timedelta/ast.json new file mode 100644 index 0000000000..136b5780ed --- /dev/null +++ b/parser/testdata/02354_parse_timedelta/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseTimeDelta", + "arguments": [ + { + "type": "String", + "value": "1 min 35 sec" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02354_read_in_order_prewhere/ast.json b/parser/testdata/02354_read_in_order_prewhere/ast.json new file mode 100644 index 0000000000..297ecacec0 --- /dev/null +++ b/parser/testdata/02354_read_in_order_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "order", + "tables": [ + { + "table": "order" + } + ] +} diff --git a/parser/testdata/02354_tuple_element_with_default/ast.json b/parser/testdata/02354_tuple_element_with_default/ast.json new file mode 100644 index 0000000000..f7414f0074 --- /dev/null +++ b/parser/testdata/02354_tuple_element_with_default/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleElement", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "default" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02354_tuple_lowcardinality/ast.json b/parser/testdata/02354_tuple_lowcardinality/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02354_tuple_lowcardinality/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_adaptive_index_granularity/ast.json b/parser/testdata/02354_vector_search_adaptive_index_granularity/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_adaptive_index_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_and_other_skipping_indexes/ast.json b/parser/testdata/02354_vector_search_and_other_skipping_indexes/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_and_other_skipping_indexes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_binary_quantization/ast.json b/parser/testdata/02354_vector_search_binary_quantization/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_binary_quantization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_choose_correct_index/ast.json b/parser/testdata/02354_vector_search_choose_correct_index/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/02354_vector_search_choose_correct_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_default_granularity/ast.json b/parser/testdata/02354_vector_search_default_granularity/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_default_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_detach_attach/ast.json b/parser/testdata/02354_vector_search_detach_attach/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_detach_attach/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_different_array_sizes/ast.json b/parser/testdata/02354_vector_search_different_array_sizes/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_different_array_sizes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_drop_table_clear_cache/ast.json b/parser/testdata/02354_vector_search_drop_table_clear_cache/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_drop_table_clear_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_empty_arrays_or_default_values/ast.json b/parser/testdata/02354_vector_search_empty_arrays_or_default_values/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_empty_arrays_or_default_values/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_expansion_search/ast.json b/parser/testdata/02354_vector_search_expansion_search/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_expansion_search/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_index_creation_negative/ast.json b/parser/testdata/02354_vector_search_index_creation_negative/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_index_creation_negative/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_multiple_indexes/ast.json b/parser/testdata/02354_vector_search_multiple_indexes/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_multiple_indexes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_multiple_marks/ast.json b/parser/testdata/02354_vector_search_multiple_marks/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02354_vector_search_multiple_marks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02354_vector_search_part_format/ast.json b/parser/testdata/02354_vector_search_part_format/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/02354_vector_search_part_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_postfiltering_bug/ast.json b/parser/testdata/02354_vector_search_postfiltering_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_postfiltering_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_pre_and_post_filtering/ast.json b/parser/testdata/02354_vector_search_pre_and_post_filtering/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_pre_and_post_filtering/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_queries/ast.json b/parser/testdata/02354_vector_search_queries/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_queries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_reference_vector_types/ast.json b/parser/testdata/02354_vector_search_reference_vector_types/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_reference_vector_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_rescoring/ast.json b/parser/testdata/02354_vector_search_rescoring/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_rescoring/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_rescoring_and_prewhere/ast.json b/parser/testdata/02354_vector_search_rescoring_and_prewhere/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_rescoring_and_prewhere/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_rescoring_distance_in_select_list/ast.json b/parser/testdata/02354_vector_search_rescoring_distance_in_select_list/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_rescoring_distance_in_select_list/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_subquery/ast.json b/parser/testdata/02354_vector_search_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02354_vector_search_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_unquoted_index_parameters/ast.json b/parser/testdata/02354_vector_search_unquoted_index_parameters/ast.json new file mode 100644 index 0000000000..d7104b4726 --- /dev/null +++ b/parser/testdata/02354_vector_search_unquoted_index_parameters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab1", + "tables": [ + { + "table": "tab1" + } + ] +} diff --git a/parser/testdata/02354_vector_search_vector_similarity_index_cache/ast.json b/parser/testdata/02354_vector_search_vector_similarity_index_cache/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/02354_vector_search_vector_similarity_index_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_vector_search_with_huge_dimension/ast.json b/parser/testdata/02354_vector_search_with_huge_dimension/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/02354_vector_search_with_huge_dimension/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02354_with_statement_non_exist_column/ast.json b/parser/testdata/02354_with_statement_non_exist_column/ast.json new file mode 100644 index 0000000000..efa3add7cb --- /dev/null +++ b/parser/testdata/02354_with_statement_non_exist_column/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ], + "temporary": true +} diff --git a/parser/testdata/02355_column_type_name_lc/ast.json b/parser/testdata/02355_column_type_name_lc/ast.json new file mode 100644 index 0000000000..dbced655b0 --- /dev/null +++ b/parser/testdata/02355_column_type_name_lc/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toColumnTypeName", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "foo" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02355_control_block_size_in_aggregator/ast.json b/parser/testdata/02355_control_block_size_in_aggregator/ast.json new file mode 100644 index 0000000000..a34b72ecdc --- /dev/null +++ b/parser/testdata/02355_control_block_size_in_aggregator/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 4213 + } + } + ] +} diff --git a/parser/testdata/02355_control_block_size_in_array_join/ast.json b/parser/testdata/02355_control_block_size_in_array_join/ast.json new file mode 100644 index 0000000000..9c10cb736c --- /dev/null +++ b/parser/testdata/02355_control_block_size_in_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/02356_insert_query_log_metrics/ast.json b/parser/testdata/02356_insert_query_log_metrics/ast.json new file mode 100644 index 0000000000..932fe70324 --- /dev/null +++ b/parser/testdata/02356_insert_query_log_metrics/ast.json @@ -0,0 +1,20 @@ +{ + "table": "02356_destination", + "columns": [ + { + "name": "a", + "type": { + "name": "Int64" + } + }, + { + "name": "b", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02356_trivial_count_with_empty_set/ast.json b/parser/testdata/02356_trivial_count_with_empty_set/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02356_trivial_count_with_empty_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02357_file_default_value/ast.json b/parser/testdata/02357_file_default_value/ast.json new file mode 100644 index 0000000000..12146e681c --- /dev/null +++ b/parser/testdata/02357_file_default_value/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "nonexistent.txt" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02360_small_notation_h_for_hour_interval/ast.json b/parser/testdata/02360_small_notation_h_for_hour_interval/ast.json new file mode 100644 index 0000000000..dea6b38df7 --- /dev/null +++ b/parser/testdata/02360_small_notation_h_for_hour_interval/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dateDiff", + "arguments": [ + { + "type": "String", + "value": "h" + }, + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2018-01-01 22:00:00" + } + ] + }, + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2018-01-02 23:00:00" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02363_mapupdate_improve/ast.json b/parser/testdata/02363_mapupdate_improve/ast.json new file mode 100644 index 0000000000..ea07bcd0cc --- /dev/null +++ b/parser/testdata/02363_mapupdate_improve/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_test", + "tables": [ + { + "table": "map_test" + } + ] +} diff --git a/parser/testdata/02364_dictionary_datetime_64_attribute_crash/ast.json b/parser/testdata/02364_dictionary_datetime_64_attribute_crash/ast.json new file mode 100644 index 0000000000..fbf341c8f0 --- /dev/null +++ b/parser/testdata/02364_dictionary_datetime_64_attribute_crash/ast.json @@ -0,0 +1,46 @@ +{ + "table": "dat", + "columns": [ + { + "name": "blockNum", + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 0 + } + ], + "has_parentheses": true + } + }, + { + "name": "eventTimestamp", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 9 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "primary_key": [ + { + "parts": [ + "eventTimestamp" + ] + } + ] +} diff --git a/parser/testdata/02364_multiSearch_function_family/ast.json b/parser/testdata/02364_multiSearch_function_family/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/02364_multiSearch_function_family/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/02364_setting_cross_to_inner_rewrite/ast.json b/parser/testdata/02364_setting_cross_to_inner_rewrite/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02364_setting_cross_to_inner_rewrite/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02364_window_case/ast.json b/parser/testdata/02364_window_case/ast.json new file mode 100644 index 0000000000..e07caa285b --- /dev/null +++ b/parser/testdata/02364_window_case/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "whens": [ + { + "condition": { + "left": { + "name": "sum", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "over": {} + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "result": { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + } + ], + "else": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02365_multisearch_random_tests/ast.json b/parser/testdata/02365_multisearch_random_tests/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/02365_multisearch_random_tests/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/02366_asof_optimize_predicate_bug_37813/ast.json b/parser/testdata/02366_asof_optimize_predicate_bug_37813/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02366_asof_optimize_predicate_bug_37813/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02366_direct_dictionary_dict_has/ast.json b/parser/testdata/02366_direct_dictionary_dict_has/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02366_direct_dictionary_dict_has/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02366_explain_query_tree/ast.json b/parser/testdata/02366_explain_query_tree/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02366_explain_query_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02366_kql_create_table/ast.json b/parser/testdata/02366_kql_create_table/ast.json new file mode 100644 index 0000000000..69ad5fe81f --- /dev/null +++ b/parser/testdata/02366_kql_create_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Customers", + "tables": [ + { + "table": "Customers" + } + ] +} diff --git a/parser/testdata/02366_kql_datatype/ast.json b/parser/testdata/02366_kql_datatype/ast.json new file mode 100644 index 0000000000..82fcceebb6 --- /dev/null +++ b/parser/testdata/02366_kql_datatype/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_kusto_dialect", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02366_kql_distinct/ast.json b/parser/testdata/02366_kql_distinct/ast.json new file mode 100644 index 0000000000..69ad5fe81f --- /dev/null +++ b/parser/testdata/02366_kql_distinct/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Customers", + "tables": [ + { + "table": "Customers" + } + ] +} diff --git a/parser/testdata/02366_kql_func_binary/ast.json b/parser/testdata/02366_kql_func_binary/ast.json new file mode 100644 index 0000000000..82fcceebb6 --- /dev/null +++ b/parser/testdata/02366_kql_func_binary/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_kusto_dialect", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02366_kql_func_datetime/ast.json b/parser/testdata/02366_kql_func_datetime/ast.json new file mode 100644 index 0000000000..82fcceebb6 --- /dev/null +++ b/parser/testdata/02366_kql_func_datetime/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_kusto_dialect", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02366_kql_func_dynamic/ast.json b/parser/testdata/02366_kql_func_dynamic/ast.json new file mode 100644 index 0000000000..108754526b --- /dev/null +++ b/parser/testdata/02366_kql_func_dynamic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "array_test", + "tables": [ + { + "table": "array_test" + } + ] +} diff --git a/parser/testdata/02366_kql_func_ip/ast.json b/parser/testdata/02366_kql_func_ip/ast.json new file mode 100644 index 0000000000..82fcceebb6 --- /dev/null +++ b/parser/testdata/02366_kql_func_ip/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_kusto_dialect", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02366_kql_func_math/ast.json b/parser/testdata/02366_kql_func_math/ast.json new file mode 100644 index 0000000000..82fcceebb6 --- /dev/null +++ b/parser/testdata/02366_kql_func_math/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_kusto_dialect", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02366_kql_func_scalar/ast.json b/parser/testdata/02366_kql_func_scalar/ast.json new file mode 100644 index 0000000000..f34f9635ad --- /dev/null +++ b/parser/testdata/02366_kql_func_scalar/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Bin_at_test", + "tables": [ + { + "table": "Bin_at_test" + } + ] +} diff --git a/parser/testdata/02366_kql_func_string/ast.json b/parser/testdata/02366_kql_func_string/ast.json new file mode 100644 index 0000000000..69ad5fe81f --- /dev/null +++ b/parser/testdata/02366_kql_func_string/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Customers", + "tables": [ + { + "table": "Customers" + } + ] +} diff --git a/parser/testdata/02366_kql_mvexpand/ast.json b/parser/testdata/02366_kql_mvexpand/ast.json new file mode 100644 index 0000000000..e538374a6f --- /dev/null +++ b/parser/testdata/02366_kql_mvexpand/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv_expand_test_table", + "tables": [ + { + "table": "mv_expand_test_table" + } + ] +} diff --git a/parser/testdata/02366_kql_operator_in_sql/ast.json b/parser/testdata/02366_kql_operator_in_sql/ast.json new file mode 100644 index 0000000000..69ad5fe81f --- /dev/null +++ b/parser/testdata/02366_kql_operator_in_sql/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Customers", + "tables": [ + { + "table": "Customers" + } + ] +} diff --git a/parser/testdata/02366_normalize_aggregate_function_types_and_states/ast.json b/parser/testdata/02366_normalize_aggregate_function_types_and_states/ast.json new file mode 100644 index 0000000000..540759e0a1 --- /dev/null +++ b/parser/testdata/02366_normalize_aggregate_function_types_and_states/ast.json @@ -0,0 +1,121 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countMerge", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "countState", + "arguments": [ + { + "type": "Float", + "value": 0.5 + } + ], + "alias": "a" + } + ] + }, + { + "columns": [ + { + "name": "countState" + } + ] + }, + { + "columns": [ + { + "name": "countIfState", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "columns": [ + { + "name": "countArrayState", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + }, + { + "columns": [ + { + "name": "countArrayIfState", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL", + "UNION ALL", + "UNION ALL", + "UNION ALL" + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02366_window_function_order_by/ast.json b/parser/testdata/02366_window_function_order_by/ast.json new file mode 100644 index 0000000000..14a1fb3633 --- /dev/null +++ b/parser/testdata/02366_window_function_order_by/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "parts": [ + "value" + ] + } + ] + } + ], + "over": {} + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "value" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "value" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02366_with_fill_date/ast.json b/parser/testdata/02366_with_fill_date/ast.json new file mode 100644 index 0000000000..18cac8c498 --- /dev/null +++ b/parser/testdata/02366_with_fill_date/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2022-02-01" + } + ], + "alias": "d1" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 18 + } + ] + }, + "alias": "number" + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "d1" + ] + }, + "with_fill": true, + "fill_from": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2022-02-01" + } + ] + }, + "fill_to": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2022-07-01" + } + ] + }, + "fill_step": { + "name": "toIntervalMonth", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02367_analyzer_table_alias_columns/ast.json b/parser/testdata/02367_analyzer_table_alias_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02367_analyzer_table_alias_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02367_optimize_trivial_count_with_array_join/ast.json b/parser/testdata/02367_optimize_trivial_count_with_array_join/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02367_optimize_trivial_count_with_array_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02368_analyzer_table_functions/ast.json b/parser/testdata/02368_analyzer_table_functions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02368_analyzer_table_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02369_analyzer_array_join_function/ast.json b/parser/testdata/02369_analyzer_array_join_function/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02369_analyzer_array_join_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02370_analyzer_in_function/ast.json b/parser/testdata/02370_analyzer_in_function/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02370_analyzer_in_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02371_analyzer_join_cross/ast.json b/parser/testdata/02371_analyzer_join_cross/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02371_analyzer_join_cross/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02371_create_temporary_table_as_with_columns_list/ast.json b/parser/testdata/02371_create_temporary_table_as_with_columns_list/ast.json new file mode 100644 index 0000000000..8b7bde65b5 --- /dev/null +++ b/parser/testdata/02371_create_temporary_table_as_with_columns_list/ast.json @@ -0,0 +1,42 @@ +{ + "temporary": true, + "table": "test_02327", + "columns": [ + { + "name": "name", + "type": { + "name": "String" + } + } + ], + "as_select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "VALUES", + "arguments": [ + { + "type": "String", + "value": "Vasya" + }, + { + "type": "String", + "value": "Petya" + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02371_select_projection_normal_agg/ast.json b/parser/testdata/02371_select_projection_normal_agg/ast.json new file mode 100644 index 0000000000..3124e5799e --- /dev/null +++ b/parser/testdata/02371_select_projection_normal_agg/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "video_log", + "tables": [ + { + "table": "video_log" + } + ] +} diff --git a/parser/testdata/02372_nowInBlock/ast.json b/parser/testdata/02372_nowInBlock/ast.json new file mode 100644 index 0000000000..af0c79f96f --- /dev/null +++ b/parser/testdata/02372_nowInBlock/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_bytes_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02373_analyzer_join_use_nulls/ast.json b/parser/testdata/02373_analyzer_join_use_nulls/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02373_analyzer_join_use_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02374_analyzer_array_join/ast.json b/parser/testdata/02374_analyzer_array_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02374_analyzer_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02374_combine_multi_if_and_count_if_opt/ast.json b/parser/testdata/02374_combine_multi_if_and_count_if_opt/ast.json new file mode 100644 index 0000000000..44a7ee321d --- /dev/null +++ b/parser/testdata/02374_combine_multi_if_and_count_if_opt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m", + "tables": [ + { + "table": "m" + } + ] +} diff --git a/parser/testdata/02374_in_tuple_index/ast.json b/parser/testdata/02374_in_tuple_index/ast.json new file mode 100644 index 0000000000..7f91982501 --- /dev/null +++ b/parser/testdata/02374_in_tuple_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_in_tuple_index", + "tables": [ + { + "table": "t_in_tuple_index" + } + ] +} diff --git a/parser/testdata/02375_double_escaping_json/ast.json b/parser/testdata/02375_double_escaping_json/ast.json new file mode 100644 index 0000000000..ea926ff516 --- /dev/null +++ b/parser/testdata/02375_double_escaping_json/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "\\" + }, + "alias": "\"" + } + ], + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ], + "format": { + "parts": [ + "JSON" + ] + } + } + ] +} diff --git a/parser/testdata/02375_scalar_lc_cte/ast.json b/parser/testdata/02375_scalar_lc_cte/ast.json new file mode 100644 index 0000000000..00cd3a5050 --- /dev/null +++ b/parser/testdata/02375_scalar_lc_cte/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "with": [ + { + "name": "bar", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] + } + } + } + ], + "columns": [ + { + "parts": [ + "bar" + ] + } + ] + } + ] +} diff --git a/parser/testdata/02376_analyzer_in_function_subquery/ast.json b/parser/testdata/02376_analyzer_in_function_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02376_analyzer_in_function_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02376_arrow_dict_with_string/ast.json b/parser/testdata/02376_arrow_dict_with_string/ast.json new file mode 100644 index 0000000000..7a667f5846 --- /dev/null +++ b/parser/testdata/02376_arrow_dict_with_string/ast.json @@ -0,0 +1,78 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "02376_data", + "arrow" + ] + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "output_format_arrow_string_as_string", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_arrow_low_cardinality_as_dictionary", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02377_analyzer_in_function_set/ast.json b/parser/testdata/02377_analyzer_in_function_set/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02377_analyzer_in_function_set/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02377_fix_file_virtual_column/ast.json b/parser/testdata/02377_fix_file_virtual_column/ast.json new file mode 100644 index 0000000000..077c96fc9d --- /dev/null +++ b/parser/testdata/02377_fix_file_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02377", + "tables": [ + { + "table": "test_02377" + } + ] +} diff --git a/parser/testdata/02377_majority_insert_quorum_zookeeper_long/ast.json b/parser/testdata/02377_majority_insert_quorum_zookeeper_long/ast.json new file mode 100644 index 0000000000..898f6f1062 --- /dev/null +++ b/parser/testdata/02377_majority_insert_quorum_zookeeper_long/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_quorum_parallel", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/02377_modify_column_from_lc/ast.json b/parser/testdata/02377_modify_column_from_lc/ast.json new file mode 100644 index 0000000000..c2cf5907c4 --- /dev/null +++ b/parser/testdata/02377_modify_column_from_lc/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_modify_from_lc_1", + "tables": [ + { + "table": "t_modify_from_lc_1" + } + ] +} diff --git a/parser/testdata/02377_modify_column_from_nested/ast.json b/parser/testdata/02377_modify_column_from_nested/ast.json new file mode 100644 index 0000000000..40b30c1df8 --- /dev/null +++ b/parser/testdata/02377_modify_column_from_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_nested_modify", + "tables": [ + { + "table": "t_nested_modify" + } + ] +} diff --git a/parser/testdata/02377_optimize_sorting_by_input_stream_properties/ast.json b/parser/testdata/02377_optimize_sorting_by_input_stream_properties/ast.json new file mode 100644 index 0000000000..fa533fb7d9 --- /dev/null +++ b/parser/testdata/02377_optimize_sorting_by_input_stream_properties/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_sorting_by_input_stream_properties", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02377_optimize_sorting_by_input_stream_properties_2/ast.json b/parser/testdata/02377_optimize_sorting_by_input_stream_properties_2/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02377_optimize_sorting_by_input_stream_properties_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02378_analyzer_projection_names/ast.json b/parser/testdata/02378_analyzer_projection_names/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02378_analyzer_projection_names/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02378_part_log_profile_events_replicated/ast.json b/parser/testdata/02378_part_log_profile_events_replicated/ast.json new file mode 100644 index 0000000000..b041aaedf3 --- /dev/null +++ b/parser/testdata/02378_part_log_profile_events_replicated/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "part_log_profile_events_r1", + "tables": [ + { + "table": "part_log_profile_events_r1" + } + ], + "sync": true +} diff --git a/parser/testdata/02379_analyzer_subquery_depth/ast.json b/parser/testdata/02379_analyzer_subquery_depth/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02379_analyzer_subquery_depth/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02380_analyzer_join_sample/ast.json b/parser/testdata/02380_analyzer_join_sample/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02380_analyzer_join_sample/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02381_analyzer_join_final/ast.json b/parser/testdata/02381_analyzer_join_final/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02381_analyzer_join_final/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02381_compress_marks_and_primary_key/ast.json b/parser/testdata/02381_compress_marks_and_primary_key/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/02381_compress_marks_and_primary_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02381_parseDateTime64BestEffortUS/ast.json b/parser/testdata/02381_parseDateTime64BestEffortUS/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/02381_parseDateTime64BestEffortUS/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02381_parse_array_of_tuples/ast.json b/parser/testdata/02381_parse_array_of_tuples/ast.json new file mode 100644 index 0000000000..b1b8bb652b --- /dev/null +++ b/parser/testdata/02381_parse_array_of_tuples/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_parse_tuples", + "tables": [ + { + "table": "t_parse_tuples" + } + ] +} diff --git a/parser/testdata/02381_setting_value_auto/ast.json b/parser/testdata/02381_setting_value_auto/ast.json new file mode 100644 index 0000000000..41d5c13104 --- /dev/null +++ b/parser/testdata/02381_setting_value_auto/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "value" + ] + }, + { + "parts": [ + "changed" + ] + }, + { + "parts": [ + "type" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "insert_quorum" + } + } + } + ] +} diff --git a/parser/testdata/02382_analyzer_matcher_join_using/ast.json b/parser/testdata/02382_analyzer_matcher_join_using/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02382_analyzer_matcher_join_using/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02382_join_and_filtering_set/ast.json b/parser/testdata/02382_join_and_filtering_set/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02382_join_and_filtering_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02383_analyzer_merge_tree_self_join/ast.json b/parser/testdata/02383_analyzer_merge_tree_self_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02383_analyzer_merge_tree_self_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02384_analyzer_dict_get_join_get/ast.json b/parser/testdata/02384_analyzer_dict_get_join_get/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02384_analyzer_dict_get_join_get/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02384_decrypt_bad_arguments/ast.json b/parser/testdata/02384_decrypt_bad_arguments/ast.json new file mode 100644 index 0000000000..95d0148c70 --- /dev/null +++ b/parser/testdata/02384_decrypt_bad_arguments/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "decrypt", + "arguments": [ + { + "type": "String", + "value": "aes-128-gcm" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1024 + }, + { + "type": "Integer", + "value": 65535 + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "type": "Integer", + "value": 1048576 + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "type": "String", + "value": "text" + }, + { + "type": "String", + "value": "key" + }, + { + "type": "String", + "value": "IV" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02384_nullable_low_cardinality_as_dict_in_arrow/ast.json b/parser/testdata/02384_nullable_low_cardinality_as_dict_in_arrow/ast.json new file mode 100644 index 0000000000..629de7e17b --- /dev/null +++ b/parser/testdata/02384_nullable_low_cardinality_as_dict_in_arrow/ast.json @@ -0,0 +1,60 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "02384_data", + "arrow" + ] + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "abc" + } + ] + } + ], + "alias": "lc" + } + ], + "settings": [ + { + "name": "output_format_arrow_low_cardinality_as_dictionary", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_arrow_string_as_string", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02385_analyzer_aliases_compound_expression/ast.json b/parser/testdata/02385_analyzer_aliases_compound_expression/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02385_analyzer_aliases_compound_expression/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02385_profile_events_overflow/ast.json b/parser/testdata/02385_profile_events_overflow/ast.json new file mode 100644 index 0000000000..eabe1a7c3d --- /dev/null +++ b/parser/testdata/02385_profile_events_overflow/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "system_events_show_zero_values", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02386_analyzer_in_function_nested_subqueries/ast.json b/parser/testdata/02386_analyzer_in_function_nested_subqueries/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02386_analyzer_in_function_nested_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02386_set_columns_order/ast.json b/parser/testdata/02386_set_columns_order/ast.json new file mode 100644 index 0000000000..bd59ade554 --- /dev/null +++ b/parser/testdata/02386_set_columns_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "userid_set", + "tables": [ + { + "table": "userid_set" + } + ] +} diff --git a/parser/testdata/02387_analyzer_cte/ast.json b/parser/testdata/02387_analyzer_cte/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02387_analyzer_cte/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02387_parse_date_as_datetime/ast.json b/parser/testdata/02387_parse_date_as_datetime/ast.json new file mode 100644 index 0000000000..655375fb3f --- /dev/null +++ b/parser/testdata/02387_parse_date_as_datetime/ast.json @@ -0,0 +1,18 @@ +{ + "temporary": true, + "table": "test", + "columns": [ + { + "name": "i", + "type": { + "name": "Int64" + } + }, + { + "name": "d", + "type": { + "name": "DateTime" + } + } + ] +} diff --git a/parser/testdata/02388_analyzer_recursive_lambda/ast.json b/parser/testdata/02388_analyzer_recursive_lambda/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02388_analyzer_recursive_lambda/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02388_conversion_from_string_with_datetime64_to_date_and_date32/ast.json b/parser/testdata/02388_conversion_from_string_with_datetime64_to_date_and_date32/ast.json new file mode 100644 index 0000000000..44e1b426d0 --- /dev/null +++ b/parser/testdata/02388_conversion_from_string_with_datetime64_to_date_and_date32/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2022-08-22 01:02:03" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02389_analyzer_nested_lambda/ast.json b/parser/testdata/02389_analyzer_nested_lambda/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02389_analyzer_nested_lambda/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02391_hashed_dictionary_shards/ast.json b/parser/testdata/02391_hashed_dictionary_shards/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02391_hashed_dictionary_shards/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02391_recursive_buffer/ast.json b/parser/testdata/02391_recursive_buffer/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02391_recursive_buffer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02392_every_setting_must_have_documentation/ast.json b/parser/testdata/02392_every_setting_must_have_documentation/ast.json new file mode 100644 index 0000000000..65cfe84454 --- /dev/null +++ b/parser/testdata/02392_every_setting_must_have_documentation/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "description" + ] + } + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10 + } + } + } + ] +} diff --git a/parser/testdata/02393_every_metric_must_have_documentation/ast.json b/parser/testdata/02393_every_metric_must_have_documentation/ast.json new file mode 100644 index 0000000000..021b3b4fa8 --- /dev/null +++ b/parser/testdata/02393_every_metric_must_have_documentation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "system_events_show_zero_values", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/02394_every_profile_event_must_have_documentation/ast.json b/parser/testdata/02394_every_profile_event_must_have_documentation/ast.json new file mode 100644 index 0000000000..021b3b4fa8 --- /dev/null +++ b/parser/testdata/02394_every_profile_event_must_have_documentation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "system_events_show_zero_values", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/02395_every_merge_tree_setting_must_have_documentation/ast.json b/parser/testdata/02395_every_merge_tree_setting_must_have_documentation/ast.json new file mode 100644 index 0000000000..ae9c204877 --- /dev/null +++ b/parser/testdata/02395_every_merge_tree_setting_must_have_documentation/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "merge_tree_settings" + } + } + } + ] + }, + "where": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "description" + ] + } + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10 + } + } + } + ] +} diff --git a/parser/testdata/02398_subquery_where_pushdown_and_limit_offset/ast.json b/parser/testdata/02398_subquery_where_pushdown_and_limit_offset/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02398_subquery_where_pushdown_and_limit_offset/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02399_merge_tree_mutate_in_partition/ast.json b/parser/testdata/02399_merge_tree_mutate_in_partition/ast.json new file mode 100644 index 0000000000..1450425ed6 --- /dev/null +++ b/parser/testdata/02399_merge_tree_mutate_in_partition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ] +} diff --git a/parser/testdata/02400_create_table_on_cluster_normalization/ast.json b/parser/testdata/02400_create_table_on_cluster_normalization/ast.json new file mode 100644 index 0000000000..a1ad39a6aa --- /dev/null +++ b/parser/testdata/02400_create_table_on_cluster_normalization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_t_l5ydey", + "tables": [ + { + "table": "local_t_l5ydey" + } + ] +} diff --git a/parser/testdata/02400_memory_accounting_on_error/ast.json b/parser/testdata/02400_memory_accounting_on_error/ast.json new file mode 100644 index 0000000000..2a8e94a734 --- /dev/null +++ b/parser/testdata/02400_memory_accounting_on_error/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generateRandom", + "arguments": [ + { + "type": "String", + "value": "i Array(Int8)" + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1048577 + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 65536 + }, + "settings": [ + { + "name": "max_memory_usage", + "value": { + "type": "String", + "value": "1Gi" + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 65505 + } + }, + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02401_merge_tree_old_tmp_dirs_cleanup/ast.json b/parser/testdata/02401_merge_tree_old_tmp_dirs_cleanup/ast.json new file mode 100644 index 0000000000..2c13617dbc --- /dev/null +++ b/parser/testdata/02401_merge_tree_old_tmp_dirs_cleanup/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_inserts", + "tables": [ + { + "table": "test_inserts" + } + ] +} diff --git a/parser/testdata/02402_external_disk_metrics/ast.json b/parser/testdata/02402_external_disk_metrics/ast.json new file mode 100644 index 0000000000..526a183dc5 --- /dev/null +++ b/parser/testdata/02402_external_disk_metrics/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_bytes_before_external_sort", + "value": { + "type": "Integer", + "value": 33554432 + } + } + ] +} diff --git a/parser/testdata/02402_merge_engine_with_view/ast.json b/parser/testdata/02402_merge_engine_with_view/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02402_merge_engine_with_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02403_ttl_column_multiple_times/ast.json b/parser/testdata/02403_ttl_column_multiple_times/ast.json new file mode 100644 index 0000000000..7969279fc9 --- /dev/null +++ b/parser/testdata/02403_ttl_column_multiple_times/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_table", + "tables": [ + { + "table": "ttl_table" + } + ] +} diff --git a/parser/testdata/02404_lightweight_delete_vertical_merge/ast.json b/parser/testdata/02404_lightweight_delete_vertical_merge/ast.json new file mode 100644 index 0000000000..f27c115b84 --- /dev/null +++ b/parser/testdata/02404_lightweight_delete_vertical_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lwd_test", + "tables": [ + { + "table": "lwd_test" + } + ] +} diff --git a/parser/testdata/02404_memory_bound_merging/ast.json b/parser/testdata/02404_memory_bound_merging/ast.json new file mode 100644 index 0000000000..18cae223c9 --- /dev/null +++ b/parser/testdata/02404_memory_bound_merging/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pr_t", + "tables": [ + { + "table": "pr_t" + } + ] +} diff --git a/parser/testdata/02405_avro_read_nested/ast.json b/parser/testdata/02405_avro_read_nested/ast.json new file mode 100644 index 0000000000..83f3909a83 --- /dev/null +++ b/parser/testdata/02405_avro_read_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "flatten_nested", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02405_pmj_issue_40335/ast.json b/parser/testdata/02405_pmj_issue_40335/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02405_pmj_issue_40335/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02406_minmax_behaviour/ast.json b/parser/testdata/02406_minmax_behaviour/ast.json new file mode 100644 index 0000000000..5add01f01c --- /dev/null +++ b/parser/testdata/02406_minmax_behaviour/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02406_try_read_datetime64_bug/ast.json b/parser/testdata/02406_try_read_datetime64_bug/ast.json new file mode 100644 index 0000000000..2a97349397 --- /dev/null +++ b/parser/testdata/02406_try_read_datetime64_bug/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64OrDefault", + "arguments": [ + { + "type": "String", + "value": "Aaaa e a.a.aaaaaaaaa" + }, + { + "type": "Integer", + "value": 9 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02407_array_element_from_map_wrong_type/ast.json b/parser/testdata/02407_array_element_from_map_wrong_type/ast.json new file mode 100644 index 0000000000..5875d31fde --- /dev/null +++ b/parser/testdata/02407_array_element_from_map_wrong_type/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "parts": [ + "m" + ] + }, + "index": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "materialize", + "arguments": [ + { + "name": "map", + "arguments": [ + { + "type": "String", + "value": "key" + }, + { + "type": "Integer", + "value": 42 + } + ] + } + ], + "alias": "m" + } + ] + } + ] +} diff --git a/parser/testdata/02408_to_fixed_string_short_circuit/ast.json b/parser/testdata/02408_to_fixed_string_short_circuit/ast.json new file mode 100644 index 0000000000..bbdd917528 --- /dev/null +++ b/parser/testdata/02408_to_fixed_string_short_circuit/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "toFixedString", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "123" + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Null", + "value": null + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02410_to_decimal_or_default/ast.json b/parser/testdata/02410_to_decimal_or_default/ast.json new file mode 100644 index 0000000000..9d7badf29c --- /dev/null +++ b/parser/testdata/02410_to_decimal_or_default/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal32OrDefault", + "arguments": [ + { + "type": "Integer", + "value": 111 + }, + { + "type": "Integer", + "value": 3 + }, + { + "expr": { + "type": "Float", + "value": 123.456 + }, + "type": { + "name": "Decimal32", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ], + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02411_legacy_geobase/ast.json b/parser/testdata/02411_legacy_geobase/ast.json new file mode 100644 index 0000000000..d29ebf790d --- /dev/null +++ b/parser/testdata/02411_legacy_geobase/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "regionToName", + "arguments": [ + { + "expr": { + "parts": [ + "number" + ] + }, + "type": { + "name": "UInt32" + }, + "operator_syntax": true + }, + { + "type": "String", + "value": "en" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 13 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02412_nlp/ast.json b/parser/testdata/02412_nlp/ast.json new file mode 100644 index 0000000000..d6eb296192 --- /dev/null +++ b/parser/testdata/02412_nlp/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_nlp_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02414_all_new_table_functions_must_be_documented/ast.json b/parser/testdata/02414_all_new_table_functions_must_be_documented/ast.json new file mode 100644 index 0000000000..032b108e26 --- /dev/null +++ b/parser/testdata/02414_all_new_table_functions_must_be_documented/ast.json @@ -0,0 +1,112 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "table_functions" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "description" + ] + } + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10 + } + }, + "op": "AND", + "right": { + "expr": { + "parts": [ + "name" + ] + }, + "not": true, + "list": [ + { + "type": "String", + "value": "cosn" + }, + { + "type": "String", + "value": "oss" + }, + { + "type": "String", + "value": "hdfs" + }, + { + "type": "String", + "value": "hdfsCluster" + }, + { + "type": "String", + "value": "hive" + }, + { + "type": "String", + "value": "mysql" + }, + { + "type": "String", + "value": "postgresql" + }, + { + "type": "String", + "value": "s3" + }, + { + "type": "String", + "value": "s3Cluster" + }, + { + "type": "String", + "value": "sqlite" + }, + { + "type": "String", + "value": "urlCluster" + }, + { + "type": "String", + "value": "mergeTreeParts" + } + ] + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "name" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02415_all_new_functions_must_be_documented/ast.json b/parser/testdata/02415_all_new_functions_must_be_documented/ast.json new file mode 100644 index 0000000000..05aa16aa3f --- /dev/null +++ b/parser/testdata/02415_all_new_functions_must_be_documented/ast.json @@ -0,0 +1,401 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "functions" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "left": { + "left": { + "op": "NOT", + "operand": { + "parts": [ + "is_aggregate" + ] + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "origin" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "System" + } + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "alias_to" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "" + } + } + }, + "op": "AND", + "right": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "description" + ] + } + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10 + } + } + }, + "op": "AND", + "right": { + "expr": { + "parts": [ + "name" + ] + }, + "not": true, + "list": [ + { + "type": "String", + "value": "aes_decrypt_mysql" + }, + { + "type": "String", + "value": "aes_encrypt_mysql" + }, + { + "type": "String", + "value": "decrypt" + }, + { + "type": "String", + "value": "encrypt" + }, + { + "type": "String", + "value": "convertCharset" + }, + { + "type": "String", + "value": "detectLanguage" + }, + { + "type": "String", + "value": "detectLanguageMixed" + }, + { + "type": "String", + "value": "geoToH3" + }, + { + "type": "String", + "value": "h3CellAreaM2" + }, + { + "type": "String", + "value": "h3CellAreaRads2" + }, + { + "type": "String", + "value": "h3Distance" + }, + { + "type": "String", + "value": "h3EdgeAngle" + }, + { + "type": "String", + "value": "h3EdgeLengthKm" + }, + { + "type": "String", + "value": "h3EdgeLengthM" + }, + { + "type": "String", + "value": "h3ExactEdgeLengthKm" + }, + { + "type": "String", + "value": "h3ExactEdgeLengthM" + }, + { + "type": "String", + "value": "h3ExactEdgeLengthRads" + }, + { + "type": "String", + "value": "h3GetBaseCell" + }, + { + "type": "String", + "value": "h3GetDestinationIndexFromUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetFaces" + }, + { + "type": "String", + "value": "h3GetIndexesFromUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetOriginIndexFromUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetPentagonIndexes" + }, + { + "type": "String", + "value": "h3GetRes0Indexes" + }, + { + "type": "String", + "value": "h3GetResolution" + }, + { + "type": "String", + "value": "h3GetUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetUnidirectionalEdgeBoundary" + }, + { + "type": "String", + "value": "h3GetUnidirectionalEdgesFromHexagon" + }, + { + "type": "String", + "value": "h3HexAreaKm2" + }, + { + "type": "String", + "value": "h3HexAreaM2" + }, + { + "type": "String", + "value": "h3HexRing" + }, + { + "type": "String", + "value": "h3IndexesAreNeighbors" + }, + { + "type": "String", + "value": "h3IsPentagon" + }, + { + "type": "String", + "value": "h3IsResClassIII" + }, + { + "type": "String", + "value": "h3IsValid" + }, + { + "type": "String", + "value": "h3Line" + }, + { + "type": "String", + "value": "h3NumHexagons" + }, + { + "type": "String", + "value": "h3PointDistKm" + }, + { + "type": "String", + "value": "h3PointDistM" + }, + { + "type": "String", + "value": "h3PointDistRads" + }, + { + "type": "String", + "value": "h3ToCenterChild" + }, + { + "type": "String", + "value": "h3ToChildren" + }, + { + "type": "String", + "value": "h3ToGeo" + }, + { + "type": "String", + "value": "h3ToGeoBoundary" + }, + { + "type": "String", + "value": "h3ToParent" + }, + { + "type": "String", + "value": "h3ToString" + }, + { + "type": "String", + "value": "h3UnidirectionalEdgeIsValid" + }, + { + "type": "String", + "value": "h3kRing" + }, + { + "type": "String", + "value": "stringToH3" + }, + { + "type": "String", + "value": "geoToS2" + }, + { + "type": "String", + "value": "s2CapContains" + }, + { + "type": "String", + "value": "s2CapUnion" + }, + { + "type": "String", + "value": "s2CellsIntersect" + }, + { + "type": "String", + "value": "s2GetNeighbors" + }, + { + "type": "String", + "value": "s2RectAdd" + }, + { + "type": "String", + "value": "s2RectContains" + }, + { + "type": "String", + "value": "s2RectIntersection" + }, + { + "type": "String", + "value": "s2RectUnion" + }, + { + "type": "String", + "value": "s2ToGeo" + }, + { + "type": "String", + "value": "normalizeUTF8NFC" + }, + { + "type": "String", + "value": "normalizeUTF8NFD" + }, + { + "type": "String", + "value": "normalizeUTF8NFKC" + }, + { + "type": "String", + "value": "normalizeUTF8NFKD" + }, + { + "type": "String", + "value": "bech32Encode" + }, + { + "type": "String", + "value": "bech32Decode" + }, + { + "type": "String", + "value": "lemmatize" + }, + { + "type": "String", + "value": "stem" + }, + { + "type": "String", + "value": "synonyms" + }, + { + "type": "String", + "value": "kql_array_sort_asc" + }, + { + "type": "String", + "value": "kql_array_sort_desc" + }, + { + "type": "String", + "value": "detectCharset" + }, + { + "type": "String", + "value": "detectLanguageUnknown" + }, + { + "type": "String", + "value": "detectProgrammingLanguage" + }, + { + "type": "String", + "value": "detectTonality" + } + ] + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "name" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02415_all_new_functions_must_have_version_information/ast.json b/parser/testdata/02415_all_new_functions_must_have_version_information/ast.json new file mode 100644 index 0000000000..3e1a6ec4c5 --- /dev/null +++ b/parser/testdata/02415_all_new_functions_must_have_version_information/ast.json @@ -0,0 +1,512 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "functions" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "left": { + "left": { + "op": "NOT", + "operand": { + "parts": [ + "is_aggregate" + ] + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "origin" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "System" + } + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "alias_to" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "" + } + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "introduced_in" + ] + }, + "op": "==", + "right": { + "type": "String", + "value": "" + } + } + }, + "op": "AND", + "right": { + "expr": { + "parts": [ + "name" + ] + }, + "not": true, + "list": [ + { + "type": "String", + "value": "aes_decrypt_mysql" + }, + { + "type": "String", + "value": "aes_encrypt_mysql" + }, + { + "type": "String", + "value": "decrypt" + }, + { + "type": "String", + "value": "encrypt" + }, + { + "type": "String", + "value": "convertCharset" + }, + { + "type": "String", + "value": "detectLanguage" + }, + { + "type": "String", + "value": "detectLanguageMixed" + }, + { + "type": "String", + "value": "geoToH3" + }, + { + "type": "String", + "value": "h3CellAreaM2" + }, + { + "type": "String", + "value": "h3CellAreaRads2" + }, + { + "type": "String", + "value": "h3Distance" + }, + { + "type": "String", + "value": "h3EdgeAngle" + }, + { + "type": "String", + "value": "h3EdgeLengthKm" + }, + { + "type": "String", + "value": "h3EdgeLengthM" + }, + { + "type": "String", + "value": "h3ExactEdgeLengthKm" + }, + { + "type": "String", + "value": "h3ExactEdgeLengthM" + }, + { + "type": "String", + "value": "h3ExactEdgeLengthRads" + }, + { + "type": "String", + "value": "h3GetBaseCell" + }, + { + "type": "String", + "value": "h3GetDestinationIndexFromUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetFaces" + }, + { + "type": "String", + "value": "h3GetIndexesFromUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetOriginIndexFromUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetPentagonIndexes" + }, + { + "type": "String", + "value": "h3GetRes0Indexes" + }, + { + "type": "String", + "value": "h3GetResolution" + }, + { + "type": "String", + "value": "h3GetUnidirectionalEdge" + }, + { + "type": "String", + "value": "h3GetUnidirectionalEdgeBoundary" + }, + { + "type": "String", + "value": "h3GetUnidirectionalEdgesFromHexagon" + }, + { + "type": "String", + "value": "h3HexAreaKm2" + }, + { + "type": "String", + "value": "h3HexAreaM2" + }, + { + "type": "String", + "value": "h3HexRing" + }, + { + "type": "String", + "value": "h3IndexesAreNeighbors" + }, + { + "type": "String", + "value": "h3IsPentagon" + }, + { + "type": "String", + "value": "h3IsResClassIII" + }, + { + "type": "String", + "value": "h3IsValid" + }, + { + "type": "String", + "value": "h3Line" + }, + { + "type": "String", + "value": "h3NumHexagons" + }, + { + "type": "String", + "value": "h3PointDistKm" + }, + { + "type": "String", + "value": "h3PointDistM" + }, + { + "type": "String", + "value": "h3PointDistRads" + }, + { + "type": "String", + "value": "h3ToCenterChild" + }, + { + "type": "String", + "value": "h3ToChildren" + }, + { + "type": "String", + "value": "h3ToGeo" + }, + { + "type": "String", + "value": "h3ToGeoBoundary" + }, + { + "type": "String", + "value": "h3ToParent" + }, + { + "type": "String", + "value": "h3ToString" + }, + { + "type": "String", + "value": "h3UnidirectionalEdgeIsValid" + }, + { + "type": "String", + "value": "h3kRing" + }, + { + "type": "String", + "value": "stringToH3" + }, + { + "type": "String", + "value": "geoToS2" + }, + { + "type": "String", + "value": "s2CapContains" + }, + { + "type": "String", + "value": "s2CapUnion" + }, + { + "type": "String", + "value": "s2CellsIntersect" + }, + { + "type": "String", + "value": "s2GetNeighbors" + }, + { + "type": "String", + "value": "s2RectAdd" + }, + { + "type": "String", + "value": "s2RectContains" + }, + { + "type": "String", + "value": "s2RectIntersection" + }, + { + "type": "String", + "value": "s2RectUnion" + }, + { + "type": "String", + "value": "s2ToGeo" + }, + { + "type": "String", + "value": "normalizeUTF8NFC" + }, + { + "type": "String", + "value": "normalizeUTF8NFD" + }, + { + "type": "String", + "value": "normalizeUTF8NFKC" + }, + { + "type": "String", + "value": "normalizeUTF8NFKD" + }, + { + "type": "String", + "value": "lemmatize" + }, + { + "type": "String", + "value": "tokenize" + }, + { + "type": "String", + "value": "stem" + }, + { + "type": "String", + "value": "synonyms" + }, + { + "type": "String", + "value": "kql_array_sort_asc" + }, + { + "type": "String", + "value": "kql_array_sort_desc" + }, + { + "type": "String", + "value": "detectCharset" + }, + { + "type": "String", + "value": "detectLanguageUnknown" + }, + { + "type": "String", + "value": "detectProgrammingLanguage" + }, + { + "type": "String", + "value": "detectTonality" + }, + { + "type": "String", + "value": "bech32Encode" + }, + { + "type": "String", + "value": "bech32Decode" + }, + { + "type": "String", + "value": "BLAKE3" + }, + { + "type": "String", + "value": "JSONMergePatch" + }, + { + "type": "String", + "value": "MD4" + }, + { + "type": "String", + "value": "MD5" + }, + { + "type": "String", + "value": "RIPEMD160" + }, + { + "type": "String", + "value": "SHA1" + }, + { + "type": "String", + "value": "SHA224" + }, + { + "type": "String", + "value": "SHA256" + }, + { + "type": "String", + "value": "SHA384" + }, + { + "type": "String", + "value": "SHA512" + }, + { + "type": "String", + "value": "SHA512_256" + }, + { + "type": "String", + "value": "ULIDStringToDateTime" + }, + { + "type": "String", + "value": "generateULID" + }, + { + "type": "String", + "value": "halfMD5" + }, + { + "type": "String", + "value": "idnaDecode" + }, + { + "type": "String", + "value": "idnaEncode" + }, + { + "type": "String", + "value": "keccak256" + }, + { + "type": "String", + "value": "punycodeDecode" + }, + { + "type": "String", + "value": "punycodeEncode" + }, + { + "type": "String", + "value": "seriesPeriodDetectFFT" + }, + { + "type": "String", + "value": "sqidDecode" + }, + { + "type": "String", + "value": "sqidEncode" + }, + { + "type": "String", + "value": "tryDecrypt" + }, + { + "type": "String", + "value": "tryIdnaEncode" + }, + { + "type": "String", + "value": "tryPunycodeDecode" + }, + { + "type": "String", + "value": "uniqThetaIntersect" + }, + { + "type": "String", + "value": "uniqThetaNot" + }, + { + "type": "String", + "value": "uniqThetaUnion" + } + ] + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "name" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02416_grouping_function_compatibility/ast.json b/parser/testdata/02416_grouping_function_compatibility/ast.json new file mode 100644 index 0000000000..6a5d17d6f0 --- /dev/null +++ b/parser/testdata/02416_grouping_function_compatibility/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test02416", + "tables": [ + { + "table": "test02416" + } + ] +} diff --git a/parser/testdata/02416_in_set_same_ast_diff_columns/ast.json b/parser/testdata/02416_in_set_same_ast_diff_columns/ast.json new file mode 100644 index 0000000000..c9c85b9ab2 --- /dev/null +++ b/parser/testdata/02416_in_set_same_ast_diff_columns/ast.json @@ -0,0 +1,38 @@ +{ + "table": "set_crash", + "columns": [ + { + "name": "key1", + "type": { + "name": "Int32" + } + }, + { + "name": "id1", + "type": { + "name": "Int64" + } + }, + { + "name": "c1", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "key1" + ] + } + ], + "partition_by": { + "parts": [ + "id1" + ] + } +} diff --git a/parser/testdata/02416_json_tuple_to_array_schema_inference/ast.json b/parser/testdata/02416_json_tuple_to_array_schema_inference/ast.json new file mode 100644 index 0000000000..885b13243a --- /dev/null +++ b/parser/testdata/02416_json_tuple_to_array_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_infer_array_of_dynamic_from_array_of_different_types", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02416_keeper_map/ast.json b/parser/testdata/02416_keeper_map/ast.json new file mode 100644 index 0000000000..53a0f207d2 --- /dev/null +++ b/parser/testdata/02416_keeper_map/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "02416_test", + "tables": [ + { + "table": "02416_test" + } + ], + "sync": true +} diff --git a/parser/testdata/02416_rocksdb_delete_update/ast.json b/parser/testdata/02416_rocksdb_delete_update/ast.json new file mode 100644 index 0000000000..cfc0566263 --- /dev/null +++ b/parser/testdata/02416_rocksdb_delete_update/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02416_rocksdb", + "tables": [ + { + "table": "02416_rocksdb" + } + ] +} diff --git a/parser/testdata/02416_row_policy_always_false_index/ast.json b/parser/testdata/02416_row_policy_always_false_index/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/02416_row_policy_always_false_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/02417_from_select_syntax/ast.json b/parser/testdata/02417_from_select_syntax/ast.json new file mode 100644 index 0000000000..b9e19ff2d2 --- /dev/null +++ b/parser/testdata/02417_from_select_syntax/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02417_json_object_each_row_format/ast.json b/parser/testdata/02417_json_object_each_row_format/ast.json new file mode 100644 index 0000000000..0a95182900 --- /dev/null +++ b/parser/testdata/02417_json_object_each_row_format/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_try_infer_numbers_from_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02417_keeper_map_create_drop/ast.json b/parser/testdata/02417_keeper_map_create_drop/ast.json new file mode 100644 index 0000000000..911a1cc286 --- /dev/null +++ b/parser/testdata/02417_keeper_map_create_drop/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "02417_test", + "tables": [ + { + "table": "02417_test" + } + ], + "sync": true +} diff --git a/parser/testdata/02417_null_variadic_behaviour/ast.json b/parser/testdata/02417_null_variadic_behaviour/ast.json new file mode 100644 index 0000000000..2f9ae48c7e --- /dev/null +++ b/parser/testdata/02417_null_variadic_behaviour/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "avgWeighted", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "t" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "t" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02418_aggregate_combinators/ast.json b/parser/testdata/02418_aggregate_combinators/ast.json new file mode 100644 index 0000000000..542c9597ff --- /dev/null +++ b/parser/testdata/02418_aggregate_combinators/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqStateMap", + "arguments": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02418_keeper_map_keys_limit/ast.json b/parser/testdata/02418_keeper_map_keys_limit/ast.json new file mode 100644 index 0000000000..b0f94d000a --- /dev/null +++ b/parser/testdata/02418_keeper_map_keys_limit/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "02418_test", + "tables": [ + { + "table": "02418_test" + } + ], + "sync": true +} diff --git a/parser/testdata/02418_tautological_if_index/ast.json b/parser/testdata/02418_tautological_if_index/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02418_tautological_if_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02419_contingency_array_nullable/ast.json b/parser/testdata/02419_contingency_array_nullable/ast.json new file mode 100644 index 0000000000..677ed21b4b --- /dev/null +++ b/parser/testdata/02419_contingency_array_nullable/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "contingency", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02420_final_setting_analyzer/ast.json b/parser/testdata/02420_final_setting_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02420_final_setting_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02420_key_condition_actions_dag_bug_40599/ast.json b/parser/testdata/02420_key_condition_actions_dag_bug_40599/ast.json new file mode 100644 index 0000000000..e628ec6e03 --- /dev/null +++ b/parser/testdata/02420_key_condition_actions_dag_bug_40599/ast.json @@ -0,0 +1,27 @@ +{ + "table": "tba", + "columns": [ + { + "name": "event_id", + "type": { + "name": "Int64" + } + }, + { + "name": "event_dt", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "event_id" + ] + } + ] +} diff --git a/parser/testdata/02421_decimal_in_precision_issue_41125/ast.json b/parser/testdata/02421_decimal_in_precision_issue_41125/ast.json new file mode 100644 index 0000000000..d13c9dc82c --- /dev/null +++ b/parser/testdata/02421_decimal_in_precision_issue_41125/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dtest", + "tables": [ + { + "table": "dtest" + } + ] +} diff --git a/parser/testdata/02421_exponential_join_rewrite_21557/ast.json b/parser/testdata/02421_exponential_join_rewrite_21557/ast.json new file mode 100644 index 0000000000..02b7e63a05 --- /dev/null +++ b/parser/testdata/02421_exponential_join_rewrite_21557/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "store_returns", + "tables": [ + { + "table": "store_returns" + } + ] +} diff --git a/parser/testdata/02421_json_decimals_as_strings/ast.json b/parser/testdata/02421_json_decimals_as_strings/ast.json new file mode 100644 index 0000000000..280ffb91ec --- /dev/null +++ b/parser/testdata/02421_json_decimals_as_strings/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimal128", + "arguments": [ + { + "type": "Float", + "value": 42.42 + }, + { + "type": "Integer", + "value": 5 + } + ], + "alias": "d" + } + ], + "settings": [ + { + "name": "output_format_json_quote_decimals", + "value": { + "type": "Integer", + "value": 1 + } + } + ], + "format": { + "parts": [ + "JSONEachRow" + ] + } + } + ] +} diff --git a/parser/testdata/02422_insert_different_granularity/ast.json b/parser/testdata/02422_insert_different_granularity/ast.json new file mode 100644 index 0000000000..ec6445d579 --- /dev/null +++ b/parser/testdata/02422_insert_different_granularity/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "=== ataptive granularity: table one -; table two + ===" + } + ] + } + ] +} diff --git a/parser/testdata/02422_msgpack_uuid_wrong_column/ast.json b/parser/testdata/02422_msgpack_uuid_wrong_column/ast.json new file mode 100644 index 0000000000..9b07110b40 --- /dev/null +++ b/parser/testdata/02422_msgpack_uuid_wrong_column/ast.json @@ -0,0 +1,41 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "02422_data", + "msgpack" + ] + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "f4cdd80d-5d15-4bdc-9527-adcca635ec1f" + } + ], + "alias": "uuid" + } + ], + "settings": [ + { + "name": "output_format_msgpack_uuid_representation", + "value": { + "type": "String", + "value": "ext" + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02422_read_numbers_as_strings/ast.json b/parser/testdata/02422_read_numbers_as_strings/ast.json new file mode 100644 index 0000000000..7ab2d39ecb --- /dev/null +++ b/parser/testdata/02422_read_numbers_as_strings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_read_numbers_as_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02425_categorical_information_value_properties/ast.json b/parser/testdata/02425_categorical_information_value_properties/ast.json new file mode 100644 index 0000000000..89654045e0 --- /dev/null +++ b/parser/testdata/02425_categorical_information_value_properties/ast.json @@ -0,0 +1,130 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "round", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "categoricalInformationValue", + "arguments": [ + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02426_create_suspicious_fixed_string/ast.json b/parser/testdata/02426_create_suspicious_fixed_string/ast.json new file mode 100644 index 0000000000..afa44ec05f --- /dev/null +++ b/parser/testdata/02426_create_suspicious_fixed_string/ast.json @@ -0,0 +1,35 @@ +{ + "table": "fixed_string", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "s", + "type": { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 256 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/02426_pod_array_overflow_2/ast.json b/parser/testdata/02426_pod_array_overflow_2/ast.json new file mode 100644 index 0000000000..8d0c597d1a --- /dev/null +++ b/parser/testdata/02426_pod_array_overflow_2/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "Native" + ] + }, + { + "type": "String", + "value": "\u0002\u0002\u0002k0#Array(Tuple(FixedString(1), Int64))\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000�����\u0000����������������\u0000�\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000d\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000�1?Vi\u0011�%" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02427_msan_group_array_resample/ast.json b/parser/testdata/02427_msan_group_array_resample/ast.json new file mode 100644 index 0000000000..19989c48ad --- /dev/null +++ b/parser/testdata/02427_msan_group_array_resample/ast.json @@ -0,0 +1,141 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "finalizeAggregation", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + }, + { + "parts": [ + "state" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupArrayResample", + "parameters": [ + { + "type": "Integer", + "value": 9223372036854775806 + }, + { + "type": "Integer", + "value": 1048575 + }, + { + "type": "Integer", + "value": 65537 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ] + }, + { + "name": "groupArrayStateResample", + "parameters": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 2147483648 + }, + { + "type": "Integer", + "value": 65535 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 9223372036854775806 + } + } + ], + "alias": "state" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02427_mutate_and_zero_copy_replication_zookeeper/ast.json b/parser/testdata/02427_mutate_and_zero_copy_replication_zookeeper/ast.json new file mode 100644 index 0000000000..2babe478d0 --- /dev/null +++ b/parser/testdata/02427_mutate_and_zero_copy_replication_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mutate_and_zero_copy_replication1", + "tables": [ + { + "table": "mutate_and_zero_copy_replication1" + } + ] +} diff --git a/parser/testdata/02428_combinators_with_over_statement/ast.json b/parser/testdata/02428_combinators_with_over_statement/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02428_combinators_with_over_statement/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02428_decimal_in_floating_point_literal/ast.json b/parser/testdata/02428_decimal_in_floating_point_literal/ast.json new file mode 100644 index 0000000000..6c59d5ca10 --- /dev/null +++ b/parser/testdata/02428_decimal_in_floating_point_literal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal_in_float_test", + "tables": [ + { + "table": "decimal_in_float_test" + } + ] +} diff --git a/parser/testdata/02428_delete_with_settings/ast.json b/parser/testdata/02428_delete_with_settings/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02428_delete_with_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02428_index_analysis_with_null_literal/ast.json b/parser/testdata/02428_index_analysis_with_null_literal/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02428_index_analysis_with_null_literal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02428_partial_sort_optimization_bug/ast.json b/parser/testdata/02428_partial_sort_optimization_bug/ast.json new file mode 100644 index 0000000000..aaeed02418 --- /dev/null +++ b/parser/testdata/02428_partial_sort_optimization_bug/ast.json @@ -0,0 +1,28 @@ +{ + "table": "partial_sort_opt_bug", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 1000 + } + } + ] +} diff --git a/parser/testdata/02429_combinators_in_array_reduce/ast.json b/parser/testdata/02429_combinators_in_array_reduce/ast.json new file mode 100644 index 0000000000..4e8f3a5421 --- /dev/null +++ b/parser/testdata/02429_combinators_in_array_reduce/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "uniqStateMap" + }, + { + "type": "Array", + "value": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02429_groupBitmap_chain_state/ast.json b/parser/testdata/02429_groupBitmap_chain_state/ast.json new file mode 100644 index 0000000000..4e7f9eedf0 --- /dev/null +++ b/parser/testdata/02429_groupBitmap_chain_state/ast.json @@ -0,0 +1,74 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupBitmapAnd", + "arguments": [ + { + "parts": [ + "z" + ] + } + ], + "alias": "y" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupBitmapState", + "arguments": [ + { + "parts": [ + "u" + ] + } + ], + "alias": "z" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 123 + }, + "alias": "u" + } + ] + } + ] + } + }, + "alias": "a1" + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02429_offset_pipeline_stuck_bug/ast.json b/parser/testdata/02429_offset_pipeline_stuck_bug/ast.json new file mode 100644 index 0000000000..5d98884836 --- /dev/null +++ b/parser/testdata/02429_offset_pipeline_stuck_bug/ast.json @@ -0,0 +1,31 @@ +{ + "table": "t", + "engine": { + "name": "Log" + }, + "as_select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 20 + } + } + ] + } +} diff --git a/parser/testdata/02430_bitmap_transform_exception_code/ast.json b/parser/testdata/02430_bitmap_transform_exception_code/ast.json new file mode 100644 index 0000000000..49eb659f0a --- /dev/null +++ b/parser/testdata/02430_bitmap_transform_exception_code/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitmapTransform", + "arguments": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "groupBitmapState" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02430_initialize_aggregation_with_combinators/ast.json b/parser/testdata/02430_initialize_aggregation_with_combinators/ast.json new file mode 100644 index 0000000000..0f91b42e2e --- /dev/null +++ b/parser/testdata/02430_initialize_aggregation_with_combinators/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "initializeAggregation", + "arguments": [ + { + "type": "String", + "value": "uniqStateMap" + }, + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02431_single_value_or_null_empty/ast.json b/parser/testdata/02431_single_value_or_null_empty/ast.json new file mode 100644 index 0000000000..226b2b0488 --- /dev/null +++ b/parser/testdata/02431_single_value_or_null_empty/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "singleValueOrNull", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + } + } + ] + }, + "with_totals": true + } + ] +} diff --git a/parser/testdata/02433_default_expression_operator_in/ast.json b/parser/testdata/02433_default_expression_operator_in/ast.json new file mode 100644 index 0000000000..1e3d83dfd9 --- /dev/null +++ b/parser/testdata/02433_default_expression_operator_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dep", + "tables": [ + { + "table": "dep" + } + ] +} diff --git a/parser/testdata/02436_system_zookeeper_context/ast.json b/parser/testdata/02436_system_zookeeper_context/ast.json new file mode 100644 index 0000000000..1450425ed6 --- /dev/null +++ b/parser/testdata/02436_system_zookeeper_context/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ] +} diff --git a/parser/testdata/02438_sync_replica_lightweight/ast.json b/parser/testdata/02438_sync_replica_lightweight/ast.json new file mode 100644 index 0000000000..540be6d2e3 --- /dev/null +++ b/parser/testdata/02438_sync_replica_lightweight/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_warmed_unmerged_parts_seconds", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02439_merge_selecting_partitions/ast.json b/parser/testdata/02439_merge_selecting_partitions/ast.json new file mode 100644 index 0000000000..790bc2a244 --- /dev/null +++ b/parser/testdata/02439_merge_selecting_partitions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rmt", + "tables": [ + { + "table": "rmt" + } + ] +} diff --git a/parser/testdata/02440_mutations_finalization/ast.json b/parser/testdata/02440_mutations_finalization/ast.json new file mode 100644 index 0000000000..58cd185b15 --- /dev/null +++ b/parser/testdata/02440_mutations_finalization/ast.json @@ -0,0 +1,30 @@ +{ + "table": "mut", + "columns": [ + { + "name": "n", + "type": { + "name": "int" + } + } + ], + "engine": { + "name": "ReplicatedMergeTree", + "parameters": [ + { + "type": "String", + "value": "/test/02440/{database}/mut" + }, + { + "type": "String", + "value": "1" + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02441_alter_delete_and_drop_column/ast.json b/parser/testdata/02441_alter_delete_and_drop_column/ast.json new file mode 100644 index 0000000000..4a82d42ba3 --- /dev/null +++ b/parser/testdata/02441_alter_delete_and_drop_column/ast.json @@ -0,0 +1,44 @@ +{ + "table": "mut", + "columns": [ + { + "name": "n", + "type": { + "name": "int" + } + }, + { + "name": "m", + "type": { + "name": "int" + } + }, + { + "name": "k", + "type": { + "name": "int" + } + } + ], + "engine": { + "name": "ReplicatedMergeTree", + "parameters": [ + { + "type": "String", + "value": "/test/02441/{database}/mut" + }, + { + "type": "String", + "value": "1" + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "n" + ] + } + ] +} diff --git a/parser/testdata/02442_auxiliary_zookeeper_endpoint_id/ast.json b/parser/testdata/02442_auxiliary_zookeeper_endpoint_id/ast.json new file mode 100644 index 0000000000..6c43eb5c43 --- /dev/null +++ b/parser/testdata/02442_auxiliary_zookeeper_endpoint_id/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1_r1", + "tables": [ + { + "table": "t1_r1" + } + ], + "sync": true +} diff --git a/parser/testdata/02448_clone_replica_lost_part/ast.json b/parser/testdata/02448_clone_replica_lost_part/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/02448_clone_replica_lost_part/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02449_check_dependencies_and_table_shutdown/ast.json b/parser/testdata/02449_check_dependencies_and_table_shutdown/ast.json new file mode 100644 index 0000000000..e6e111e024 --- /dev/null +++ b/parser/testdata/02449_check_dependencies_and_table_shutdown/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table", + "tables": [ + { + "table": "table" + } + ] +} diff --git a/parser/testdata/02451_variadic_null_garbage_data/ast.json b/parser/testdata/02451_variadic_null_garbage_data/ast.json new file mode 100644 index 0000000000..96e21289b0 --- /dev/null +++ b/parser/testdata/02451_variadic_null_garbage_data/ast.json @@ -0,0 +1,106 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "argMax", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "n" + ] + }, + { + "parts": [ + "n" + ] + } + ] + }, + { + "parts": [ + "n" + ] + } + ], + "alias": "t" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "t" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e=", + "right": { + "type": "Integer", + "value": 100 + } + }, + { + "type": "Null", + "value": null + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "n" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02452_check_low_cardinality/ast.json b/parser/testdata/02452_check_low_cardinality/ast.json new file mode 100644 index 0000000000..e6a5a76e97 --- /dev/null +++ b/parser/testdata/02452_check_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_low_cardinality_string", + "tables": [ + { + "table": "test_low_cardinality_string" + } + ] +} diff --git a/parser/testdata/02452_json_utf8_validation/ast.json b/parser/testdata/02452_json_utf8_validation/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/02452_json_utf8_validation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02453_check_path_in_errors_logger/ast.json b/parser/testdata/02453_check_path_in_errors_logger/ast.json new file mode 100644 index 0000000000..abcd82f8d6 --- /dev/null +++ b/parser/testdata/02453_check_path_in_errors_logger/ast.json @@ -0,0 +1,40 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "02453_data", + "jsonl" + ] + }, + { + "parts": [ + "TSV" + ] + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02454_compressed_marks_in_compact_part/ast.json b/parser/testdata/02454_compressed_marks_in_compact_part/ast.json new file mode 100644 index 0000000000..4961807eda --- /dev/null +++ b/parser/testdata/02454_compressed_marks_in_compact_part/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "cc", + "tables": [ + { + "table": "cc" + } + ], + "sync": true +} diff --git a/parser/testdata/02454_disable_mergetree_with_lightweight_delete_column/ast.json b/parser/testdata/02454_disable_mergetree_with_lightweight_delete_column/ast.json new file mode 100644 index 0000000000..c87116bbf0 --- /dev/null +++ b/parser/testdata/02454_disable_mergetree_with_lightweight_delete_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_row_exists", + "tables": [ + { + "table": "t_row_exists" + } + ] +} diff --git a/parser/testdata/02454_json_object_each_row_column_for_object_name/ast.json b/parser/testdata/02454_json_object_each_row_column_for_object_name/ast.json new file mode 100644 index 0000000000..3420338ae5 --- /dev/null +++ b/parser/testdata/02454_json_object_each_row_column_for_object_name/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "format_json_object_each_row_column_for_object_name", + "value": { + "type": "String", + "value": "name" + } + } + ] +} diff --git a/parser/testdata/02455_count_state_asterisk/ast.json b/parser/testdata/02455_count_state_asterisk/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/02455_count_state_asterisk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/02455_extract_fixed_string_from_nested_json/ast.json b/parser/testdata/02455_extract_fixed_string_from_nested_json/ast.json new file mode 100644 index 0000000000..7bf794bc73 --- /dev/null +++ b/parser/testdata/02455_extract_fixed_string_from_nested_json/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_fixed_string_nested_json", + "tables": [ + { + "table": "test_fixed_string_nested_json" + } + ] +} diff --git a/parser/testdata/02456_BLAKE3_hash_function_test/ast.json b/parser/testdata/02456_BLAKE3_hash_function_test/ast.json new file mode 100644 index 0000000000..38d20afdc5 --- /dev/null +++ b/parser/testdata/02456_BLAKE3_hash_function_test/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "BLAKE3", + "arguments": [ + { + "type": "String", + "value": "test_1" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02456_aggregate_state_conversion/ast.json b/parser/testdata/02456_aggregate_state_conversion/ast.json new file mode 100644 index 0000000000..3363c10100 --- /dev/null +++ b/parser/testdata/02456_aggregate_state_conversion/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "expr": { + "parts": [ + "x" + ] + }, + "type": { + "name": "AggregateFunction(sum, Decimal(50, 10))" + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "String", + "value": "sumState" + }, + { + "type": "Array", + "value": [ + { + "name": "toDecimal256", + "arguments": [ + { + "type": "String", + "value": "0.0000010.000001" + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ], + "alias": "x" + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "x" + ] + } + ] + } + ] +} diff --git a/parser/testdata/02456_alter-nullable-column-bag-2/ast.json b/parser/testdata/02456_alter-nullable-column-bag-2/ast.json new file mode 100644 index 0000000000..2759abc05b --- /dev/null +++ b/parser/testdata/02456_alter-nullable-column-bag-2/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ], + "sync": true +} diff --git a/parser/testdata/02456_alter-nullable-column-bag/ast.json b/parser/testdata/02456_alter-nullable-column-bag/ast.json new file mode 100644 index 0000000000..a7892c088a --- /dev/null +++ b/parser/testdata/02456_alter-nullable-column-bag/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "column_modify_test", + "tables": [ + { + "table": "column_modify_test" + } + ] +} diff --git a/parser/testdata/02456_datetime_schema_inference/ast.json b/parser/testdata/02456_datetime_schema_inference/ast.json new file mode 100644 index 0000000000..83991ec566 --- /dev/null +++ b/parser/testdata/02456_datetime_schema_inference/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "type": "String", + "value": "TSV" + }, + { + "type": "String", + "value": "222222222222222" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02456_keeper_retries_during_insert/ast.json b/parser/testdata/02456_keeper_retries_during_insert/ast.json new file mode 100644 index 0000000000..016a716b2f --- /dev/null +++ b/parser/testdata/02456_keeper_retries_during_insert/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "keeper_retries_r1", + "tables": [ + { + "table": "keeper_retries_r1" + } + ], + "sync": true +} diff --git a/parser/testdata/02456_summing_mt_lc/ast.json b/parser/testdata/02456_summing_mt_lc/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02456_summing_mt_lc/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02457_filesystem_function/ast.json b/parser/testdata/02457_filesystem_function/ast.json new file mode 100644 index 0000000000..253f155549 --- /dev/null +++ b/parser/testdata/02457_filesystem_function/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "name": "filesystemCapacity", + "arguments": [ + { + "type": "String", + "value": "s3_disk" + } + ] + }, + "op": "\u003e=", + "right": { + "name": "filesystemAvailable", + "arguments": [ + { + "type": "String", + "value": "s3_disk" + } + ] + } + }, + "op": "AND", + "right": { + "left": { + "name": "filesystemAvailable", + "arguments": [ + { + "type": "String", + "value": "s3_disk" + } + ] + }, + "op": "\u003e=", + "right": { + "name": "filesystemUnreserved", + "arguments": [ + { + "type": "String", + "value": "s3_disk" + } + ] + } + } + } + ] + } + ] +} diff --git a/parser/testdata/02457_key_condition_with_types_that_cannot_be_nullable/ast.json b/parser/testdata/02457_key_condition_with_types_that_cannot_be_nullable/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02457_key_condition_with_types_that_cannot_be_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02457_morton_coding/ast.json b/parser/testdata/02457_morton_coding/ast.json new file mode 100644 index 0000000000..46aa82ec30 --- /dev/null +++ b/parser/testdata/02457_morton_coding/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "----- START -----" + } + ] + } + ] +} diff --git a/parser/testdata/02457_morton_coding_with_mask/ast.json b/parser/testdata/02457_morton_coding_with_mask/ast.json new file mode 100644 index 0000000000..46aa82ec30 --- /dev/null +++ b/parser/testdata/02457_morton_coding_with_mask/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "----- START -----" + } + ] + } + ] +} diff --git a/parser/testdata/02457_parse_date_time_best_effort/ast.json b/parser/testdata/02457_parse_date_time_best_effort/ast.json new file mode 100644 index 0000000000..5a648cd4e3 --- /dev/null +++ b/parser/testdata/02457_parse_date_time_best_effort/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTimeBestEffort", + "arguments": [ + { + "type": "String", + "value": "01/12/2017, 18:31:44" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02458_datediff_date32/ast.json b/parser/testdata/02458_datediff_date32/ast.json new file mode 100644 index 0000000000..b66720c967 --- /dev/null +++ b/parser/testdata/02458_datediff_date32/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dateDiff", + "arguments": [ + { + "type": "String", + "value": "second" + }, + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-01" + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-02" + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02458_default_setting/ast.json b/parser/testdata/02458_default_setting/ast.json new file mode 100644 index 0000000000..b9b43c75cb --- /dev/null +++ b/parser/testdata/02458_default_setting/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "value" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "max_insert_block_size" + } + } + } + ] +} diff --git a/parser/testdata/02458_key_condition_not_like_prefix/ast.json b/parser/testdata/02458_key_condition_not_like_prefix/ast.json new file mode 100644 index 0000000000..7bd1ac0f2c --- /dev/null +++ b/parser/testdata/02458_key_condition_not_like_prefix/ast.json @@ -0,0 +1,21 @@ +{ + "table": "data", + "columns": [ + { + "name": "str", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "str" + ] + } + ] +} diff --git a/parser/testdata/02458_relax_too_many_parts/ast.json b/parser/testdata/02458_relax_too_many_parts/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02458_relax_too_many_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02458_use_structure_from_insertion_table/ast.json b/parser/testdata/02458_use_structure_from_insertion_table/ast.json new file mode 100644 index 0000000000..ab48bdc6f0 --- /dev/null +++ b/parser/testdata/02458_use_structure_from_insertion_table/ast.json @@ -0,0 +1,45 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "02458_data", + "jsonl" + ] + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Null", + "value": null + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 42 + }, + "alias": "y" + } + ], + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02459_group_by_all/ast.json b/parser/testdata/02459_group_by_all/ast.json new file mode 100644 index 0000000000..d5fbfd0324 --- /dev/null +++ b/parser/testdata/02459_group_by_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "group_by_all", + "tables": [ + { + "table": "group_by_all" + } + ] +} diff --git a/parser/testdata/02459_low_cardinality_uint128_aggregator/ast.json b/parser/testdata/02459_low_cardinality_uint128_aggregator/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02459_low_cardinality_uint128_aggregator/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02459_materialized_view_default_value/ast.json b/parser/testdata/02459_materialized_view_default_value/ast.json new file mode 100644 index 0000000000..7525c60465 --- /dev/null +++ b/parser/testdata/02459_materialized_view_default_value/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "session", + "tables": [ + { + "table": "session" + } + ] +} diff --git a/parser/testdata/02459_read_in_order_bufer/ast.json b/parser/testdata/02459_read_in_order_bufer/ast.json new file mode 100644 index 0000000000..2fa974ab3b --- /dev/null +++ b/parser/testdata/02459_read_in_order_bufer/ast.json @@ -0,0 +1,21 @@ +{ + "table": "mytable_stored", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ] +} diff --git a/parser/testdata/02460_prewhere_row_level_policy/ast.json b/parser/testdata/02460_prewhere_row_level_policy/ast.json new file mode 100644 index 0000000000..179d3db27a --- /dev/null +++ b/parser/testdata/02460_prewhere_row_level_policy/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "row_level_policy_prewhere", + "tables": [ + { + "table": "row_level_policy_prewhere" + } + ] +} diff --git a/parser/testdata/02461_alter_update_respect_part_column_type_bug/ast.json b/parser/testdata/02461_alter_update_respect_part_column_type_bug/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/02461_alter_update_respect_part_column_type_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/02461_join_lc_issue_42380/ast.json b/parser/testdata/02461_join_lc_issue_42380/ast.json new file mode 100644 index 0000000000..2ad952af76 --- /dev/null +++ b/parser/testdata/02461_join_lc_issue_42380/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1__fuzz_13", + "tables": [ + { + "table": "t1__fuzz_13" + } + ] +} diff --git a/parser/testdata/02461_mullable_pk_monotonicity_bug/ast.json b/parser/testdata/02461_mullable_pk_monotonicity_bug/ast.json new file mode 100644 index 0000000000..5eb42ecb61 --- /dev/null +++ b/parser/testdata/02461_mullable_pk_monotonicity_bug/ast.json @@ -0,0 +1,43 @@ +{ + "table": "tab", + "columns": [ + { + "name": "x", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ], + "settings": [ + { + "name": "allow_nullable_key", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02461_welch_t_test_fuzz/ast.json b/parser/testdata/02461_welch_t_test_fuzz/ast.json new file mode 100644 index 0000000000..9119bf9957 --- /dev/null +++ b/parser/testdata/02461_welch_t_test_fuzz/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "welch_ttest__fuzz_7", + "tables": [ + { + "table": "welch_ttest__fuzz_7" + } + ] +} diff --git a/parser/testdata/02462_match_regexp_pk/ast.json b/parser/testdata/02462_match_regexp_pk/ast.json new file mode 100644 index 0000000000..6be5381b4e --- /dev/null +++ b/parser/testdata/02462_match_regexp_pk/ast.json @@ -0,0 +1,30 @@ +{ + "table": "mt_match_pk", + "columns": [ + { + "name": "v", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "v" + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02462_number_to_datetype/ast.json b/parser/testdata/02462_number_to_datetype/ast.json new file mode 100644 index 0000000000..4b13f23125 --- /dev/null +++ b/parser/testdata/02462_number_to_datetype/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toYYYYMMDD", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "parts": [ + "recordTimestamp" + ] + }, + { + "type": "String", + "value": "Europe/Amsterdam" + } + ] + } + ] + }, + { + "name": "toDate", + "arguments": [ + { + "parts": [ + "recordTimestamp" + ] + }, + { + "type": "String", + "value": "Europe/Amsterdam" + } + ] + }, + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 1665519765 + } + ], + "alias": "recordTimestamp" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "recordTimestamp" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02463_julian_day_ubsan/ast.json b/parser/testdata/02463_julian_day_ubsan/ast.json new file mode 100644 index 0000000000..1a79d0fc96 --- /dev/null +++ b/parser/testdata/02463_julian_day_ubsan/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "fromModifiedJulianDay", + "arguments": [ + { + "expr": { + "type": "Integer", + "value": 9223372036854775807 + }, + "type": { + "name": "Int64" + }, + "operator_syntax": true + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02464_decimal_scale_buffer_overflow/ast.json b/parser/testdata/02464_decimal_scale_buffer_overflow/ast.json new file mode 100644 index 0000000000..028290e94b --- /dev/null +++ b/parser/testdata/02464_decimal_scale_buffer_overflow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "series__fuzz_35", + "tables": [ + { + "table": "series__fuzz_35" + } + ] +} diff --git a/parser/testdata/02465_limit_trivial_max_rows_to_read/ast.json b/parser/testdata/02465_limit_trivial_max_rows_to_read/ast.json new file mode 100644 index 0000000000..aa34e4a9db --- /dev/null +++ b/parser/testdata/02465_limit_trivial_max_rows_to_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_max_rows_to_read", + "tables": [ + { + "table": "t_max_rows_to_read" + } + ] +} diff --git a/parser/testdata/02467_set_with_lowcardinality_type/ast.json b/parser/testdata/02467_set_with_lowcardinality_type/ast.json new file mode 100644 index 0000000000..45510cacc2 --- /dev/null +++ b/parser/testdata/02467_set_with_lowcardinality_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bloom_filter_nullable_index__fuzz_0", + "tables": [ + { + "table": "bloom_filter_nullable_index__fuzz_0" + } + ] +} diff --git a/parser/testdata/02468_has_any_tuple/ast.json b/parser/testdata/02468_has_any_tuple/ast.json new file mode 100644 index 0000000000..042408a7ce --- /dev/null +++ b/parser/testdata/02468_has_any_tuple/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "name": "toUInt8", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + }, + "op": "=", + "right": { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "name": "toInt16", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02469_interval_msan/ast.json b/parser/testdata/02469_interval_msan/ast.json new file mode 100644 index 0000000000..1231e016c6 --- /dev/null +++ b/parser/testdata/02469_interval_msan/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "now" + }, + "op": "+", + "right": { + "expr": { + "type": "Integer", + "value": 1 + }, + "type": { + "name": "Int128" + }, + "operator_syntax": true + } + } + ] + } + ] +} diff --git a/parser/testdata/02470_suspicious_low_cardinality_msan/ast.json b/parser/testdata/02470_suspicious_low_cardinality_msan/ast.json new file mode 100644 index 0000000000..1b383ccf63 --- /dev/null +++ b/parser/testdata/02470_suspicious_low_cardinality_msan/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alias_2__fuzz_25", + "tables": [ + { + "table": "alias_2__fuzz_25" + } + ] +} diff --git a/parser/testdata/02471_wrong_date_monotonicity/ast.json b/parser/testdata/02471_wrong_date_monotonicity/ast.json new file mode 100644 index 0000000000..f076c8c186 --- /dev/null +++ b/parser/testdata/02471_wrong_date_monotonicity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tdm__fuzz_23", + "tables": [ + { + "table": "tdm__fuzz_23" + } + ] +} diff --git a/parser/testdata/02473_extract_low_cardinality_from_json/ast.json b/parser/testdata/02473_extract_low_cardinality_from_json/ast.json new file mode 100644 index 0000000000..0d59213592 --- /dev/null +++ b/parser/testdata/02473_extract_low_cardinality_from_json/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONExtract", + "arguments": [ + { + "type": "String", + "value": "{\"a\" : {\"b\" : {\"c\" : 1, \"d\" : \"str\"}}}" + }, + { + "type": "String", + "value": "Tuple( a LowCardinality(String), b LowCardinality(String), c LowCardinality(String), d LowCardinality(String))" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02473_map_element_nullable/ast.json b/parser/testdata/02473_map_element_nullable/ast.json new file mode 100644 index 0000000000..b73bd89e88 --- /dev/null +++ b/parser/testdata/02473_map_element_nullable/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "with": [ + { + "name": "m", + "query": { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Null", + "value": null + } + ] + } + } + ], + "columns": [ + { + "array": { + "parts": [ + "m" + ] + }, + "index": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + { + "array": { + "parts": [ + "m" + ] + }, + "index": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + }, + { + "array": { + "parts": [ + "m" + ] + }, + "index": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02473_prewhere_with_bigint/ast.json b/parser/testdata/02473_prewhere_with_bigint/ast.json new file mode 100644 index 0000000000..af8ba7883d --- /dev/null +++ b/parser/testdata/02473_prewhere_with_bigint/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prewhere_int128", + "tables": [ + { + "table": "prewhere_int128" + } + ] +} diff --git a/parser/testdata/02474_analyzer_subqueries_table_expression_modifiers/ast.json b/parser/testdata/02474_analyzer_subqueries_table_expression_modifiers/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02474_analyzer_subqueries_table_expression_modifiers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02474_extract_fixedstring_from_json/ast.json b/parser/testdata/02474_extract_fixedstring_from_json/ast.json new file mode 100644 index 0000000000..e3866ea96d --- /dev/null +++ b/parser/testdata/02474_extract_fixedstring_from_json/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONExtract", + "arguments": [ + { + "type": "String", + "value": "{\"a\": 123456}" + }, + { + "type": "String", + "value": "FixedString(11)" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02474_timeDiff_UTCTimestamp/ast.json b/parser/testdata/02474_timeDiff_UTCTimestamp/ast.json new file mode 100644 index 0000000000..8c242624e3 --- /dev/null +++ b/parser/testdata/02474_timeDiff_UTCTimestamp/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "name": "dateDiff", + "arguments": [ + { + "type": "String", + "value": "second" + }, + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-01" + } + ] + }, + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-02" + } + ] + } + ] + }, + "op": "-", + "right": { + "name": "timeDiff", + "arguments": [ + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-01" + } + ] + }, + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-02" + } + ] + } + ] + } + }, + "op": "\u003c=", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] +} diff --git a/parser/testdata/02474_unhex_in_fix_string/ast.json b/parser/testdata/02474_unhex_in_fix_string/ast.json new file mode 100644 index 0000000000..7acdbc829e --- /dev/null +++ b/parser/testdata/02474_unhex_in_fix_string/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "unhex_in_fix_string_table", + "tables": [ + { + "table": "unhex_in_fix_string_table" + } + ] +} diff --git a/parser/testdata/02475_analysis_of_variance/ast.json b/parser/testdata/02475_analysis_of_variance/ast.json new file mode 100644 index 0000000000..38485aeae4 --- /dev/null +++ b/parser/testdata/02475_analysis_of_variance/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "analysisOfVariance", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/02475_analyzer_join_tree_subquery/ast.json b/parser/testdata/02475_analyzer_join_tree_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02475_analyzer_join_tree_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02475_analyzer_subquery_compound_expression/ast.json b/parser/testdata/02475_analyzer_subquery_compound_expression/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02475_analyzer_subquery_compound_expression/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02475_bad_cast_low_cardinality_to_string_bug/ast.json b/parser/testdata/02475_bad_cast_low_cardinality_to_string_bug/ast.json new file mode 100644 index 0000000000..0afe441fc6 --- /dev/null +++ b/parser/testdata/02475_bad_cast_low_cardinality_to_string_bug/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "extract", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "expr": { + "type": "String", + "value": "aaaaaa" + }, + "type": { + "name": "LowCardinality(String)" + } + } + ] + }, + { + "type": "String", + "value": "\\w" + } + ] + }, + { + "name": "extract", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "expr": { + "type": "String", + "value": "bbbbb" + }, + "type": { + "name": "LowCardinality(String)" + } + } + ] + }, + { + "type": "String", + "value": "\\w*" + } + ] + } + ], + "alias": "res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02475_date_time_schema_inference_bug/ast.json b/parser/testdata/02475_date_time_schema_inference_bug/ast.json new file mode 100644 index 0000000000..ccfe1df9c1 --- /dev/null +++ b/parser/testdata/02475_date_time_schema_inference_bug/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "CSV" + ] + }, + { + "type": "String", + "value": "\"\"" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02475_join_bug_42832/ast.json b/parser/testdata/02475_join_bug_42832/ast.json new file mode 100644 index 0000000000..d7104b4726 --- /dev/null +++ b/parser/testdata/02475_join_bug_42832/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab1", + "tables": [ + { + "table": "tab1" + } + ] +} diff --git a/parser/testdata/02475_or_function_alias_and_const_where/ast.json b/parser/testdata/02475_or_function_alias_and_const_where/ast.json new file mode 100644 index 0000000000..95d578b0aa --- /dev/null +++ b/parser/testdata/02475_or_function_alias_and_const_where/ast.json @@ -0,0 +1,70 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + } + }, + "alias": "value" + }, + { + "name": "sum", + "arguments": [ + { + "parts": [ + "value" + ] + } + ], + "over": {} + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "where": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02475_positive_modulo/ast.json b/parser/testdata/02475_positive_modulo/ast.json new file mode 100644 index 0000000000..d729df28c8 --- /dev/null +++ b/parser/testdata/02475_positive_modulo/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "positive_modulo", + "arguments": [ + { + "type": "Integer", + "value": 1000 + }, + { + "type": "Integer", + "value": 32 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02475_precise_decimal_arithmetics/ast.json b/parser/testdata/02475_precise_decimal_arithmetics/ast.json new file mode 100644 index 0000000000..337ed2e484 --- /dev/null +++ b/parser/testdata/02475_precise_decimal_arithmetics/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "divideDecimal", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "name": "toDecimal128", + "arguments": [ + { + "type": "Float", + "value": 11.123456 + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02475_split_with_max_substrings/ast.json b/parser/testdata/02475_split_with_max_substrings/ast.json new file mode 100644 index 0000000000..b4db085d98 --- /dev/null +++ b/parser/testdata/02475_split_with_max_substrings/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02476_analyzer_join_with_unused_columns/ast.json b/parser/testdata/02476_analyzer_join_with_unused_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02476_analyzer_join_with_unused_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02476_fuse_sum_count/ast.json b/parser/testdata/02476_fuse_sum_count/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02476_fuse_sum_count/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02476_query_parameters_insert/ast.json b/parser/testdata/02476_query_parameters_insert/ast.json new file mode 100644 index 0000000000..65ee3ae946 --- /dev/null +++ b/parser/testdata/02476_query_parameters_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02476_query_parameters_insert", + "tables": [ + { + "table": "02476_query_parameters_insert" + } + ] +} diff --git a/parser/testdata/02476_query_parameters_without_serialisation/ast.json b/parser/testdata/02476_query_parameters_without_serialisation/ast.json new file mode 100644 index 0000000000..74ab93b32e --- /dev/null +++ b/parser/testdata/02476_query_parameters_without_serialisation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "param_num", + "value": { + "type": "Integer", + "value": 42 + } + } + ] +} diff --git a/parser/testdata/02477_age/ast.json b/parser/testdata/02477_age/ast.json new file mode 100644 index 0000000000..bd8c8d97aa --- /dev/null +++ b/parser/testdata/02477_age/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Various intervals" + } + ] + } + ] +} diff --git a/parser/testdata/02477_age_date32/ast.json b/parser/testdata/02477_age_date32/ast.json new file mode 100644 index 0000000000..c30b098ff2 --- /dev/null +++ b/parser/testdata/02477_age_date32/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "age", + "arguments": [ + { + "type": "String", + "value": "second" + }, + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-01" + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "1927-01-02" + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02477_age_datetime64/ast.json b/parser/testdata/02477_age_datetime64/ast.json new file mode 100644 index 0000000000..e8de0a7e08 --- /dev/null +++ b/parser/testdata/02477_age_datetime64/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "age", + "arguments": [ + { + "type": "String", + "value": "second" + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1927-01-01 00:00:00" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1927-01-01 00:00:10" + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02477_analyzer_array_join_with_join/ast.json b/parser/testdata/02477_analyzer_array_join_with_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02477_analyzer_array_join_with_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02477_analyzer_ast_key_condition_crash/ast.json b/parser/testdata/02477_analyzer_ast_key_condition_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02477_analyzer_ast_key_condition_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02477_exists_fuzz_43478/ast.json b/parser/testdata/02477_exists_fuzz_43478/ast.json new file mode 100644 index 0000000000..5e6eb49fdf --- /dev/null +++ b/parser/testdata/02477_exists_fuzz_43478/ast.json @@ -0,0 +1,21 @@ +{ + "table": "test_rows_compact_part__fuzz_11", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/02477_fuse_quantiles/ast.json b/parser/testdata/02477_fuse_quantiles/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02477_fuse_quantiles/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02477_invalid_reads/ast.json b/parser/testdata/02477_invalid_reads/ast.json new file mode 100644 index 0000000000..012a21f0e8 --- /dev/null +++ b/parser/testdata/02477_invalid_reads/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "finalizeAggregation", + "arguments": [ + { + "expr": { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "0F00000030" + } + ] + }, + "type": { + "name": "AggregateFunction(min, String)" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02477_logical_expressions_optimizer_issue_89803/ast.json b/parser/testdata/02477_logical_expressions_optimizer_issue_89803/ast.json new file mode 100644 index 0000000000..a662e66d57 --- /dev/null +++ b/parser/testdata/02477_logical_expressions_optimizer_issue_89803/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Integer" + } + ] + } + ] +} diff --git a/parser/testdata/02477_logical_expressions_optimizer_low_cardinality/ast.json b/parser/testdata/02477_logical_expressions_optimizer_low_cardinality/ast.json new file mode 100644 index 0000000000..103666a0e2 --- /dev/null +++ b/parser/testdata/02477_logical_expressions_optimizer_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_logical_expressions_optimizer_low_cardinality", + "tables": [ + { + "table": "t_logical_expressions_optimizer_low_cardinality" + } + ] +} diff --git a/parser/testdata/02477_single_value_data_string_regression/ast.json b/parser/testdata/02477_single_value_data_string_regression/ast.json new file mode 100644 index 0000000000..9f637a10c8 --- /dev/null +++ b/parser/testdata/02477_single_value_data_string_regression/ast.json @@ -0,0 +1,20 @@ +{ + "table": "argmaxstate_hex_small", + "columns": [ + { + "name": "v", + "type": { + "name": "String" + } + }, + { + "name": "state", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "TinyLog" + } +} diff --git a/parser/testdata/02478_analyzer_table_expression_aliases/ast.json b/parser/testdata/02478_analyzer_table_expression_aliases/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02478_analyzer_table_expression_aliases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02478_factorial/ast.json b/parser/testdata/02478_factorial/ast.json new file mode 100644 index 0000000000..14005368f1 --- /dev/null +++ b/parser/testdata/02478_factorial/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "factorial", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02478_projection_and_alter_low_cardinality/ast.json b/parser/testdata/02478_projection_and_alter_low_cardinality/ast.json new file mode 100644 index 0000000000..e8443b5f84 --- /dev/null +++ b/parser/testdata/02478_projection_and_alter_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testing", + "tables": [ + { + "table": "testing" + } + ] +} diff --git a/parser/testdata/02478_projection_with_group_by_alter/ast.json b/parser/testdata/02478_projection_with_group_by_alter/ast.json new file mode 100644 index 0000000000..e8443b5f84 --- /dev/null +++ b/parser/testdata/02478_projection_with_group_by_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testing", + "tables": [ + { + "table": "testing" + } + ] +} diff --git a/parser/testdata/02479_analyzer_aggregation_crash/ast.json b/parser/testdata/02479_analyzer_aggregation_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02479_analyzer_aggregation_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02479_analyzer_aggregation_totals_rollup_crash_fix/ast.json b/parser/testdata/02479_analyzer_aggregation_totals_rollup_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02479_analyzer_aggregation_totals_rollup_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02479_analyzer_join_with_constants/ast.json b/parser/testdata/02479_analyzer_join_with_constants/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02479_analyzer_join_with_constants/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02479_if_with_null_and_cullable_const/ast.json b/parser/testdata/02479_if_with_null_and_cullable_const/ast.json new file mode 100644 index 0000000000..43dd00ee4e --- /dev/null +++ b/parser/testdata/02479_if_with_null_and_cullable_const/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Null", + "value": null + }, + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02479_mysql_connect_to_self/ast.json b/parser/testdata/02479_mysql_connect_to_self/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/02479_mysql_connect_to_self/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/02479_nullable_primary_key_non_first_column/ast.json b/parser/testdata/02479_nullable_primary_key_non_first_column/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02479_nullable_primary_key_non_first_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02480_analyzer_alias_nullptr/ast.json b/parser/testdata/02480_analyzer_alias_nullptr/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02480_analyzer_alias_nullptr/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02480_every_asynchronous_metric_must_have_documentation/ast.json b/parser/testdata/02480_every_asynchronous_metric_must_have_documentation/ast.json new file mode 100644 index 0000000000..05f2c324e9 --- /dev/null +++ b/parser/testdata/02480_every_asynchronous_metric_must_have_documentation/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "metric" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "asynchronous_metrics" + } + } + } + ] + }, + "where": { + "left": { + "name": "length", + "arguments": [ + { + "parts": [ + "description" + ] + } + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 10 + } + } + } + ] +} diff --git a/parser/testdata/02480_interval_casting_and_subquery/ast.json b/parser/testdata/02480_interval_casting_and_subquery/ast.json new file mode 100644 index 0000000000..97901b448e --- /dev/null +++ b/parser/testdata/02480_interval_casting_and_subquery/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toIntervalSecond", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ], + "alias": "interval" + }, + { + "expr": { + "left": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2017-01-01 00:00:00" + } + ] + }, + "op": "+", + "right": { + "parts": [ + "interval" + ] + } + }, + "alias": "res" + } + ] + } + ] +} diff --git a/parser/testdata/02480_max_map_null_totals/ast.json b/parser/testdata/02480_max_map_null_totals/ast.json new file mode 100644 index 0000000000..2be23f34cd --- /dev/null +++ b/parser/testdata/02480_max_map_null_totals/ast.json @@ -0,0 +1,97 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "maxMap", + "arguments": [ + { + "type": "Array", + "value": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + }, + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 4 + } + }, + "op": "-", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + }, + { + "type": "Array", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02480_parse_date_time_best_effort_math_overflow/ast.json b/parser/testdata/02480_parse_date_time_best_effort_math_overflow/ast.json new file mode 100644 index 0000000000..1c16388914 --- /dev/null +++ b/parser/testdata/02480_parse_date_time_best_effort_math_overflow/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "TSV" + ] + }, + { + "type": "String", + "value": "9279104479c7da1114861274de32208ead91b60e" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "date_time_input_format", + "value": { + "type": "String", + "value": "best_effort" + } + } + ] + } + ] +} diff --git a/parser/testdata/02480_s3_support_wildcard/ast.json b/parser/testdata/02480_s3_support_wildcard/ast.json new file mode 100644 index 0000000000..2b537348ed --- /dev/null +++ b/parser/testdata/02480_s3_support_wildcard/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02480_support_wildcard_write", + "tables": [ + { + "table": "test_02480_support_wildcard_write" + } + ] +} diff --git a/parser/testdata/02480_suspicious_lowcard_in_key/ast.json b/parser/testdata/02480_suspicious_lowcard_in_key/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02480_suspicious_lowcard_in_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02480_tlp_nan/ast.json b/parser/testdata/02480_tlp_nan/ast.json new file mode 100644 index 0000000000..4aea7fa803 --- /dev/null +++ b/parser/testdata/02480_tlp_nan/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sqrt", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ], + "alias": "x" + }, + { + "op": "NOT", + "operand": { + "parts": [ + "x" + ] + } + }, + { + "op": "NOT", + "operand": { + "op": "NOT", + "operand": { + "parts": [ + "x" + ] + } + } + }, + { + "expr": { + "op": "NOT", + "operand": { + "parts": [ + "x" + ] + } + } + } + ], + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02481_aggregation_in_order_plan/ast.json b/parser/testdata/02481_aggregation_in_order_plan/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02481_aggregation_in_order_plan/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02481_analyzer_join_alias_unknown_identifier_crash/ast.json b/parser/testdata/02481_analyzer_join_alias_unknown_identifier_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02481_analyzer_join_alias_unknown_identifier_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02481_analyzer_optimize_aggregation_arithmetics/ast.json b/parser/testdata/02481_analyzer_optimize_aggregation_arithmetics/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02481_analyzer_optimize_aggregation_arithmetics/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02481_analyzer_optimize_grouping_sets_keys/ast.json b/parser/testdata/02481_analyzer_optimize_grouping_sets_keys/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02481_analyzer_optimize_grouping_sets_keys/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02481_array_join_with_map/ast.json b/parser/testdata/02481_array_join_with_map/ast.json new file mode 100644 index 0000000000..8595d495ff --- /dev/null +++ b/parser/testdata/02481_array_join_with_map/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "arrays_test", + "tables": [ + { + "table": "arrays_test" + } + ] +} diff --git a/parser/testdata/02481_default_value_used_in_row_level_filter/ast.json b/parser/testdata/02481_default_value_used_in_row_level_filter/ast.json new file mode 100644 index 0000000000..17be654457 --- /dev/null +++ b/parser/testdata/02481_default_value_used_in_row_level_filter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_rlp", + "tables": [ + { + "table": "test_rlp" + } + ] +} diff --git a/parser/testdata/02481_inject_random_order_for_select_without_order_by/ast.json b/parser/testdata/02481_inject_random_order_for_select_without_order_by/ast.json new file mode 100644 index 0000000000..c47893ac26 --- /dev/null +++ b/parser/testdata/02481_inject_random_order_for_select_without_order_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "inject_random_order_for_select_without_order_by", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02481_low_cardinality_with_short_circuit_functins/ast.json b/parser/testdata/02481_low_cardinality_with_short_circuit_functins/ast.json new file mode 100644 index 0000000000..760e997a06 --- /dev/null +++ b/parser/testdata/02481_low_cardinality_with_short_circuit_functins/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "short_circuit_function_evaluation", + "value": { + "type": "String", + "value": "force_enable" + } + } + ] +} diff --git a/parser/testdata/02481_low_cardinality_with_short_circuit_functins_mutations/ast.json b/parser/testdata/02481_low_cardinality_with_short_circuit_functins_mutations/ast.json new file mode 100644 index 0000000000..9667b1b172 --- /dev/null +++ b/parser/testdata/02481_low_cardinality_with_short_circuit_functins_mutations/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "issue_46128", + "tables": [ + { + "table": "issue_46128" + } + ] +} diff --git a/parser/testdata/02481_merge_array_join_sample_by/ast.json b/parser/testdata/02481_merge_array_join_sample_by/ast.json new file mode 100644 index 0000000000..0ec8acd6f9 --- /dev/null +++ b/parser/testdata/02481_merge_array_join_sample_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02481_mergetree", + "tables": [ + { + "table": "02481_mergetree" + } + ] +} diff --git a/parser/testdata/02481_pk_analysis_with_enum_to_string/ast.json b/parser/testdata/02481_pk_analysis_with_enum_to_string/ast.json new file mode 100644 index 0000000000..cfd73492ff --- /dev/null +++ b/parser/testdata/02481_pk_analysis_with_enum_to_string/ast.json @@ -0,0 +1,529 @@ +{ + "table": "gen", + "columns": [ + { + "name": "repo_name", + "type": { + "name": "String" + } + }, + { + "name": "event_type", + "type": { + "name": "Enum8", + "parameters": [ + { + "left": { + "type": "String", + "value": "CommitCommentEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "type": "String", + "value": "CreateEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "left": { + "type": "String", + "value": "DeleteEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 3 + } + }, + { + "left": { + "type": "String", + "value": "ForkEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 4 + } + }, + { + "left": { + "type": "String", + "value": "GollumEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 5 + } + }, + { + "left": { + "type": "String", + "value": "IssueCommentEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 6 + } + }, + { + "left": { + "type": "String", + "value": "IssuesEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 7 + } + }, + { + "left": { + "type": "String", + "value": "MemberEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 8 + } + }, + { + "left": { + "type": "String", + "value": "PublicEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 9 + } + }, + { + "left": { + "type": "String", + "value": "PullRequestEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 10 + } + }, + { + "left": { + "type": "String", + "value": "PullRequestReviewCommentEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 11 + } + }, + { + "left": { + "type": "String", + "value": "PushEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 12 + } + }, + { + "left": { + "type": "String", + "value": "ReleaseEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 13 + } + }, + { + "left": { + "type": "String", + "value": "SponsorshipEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 14 + } + }, + { + "left": { + "type": "String", + "value": "WatchEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 15 + } + }, + { + "left": { + "type": "String", + "value": "GistEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 16 + } + }, + { + "left": { + "type": "String", + "value": "FollowEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 17 + } + }, + { + "left": { + "type": "String", + "value": "DownloadEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 18 + } + }, + { + "left": { + "type": "String", + "value": "PullRequestReviewEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 19 + } + }, + { + "left": { + "type": "String", + "value": "ForkApplyEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 20 + } + }, + { + "left": { + "type": "String", + "value": "Event" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 21 + } + }, + { + "left": { + "type": "String", + "value": "TeamAddEvent" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 22 + } + } + ], + "has_parentheses": true + } + }, + { + "name": "actor_login", + "type": { + "name": "String" + } + }, + { + "name": "created_at", + "type": { + "name": "DateTime" + } + }, + { + "name": "action", + "type": { + "name": "Enum8", + "parameters": [ + { + "left": { + "type": "String", + "value": "none" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "type": "String", + "value": "created" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "type": "String", + "value": "added" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "left": { + "type": "String", + "value": "edited" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 3 + } + }, + { + "left": { + "type": "String", + "value": "deleted" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 4 + } + }, + { + "left": { + "type": "String", + "value": "opened" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 5 + } + }, + { + "left": { + "type": "String", + "value": "closed" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 6 + } + }, + { + "left": { + "type": "String", + "value": "reopened" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 7 + } + }, + { + "left": { + "type": "String", + "value": "assigned" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 8 + } + }, + { + "left": { + "type": "String", + "value": "unassigned" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 9 + } + }, + { + "left": { + "type": "String", + "value": "labeled" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 10 + } + }, + { + "left": { + "type": "String", + "value": "unlabeled" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 11 + } + }, + { + "left": { + "type": "String", + "value": "review_requested" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 12 + } + }, + { + "left": { + "type": "String", + "value": "review_request_removed" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 13 + } + }, + { + "left": { + "type": "String", + "value": "synchronize" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 14 + } + }, + { + "left": { + "type": "String", + "value": "started" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 15 + } + }, + { + "left": { + "type": "String", + "value": "published" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 16 + } + }, + { + "left": { + "type": "String", + "value": "update" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 17 + } + }, + { + "left": { + "type": "String", + "value": "create" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 18 + } + }, + { + "left": { + "type": "String", + "value": "fork" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 19 + } + }, + { + "left": { + "type": "String", + "value": "merged" + }, + "op": "=", + "right": { + "type": "Integer", + "value": 20 + } + } + ], + "has_parentheses": true + } + }, + { + "name": "number", + "type": { + "name": "UInt32" + } + }, + { + "name": "merged_at", + "type": { + "name": "DateTime" + } + } + ], + "engine": { + "name": "GenerateRandom" + } +} diff --git a/parser/testdata/02481_prewhere_filtered_rows_div_by_zero/ast.json b/parser/testdata/02481_prewhere_filtered_rows_div_by_zero/ast.json new file mode 100644 index 0000000000..61d6551e5d --- /dev/null +++ b/parser/testdata/02481_prewhere_filtered_rows_div_by_zero/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_filter", + "tables": [ + { + "table": "test_filter" + } + ] +} diff --git a/parser/testdata/02481_s3_throw_if_mismatch_files/ast.json b/parser/testdata/02481_s3_throw_if_mismatch_files/ast.json new file mode 100644 index 0000000000..30c32b6d02 --- /dev/null +++ b/parser/testdata/02481_s3_throw_if_mismatch_files/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02481_mismatch_files", + "tables": [ + { + "table": "test_02481_mismatch_files" + } + ] +} diff --git a/parser/testdata/02481_xxh3_hash_function/ast.json b/parser/testdata/02481_xxh3_hash_function/ast.json new file mode 100644 index 0000000000..d74bb23ac3 --- /dev/null +++ b/parser/testdata/02481_xxh3_hash_function/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "xxh3", + "arguments": [ + { + "type": "String", + "value": "ClickHouse" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02482_execute_functions_before_sorting_bug/ast.json b/parser/testdata/02482_execute_functions_before_sorting_bug/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02482_execute_functions_before_sorting_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02482_insert_into_dist_race/ast.json b/parser/testdata/02482_insert_into_dist_race/ast.json new file mode 100644 index 0000000000..8f8b91094f --- /dev/null +++ b/parser/testdata/02482_insert_into_dist_race/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tmp_02482", + "tables": [ + { + "table": "tmp_02482" + } + ] +} diff --git a/parser/testdata/02482_value_block_assert/ast.json b/parser/testdata/02482_value_block_assert/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02482_value_block_assert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02483_check_virtuals_shile_using_structure_from_insertion_table/ast.json b/parser/testdata/02483_check_virtuals_shile_using_structure_from_insertion_table/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02483_check_virtuals_shile_using_structure_from_insertion_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02483_cuturlparameter_with_arrays/ast.json b/parser/testdata/02483_cuturlparameter_with_arrays/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02483_cuturlparameter_with_arrays/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02483_substitute_udf_create/ast.json b/parser/testdata/02483_substitute_udf_create/ast.json new file mode 100644 index 0000000000..4b61fb0ef6 --- /dev/null +++ b/parser/testdata/02483_substitute_udf_create/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02483_substitute_udf", + "tables": [ + { + "table": "02483_substitute_udf" + } + ] +} diff --git a/parser/testdata/02484_substitute_udf_storage_args/ast.json b/parser/testdata/02484_substitute_udf_storage_args/ast.json new file mode 100644 index 0000000000..c1d30f6672 --- /dev/null +++ b/parser/testdata/02484_substitute_udf_storage_args/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02484_substitute_udf", + "tables": [ + { + "table": "02484_substitute_udf" + } + ] +} diff --git a/parser/testdata/02486_truncate_and_unexpected_parts/ast.json b/parser/testdata/02486_truncate_and_unexpected_parts/ast.json new file mode 100644 index 0000000000..4c4583ccb1 --- /dev/null +++ b/parser/testdata/02486_truncate_and_unexpected_parts/ast.json @@ -0,0 +1,65 @@ +{ + "table": "rmt", + "columns": [ + { + "name": "n", + "type": { + "name": "int" + } + } + ], + "engine": { + "name": "ReplicatedMergeTree", + "parameters": [ + { + "type": "String", + "value": "/test/02468/{database}" + }, + { + "type": "String", + "value": "1" + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ], + "partition_by": { + "left": { + "parts": [ + "n" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "settings": [ + { + "name": "replicated_max_ratio_of_wrong_parts", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_suspicious_broken_parts", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_suspicious_broken_parts_bytes", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02487_create_index_normalize_functions/ast.json b/parser/testdata/02487_create_index_normalize_functions/ast.json new file mode 100644 index 0000000000..806e0ef6a0 --- /dev/null +++ b/parser/testdata/02487_create_index_normalize_functions/ast.json @@ -0,0 +1,49 @@ +{ + "table": "rmt", + "columns": [ + { + "name": "n", + "type": { + "name": "int" + } + }, + { + "name": "ts", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 8 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "ReplicatedMergeTree", + "parameters": [ + { + "type": "String", + "value": "/test/02487/{database}/rmt" + }, + { + "type": "String", + "value": "1" + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "n" + ] + } + ] +} diff --git a/parser/testdata/02489_analyzer_indexes/ast.json b/parser/testdata/02489_analyzer_indexes/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02489_analyzer_indexes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02490_replacing_merge_tree_is_deleted_column/ast.json b/parser/testdata/02490_replacing_merge_tree_is_deleted_column/ast.json new file mode 100644 index 0000000000..fd7ab2ec60 --- /dev/null +++ b/parser/testdata/02490_replacing_merge_tree_is_deleted_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02490_replacing_merge_tree_is_deleted_column_transform_opt/ast.json b/parser/testdata/02490_replacing_merge_tree_is_deleted_column_transform_opt/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02490_replacing_merge_tree_is_deleted_column_transform_opt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02491_part_log_has_table_uuid/ast.json b/parser/testdata/02491_part_log_has_table_uuid/ast.json new file mode 100644 index 0000000000..649087fac5 --- /dev/null +++ b/parser/testdata/02491_part_log_has_table_uuid/ast.json @@ -0,0 +1,29 @@ +{ + "table": "data_02491", + "columns": [ + { + "name": "key", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ], + "settings": [ + { + "name": "old_parts_lifetime", + "value": { + "type": "Integer", + "value": 600 + } + } + ] +} diff --git a/parser/testdata/02493_analyzer_sum_if_to_count_if/ast.json b/parser/testdata/02493_analyzer_sum_if_to_count_if/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02493_analyzer_sum_if_to_count_if/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02493_analyzer_table_functions_untuple/ast.json b/parser/testdata/02493_analyzer_table_functions_untuple/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02493_analyzer_table_functions_untuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02493_analyzer_uniq_injective_functions_elimination/ast.json b/parser/testdata/02493_analyzer_uniq_injective_functions_elimination/ast.json new file mode 100644 index 0000000000..8dafadae95 --- /dev/null +++ b/parser/testdata/02493_analyzer_uniq_injective_functions_elimination/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "optimize_injective_functions_inside_uniq", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02493_do_not_assume_that_the_original_query_was_valid_when_transforming_joins/ast.json b/parser/testdata/02493_do_not_assume_that_the_original_query_was_valid_when_transforming_joins/ast.json new file mode 100644 index 0000000000..c25b3c8c1f --- /dev/null +++ b/parser/testdata/02493_do_not_assume_that_the_original_query_was_valid_when_transforming_joins/ast.json @@ -0,0 +1,20 @@ +{ + "table": "table1", + "columns": [ + { + "name": "column1", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02493_max_streams_for_merge_tree_reading/ast.json b/parser/testdata/02493_max_streams_for_merge_tree_reading/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02493_max_streams_for_merge_tree_reading/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02494_analyzer_compound_expression_crash_fix/ast.json b/parser/testdata/02494_analyzer_compound_expression_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02494_analyzer_compound_expression_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02494_array_function_range/ast.json b/parser/testdata/02494_array_function_range/ast.json new file mode 100644 index 0000000000..cee520477f --- /dev/null +++ b/parser/testdata/02494_array_function_range/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "left": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + }, + "op": "==", + "right": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + }, + "op": "AND", + "right": { + "left": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 100 + } + ] + }, + "op": "==", + "right": { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 100 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + ] +} diff --git a/parser/testdata/02494_combinators_with_null_argument/ast.json b/parser/testdata/02494_combinators_with_null_argument/ast.json new file mode 100644 index 0000000000..8c57d05185 --- /dev/null +++ b/parser/testdata/02494_combinators_with_null_argument/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumIf", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02494_optimize_group_by_function_keys_and_alias_columns/ast.json b/parser/testdata/02494_optimize_group_by_function_keys_and_alias_columns/ast.json new file mode 100644 index 0000000000..d11bd360dd --- /dev/null +++ b/parser/testdata/02494_optimize_group_by_function_keys_and_alias_columns/ast.json @@ -0,0 +1,36 @@ +{ + "table": "t", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime" + } + }, + { + "name": "day", + "type": null, + "default": { + "name": "toYYYYMMDD", + "arguments": [ + { + "parts": [ + "timestamp" + ] + } + ] + }, + "default_kind": "ALIAS" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "timestamp" + ] + } + ] +} diff --git a/parser/testdata/02494_parser_string_binary_literal/ast.json b/parser/testdata/02494_parser_string_binary_literal/ast.json new file mode 100644 index 0000000000..b5b4669fce --- /dev/null +++ b/parser/testdata/02494_parser_string_binary_literal/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "" + } + ] + } + ] +} diff --git a/parser/testdata/02494_query_cache_bugs/ast.json b/parser/testdata/02494_query_cache_bugs/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_bugs/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_case_agnostic_matching/ast.json b/parser/testdata/02494_query_cache_case_agnostic_matching/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_case_agnostic_matching/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_compression/ast.json b/parser/testdata/02494_query_cache_compression/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_compression/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_drop_cache/ast.json b/parser/testdata/02494_query_cache_drop_cache/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_drop_cache/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_eligible_queries/ast.json b/parser/testdata/02494_query_cache_eligible_queries/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_eligible_queries/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_empty_tuple/ast.json b/parser/testdata/02494_query_cache_empty_tuple/ast.json new file mode 100644 index 0000000000..45eda47268 --- /dev/null +++ b/parser/testdata/02494_query_cache_empty_tuple/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tuple" + }, + { + "type": "Integer", + "value": 0 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "use_query_cache", + "value": { + "type": "Boolean", + "value": true + } + } + ] + } + ] +} diff --git a/parser/testdata/02494_query_cache_events/ast.json b/parser/testdata/02494_query_cache_events/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_events/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_exception_handling/ast.json b/parser/testdata/02494_query_cache_exception_handling/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_exception_handling/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_explain/ast.json b/parser/testdata/02494_query_cache_explain/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02494_query_cache_explain/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02494_query_cache_ignore_output_settings/ast.json b/parser/testdata/02494_query_cache_ignore_output_settings/ast.json new file mode 100644 index 0000000000..369b074338 --- /dev/null +++ b/parser/testdata/02494_query_cache_ignore_output_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/02494_query_cache_key/ast.json b/parser/testdata/02494_query_cache_key/ast.json new file mode 100644 index 0000000000..59bbf80803 --- /dev/null +++ b/parser/testdata/02494_query_cache_key/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Test (1)" + } + ] + } + ] +} diff --git a/parser/testdata/02494_query_cache_log_comment/ast.json b/parser/testdata/02494_query_cache_log_comment/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_log_comment/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_metrics/ast.json b/parser/testdata/02494_query_cache_metrics/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_metrics/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_min_query_duration/ast.json b/parser/testdata/02494_query_cache_min_query_duration/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_min_query_duration/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_min_query_runs/ast.json b/parser/testdata/02494_query_cache_min_query_runs/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_min_query_runs/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_nondeterministic_functions/ast.json b/parser/testdata/02494_query_cache_nondeterministic_functions/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_nondeterministic_functions/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_normalize_ast/ast.json b/parser/testdata/02494_query_cache_normalize_ast/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_normalize_ast/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_passive_usage/ast.json b/parser/testdata/02494_query_cache_passive_usage/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_passive_usage/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_query_log/ast.json b/parser/testdata/02494_query_cache_query_log/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_query_log/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_secrets/ast.json b/parser/testdata/02494_query_cache_secrets/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_secrets/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_sparse_columns/ast.json b/parser/testdata/02494_query_cache_sparse_columns/ast.json new file mode 100644 index 0000000000..671335e82d --- /dev/null +++ b/parser/testdata/02494_query_cache_sparse_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_cache_sparse", + "tables": [ + { + "table": "t_cache_sparse" + } + ] +} diff --git a/parser/testdata/02494_query_cache_squash_partial_results/ast.json b/parser/testdata/02494_query_cache_squash_partial_results/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_squash_partial_results/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_system_tables/ast.json b/parser/testdata/02494_query_cache_system_tables/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_system_tables/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_tag/ast.json b/parser/testdata/02494_query_cache_tag/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_tag/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_totals_extremes/ast.json b/parser/testdata/02494_query_cache_totals_extremes/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_totals_extremes/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_ttl_long/ast.json b/parser/testdata/02494_query_cache_ttl_long/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_ttl_long/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_udf_sql/ast.json b/parser/testdata/02494_query_cache_udf_sql/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_udf_sql/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_user_quotas/ast.json b/parser/testdata/02494_query_cache_user_quotas/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_user_quotas/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02494_query_cache_user_quotas_after_drop/ast.json b/parser/testdata/02494_query_cache_user_quotas_after_drop/ast.json new file mode 100644 index 0000000000..59107987f0 --- /dev/null +++ b/parser/testdata/02494_query_cache_user_quotas_after_drop/ast.json @@ -0,0 +1,3 @@ +{ + "command": "DROP QUERY CACHE" +} diff --git a/parser/testdata/02495_analyzer_storage_join/ast.json b/parser/testdata/02495_analyzer_storage_join/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02495_analyzer_storage_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02495_concat_with_separator/ast.json b/parser/testdata/02495_concat_with_separator/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02495_concat_with_separator/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02495_s3_filter_by_file/ast.json b/parser/testdata/02495_s3_filter_by_file/ast.json new file mode 100644 index 0000000000..d28c4b7ee1 --- /dev/null +++ b/parser/testdata/02495_s3_filter_by_file/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_s3_filter_02495", + "tables": [ + { + "table": "t_s3_filter_02495" + } + ] +} diff --git a/parser/testdata/02495_sum_if_to_count_if_bug/ast.json b/parser/testdata/02495_sum_if_to_count_if_bug/ast.json new file mode 100644 index 0000000000..73221958dd --- /dev/null +++ b/parser/testdata/02495_sum_if_to_count_if_bug/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Null", + "value": null + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1024 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "optimize_rewrite_sum_if_to_count_if", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02496_format_datetime_in_joda_syntax/ast.json b/parser/testdata/02496_format_datetime_in_joda_syntax/ast.json new file mode 100644 index 0000000000..ac4cbe9698 --- /dev/null +++ b/parser/testdata/02496_format_datetime_in_joda_syntax/ast.json @@ -0,0 +1,129 @@ +{ + "selects": [ + { + "with": [ + { + "name": "s", + "query": { + "type": "String", + "value": "2018-01-12 22:33:44" + } + }, + { + "name": "datetime", + "query": { + "name": "toDateTime", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + }, + { + "name": "datetime64", + "query": { + "name": "toDateTime64", + "arguments": [ + { + "parts": [ + "s" + ] + }, + { + "type": "Integer", + "value": 6 + } + ] + } + }, + { + "name": "date", + "query": { + "name": "toDate", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + }, + { + "name": "date32", + "query": { + "name": "toDate32", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + } + ], + "columns": [ + { + "name": "formatDateTimeInJodaSyntax", + "arguments": [ + { + "parts": [ + "datetime" + ] + }, + { + "type": "String", + "value": "G" + } + ] + }, + { + "name": "formatDateTimeInJodaSyntax", + "arguments": [ + { + "parts": [ + "datetime64" + ] + }, + { + "type": "String", + "value": "G" + } + ] + }, + { + "name": "formatDateTimeInJodaSyntax", + "arguments": [ + { + "parts": [ + "date" + ] + }, + { + "type": "String", + "value": "G" + } + ] + }, + { + "name": "formatDateTimeInJodaSyntax", + "arguments": [ + { + "parts": [ + "date32" + ] + }, + { + "type": "String", + "value": "G" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02496_from_unixtime_in_joda_syntax/ast.json b/parser/testdata/02496_from_unixtime_in_joda_syntax/ast.json new file mode 100644 index 0000000000..e1a53a77f3 --- /dev/null +++ b/parser/testdata/02496_from_unixtime_in_joda_syntax/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "fromUnixTimestampInJodaSyntax", + "arguments": [ + { + "type": "Integer", + "value": 1669804872 + }, + { + "type": "String", + "value": "G" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02496_storage_s3_profile_events/ast.json b/parser/testdata/02496_storage_s3_profile_events/ast.json new file mode 100644 index 0000000000..97c89588c6 --- /dev/null +++ b/parser/testdata/02496_storage_s3_profile_events/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_s3_events_02496", + "tables": [ + { + "table": "t_s3_events_02496" + } + ] +} diff --git a/parser/testdata/02497_analyzer_sum_if_count_if_pass_crash_fix/ast.json b/parser/testdata/02497_analyzer_sum_if_count_if_pass_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02497_analyzer_sum_if_count_if_pass_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02497_having_without_actual_aggregation_bug/ast.json b/parser/testdata/02497_having_without_actual_aggregation_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02497_having_without_actual_aggregation_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02497_if_transform_strings_to_enum/ast.json b/parser/testdata/02497_if_transform_strings_to_enum/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02497_if_transform_strings_to_enum/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02497_remote_disk_fat_column/ast.json b/parser/testdata/02497_remote_disk_fat_column/ast.json new file mode 100644 index 0000000000..d87d4b3975 --- /dev/null +++ b/parser/testdata/02497_remote_disk_fat_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_fixed_string_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02497_schema_inference_nulls/ast.json b/parser/testdata/02497_schema_inference_nulls/ast.json new file mode 100644 index 0000000000..48b54a9865 --- /dev/null +++ b/parser/testdata/02497_schema_inference_nulls/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "JSONEachRow" + } + ] + } + ] +} diff --git a/parser/testdata/02497_source_part_is_intact_when_mutation/ast.json b/parser/testdata/02497_source_part_is_intact_when_mutation/ast.json new file mode 100644 index 0000000000..f2ad7b1ef3 --- /dev/null +++ b/parser/testdata/02497_source_part_is_intact_when_mutation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02497_storage_join_right_assert/ast.json b/parser/testdata/02497_storage_join_right_assert/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02497_storage_join_right_assert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02498_analyzer_aggregate_functions_arithmetic_operations_pass_fix/ast.json b/parser/testdata/02498_analyzer_aggregate_functions_arithmetic_operations_pass_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02498_analyzer_aggregate_functions_arithmetic_operations_pass_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02498_analyzer_settings_push_down/ast.json b/parser/testdata/02498_analyzer_settings_push_down/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02498_analyzer_settings_push_down/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02498_storage_join_key_positions/ast.json b/parser/testdata/02498_storage_join_key_positions/ast.json new file mode 100644 index 0000000000..3eb390e577 --- /dev/null +++ b/parser/testdata/02498_storage_join_key_positions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02499_analyzer_aggregate_function_lambda_crash_fix/ast.json b/parser/testdata/02499_analyzer_aggregate_function_lambda_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02499_analyzer_aggregate_function_lambda_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02499_analyzer_set_index/ast.json b/parser/testdata/02499_analyzer_set_index/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02499_analyzer_set_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02499_quantile_nan_ubsan_msan/ast.json b/parser/testdata/02499_quantile_nan_ubsan_msan/ast.json new file mode 100644 index 0000000000..8fbe2d22cc --- /dev/null +++ b/parser/testdata/02499_quantile_nan_ubsan_msan/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantiles", + "parameters": [ + { + "type": "Float", + "value": 0.5 + } + ], + "arguments": [ + { + "expr": { + "name": "now" + }, + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ], + "where": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02499_read_json_objects_as_strings/ast.json b/parser/testdata/02499_read_json_objects_as_strings/ast.json new file mode 100644 index 0000000000..af23d41521 --- /dev/null +++ b/parser/testdata/02499_read_json_objects_as_strings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_read_objects_as_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02500_analyzer_storage_view_crash_fix/ast.json b/parser/testdata/02500_analyzer_storage_view_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02500_analyzer_storage_view_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02500_prevent_drop_nested_if_empty_part/ast.json b/parser/testdata/02500_prevent_drop_nested_if_empty_part/ast.json new file mode 100644 index 0000000000..7c07e74097 --- /dev/null +++ b/parser/testdata/02500_prevent_drop_nested_if_empty_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02500_nested", + "tables": [ + { + "table": "02500_nested" + } + ] +} diff --git a/parser/testdata/02501_analyzer_expired_context_crash_fix/ast.json b/parser/testdata/02501_analyzer_expired_context_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02501_analyzer_expired_context_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02501_limits_on_result_for_view/ast.json b/parser/testdata/02501_limits_on_result_for_view/ast.json new file mode 100644 index 0000000000..07cc770ab5 --- /dev/null +++ b/parser/testdata/02501_limits_on_result_for_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02501_test", + "tables": [ + { + "table": "02501_test" + } + ] +} diff --git a/parser/testdata/02502_analyzer_insert_select_crash_fix/ast.json b/parser/testdata/02502_analyzer_insert_select_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02502_analyzer_insert_select_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02502_fuzz_bad_cast_to_ast_literal/ast.json b/parser/testdata/02502_fuzz_bad_cast_to_ast_literal/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/02502_fuzz_bad_cast_to_ast_literal/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02503_bad_compatibility_setting/ast.json b/parser/testdata/02503_bad_compatibility_setting/ast.json new file mode 100644 index 0000000000..836e06e194 --- /dev/null +++ b/parser/testdata/02503_bad_compatibility_setting/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compatibility", + "value": { + "type": "String", + "value": "a.a" + } + } + ] +} diff --git a/parser/testdata/02503_mysql_compat_utc_timestamp/ast.json b/parser/testdata/02503_mysql_compat_utc_timestamp/ast.json new file mode 100644 index 0000000000..e77855eb97 --- /dev/null +++ b/parser/testdata/02503_mysql_compat_utc_timestamp/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "TIMEDIFF", + "arguments": [ + { + "name": "NOW" + }, + { + "name": "UTC_TIMESTAMP" + } + ] + }, + "op": "DIV", + "right": { + "type": "Integer", + "value": 600 + } + } + ] + } + ] +} diff --git a/parser/testdata/02504_disallow_arrayjoin_in_mutations/ast.json b/parser/testdata/02504_disallow_arrayjoin_in_mutations/ast.json new file mode 100644 index 0000000000..b441e67c89 --- /dev/null +++ b/parser/testdata/02504_disallow_arrayjoin_in_mutations/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02504", + "tables": [ + { + "table": "test_02504" + } + ] +} diff --git a/parser/testdata/02504_parse_datetime_best_effort_calebeaires/ast.json b/parser/testdata/02504_parse_datetime_best_effort_calebeaires/ast.json new file mode 100644 index 0000000000..9d01ae2667 --- /dev/null +++ b/parser/testdata/02504_parse_datetime_best_effort_calebeaires/ast.json @@ -0,0 +1,50 @@ +{ + "temporary": true, + "table": "my_table", + "columns": [ + { + "name": "col_date", + "type": { + "name": "Date" + } + }, + { + "name": "col_date32", + "type": { + "name": "Date32" + } + }, + { + "name": "col_datetime", + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "col_datetime32", + "type": { + "name": "DateTime32", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "col_datetime64", + "type": { + "name": "DateTime64" + } + } + ] +} diff --git a/parser/testdata/02504_regexp_dictionary_table_source/ast.json b/parser/testdata/02504_regexp_dictionary_table_source/ast.json new file mode 100644 index 0000000000..4ccde69c7a --- /dev/null +++ b/parser/testdata/02504_regexp_dictionary_table_source/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "regexp_dict1", + "tables": [ + { + "table": "regexp_dict1" + } + ] +} diff --git a/parser/testdata/02505_forbid_paths_in_datetime_timezone/ast.json b/parser/testdata/02505_forbid_paths_in_datetime_timezone/ast.json new file mode 100644 index 0000000000..999294073c --- /dev/null +++ b/parser/testdata/02505_forbid_paths_in_datetime_timezone/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "String", + "value": "/abc" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02506_date_time64_floating_point_negative_value/ast.json b/parser/testdata/02506_date_time64_floating_point_negative_value/ast.json new file mode 100644 index 0000000000..07e37e9958 --- /dev/null +++ b/parser/testdata/02506_date_time64_floating_point_negative_value/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUnixTimestamp64Milli", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1969-12-31 23:59:59.999" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "Europe/Amsterdam" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02507_to_unix_timestamp_overflow/ast.json b/parser/testdata/02507_to_unix_timestamp_overflow/ast.json new file mode 100644 index 0000000000..337777423f --- /dev/null +++ b/parser/testdata/02507_to_unix_timestamp_overflow/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUnixTimestamp", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1928-12-31 12:12:12.123" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02508_bad_graphite/ast.json b/parser/testdata/02508_bad_graphite/ast.json new file mode 100644 index 0000000000..e6b8a60f87 --- /dev/null +++ b/parser/testdata/02508_bad_graphite/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_graphite", + "tables": [ + { + "table": "test_graphite" + } + ] +} diff --git a/parser/testdata/02508_index_analysis_to_date_timezone/ast.json b/parser/testdata/02508_index_analysis_to_date_timezone/ast.json new file mode 100644 index 0000000000..e6e111e024 --- /dev/null +++ b/parser/testdata/02508_index_analysis_to_date_timezone/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table", + "tables": [ + { + "table": "table" + } + ] +} diff --git a/parser/testdata/02509_h3_arguments/ast.json b/parser/testdata/02509_h3_arguments/ast.json new file mode 100644 index 0000000000..068fdc767b --- /dev/null +++ b/parser/testdata/02509_h3_arguments/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3ToParent", + "arguments": [ + { + "type": "Integer", + "value": 641573946153969375 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02510_group_by_prewhere_null/ast.json b/parser/testdata/02510_group_by_prewhere_null/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/02510_group_by_prewhere_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/02511_complex_literals_as_aggregate_function_parameters/ast.json b/parser/testdata/02511_complex_literals_as_aggregate_function_parameters/ast.json new file mode 100644 index 0000000000..2baae2467c --- /dev/null +++ b/parser/testdata/02511_complex_literals_as_aggregate_function_parameters/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "sumMapFilteredState", + "parameters": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02512_array_join_name_resolution/ast.json b/parser/testdata/02512_array_join_name_resolution/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/02512_array_join_name_resolution/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/02513_analyzer_duplicate_alias_crash_fix/ast.json b/parser/testdata/02513_analyzer_duplicate_alias_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02513_analyzer_duplicate_alias_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02513_analyzer_sort_msan/ast.json b/parser/testdata/02513_analyzer_sort_msan/ast.json new file mode 100644 index 0000000000..3cb5cf5061 --- /dev/null +++ b/parser/testdata/02513_analyzer_sort_msan/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "products", + "tables": [ + { + "table": "products" + } + ] +} diff --git a/parser/testdata/02513_broken_datetime64_init_on_mac/ast.json b/parser/testdata/02513_broken_datetime64_init_on_mac/ast.json new file mode 100644 index 0000000000..1df8386afb --- /dev/null +++ b/parser/testdata/02513_broken_datetime64_init_on_mac/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1670853969 + }, + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ] +} diff --git a/parser/testdata/02513_prewhere_combine_step_filters/ast.json b/parser/testdata/02513_prewhere_combine_step_filters/ast.json new file mode 100644 index 0000000000..0dfbf9a2a9 --- /dev/null +++ b/parser/testdata/02513_prewhere_combine_step_filters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_02513", + "tables": [ + { + "table": "table_02513" + } + ] +} diff --git a/parser/testdata/02513_validate_data_types/ast.json b/parser/testdata/02513_validate_data_types/ast.json new file mode 100644 index 0000000000..bd27d8c850 --- /dev/null +++ b/parser/testdata/02513_validate_data_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02514_analyzer_drop_join_on/ast.json b/parser/testdata/02514_analyzer_drop_join_on/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/02514_analyzer_drop_join_on/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/02514_bad_index_granularity/ast.json b/parser/testdata/02514_bad_index_granularity/ast.json new file mode 100644 index 0000000000..f3ef70ccf0 --- /dev/null +++ b/parser/testdata/02514_bad_index_granularity/ast.json @@ -0,0 +1,51 @@ +{ + "table": "t", + "columns": [ + { + "name": "id", + "type": { + "name": "Int64" + } + }, + { + "name": "d", + "type": { + "name": "String" + } + }, + { + "name": "p", + "type": { + "name": "Map", + "parameters": [ + { + "name": "String" + }, + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "ReplacingMergeTree" + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02514_if_with_lazy_low_cardinality/ast.json b/parser/testdata/02514_if_with_lazy_low_cardinality/ast.json new file mode 100644 index 0000000000..aaf11bc2dc --- /dev/null +++ b/parser/testdata/02514_if_with_lazy_low_cardinality/ast.json @@ -0,0 +1,45 @@ +{ + "if_not_exists": true, + "table": "t", + "columns": [ + { + "name": "arr.key", + "type": { + "name": "Array", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "arr.value", + "type": { + "name": "Array", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02514_null_dictionary_source/ast.json b/parser/testdata/02514_null_dictionary_source/ast.json new file mode 100644 index 0000000000..d984acd4fa --- /dev/null +++ b/parser/testdata/02514_null_dictionary_source/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_dict", + "tables": [ + { + "table": "null_dict" + } + ] +} diff --git a/parser/testdata/02514_tsv_zero_started_number/ast.json b/parser/testdata/02514_tsv_zero_started_number/ast.json new file mode 100644 index 0000000000..6281a90247 --- /dev/null +++ b/parser/testdata/02514_tsv_zero_started_number/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + {} + ] + }, + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "TSV" + ] + }, + { + "type": "String", + "value": "0123" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02515_aggregate_functions_statistics/ast.json b/parser/testdata/02515_aggregate_functions_statistics/ast.json new file mode 100644 index 0000000000..151d7b7f28 --- /dev/null +++ b/parser/testdata/02515_aggregate_functions_statistics/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "fh", + "tables": [ + { + "table": "fh" + } + ] +} diff --git a/parser/testdata/02515_analyzer_null_for_empty/ast.json b/parser/testdata/02515_analyzer_null_for_empty/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02515_analyzer_null_for_empty/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02515_and_or_if_multiif_not_return_lc/ast.json b/parser/testdata/02515_and_or_if_multiif_not_return_lc/ast.json new file mode 100644 index 0000000000..5c2bdd94a4 --- /dev/null +++ b/parser/testdata/02515_and_or_if_multiif_not_return_lc/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02515_distinct_zero_size_key_bug_44831/ast.json b/parser/testdata/02515_distinct_zero_size_key_bug_44831/ast.json new file mode 100644 index 0000000000..bb425d32d4 --- /dev/null +++ b/parser/testdata/02515_distinct_zero_size_key_bug_44831/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "type": "Null", + "value": null + }, + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "type": "String", + "value": "t" + }, + { + "type": "String", + "value": "" + } + ], + "alias": "res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "res" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02515_generate_ulid/ast.json b/parser/testdata/02515_generate_ulid/ast.json new file mode 100644 index 0000000000..ad262a987a --- /dev/null +++ b/parser/testdata/02515_generate_ulid/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "generateULID", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "op": "!=", + "right": { + "name": "generateULID", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "generateULID" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02515_projections_with_totals/ast.json b/parser/testdata/02515_projections_with_totals/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02515_projections_with_totals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02516_projections_and_context/ast.json b/parser/testdata/02516_projections_and_context/ast.json new file mode 100644 index 0000000000..4b2c82cf58 --- /dev/null +++ b/parser/testdata/02516_projections_and_context/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1__fuzz_37", + "tables": [ + { + "table": "test1__fuzz_37" + } + ] +} diff --git a/parser/testdata/02516_projections_with_rollup/ast.json b/parser/testdata/02516_projections_with_rollup/ast.json new file mode 100644 index 0000000000..3124e5799e --- /dev/null +++ b/parser/testdata/02516_projections_with_rollup/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "video_log", + "tables": [ + { + "table": "video_log" + } + ] +} diff --git a/parser/testdata/02517_executable_pool_bad_input_query/ast.json b/parser/testdata/02517_executable_pool_bad_input_query/ast.json new file mode 100644 index 0000000000..14310a3e86 --- /dev/null +++ b/parser/testdata/02517_executable_pool_bad_input_query/ast.json @@ -0,0 +1,30 @@ +{ + "table": "test_table", + "columns": [ + { + "name": "value", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "ExecutablePool", + "parameters": [ + { + "type": "String", + "value": "nonexist.py" + }, + { + "type": "String", + "value": "TabSeparated" + }, + { + "parts": [ + "foobar" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/02517_uuid_parsing/ast.json b/parser/testdata/02517_uuid_parsing/ast.json new file mode 100644 index 0000000000..30ba751687 --- /dev/null +++ b/parser/testdata/02517_uuid_parsing/ast.json @@ -0,0 +1,169 @@ +{ + "table": "temp", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "field1", + "type": { + "name": "UUID" + } + }, + { + "name": "field2", + "type": { + "name": "UUID" + } + }, + { + "name": "field3", + "type": { + "name": "Int64" + } + }, + { + "name": "field4", + "type": { + "name": "Int64" + } + }, + { + "name": "field5", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "field6", + "type": { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + }, + { + "name": "field7", + "type": { + "name": "String" + } + }, + { + "name": "field8", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UUID" + } + ], + "has_parentheses": true + } + }, + { + "name": "event_at", + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "order_id", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UUID" + } + ], + "has_parentheses": true + } + }, + { + "name": "identity", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "field1" + ] + }, + { + "parts": [ + "event_at" + ] + }, + { + "parts": [ + "field2" + ] + }, + { + "parts": [ + "field5" + ] + }, + { + "parts": [ + "id" + ] + } + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "event_at" + ] + } + ] + }, + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/02517_wrong_total_structure_crash/ast.json b/parser/testdata/02517_wrong_total_structure_crash/ast.json new file mode 100644 index 0000000000..01ca44d9fc --- /dev/null +++ b/parser/testdata/02517_wrong_total_structure_crash/ast.json @@ -0,0 +1,115 @@ +{ + "or_replace": true, + "table": "alias10__fuzz_13", + "columns": [ + { + "name": "Id", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Array", + "parameters": [ + { + "name": "UInt256" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "EventDate", + "type": { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "field1", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Array", + "parameters": [ + { + "name": "Nullable", + "parameters": [ + { + "name": "Int8" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "field2", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Date" + } + ], + "has_parentheses": true + } + }, + { + "name": "field3", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Array", + "parameters": [ + { + "name": "Array", + "parameters": [ + { + "name": "UInt128" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Distributed", + "parameters": [ + { + "parts": [ + "test_shard_localhost" + ] + }, + { + "name": "currentDatabase" + }, + { + "parts": [ + "alias_local10" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/02518_delete_on_materialized_view/ast.json b/parser/testdata/02518_delete_on_materialized_view/ast.json new file mode 100644 index 0000000000..4585d0adc6 --- /dev/null +++ b/parser/testdata/02518_delete_on_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "kek", + "tables": [ + { + "table": "kek" + } + ] +} diff --git a/parser/testdata/02518_merge_engine_nullable_43324/ast.json b/parser/testdata/02518_merge_engine_nullable_43324/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/02518_merge_engine_nullable_43324/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/02518_qualified_asterisks_alias_table_name/ast.json b/parser/testdata/02518_qualified_asterisks_alias_table_name/ast.json new file mode 100644 index 0000000000..eb8bf39b8a --- /dev/null +++ b/parser/testdata/02518_qualified_asterisks_alias_table_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_join_1", + "tables": [ + { + "table": "test_table_join_1" + } + ] +} diff --git a/parser/testdata/02518_rewrite_aggregate_function_with_if/ast.json b/parser/testdata/02518_rewrite_aggregate_function_with_if/ast.json new file mode 100644 index 0000000000..cb3baa670a --- /dev/null +++ b/parser/testdata/02518_rewrite_aggregate_function_with_if/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/02519_monotonicity_fuzz/ast.json b/parser/testdata/02519_monotonicity_fuzz/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02519_monotonicity_fuzz/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02520_group_array_last/ast.json b/parser/testdata/02520_group_array_last/ast.json new file mode 100644 index 0000000000..9617a76a11 --- /dev/null +++ b/parser/testdata/02520_group_array_last/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple_agg_groupArrayLastArray", + "tables": [ + { + "table": "simple_agg_groupArrayLastArray" + } + ] +} diff --git a/parser/testdata/02521_aggregation_by_partitions/ast.json b/parser/testdata/02521_aggregation_by_partitions/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02521_aggregation_by_partitions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02521_analyzer_aggregation_without_column/ast.json b/parser/testdata/02521_analyzer_aggregation_without_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02521_analyzer_aggregation_without_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02521_analyzer_array_join_crash/ast.json b/parser/testdata/02521_analyzer_array_join_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02521_analyzer_array_join_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02521_cannot_find_column_in_projection/ast.json b/parser/testdata/02521_cannot_find_column_in_projection/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02521_cannot_find_column_in_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02521_grouping_sets_plus_memory_efficient_aggr/ast.json b/parser/testdata/02521_grouping_sets_plus_memory_efficient_aggr/ast.json new file mode 100644 index 0000000000..14209dcd66 --- /dev/null +++ b/parser/testdata/02521_grouping_sets_plus_memory_efficient_aggr/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_aggregation_memory_efficient", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02521_lightweight_delete_and_ttl/ast.json b/parser/testdata/02521_lightweight_delete_and_ttl/ast.json new file mode 100644 index 0000000000..df8e90ddaf --- /dev/null +++ b/parser/testdata/02521_lightweight_delete_and_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lwd_test_02521", + "tables": [ + { + "table": "lwd_test_02521" + } + ] +} diff --git a/parser/testdata/02521_to_custom_day_of_week/ast.json b/parser/testdata/02521_to_custom_day_of_week/ast.json new file mode 100644 index 0000000000..ea613429cf --- /dev/null +++ b/parser/testdata/02521_to_custom_day_of_week/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "with": [ + { + "name": "date_mon", + "query": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2023-01-09" + } + ] + } + }, + { + "name": "date_sun", + "query": { + "left": { + "parts": [ + "date_mon" + ] + }, + "op": "-", + "right": { + "type": "Integer", + "value": 1 + } + } + } + ], + "columns": [ + { + "name": "toDayOfWeek", + "arguments": [ + { + "parts": [ + "date_mon" + ] + } + ] + }, + { + "name": "toDayOfWeek", + "arguments": [ + { + "parts": [ + "date_sun" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02522_different_types_in_storage_merge/ast.json b/parser/testdata/02522_different_types_in_storage_merge/ast.json new file mode 100644 index 0000000000..d6884dea16 --- /dev/null +++ b/parser/testdata/02522_different_types_in_storage_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_table_max_tables_to_look_for_schema_inference", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02523_array_shuffle/ast.json b/parser/testdata/02523_array_shuffle/ast.json new file mode 100644 index 0000000000..94469c9a33 --- /dev/null +++ b/parser/testdata/02523_array_shuffle/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayShuffle", + "arguments": [ + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02524_fuzz_and_fuss_2/ast.json b/parser/testdata/02524_fuzz_and_fuss_2/ast.json new file mode 100644 index 0000000000..e7f7fd0527 --- /dev/null +++ b/parser/testdata/02524_fuzz_and_fuss_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_a_02187", + "tables": [ + { + "table": "data_a_02187" + } + ] +} diff --git a/parser/testdata/02525_analyzer_function_in_crash_fix/ast.json b/parser/testdata/02525_analyzer_function_in_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02525_analyzer_function_in_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02525_different_engines_in_temporary_tables/ast.json b/parser/testdata/02525_different_engines_in_temporary_tables/ast.json new file mode 100644 index 0000000000..6553a55504 --- /dev/null +++ b/parser/testdata/02525_different_engines_in_temporary_tables/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "table_merge_tree_02525", + "tables": [ + { + "table": "table_merge_tree_02525" + } + ], + "temporary": true +} diff --git a/parser/testdata/02525_jit_logical_functions_nan/ast.json b/parser/testdata/02525_jit_logical_functions_nan/ast.json new file mode 100644 index 0000000000..3749b5f94b --- /dev/null +++ b/parser/testdata/02525_jit_logical_functions_nan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "min_count_to_compile_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02525_range_hashed_dictionary_update_field/ast.json b/parser/testdata/02525_range_hashed_dictionary_update_field/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02525_range_hashed_dictionary_update_field/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02526_kv_engine_different_filter_type/ast.json b/parser/testdata/02526_kv_engine_different_filter_type/ast.json new file mode 100644 index 0000000000..3e8ea920d9 --- /dev/null +++ b/parser/testdata/02526_kv_engine_different_filter_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02526_keeper_map", + "tables": [ + { + "table": "02526_keeper_map" + } + ] +} diff --git a/parser/testdata/02526_merge_join_int_decimal/ast.json b/parser/testdata/02526_merge_join_int_decimal/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/02526_merge_join_int_decimal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/02527_storage_merge_prewhere_different_type/ast.json b/parser/testdata/02527_storage_merge_prewhere_different_type/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/02527_storage_merge_prewhere_different_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/02530_ip_part_id/ast.json b/parser/testdata/02530_ip_part_id/ast.json new file mode 100644 index 0000000000..c4620b7ad4 --- /dev/null +++ b/parser/testdata/02530_ip_part_id/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ip_part_test", + "tables": [ + { + "table": "ip_part_test" + } + ] +} diff --git a/parser/testdata/02531_ipv4_arithmetic/ast.json b/parser/testdata/02531_ipv4_arithmetic/ast.json new file mode 100644 index 0000000000..b5ff46617e --- /dev/null +++ b/parser/testdata/02531_ipv4_arithmetic/ast.json @@ -0,0 +1,85 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "ip" + ] + }, + { + "left": { + "parts": [ + "ip" + ] + }, + "op": "%", + "right": { + "parts": [ + "number" + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "toIPv4", + "arguments": [ + { + "type": "String", + "value": "1.2.3.4" + } + ], + "alias": "ip" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 20 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02531_semi_join_null_const_bug/ast.json b/parser/testdata/02531_semi_join_null_const_bug/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/02531_semi_join_null_const_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02531_storage_join_null_44940/ast.json b/parser/testdata/02531_storage_join_null_44940/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02531_storage_join_null_44940/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02532_analyzer_aggregation_with_rollup/ast.json b/parser/testdata/02532_analyzer_aggregation_with_rollup/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02532_analyzer_aggregation_with_rollup/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02532_profileevents_server_startup_time/ast.json b/parser/testdata/02532_profileevents_server_startup_time/ast.json new file mode 100644 index 0000000000..de5548a9a2 --- /dev/null +++ b/parser/testdata/02532_profileevents_server_startup_time/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "event" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "events" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "event" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "ServerStartupMilliseconds" + } + } + } + ] +} diff --git a/parser/testdata/02533_generate_random_schema_inference/ast.json b/parser/testdata/02533_generate_random_schema_inference/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02533_generate_random_schema_inference/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02534_analyzer_grouping_function/ast.json b/parser/testdata/02534_analyzer_grouping_function/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02534_analyzer_grouping_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02534_default_granularity/ast.json b/parser/testdata/02534_default_granularity/ast.json new file mode 100644 index 0000000000..fa495659e8 --- /dev/null +++ b/parser/testdata/02534_default_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users_02534", + "tables": [ + { + "table": "users_02534" + } + ] +} diff --git a/parser/testdata/02534_join_prewhere_bug/ast.json b/parser/testdata/02534_join_prewhere_bug/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/02534_join_prewhere_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/02534_s3_cluster_insert_select_schema_inference/ast.json b/parser/testdata/02534_s3_cluster_insert_select_schema_inference/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02534_s3_cluster_insert_select_schema_inference/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02534_s3_heap_use_after_free/ast.json b/parser/testdata/02534_s3_heap_use_after_free/ast.json new file mode 100644 index 0000000000..1ac2d516bb --- /dev/null +++ b/parser/testdata/02534_s3_heap_use_after_free/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "type": "String", + "value": "http://localhost:11111/test/a.tsv" + }, + { + "parts": [ + "CustomSeparated" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02535_analyzer_group_by_use_nulls/ast.json b/parser/testdata/02535_analyzer_group_by_use_nulls/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02535_analyzer_group_by_use_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02535_analyzer_limit_offset/ast.json b/parser/testdata/02535_analyzer_limit_offset/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02535_analyzer_limit_offset/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02535_ip_parser_not_whole/ast.json b/parser/testdata/02535_ip_parser_not_whole/ast.json new file mode 100644 index 0000000000..d82973c8a4 --- /dev/null +++ b/parser/testdata/02535_ip_parser_not_whole/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "CSVWithNamesAndTypes" + ] + }, + { + "type": "String", + "value": "ip,port\nIPv6,UInt16\n::1,42\n" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02536_date_from_number_inference_fix/ast.json b/parser/testdata/02536_date_from_number_inference_fix/ast.json new file mode 100644 index 0000000000..0a95182900 --- /dev/null +++ b/parser/testdata/02536_date_from_number_inference_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_try_infer_numbers_from_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02536_delta_gorilla_corruption/ast.json b/parser/testdata/02536_delta_gorilla_corruption/ast.json new file mode 100644 index 0000000000..80fe6886be --- /dev/null +++ b/parser/testdata/02536_delta_gorilla_corruption/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_codecs", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02536_distributed_detach_table/ast.json b/parser/testdata/02536_distributed_detach_table/ast.json new file mode 100644 index 0000000000..9274fe4240 --- /dev/null +++ b/parser/testdata/02536_distributed_detach_table/ast.json @@ -0,0 +1,20 @@ +{ + "table": "test_02536", + "columns": [ + { + "name": "n", + "type": { + "name": "Int8" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02536_replace_with_nonconst_needle_and_replacement/ast.json b/parser/testdata/02536_replace_with_nonconst_needle_and_replacement/ast.json new file mode 100644 index 0000000000..c6326d858b --- /dev/null +++ b/parser/testdata/02536_replace_with_nonconst_needle_and_replacement/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tab", + "tables": [ + { + "table": "test_tab" + } + ] +} diff --git a/parser/testdata/02536_system_sync_file_cache/ast.json b/parser/testdata/02536_system_sync_file_cache/ast.json new file mode 100644 index 0000000000..3e92850e1d --- /dev/null +++ b/parser/testdata/02536_system_sync_file_cache/ast.json @@ -0,0 +1,3 @@ +{ + "command": "sync file cache" +} diff --git a/parser/testdata/02538_alter_rename_sequence/ast.json b/parser/testdata/02538_alter_rename_sequence/ast.json new file mode 100644 index 0000000000..c31a327778 --- /dev/null +++ b/parser/testdata/02538_alter_rename_sequence/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "wrong_metadata", + "tables": [ + { + "table": "wrong_metadata" + } + ] +} diff --git a/parser/testdata/02538_analyzer_create_table_as_select/ast.json b/parser/testdata/02538_analyzer_create_table_as_select/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02538_analyzer_create_table_as_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02538_ngram_bf_index_with_null/ast.json b/parser/testdata/02538_ngram_bf_index_with_null/ast.json new file mode 100644 index 0000000000..f96b05501d --- /dev/null +++ b/parser/testdata/02538_ngram_bf_index_with_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02538_bf_ngrambf_map_values_test", + "tables": [ + { + "table": "02538_bf_ngrambf_map_values_test" + } + ] +} diff --git a/parser/testdata/02538_nullable_array_tuple_timeseries/ast.json b/parser/testdata/02538_nullable_array_tuple_timeseries/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/02538_nullable_array_tuple_timeseries/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/02539_generate_random_ip/ast.json b/parser/testdata/02539_generate_random_ip/ast.json new file mode 100644 index 0000000000..89e3db2dbd --- /dev/null +++ b/parser/testdata/02539_generate_random_ip/ast.json @@ -0,0 +1,82 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "uniq", + "arguments": [ + { + "parts": [ + "v4" + ] + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 1000 + } + }, + { + "left": { + "name": "uniq", + "arguments": [ + { + "parts": [ + "v6" + ] + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 1000 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generateRandom", + "arguments": [ + { + "type": "String", + "value": "v4 IPv4, v6 IPv6" + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02539_generate_random_low_cardinality/ast.json b/parser/testdata/02539_generate_random_low_cardinality/ast.json new file mode 100644 index 0000000000..295615d908 --- /dev/null +++ b/parser/testdata/02539_generate_random_low_cardinality/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "uniq", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 1000 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generateRandom", + "arguments": [ + { + "type": "String", + "value": "x Array(LowCardinality(Nullable(String)))" + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 100000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02539_generate_random_map/ast.json b/parser/testdata/02539_generate_random_map/ast.json new file mode 100644 index 0000000000..418a76e456 --- /dev/null +++ b/parser/testdata/02539_generate_random_map/ast.json @@ -0,0 +1,84 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "max", + "arguments": [ + { + "name": "length", + "arguments": [ + { + "name": "mapKeys", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generateRandom", + "arguments": [ + { + "type": "String", + "value": "a Map(String, String)" + }, + { + "type": "Integer", + "value": 20 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1000 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02539_vertical_merge_compact_parts/ast.json b/parser/testdata/02539_vertical_merge_compact_parts/ast.json new file mode 100644 index 0000000000..566e1e36b0 --- /dev/null +++ b/parser/testdata/02539_vertical_merge_compact_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_compact_vertical_merge", + "tables": [ + { + "table": "t_compact_vertical_merge" + } + ] +} diff --git a/parser/testdata/02540_analyzer_matcher_alias_materialized_columns/ast.json b/parser/testdata/02540_analyzer_matcher_alias_materialized_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02540_analyzer_matcher_alias_materialized_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02540_date_column_consistent_insert_behaviour/ast.json b/parser/testdata/02540_date_column_consistent_insert_behaviour/ast.json new file mode 100644 index 0000000000..1f3610f083 --- /dev/null +++ b/parser/testdata/02540_date_column_consistent_insert_behaviour/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02540_date", + "tables": [ + { + "table": "02540_date" + } + ] +} diff --git a/parser/testdata/02540_duplicate_primary_key/ast.json b/parser/testdata/02540_duplicate_primary_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02540_duplicate_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02540_duplicate_primary_key2/ast.json b/parser/testdata/02540_duplicate_primary_key2/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02540_duplicate_primary_key2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02541_analyzer_grouping_sets_crash_fix/ast.json b/parser/testdata/02541_analyzer_grouping_sets_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02541_analyzer_grouping_sets_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02541_empty_function_support_ip/ast.json b/parser/testdata/02541_empty_function_support_ip/ast.json new file mode 100644 index 0000000000..d562fe2639 --- /dev/null +++ b/parser/testdata/02541_empty_function_support_ip/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "empty", + "arguments": [ + { + "name": "toIPv6", + "arguments": [ + { + "type": "String", + "value": "::" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02541_lightweight_delete_on_cluster/ast.json b/parser/testdata/02541_lightweight_delete_on_cluster/ast.json new file mode 100644 index 0000000000..22deaad37d --- /dev/null +++ b/parser/testdata/02541_lightweight_delete_on_cluster/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_ddl_output_mode", + "value": { + "type": "String", + "value": "throw" + } + } + ] +} diff --git a/parser/testdata/02541_multiple_ignore_with_nested_select/ast.json b/parser/testdata/02541_multiple_ignore_with_nested_select/ast.json new file mode 100644 index 0000000000..5de40c6e57 --- /dev/null +++ b/parser/testdata/02541_multiple_ignore_with_nested_select/ast.json @@ -0,0 +1,176 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + { + "type": "Float", + "value": 0.5 + }, + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 65536 + } + }, + "alias": "number" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "name": "ignore", + "arguments": [ + { + "name": "ignore", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Float", + "value": 10.0001 + } + ] + } + ] + }, + "descending": true, + "nulls_first": false + }, + { + "expression": { + "name": "ignore", + "arguments": [ + { + "type": "Integer", + "value": 2147483648 + } + ] + }, + "descending": true, + "nulls_first": true + }, + { + "expression": { + "name": "ignore", + "arguments": [ + { + "type": "Integer", + "value": 255 + }, + { + "type": "Float", + "value": 0.0001 + } + ] + } + }, + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + }, + "nulls_first": true + } + ] + } + ] + } + } + } + } + ] + }, + "where": { + "name": "ignore", + "arguments": [ + { + "type": "Integer", + "value": 2147483648 + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + }, + "descending": true + } + ] + } + ] +} diff --git a/parser/testdata/02541_tuple_element_with_null/ast.json b/parser/testdata/02541_tuple_element_with_null/ast.json new file mode 100644 index 0000000000..52ba9eb356 --- /dev/null +++ b/parser/testdata/02541_tuple_element_with_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tuple_element", + "tables": [ + { + "table": "test_tuple_element" + } + ] +} diff --git a/parser/testdata/02542_transform_new/ast.json b/parser/testdata/02542_transform_new/ast.json new file mode 100644 index 0000000000..cb229aabcc --- /dev/null +++ b/parser/testdata/02542_transform_new/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 9 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "materialize", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02542_transform_old/ast.json b/parser/testdata/02542_transform_old/ast.json new file mode 100644 index 0000000000..479637e1fb --- /dev/null +++ b/parser/testdata/02542_transform_old/ast.json @@ -0,0 +1,90 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 6 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "google" + }, + { + "type": "String", + "value": "yandex" + }, + { + "type": "String", + "value": "yahoo" + } + ] + }, + { + "type": "String", + "value": "other" + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "x" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02551_ipv4_implicit_uint64/ast.json b/parser/testdata/02551_ipv4_implicit_uint64/ast.json new file mode 100644 index 0000000000..36cde79e4e --- /dev/null +++ b/parser/testdata/02551_ipv4_implicit_uint64/ast.json @@ -0,0 +1,14 @@ +{ + "table": "ip4test", + "columns": [ + { + "name": "ip", + "type": { + "name": "IPv4" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02552_analyzer_optimize_group_by_function_keys_crash/ast.json b/parser/testdata/02552_analyzer_optimize_group_by_function_keys_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02552_analyzer_optimize_group_by_function_keys_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02552_check_referential_table_dependencies/ast.json b/parser/testdata/02552_check_referential_table_dependencies/ast.json new file mode 100644 index 0000000000..9c0ec412c7 --- /dev/null +++ b/parser/testdata/02552_check_referential_table_dependencies/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv", + "tables": [ + { + "table": "mv" + } + ] +} diff --git a/parser/testdata/02552_inner_join_with_where_true/ast.json b/parser/testdata/02552_inner_join_with_where_true/ast.json new file mode 100644 index 0000000000..cc61a6237c --- /dev/null +++ b/parser/testdata/02552_inner_join_with_where_true/ast.json @@ -0,0 +1,14 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int32" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02552_regression_crash/ast.json b/parser/testdata/02552_regression_crash/ast.json new file mode 100644 index 0000000000..865a74a6bf --- /dev/null +++ b/parser/testdata/02552_regression_crash/ast.json @@ -0,0 +1,38 @@ +{ + "table": "store_sales", + "columns": [ + { + "name": "ss_sold_date_sk", + "type": { + "name": "Float64" + } + }, + { + "name": "ss_sold_time_sk", + "type": { + "name": "Float64" + } + }, + { + "name": "ss_customer_sk", + "type": { + "name": "Float64" + } + }, + { + "name": "ss_cdemo_sk", + "type": { + "name": "Float64" + } + }, + { + "name": "ss_hdemo_sk", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02552_sparse_columns_intersect/ast.json b/parser/testdata/02552_sparse_columns_intersect/ast.json new file mode 100644 index 0000000000..6e57e27c16 --- /dev/null +++ b/parser/testdata/02552_sparse_columns_intersect/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_intersect", + "tables": [ + { + "table": "t_sparse_intersect" + } + ] +} diff --git a/parser/testdata/02553_new_type_json_attach_partition/ast.json b/parser/testdata/02553_new_type_json_attach_partition/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/02553_new_type_json_attach_partition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02554_fix_grouping_sets_predicate_push_down/ast.json b/parser/testdata/02554_fix_grouping_sets_predicate_push_down/ast.json new file mode 100644 index 0000000000..f3a8480211 --- /dev/null +++ b/parser/testdata/02554_fix_grouping_sets_predicate_push_down/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 8 + } + } + ] +} diff --git a/parser/testdata/02554_format_json_columns_for_empty/ast.json b/parser/testdata/02554_format_json_columns_for_empty/ast.json new file mode 100644 index 0000000000..827374aa7f --- /dev/null +++ b/parser/testdata/02554_format_json_columns_for_empty/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "json_columns", + "tables": [ + { + "table": "json_columns" + } + ] +} diff --git a/parser/testdata/02554_log_faminy_support_storage_policy/ast.json b/parser/testdata/02554_log_faminy_support_storage_policy/ast.json new file mode 100644 index 0000000000..09711ff3f5 --- /dev/null +++ b/parser/testdata/02554_log_faminy_support_storage_policy/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_2554_log", + "tables": [ + { + "table": "test_2554_log" + } + ] +} diff --git a/parser/testdata/02554_rewrite_count_distinct_if_with_count_distinct_implementation/ast.json b/parser/testdata/02554_rewrite_count_distinct_if_with_count_distinct_implementation/ast.json new file mode 100644 index 0000000000..fb7882179b --- /dev/null +++ b/parser/testdata/02554_rewrite_count_distinct_if_with_count_distinct_implementation/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countDistinctIf", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 5 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02559_add_parts/ast.json b/parser/testdata/02559_add_parts/ast.json new file mode 100644 index 0000000000..599401ab15 --- /dev/null +++ b/parser/testdata/02559_add_parts/ast.json @@ -0,0 +1,67 @@ +{ + "table": "check_system_tables", + "columns": [ + { + "name": "name1", + "type": { + "name": "UInt8" + } + }, + { + "name": "name2", + "type": { + "name": "UInt8" + } + }, + { + "name": "name3", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "name1" + ] + } + ], + "partition_by": { + "parts": [ + "name2" + ] + }, + "sample_by": { + "parts": [ + "name1" + ] + }, + "settings": [ + { + "name": "min_bytes_for_wide_part", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "compress_marks", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "compress_primary_key", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/02559_ip_types_bloom/ast.json b/parser/testdata/02559_ip_types_bloom/ast.json new file mode 100644 index 0000000000..9e83ef8bc2 --- /dev/null +++ b/parser/testdata/02559_ip_types_bloom/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ip_bloom", + "tables": [ + { + "table": "ip_bloom" + } + ] +} diff --git a/parser/testdata/02559_multiple_read_steps_in_prewhere/ast.json b/parser/testdata/02559_multiple_read_steps_in_prewhere/ast.json new file mode 100644 index 0000000000..f2f910be36 --- /dev/null +++ b/parser/testdata/02559_multiple_read_steps_in_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02559", + "tables": [ + { + "table": "test_02559" + } + ] +} diff --git a/parser/testdata/02559_multiple_read_steps_in_prewhere_fuzz/ast.json b/parser/testdata/02559_multiple_read_steps_in_prewhere_fuzz/ast.json new file mode 100644 index 0000000000..9660f9c511 --- /dev/null +++ b/parser/testdata/02559_multiple_read_steps_in_prewhere_fuzz/ast.json @@ -0,0 +1,38 @@ +{ + "table": "test_02559__fuzz_20", + "columns": [ + { + "name": "id1", + "type": { + "name": "Int16" + } + }, + { + "name": "id2", + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 18 + }, + { + "type": "Integer", + "value": 14 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "id1" + ] + } + ] +} diff --git a/parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns/ast.json b/parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns/ast.json new file mode 100644 index 0000000000..f2f910be36 --- /dev/null +++ b/parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_02559", + "tables": [ + { + "table": "test_02559" + } + ] +} diff --git a/parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns_2/ast.json b/parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns_2/ast.json new file mode 100644 index 0000000000..8cfb5c0d3e --- /dev/null +++ b/parser/testdata/02559_multiple_read_steps_in_prewhere_missing_columns_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_02559", + "tables": [ + { + "table": "t_02559" + } + ] +} diff --git a/parser/testdata/02559_multiple_read_steps_in_prewhere_reuse_computation/ast.json b/parser/testdata/02559_multiple_read_steps_in_prewhere_reuse_computation/ast.json new file mode 100644 index 0000000000..8cfb5c0d3e --- /dev/null +++ b/parser/testdata/02559_multiple_read_steps_in_prewhere_reuse_computation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_02559", + "tables": [ + { + "table": "t_02559" + } + ] +} diff --git a/parser/testdata/02559_nested_multiple_levels_default/ast.json b/parser/testdata/02559_nested_multiple_levels_default/ast.json new file mode 100644 index 0000000000..7e0b702bf6 --- /dev/null +++ b/parser/testdata/02559_nested_multiple_levels_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_compact", + "tables": [ + { + "table": "data_compact" + } + ] +} diff --git a/parser/testdata/02560_agg_state_deserialization_hash_table_crash/ast.json b/parser/testdata/02560_agg_state_deserialization_hash_table_crash/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02560_agg_state_deserialization_hash_table_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02560_analyzer_materialized_view/ast.json b/parser/testdata/02560_analyzer_materialized_view/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02560_analyzer_materialized_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02560_count_digits/ast.json b/parser/testdata/02560_count_digits/ast.json new file mode 100644 index 0000000000..8ce5c30c8b --- /dev/null +++ b/parser/testdata/02560_count_digits/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countDigits", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02560_null_as_default/ast.json b/parser/testdata/02560_null_as_default/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02560_null_as_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02560_quantile_min_max/ast.json b/parser/testdata/02560_quantile_min_max/ast.json new file mode 100644 index 0000000000..d0f54c39e3 --- /dev/null +++ b/parser/testdata/02560_quantile_min_max/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nums", + "tables": [ + { + "table": "nums" + } + ] +} diff --git a/parser/testdata/02560_regexp_denial_of_service/ast.json b/parser/testdata/02560_regexp_denial_of_service/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02560_regexp_denial_of_service/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02560_vertical_merge_memory_usage/ast.json b/parser/testdata/02560_vertical_merge_memory_usage/ast.json new file mode 100644 index 0000000000..f21258e5db --- /dev/null +++ b/parser/testdata/02560_vertical_merge_memory_usage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tvm", + "tables": [ + { + "table": "tvm" + } + ] +} diff --git a/parser/testdata/02561_sorting_constants_and_distinct_crash/ast.json b/parser/testdata/02561_sorting_constants_and_distinct_crash/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02561_sorting_constants_and_distinct_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02561_with_fill_date_datetime_incompatible/ast.json b/parser/testdata/02561_with_fill_date_datetime_incompatible/ast.json new file mode 100644 index 0000000000..fe8d9b222e --- /dev/null +++ b/parser/testdata/02561_with_fill_date_datetime_incompatible/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "today", + "alias": "a" + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "a" + ] + }, + "with_fill": true, + "fill_from": { + "left": { + "name": "now" + }, + "op": "-", + "right": { + "name": "toIntervalMonth", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + "fill_to": { + "left": { + "name": "now" + }, + "op": "+", + "right": { + "name": "toIntervalDay", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + "fill_step": { + "type": "Integer", + "value": 82600 + } + } + ] + } + ] +} diff --git a/parser/testdata/02562_regexp_extract/ast.json b/parser/testdata/02562_regexp_extract/ast.json new file mode 100644 index 0000000000..0f70339af4 --- /dev/null +++ b/parser/testdata/02562_regexp_extract/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "regexpExtract", + "arguments": [ + { + "type": "String", + "value": "100-200" + }, + { + "type": "String", + "value": "(\\d+)-(\\d+)" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02563_analyzer_merge/ast.json b/parser/testdata/02563_analyzer_merge/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02563_analyzer_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02564_analyzer_cross_to_inner/ast.json b/parser/testdata/02564_analyzer_cross_to_inner/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02564_analyzer_cross_to_inner/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02564_analyzer_ssb_cross_to_inner/ast.json b/parser/testdata/02564_analyzer_ssb_cross_to_inner/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02564_analyzer_ssb_cross_to_inner/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02564_date_format/ast.json b/parser/testdata/02564_date_format/ast.json new file mode 100644 index 0000000000..0a3e5e8655 --- /dev/null +++ b/parser/testdata/02564_date_format/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "DATE_FORMAT", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2018-01-02 22:33:44" + } + ] + }, + { + "type": "String", + "value": "%a" + } + ] + }, + { + "name": "DATE_FORMAT", + "arguments": [ + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "2018-01-02" + } + ] + }, + { + "type": "String", + "value": "%a" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02564_read_in_order_final_desc/ast.json b/parser/testdata/02564_read_in_order_final_desc/ast.json new file mode 100644 index 0000000000..d121fc848a --- /dev/null +++ b/parser/testdata/02564_read_in_order_final_desc/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02565_analyzer_limit_settings/ast.json b/parser/testdata/02565_analyzer_limit_settings/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02565_analyzer_limit_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02565_update_empty_nested/ast.json b/parser/testdata/02565_update_empty_nested/ast.json new file mode 100644 index 0000000000..430ec320bf --- /dev/null +++ b/parser/testdata/02565_update_empty_nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_update_empty_nested", + "tables": [ + { + "table": "t_update_empty_nested" + } + ] +} diff --git a/parser/testdata/02566_analyzer_limit_settings_distributed/ast.json b/parser/testdata/02566_analyzer_limit_settings_distributed/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02566_analyzer_limit_settings_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02567_and_consistency/ast.json b/parser/testdata/02567_and_consistency/ast.json new file mode 100644 index 0000000000..baccc6838a --- /dev/null +++ b/parser/testdata/02567_and_consistency/ast.json @@ -0,0 +1,101 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toBool", + "arguments": [ + { + "name": "sin", + "arguments": [ + { + "name": "SUM", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "number" + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "having": { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "AND", + "right": { + "name": "sin", + "arguments": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "ALL" + ] + } + } + ], + "settings": [ + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02568_and_consistency/ast.json b/parser/testdata/02568_and_consistency/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02568_and_consistency/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02568_array_map_const_low_cardinality/ast.json b/parser/testdata/02568_array_map_const_low_cardinality/ast.json new file mode 100644 index 0000000000..32cc201749 --- /dev/null +++ b/parser/testdata/02568_array_map_const_low_cardinality/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "op": "+", + "right": { + "expr": { + "type": "Integer", + "value": 1 + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02568_json_array_length/ast.json b/parser/testdata/02568_json_array_length/ast.json new file mode 100644 index 0000000000..2d489eb95a --- /dev/null +++ b/parser/testdata/02568_json_array_length/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONArrayLength", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02569_order_by_aggregation_result/ast.json b/parser/testdata/02569_order_by_aggregation_result/ast.json new file mode 100644 index 0000000000..95d578b0aa --- /dev/null +++ b/parser/testdata/02569_order_by_aggregation_result/ast.json @@ -0,0 +1,70 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 2 + } + } + }, + "alias": "value" + }, + { + "name": "sum", + "arguments": [ + { + "parts": [ + "value" + ] + } + ], + "over": {} + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "where": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02572_materialized_views_ignore_errors/ast.json b/parser/testdata/02572_materialized_views_ignore_errors/ast.json new file mode 100644 index 0000000000..f1ed162a15 --- /dev/null +++ b/parser/testdata/02572_materialized_views_ignore_errors/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02572_max_intersections/ast.json b/parser/testdata/02572_max_intersections/ast.json new file mode 100644 index 0000000000..262529f172 --- /dev/null +++ b/parser/testdata/02572_max_intersections/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "maxIntersectionsState", + "arguments": [ + {} + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "VALUES", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02572_system_logs_materialized_views_ignore_errors/ast.json b/parser/testdata/02572_system_logs_materialized_views_ignore_errors/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/02572_system_logs_materialized_views_ignore_errors/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02573_insert_null_as_default_null_as_empty_nested/ast.json b/parser/testdata/02573_insert_null_as_default_null_as_empty_nested/ast.json new file mode 100644 index 0000000000..e4e4ba741b --- /dev/null +++ b/parser/testdata/02573_insert_null_as_default_null_as_empty_nested/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "JSONEachRow" + ] + }, + { + "type": "String", + "value": "payload Tuple(pull_request Tuple(merged_by Tuple(login Nullable(String))))" + }, + { + "type": "String", + "value": "{\"payload\" : {\"pull_request\": {\"merged_by\": {\"login\": \"root\"}}}}" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "input_format_null_as_default", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02573_quantile_fuse_msan/ast.json b/parser/testdata/02573_quantile_fuse_msan/ast.json new file mode 100644 index 0000000000..5b8a655395 --- /dev/null +++ b/parser/testdata/02573_quantile_fuse_msan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_syntax_fuse_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02574_suspicious_low_cardinality_msan/ast.json b/parser/testdata/02574_suspicious_low_cardinality_msan/ast.json new file mode 100644 index 0000000000..27677467c0 --- /dev/null +++ b/parser/testdata/02574_suspicious_low_cardinality_msan/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1__fuzz_19", + "tables": [ + { + "table": "table1__fuzz_19" + } + ] +} diff --git a/parser/testdata/02575_map_hashing_msan/ast.json b/parser/testdata/02575_map_hashing_msan/ast.json new file mode 100644 index 0000000000..4df66c0b11 --- /dev/null +++ b/parser/testdata/02575_map_hashing_msan/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "cityHash64", + "arguments": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "Hello" + } + ] + }, + { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "World" + } + ] + }, + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02575_merge_prewhere_default_expression/ast.json b/parser/testdata/02575_merge_prewhere_default_expression/ast.json new file mode 100644 index 0000000000..44a7ee321d --- /dev/null +++ b/parser/testdata/02575_merge_prewhere_default_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m", + "tables": [ + { + "table": "m" + } + ] +} diff --git a/parser/testdata/02575_merge_prewhere_different_default_kind/ast.json b/parser/testdata/02575_merge_prewhere_different_default_kind/ast.json new file mode 100644 index 0000000000..44a7ee321d --- /dev/null +++ b/parser/testdata/02575_merge_prewhere_different_default_kind/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m", + "tables": [ + { + "table": "m" + } + ] +} diff --git a/parser/testdata/02575_merge_prewhere_ephemeral/ast.json b/parser/testdata/02575_merge_prewhere_ephemeral/ast.json new file mode 100644 index 0000000000..44a7ee321d --- /dev/null +++ b/parser/testdata/02575_merge_prewhere_ephemeral/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m", + "tables": [ + { + "table": "m" + } + ] +} diff --git a/parser/testdata/02575_merge_prewhere_materialized/ast.json b/parser/testdata/02575_merge_prewhere_materialized/ast.json new file mode 100644 index 0000000000..44a7ee321d --- /dev/null +++ b/parser/testdata/02575_merge_prewhere_materialized/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m", + "tables": [ + { + "table": "m" + } + ] +} diff --git a/parser/testdata/02576_predicate_push_down_sorting_fix/ast.json b/parser/testdata/02576_predicate_push_down_sorting_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02576_predicate_push_down_sorting_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02576_rewrite_array_exists_to_has/ast.json b/parser/testdata/02576_rewrite_array_exists_to_has/ast.json new file mode 100644 index 0000000000..cb3baa670a --- /dev/null +++ b/parser/testdata/02576_rewrite_array_exists_to_has/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/02577_analyzer_array_join_calc_twice/ast.json b/parser/testdata/02577_analyzer_array_join_calc_twice/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02577_analyzer_array_join_calc_twice/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02577_keepermap_delete_update/ast.json b/parser/testdata/02577_keepermap_delete_update/ast.json new file mode 100644 index 0000000000..72881c904a --- /dev/null +++ b/parser/testdata/02577_keepermap_delete_update/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02577_keepermap_delete_update", + "tables": [ + { + "table": "02577_keepermap_delete_update" + } + ] +} diff --git a/parser/testdata/02578_ipv4_codec_t64/ast.json b/parser/testdata/02578_ipv4_codec_t64/ast.json new file mode 100644 index 0000000000..021199e50b --- /dev/null +++ b/parser/testdata/02578_ipv4_codec_t64/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ipv4_t64", + "tables": [ + { + "table": "ipv4_t64" + } + ] +} diff --git a/parser/testdata/02578_parameterized_rename_queries/ast.json b/parser/testdata/02578_parameterized_rename_queries/ast.json new file mode 100644 index 0000000000..faf46b2b23 --- /dev/null +++ b/parser/testdata/02578_parameterized_rename_queries/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "02661_db", + "drop_database": true +} diff --git a/parser/testdata/02579_fill_empty_chunk/ast.json b/parser/testdata/02579_fill_empty_chunk/ast.json new file mode 100644 index 0000000000..898837bdf6 --- /dev/null +++ b/parser/testdata/02579_fill_empty_chunk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_positional_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02579_fill_empty_chunk_analyzer/ast.json b/parser/testdata/02579_fill_empty_chunk_analyzer/ast.json new file mode 100644 index 0000000000..898837bdf6 --- /dev/null +++ b/parser/testdata/02579_fill_empty_chunk_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_positional_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02579_parameterized_replace/ast.json b/parser/testdata/02579_parameterized_replace/ast.json new file mode 100644 index 0000000000..e91bb4e88b --- /dev/null +++ b/parser/testdata/02579_parameterized_replace/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "param_test_a", + "value": { + "type": "Integer", + "value": 30 + } + } + ] +} diff --git a/parser/testdata/02581_share_big_sets_between_multiple_mutations_tasks_long/ast.json b/parser/testdata/02581_share_big_sets_between_multiple_mutations_tasks_long/ast.json new file mode 100644 index 0000000000..68adc6331a --- /dev/null +++ b/parser/testdata/02581_share_big_sets_between_multiple_mutations_tasks_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02581_trips", + "tables": [ + { + "table": "02581_trips" + } + ] +} diff --git a/parser/testdata/02581_share_big_sets_between_mutation_tasks/ast.json b/parser/testdata/02581_share_big_sets_between_mutation_tasks/ast.json new file mode 100644 index 0000000000..68adc6331a --- /dev/null +++ b/parser/testdata/02581_share_big_sets_between_mutation_tasks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02581_trips", + "tables": [ + { + "table": "02581_trips" + } + ] +} diff --git a/parser/testdata/02581_share_big_sets_between_mutation_tasks_long/ast.json b/parser/testdata/02581_share_big_sets_between_mutation_tasks_long/ast.json new file mode 100644 index 0000000000..68adc6331a --- /dev/null +++ b/parser/testdata/02581_share_big_sets_between_mutation_tasks_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02581_trips", + "tables": [ + { + "table": "02581_trips" + } + ] +} diff --git a/parser/testdata/02581_share_big_sets_between_mutation_tasks_with_storage_set/ast.json b/parser/testdata/02581_share_big_sets_between_mutation_tasks_with_storage_set/ast.json new file mode 100644 index 0000000000..68adc6331a --- /dev/null +++ b/parser/testdata/02581_share_big_sets_between_mutation_tasks_with_storage_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02581_trips", + "tables": [ + { + "table": "02581_trips" + } + ] +} diff --git a/parser/testdata/02581_width_bucket/ast.json b/parser/testdata/02581_width_bucket/ast.json new file mode 100644 index 0000000000..d93d56d4dc --- /dev/null +++ b/parser/testdata/02581_width_bucket/ast.json @@ -0,0 +1,62 @@ +{ + "table": "mytable", + "columns": [ + { + "name": "operand", + "type": { + "name": "Float64" + } + }, + { + "name": "low", + "type": { + "name": "Float64" + } + }, + { + "name": "high", + "type": { + "name": "Float64" + } + }, + { + "name": "count", + "type": { + "name": "UInt64" + } + }, + { + "name": "PRIMARY", + "type": { + "name": "KEY", + "parameters": [ + { + "parts": [ + "operand" + ] + }, + { + "parts": [ + "low" + ] + }, + { + "parts": [ + "high" + ] + }, + { + "parts": [ + "count" + ] + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + } +} diff --git a/parser/testdata/02582_analyzer_join_subquery_empty_column_list/ast.json b/parser/testdata/02582_analyzer_join_subquery_empty_column_list/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02582_analyzer_join_subquery_empty_column_list/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02582_async_reading_with_small_limit/ast.json b/parser/testdata/02582_async_reading_with_small_limit/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02582_async_reading_with_small_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02583_map_literal_cast/ast.json b/parser/testdata/02583_map_literal_cast/ast.json new file mode 100644 index 0000000000..0bbcda5afa --- /dev/null +++ b/parser/testdata/02583_map_literal_cast/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "b" + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + "type": { + "name": "Map(String, UInt8)" + } + } + ] + } + ] +} diff --git a/parser/testdata/02584_range_ipv4/ast.json b/parser/testdata/02584_range_ipv4/ast.json new file mode 100644 index 0000000000..54839c56e2 --- /dev/null +++ b/parser/testdata/02584_range_ipv4/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "range", + "arguments": [ + { + "name": "toIPv4", + "arguments": [ + { + "type": "String", + "value": "172.31.0.0" + } + ] + }, + { + "name": "toIPv4", + "arguments": [ + { + "type": "String", + "value": "172.31.0.10" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02586_generate_random_structure/ast.json b/parser/testdata/02586_generate_random_structure/ast.json new file mode 100644 index 0000000000..1e24b0917c --- /dev/null +++ b/parser/testdata/02586_generate_random_structure/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "generateRandomStructure", + "arguments": [ + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 42 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02589_bson_invalid_document_size/ast.json b/parser/testdata/02589_bson_invalid_document_size/ast.json new file mode 100644 index 0000000000..1e13b78511 --- /dev/null +++ b/parser/testdata/02589_bson_invalid_document_size/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_parallel_parsing", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02591_bson_long_tuple/ast.json b/parser/testdata/02591_bson_long_tuple/ast.json new file mode 100644 index 0000000000..943ff0f409 --- /dev/null +++ b/parser/testdata/02591_bson_long_tuple/ast.json @@ -0,0 +1,63 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 8 + }, + { + "type": "Integer", + "value": 9 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 11 + } + ], + "alias": "x" + } + ], + "format": { + "parts": [ + "BSONEachRow" + ] + } + } + ] +} diff --git a/parser/testdata/02596_build_set_and_remote/ast.json b/parser/testdata/02596_build_set_and_remote/ast.json new file mode 100644 index 0000000000..2a288c96fb --- /dev/null +++ b/parser/testdata/02596_build_set_and_remote/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "expr": { + "parts": [ + "x" + ] + }, + "query": { + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "2" + } + ] + } + ] + } + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02597_column_update_tricky_expression_and_replication/ast.json b/parser/testdata/02597_column_update_tricky_expression_and_replication/ast.json new file mode 100644 index 0000000000..aef31fbaa8 --- /dev/null +++ b/parser/testdata/02597_column_update_tricky_expression_and_replication/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ], + "sync": true +} diff --git a/parser/testdata/02661_quantile_approx/ast.json b/parser/testdata/02661_quantile_approx/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02661_quantile_approx/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02662_first_last_value/ast.json b/parser/testdata/02662_first_last_value/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02662_first_last_value/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02662_sparse_columns_mutations_1/ast.json b/parser/testdata/02662_sparse_columns_mutations_1/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02662_sparse_columns_mutations_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02662_sparse_columns_mutations_2/ast.json b/parser/testdata/02662_sparse_columns_mutations_2/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02662_sparse_columns_mutations_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02662_sparse_columns_mutations_3/ast.json b/parser/testdata/02662_sparse_columns_mutations_3/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02662_sparse_columns_mutations_3/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02662_sparse_columns_mutations_4/ast.json b/parser/testdata/02662_sparse_columns_mutations_4/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02662_sparse_columns_mutations_4/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02662_sparse_columns_mutations_5/ast.json b/parser/testdata/02662_sparse_columns_mutations_5/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02662_sparse_columns_mutations_5/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02668_column_block_number/ast.json b/parser/testdata/02668_column_block_number/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02668_column_block_number/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02668_column_block_number_vertical_merge/ast.json b/parser/testdata/02668_column_block_number_vertical_merge/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02668_column_block_number_vertical_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02668_column_block_number_with_projections/ast.json b/parser/testdata/02668_column_block_number_with_projections/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02668_column_block_number_with_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02668_logical_optimizer_removing_redundant_checks/ast.json b/parser/testdata/02668_logical_optimizer_removing_redundant_checks/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02668_logical_optimizer_removing_redundant_checks/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02668_parse_datetime/ast.json b/parser/testdata/02668_parse_datetime/ast.json new file mode 100644 index 0000000000..fe1a746293 --- /dev/null +++ b/parser/testdata/02668_parse_datetime/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "parseDateTime", + "arguments": [ + { + "type": "String", + "value": "2020" + }, + { + "type": "String", + "value": "%Y" + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + "op": "=", + "right": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-01-01" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02668_parse_datetime_in_joda_syntax/ast.json b/parser/testdata/02668_parse_datetime_in_joda_syntax/ast.json new file mode 100644 index 0000000000..a7772c6853 --- /dev/null +++ b/parser/testdata/02668_parse_datetime_in_joda_syntax/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "parseDateTimeInJodaSyntax", + "arguments": [ + { + "type": "String", + "value": " " + }, + { + "type": "String", + "value": " " + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + "op": "=", + "right": { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "1970-01-01" + }, + { + "type": "String", + "value": "UTC" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02668_ulid_decoding/ast.json b/parser/testdata/02668_ulid_decoding/ast.json new file mode 100644 index 0000000000..6d285daf6f --- /dev/null +++ b/parser/testdata/02668_ulid_decoding/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "dateDiff", + "arguments": [ + { + "type": "String", + "value": "minute" + }, + { + "name": "ULIDStringToDateTime", + "arguments": [ + { + "name": "generateULID" + } + ] + }, + { + "name": "now" + } + ] + }, + "op": "\u003c=", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02669_alter_modify_to_nullable/ast.json b/parser/testdata/02669_alter_modify_to_nullable/ast.json new file mode 100644 index 0000000000..f30fb9b8b7 --- /dev/null +++ b/parser/testdata/02669_alter_modify_to_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_modify_to_nullable", + "tables": [ + { + "table": "t_modify_to_nullable" + } + ] +} diff --git a/parser/testdata/02670_constant_skip_index/ast.json b/parser/testdata/02670_constant_skip_index/ast.json new file mode 100644 index 0000000000..181f6d2952 --- /dev/null +++ b/parser/testdata/02670_constant_skip_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_constant_index", + "tables": [ + { + "table": "t_constant_index" + } + ] +} diff --git a/parser/testdata/02674_and_consistency/ast.json b/parser/testdata/02674_and_consistency/ast.json new file mode 100644 index 0000000000..7a1a0ecbe6 --- /dev/null +++ b/parser/testdata/02674_and_consistency/ast.json @@ -0,0 +1,81 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "SUM", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 10 + }, + "alias": "number" + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "having": { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "AND", + "right": { + "name": "sin", + "arguments": [ + { + "name": "SUMOrNull", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + }, + "settings": [ + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02674_null_default_structure/ast.json b/parser/testdata/02674_null_default_structure/ast.json new file mode 100644 index 0000000000..b362cd7f4b --- /dev/null +++ b/parser/testdata/02674_null_default_structure/ast.json @@ -0,0 +1,20 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "null" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02674_trivial_count_analyzer/ast.json b/parser/testdata/02674_trivial_count_analyzer/ast.json new file mode 100644 index 0000000000..da704cb3b3 --- /dev/null +++ b/parser/testdata/02674_trivial_count_analyzer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "m3", + "tables": [ + { + "table": "m3" + } + ] +} diff --git a/parser/testdata/02675_is_ipv6_function_fix/ast.json b/parser/testdata/02675_is_ipv6_function_fix/ast.json new file mode 100644 index 0000000000..85dd0c4e29 --- /dev/null +++ b/parser/testdata/02675_is_ipv6_function_fix/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isIPv6String", + "arguments": [ + { + "type": "String", + "value": "1234::1234:" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02675_predicate_push_down_filled_join_fix/ast.json b/parser/testdata/02675_predicate_push_down_filled_join_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02675_predicate_push_down_filled_join_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02675_sparse_columns_clear_column/ast.json b/parser/testdata/02675_sparse_columns_clear_column/ast.json new file mode 100644 index 0000000000..7de1dfe0a7 --- /dev/null +++ b/parser/testdata/02675_sparse_columns_clear_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_columns_clear", + "tables": [ + { + "table": "t_sparse_columns_clear" + } + ] +} diff --git a/parser/testdata/02676_analyzer_limit_offset/ast.json b/parser/testdata/02676_analyzer_limit_offset/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02676_analyzer_limit_offset/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02676_distinct_reading_in_order_analyzer/ast.json b/parser/testdata/02676_distinct_reading_in_order_analyzer/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02676_distinct_reading_in_order_analyzer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02676_kafka_murmur_hash/ast.json b/parser/testdata/02676_kafka_murmur_hash/ast.json new file mode 100644 index 0000000000..c5aeb7d12d --- /dev/null +++ b/parser/testdata/02676_kafka_murmur_hash/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "kafkaMurmurHash", + "arguments": [ + { + "type": "String", + "value": "21" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02676_to_decimal_string/ast.json b/parser/testdata/02676_to_decimal_string/ast.json new file mode 100644 index 0000000000..5885479973 --- /dev/null +++ b/parser/testdata/02676_to_decimal_string/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDecimalString", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 77 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02677_analyzer_compound_expressions/ast.json b/parser/testdata/02677_analyzer_compound_expressions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02677_analyzer_compound_expressions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02677_get_subcolumn_array_of_tuples/ast.json b/parser/testdata/02677_get_subcolumn_array_of_tuples/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02677_get_subcolumn_array_of_tuples/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02677_grace_hash_limit_race/ast.json b/parser/testdata/02677_grace_hash_limit_race/ast.json new file mode 100644 index 0000000000..3d2c775bc8 --- /dev/null +++ b/parser/testdata/02677_grace_hash_limit_race/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_grace_hash", + "tables": [ + { + "table": "test_grace_hash" + } + ] +} diff --git a/parser/testdata/02678_explain_pipeline_graph_with_projection/ast.json b/parser/testdata/02678_explain_pipeline_graph_with_projection/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02678_explain_pipeline_graph_with_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02679_explain_merge_tree_prewhere_row_policy/ast.json b/parser/testdata/02679_explain_merge_tree_prewhere_row_policy/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02679_explain_merge_tree_prewhere_row_policy/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02679_query_parameters_dangling_pointer/ast.json b/parser/testdata/02679_query_parameters_dangling_pointer/ast.json new file mode 100644 index 0000000000..513c617280 --- /dev/null +++ b/parser/testdata/02679_query_parameters_dangling_pointer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "param_o", + "value": { + "type": "String", + "value": "a" + } + } + ] +} diff --git a/parser/testdata/02680_datetime64_monotonic_check/ast.json b/parser/testdata/02680_datetime64_monotonic_check/ast.json new file mode 100644 index 0000000000..9535d454b3 --- /dev/null +++ b/parser/testdata/02680_datetime64_monotonic_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02680_datetime64_monotonic_check", + "tables": [ + { + "table": "02680_datetime64_monotonic_check" + } + ] +} diff --git a/parser/testdata/02680_illegal_type_of_filter_projection/ast.json b/parser/testdata/02680_illegal_type_of_filter_projection/ast.json new file mode 100644 index 0000000000..1d99c63e83 --- /dev/null +++ b/parser/testdata/02680_illegal_type_of_filter_projection/ast.json @@ -0,0 +1,62 @@ +{ + "table": "test_tuple", + "columns": [ + { + "name": "p", + "type": { + "name": "DateTime" + } + }, + { + "name": "i", + "type": { + "name": "int" + } + }, + { + "name": "j", + "type": { + "name": "int" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "j" + ] + } + ], + "partition_by": { + "type": "Tuple", + "value": [ + { + "name": "toDate", + "arguments": [ + { + "parts": [ + "p" + ] + } + ] + }, + { + "parts": [ + "i" + ] + } + ] + }, + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02680_instr_alias_for_position_case_insensitive/ast.json b/parser/testdata/02680_instr_alias_for_position_case_insensitive/ast.json new file mode 100644 index 0000000000..d7986f04bb --- /dev/null +++ b/parser/testdata/02680_instr_alias_for_position_case_insensitive/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "INSTR", + "arguments": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "e" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02680_lc_null_as_default/ast.json b/parser/testdata/02680_lc_null_as_default/ast.json new file mode 100644 index 0000000000..ec6d8ddd08 --- /dev/null +++ b/parser/testdata/02680_lc_null_as_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_null_as_default__fuzz_46", + "tables": [ + { + "table": "test_null_as_default__fuzz_46" + } + ] +} diff --git a/parser/testdata/02680_mysql_ast_logical_err/ast.json b/parser/testdata/02680_mysql_ast_logical_err/ast.json new file mode 100644 index 0000000000..26db947592 --- /dev/null +++ b/parser/testdata/02680_mysql_ast_logical_err/ast.json @@ -0,0 +1,32 @@ +{ + "table": "foo", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt32" + } + }, + { + "name": "a", + "type": { + "name": "String" + } + }, + { + "name": "b", + "type": { + "name": "Int64" + } + }, + { + "name": "c", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "TinyLog" + } +} diff --git a/parser/testdata/02681_aggregation_by_partitions_bug/ast.json b/parser/testdata/02681_aggregation_by_partitions_bug/ast.json new file mode 100644 index 0000000000..8cd86cd423 --- /dev/null +++ b/parser/testdata/02681_aggregation_by_partitions_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 16 + } + } + ] +} diff --git a/parser/testdata/02681_comparsion_tuple_elimination_ast/ast.json b/parser/testdata/02681_comparsion_tuple_elimination_ast/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/02681_comparsion_tuple_elimination_ast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02681_undrop_query/ast.json b/parser/testdata/02681_undrop_query/ast.json new file mode 100644 index 0000000000..b696026325 --- /dev/null +++ b/parser/testdata/02681_undrop_query/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "database_atomic_wait_for_drop_and_detach_synchronously", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02685_decimal256_various/ast.json b/parser/testdata/02685_decimal256_various/ast.json new file mode 100644 index 0000000000..5a272219b5 --- /dev/null +++ b/parser/testdata/02685_decimal256_various/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Float", + "value": 1.1 + }, + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 60 + }, + { + "type": "Integer", + "value": 30 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ] +} diff --git a/parser/testdata/02688_long_aggregate_function_names/ast.json b/parser/testdata/02688_long_aggregate_function_names/ast.json new file mode 100644 index 0000000000..f828295d58 --- /dev/null +++ b/parser/testdata/02688_long_aggregate_function_names/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "minOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNullOrNull", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02690_subquery_identifiers/ast.json b/parser/testdata/02690_subquery_identifiers/ast.json new file mode 100644 index 0000000000..e0eb7d38d5 --- /dev/null +++ b/parser/testdata/02690_subquery_identifiers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_str", + "tables": [ + { + "table": "t_str" + } + ] +} diff --git a/parser/testdata/02691_drop_column_with_projections_replicated/ast.json b/parser/testdata/02691_drop_column_with_projections_replicated/ast.json new file mode 100644 index 0000000000..22bc3084e4 --- /dev/null +++ b/parser/testdata/02691_drop_column_with_projections_replicated/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02691_drop_column_replicated", + "tables": [ + { + "table": "02691_drop_column_replicated" + } + ] +} diff --git a/parser/testdata/02691_multiple_joins_backtick_identifiers/ast.json b/parser/testdata/02691_multiple_joins_backtick_identifiers/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02691_multiple_joins_backtick_identifiers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02692_multiple_joins_unicode/ast.json b/parser/testdata/02692_multiple_joins_unicode/ast.json new file mode 100644 index 0000000000..ad2641201a --- /dev/null +++ b/parser/testdata/02692_multiple_joins_unicode/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "store", + "tables": [ + { + "table": "store" + } + ] +} diff --git a/parser/testdata/02693_multiple_joins_in/ast.json b/parser/testdata/02693_multiple_joins_in/ast.json new file mode 100644 index 0000000000..b7b270bfae --- /dev/null +++ b/parser/testdata/02693_multiple_joins_in/ast.json @@ -0,0 +1,16 @@ +{ + "temporary": true, + "table": "temp_table3", + "columns": [ + { + "name": "val0", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/02694_wrong_identifier_shouldnt_be_accepted/ast.json b/parser/testdata/02694_wrong_identifier_shouldnt_be_accepted/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02694_wrong_identifier_shouldnt_be_accepted/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02695_logical_optimizer_alias_bug/ast.json b/parser/testdata/02695_logical_optimizer_alias_bug/ast.json new file mode 100644 index 0000000000..2714f76376 --- /dev/null +++ b/parser/testdata/02695_logical_optimizer_alias_bug/ast.json @@ -0,0 +1,33 @@ +{ + "table": "test_local", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt32" + } + }, + { + "name": "path", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/02695_storage_join_insert_select_deadlock/ast.json b/parser/testdata/02695_storage_join_insert_select_deadlock/ast.json new file mode 100644 index 0000000000..d5d7cb3e1b --- /dev/null +++ b/parser/testdata/02695_storage_join_insert_select_deadlock/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_join", + "tables": [ + { + "table": "test_table_join" + } + ] +} diff --git a/parser/testdata/02696_ignore_inacc_tables_mat_view_atttach/ast.json b/parser/testdata/02696_ignore_inacc_tables_mat_view_atttach/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/02696_ignore_inacc_tables_mat_view_atttach/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/02697_alter_dependencies/ast.json b/parser/testdata/02697_alter_dependencies/ast.json new file mode 100644 index 0000000000..6e329f9a25 --- /dev/null +++ b/parser/testdata/02697_alter_dependencies/ast.json @@ -0,0 +1,28 @@ +{ + "table": "mv_source", + "columns": [ + { + "name": "a", + "type": { + "name": "Int64" + } + }, + { + "name": "insert_time", + "type": { + "name": "DateTime" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "insert_time" + ] + } + ] +} diff --git a/parser/testdata/02698_marked_dropped_tables/ast.json b/parser/testdata/02698_marked_dropped_tables/ast.json new file mode 100644 index 0000000000..b696026325 --- /dev/null +++ b/parser/testdata/02698_marked_dropped_tables/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "database_atomic_wait_for_drop_and_detach_synchronously", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02699_polygons_sym_difference_total_analyzer/ast.json b/parser/testdata/02699_polygons_sym_difference_total_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02699_polygons_sym_difference_total_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02700_regexp_operator/ast.json b/parser/testdata/02700_regexp_operator/ast.json new file mode 100644 index 0000000000..1fd3f17d2e --- /dev/null +++ b/parser/testdata/02700_regexp_operator/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "match", + "arguments": [ + { + "type": "String", + "value": "ab" + }, + { + "type": "String", + "value": "a.*b" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02701_invalid_having_NOT_AN_AGGREGATE/ast.json b/parser/testdata/02701_invalid_having_NOT_AN_AGGREGATE/ast.json new file mode 100644 index 0000000000..5c946fd7b7 --- /dev/null +++ b/parser/testdata/02701_invalid_having_NOT_AN_AGGREGATE/ast.json @@ -0,0 +1,83 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "a" + ] + }, + { + "name": "sum", + "arguments": [ + { + "parts": [ + "b" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "b" + }, + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "c" + } + ] + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "a" + ] + } + ], + "having": { + "parts": [ + "c" + ] + }, + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02701_non_parametric_function/ast.json b/parser/testdata/02701_non_parametric_function/ast.json new file mode 100644 index 0000000000..7c1efc0eae --- /dev/null +++ b/parser/testdata/02701_non_parametric_function/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e", + "right": { + "name": "toUInt64", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/02702_logical_optimizer_with_nulls/ast.json b/parser/testdata/02702_logical_optimizer_with_nulls/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02702_logical_optimizer_with_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02704_storage_merge_explain_graph_crash/ast.json b/parser/testdata/02704_storage_merge_explain_graph_crash/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/02704_storage_merge_explain_graph_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/02705_grouping_keys_equal_keys/ast.json b/parser/testdata/02705_grouping_keys_equal_keys/ast.json new file mode 100644 index 0000000000..f083d3aa1f --- /dev/null +++ b/parser/testdata/02705_grouping_keys_equal_keys/ast.json @@ -0,0 +1,125 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 1048576 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "/", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "/", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02705_projection_and_ast_optimizations_bug/ast.json b/parser/testdata/02705_projection_and_ast_optimizations_bug/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02705_projection_and_ast_optimizations_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02705_settings_check_changed_flag/ast.json b/parser/testdata/02705_settings_check_changed_flag/ast.json new file mode 100644 index 0000000000..34be96861a --- /dev/null +++ b/parser/testdata/02705_settings_check_changed_flag/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "changed" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "mysql_max_rows_to_insert" + } + } + } + ] +} diff --git a/parser/testdata/02706_keeper_map_insert_strict/ast.json b/parser/testdata/02706_keeper_map_insert_strict/ast.json new file mode 100644 index 0000000000..ce1910327a --- /dev/null +++ b/parser/testdata/02706_keeper_map_insert_strict/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "02706_keeper_map_insert_strict", + "tables": [ + { + "table": "02706_keeper_map_insert_strict" + } + ], + "sync": true +} diff --git a/parser/testdata/02706_kolmogorov_smirnov_test/ast.json b/parser/testdata/02706_kolmogorov_smirnov_test/ast.json new file mode 100644 index 0000000000..4e199f5f54 --- /dev/null +++ b/parser/testdata/02706_kolmogorov_smirnov_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "kstest", + "tables": [ + { + "table": "kstest" + } + ] +} diff --git a/parser/testdata/02706_show_columns/ast.json b/parser/testdata/02706_show_columns/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02706_show_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02707_keeper_map_delete_update_strict/ast.json b/parser/testdata/02707_keeper_map_delete_update_strict/ast.json new file mode 100644 index 0000000000..797389a4d1 --- /dev/null +++ b/parser/testdata/02707_keeper_map_delete_update_strict/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02707_keepermap_delete_update", + "tables": [ + { + "table": "02707_keepermap_delete_update" + } + ] +} diff --git a/parser/testdata/02707_skip_index_with_in/ast.json b/parser/testdata/02707_skip_index_with_in/ast.json new file mode 100644 index 0000000000..e2ca8b711f --- /dev/null +++ b/parser/testdata/02707_skip_index_with_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_skip_index_in", + "tables": [ + { + "table": "t_skip_index_in" + } + ] +} diff --git a/parser/testdata/02708_dotProduct/ast.json b/parser/testdata/02708_dotProduct/ast.json new file mode 100644 index 0000000000..567d264fca --- /dev/null +++ b/parser/testdata/02708_dotProduct/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02708_parallel_replicas_not_found_column/ast.json b/parser/testdata/02708_parallel_replicas_not_found_column/ast.json new file mode 100644 index 0000000000..20a862d5b2 --- /dev/null +++ b/parser/testdata/02708_parallel_replicas_not_found_column/ast.json @@ -0,0 +1,20 @@ +{ + "if_not_exists": true, + "table": "t_02708", + "columns": [ + { + "name": "x", + "type": { + "name": "DateTime" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02709_generate_random_valid_decimals_and_bools/ast.json b/parser/testdata/02709_generate_random_valid_decimals_and_bools/ast.json new file mode 100644 index 0000000000..4a3f510fae --- /dev/null +++ b/parser/testdata/02709_generate_random_valid_decimals_and_bools/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "toString", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 6 + }, + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generateRandom", + "arguments": [ + { + "type": "String", + "value": "x Decimal(6, 3)" + }, + { + "type": "Integer", + "value": 42 + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 5 + } + } + ] +} diff --git a/parser/testdata/02709_storage_memory_compressed/ast.json b/parser/testdata/02709_storage_memory_compressed/ast.json new file mode 100644 index 0000000000..c0f9a7bba6 --- /dev/null +++ b/parser/testdata/02709_storage_memory_compressed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_memory_compressed", + "tables": [ + { + "table": "t_memory_compressed" + } + ] +} diff --git a/parser/testdata/02710_aggregation_nested_map_ip_uuid/ast.json b/parser/testdata/02710_aggregation_nested_map_ip_uuid/ast.json new file mode 100644 index 0000000000..115a7824b0 --- /dev/null +++ b/parser/testdata/02710_aggregation_nested_map_ip_uuid/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "summing_table", + "tables": [ + { + "table": "summing_table" + } + ] +} diff --git a/parser/testdata/02710_allow_suspicious_indices/ast.json b/parser/testdata/02710_allow_suspicious_indices/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/02710_allow_suspicious_indices/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/02710_date_diff_aliases/ast.json b/parser/testdata/02710_date_diff_aliases/ast.json new file mode 100644 index 0000000000..e657851738 --- /dev/null +++ b/parser/testdata/02710_date_diff_aliases/ast.json @@ -0,0 +1,106 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "functions" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "left": { + "left": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "date_diff" + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "DATE_DIFF" + } + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "timestampDiff" + } + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "timestamp_diff" + } + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "TIMESTAMP_DIFF" + } + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "name" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02710_default_replicated_parameters/ast.json b/parser/testdata/02710_default_replicated_parameters/ast.json new file mode 100644 index 0000000000..ec351feae4 --- /dev/null +++ b/parser/testdata/02710_default_replicated_parameters/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "replicated_database_params", + "drop_database": true +} diff --git a/parser/testdata/02710_show_table/ast.json b/parser/testdata/02710_show_table/ast.json new file mode 100644 index 0000000000..dd9ab0aa5e --- /dev/null +++ b/parser/testdata/02710_show_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_2710_show_table", + "tables": [ + { + "table": "t_2710_show_table" + } + ] +} diff --git a/parser/testdata/02710_topk_with_empty_array/ast.json b/parser/testdata/02710_topk_with_empty_array/ast.json new file mode 100644 index 0000000000..b54460d9e5 --- /dev/null +++ b/parser/testdata/02710_topk_with_empty_array/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "topK", + "arguments": [ + { + "name": "emptyArrayInt16" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02711_server_uuid_macro/ast.json b/parser/testdata/02711_server_uuid_macro/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02711_server_uuid_macro/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02711_soundex_function/ast.json b/parser/testdata/02711_soundex_function/ast.json new file mode 100644 index 0000000000..b11454bd9a --- /dev/null +++ b/parser/testdata/02711_soundex_function/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "soundex", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02711_trim_aliases/ast.json b/parser/testdata/02711_trim_aliases/ast.json new file mode 100644 index 0000000000..42e7d53f8d --- /dev/null +++ b/parser/testdata/02711_trim_aliases/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "functions" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "ltrim" + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "rtrim" + } + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "trim" + } + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "name" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02713_array_low_cardinality_string/ast.json b/parser/testdata/02713_array_low_cardinality_string/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02713_array_low_cardinality_string/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02713_sequence_match_serialization_fix/ast.json b/parser/testdata/02713_sequence_match_serialization_fix/ast.json new file mode 100644 index 0000000000..6022d84efe --- /dev/null +++ b/parser/testdata/02713_sequence_match_serialization_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02713_seqt", + "tables": [ + { + "table": "02713_seqt" + } + ] +} diff --git a/parser/testdata/02714_date_date32_in/ast.json b/parser/testdata/02714_date_date32_in/ast.json new file mode 100644 index 0000000000..bc1440c1dc --- /dev/null +++ b/parser/testdata/02714_date_date32_in/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "2020-01-01" + } + ] + }, + "list": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2020-01-01" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02714_read_bytes_aggregateFunction/ast.json b/parser/testdata/02714_read_bytes_aggregateFunction/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02714_read_bytes_aggregateFunction/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02715_or_null/ast.json b/parser/testdata/02715_or_null/ast.json new file mode 100644 index 0000000000..49e3378611 --- /dev/null +++ b/parser/testdata/02715_or_null/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "argMaxOrNull", + "arguments": [ + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "timestamp" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Null", + "value": null + }, + "type": { + "name": "Nullable(UInt32)" + } + }, + "alias": "id" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "timestamp" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02716_create_direct_dict_with_lifetime_throws/ast.json b/parser/testdata/02716_create_direct_dict_with_lifetime_throws/ast.json new file mode 100644 index 0000000000..a85d298779 --- /dev/null +++ b/parser/testdata/02716_create_direct_dict_with_lifetime_throws/ast.json @@ -0,0 +1,28 @@ +{ + "if_not_exists": true, + "table": "dict_source", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/02716_drop_if_empty/ast.json b/parser/testdata/02716_drop_if_empty/ast.json new file mode 100644 index 0000000000..2a175c5521 --- /dev/null +++ b/parser/testdata/02716_drop_if_empty/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02716_1", + "tables": [ + { + "table": "data_02716_1" + } + ] +} diff --git a/parser/testdata/02716_int256_arrayfunc/ast.json b/parser/testdata/02716_int256_arrayfunc/ast.json new file mode 100644 index 0000000000..8d63cc185b --- /dev/null +++ b/parser/testdata/02716_int256_arrayfunc/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayDifference", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toUInt128", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "arrayDifference", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "toUInt128", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02718_array_fold/ast.json b/parser/testdata/02718_array_fold/ast.json new file mode 100644 index 0000000000..567d264fca --- /dev/null +++ b/parser/testdata/02718_array_fold/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02718_insert_meet_hardware_error/ast.json b/parser/testdata/02718_insert_meet_hardware_error/ast.json new file mode 100644 index 0000000000..8c7bbacdbe --- /dev/null +++ b/parser/testdata/02718_insert_meet_hardware_error/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_hardware_error", + "tables": [ + { + "table": "t_hardware_error" + } + ] +} diff --git a/parser/testdata/02719_aggregate_with_empty_string_key/ast.json b/parser/testdata/02719_aggregate_with_empty_string_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02719_aggregate_with_empty_string_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02720_row_policy_column_with_dots/ast.json b/parser/testdata/02720_row_policy_column_with_dots/ast.json new file mode 100644 index 0000000000..9db7987acc --- /dev/null +++ b/parser/testdata/02720_row_policy_column_with_dots/ast.json @@ -0,0 +1,35 @@ +{ + "if_not_exists": true, + "table": "table_with_dot_column", + "columns": [ + { + "name": "date", + "type": { + "name": "Date" + } + }, + { + "name": "regular_column", + "type": { + "name": "String" + } + }, + { + "name": "other_column.2", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "date" + ] + } + ] +} diff --git a/parser/testdata/02721_url_cluster/ast.json b/parser/testdata/02721_url_cluster/ast.json new file mode 100644 index 0000000000..f72624743e --- /dev/null +++ b/parser/testdata/02721_url_cluster/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "urlCluster", + "arguments": [ + { + "type": "String", + "value": "test_cluster_two_shards_localhost" + }, + { + "type": "String", + "value": "http://localhost:11111/test/{a,b,c}.tsv" + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "c1" + ] + } + }, + { + "expression": { + "parts": [ + "c2" + ] + } + }, + { + "expression": { + "parts": [ + "c3" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02722_log_profile_events/ast.json b/parser/testdata/02722_log_profile_events/ast.json new file mode 100644 index 0000000000..fc9fed955e --- /dev/null +++ b/parser/testdata/02722_log_profile_events/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "events" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "event" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "LogFatal" + } + } + } + ] +} diff --git a/parser/testdata/02723_jit_aggregation_bug_48120/ast.json b/parser/testdata/02723_jit_aggregation_bug_48120/ast.json new file mode 100644 index 0000000000..e600d2bff0 --- /dev/null +++ b/parser/testdata/02723_jit_aggregation_bug_48120/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dummy", + "tables": [ + { + "table": "dummy" + } + ] +} diff --git a/parser/testdata/02723_parallelize_output_setting/ast.json b/parser/testdata/02723_parallelize_output_setting/ast.json new file mode 100644 index 0000000000..44364043c2 --- /dev/null +++ b/parser/testdata/02723_parallelize_output_setting/ast.json @@ -0,0 +1,53 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "data_02723", + "csv" + ] + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02723_zookeeper_name/ast.json b/parser/testdata/02723_zookeeper_name/ast.json new file mode 100644 index 0000000000..e97820d75b --- /dev/null +++ b/parser/testdata/02723_zookeeper_name/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Create Tables" + } + ] + } + ] +} diff --git a/parser/testdata/02724_function_in_left_table_clause_asof_join/ast.json b/parser/testdata/02724_function_in_left_table_clause_asof_join/ast.json new file mode 100644 index 0000000000..2d8fe09fa9 --- /dev/null +++ b/parser/testdata/02724_function_in_left_table_clause_asof_join/ast.json @@ -0,0 +1,156 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "id" + }, + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + "alias": "arr" + } + ] + } + ] + } + }, + "alias": "sessions" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "session_id" + }, + { + "expr": { + "type": "Integer", + "value": 4 + }, + "alias": "id" + } + ] + } + ] + } + }, + "alias": "visitors" + }, + "join": { + "type": "LEFT", + "strictness": "ASOF", + "on": { + "left": { + "left": { + "parts": [ + "visitors", + "session_id" + ] + }, + "op": "\u003c=", + "right": { + "parts": [ + "sessions", + "id" + ] + } + }, + "op": "AND", + "right": { + "left": { + "name": "arrayFirst", + "arguments": [ + { + "parameters": [ + "a" + ], + "body": { + "parts": [ + "a" + ] + } + }, + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "a" + ], + "body": { + "parts": [ + "a" + ] + } + }, + { + "parts": [ + "sessions", + "arr" + ] + } + ] + } + ] + }, + "op": "=", + "right": { + "parts": [ + "visitors", + "id" + ] + } + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02724_jit_logical_functions/ast.json b/parser/testdata/02724_jit_logical_functions/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/02724_jit_logical_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02724_mutliple_storage_join/ast.json b/parser/testdata/02724_mutliple_storage_join/ast.json new file mode 100644 index 0000000000..4a2ff3b9dc --- /dev/null +++ b/parser/testdata/02724_mutliple_storage_join/ast.json @@ -0,0 +1,38 @@ +{ + "table": "user", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt32" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Join", + "parameters": [ + { + "parts": [ + "ANY" + ] + }, + { + "parts": [ + "LEFT" + ] + }, + { + "parts": [ + "id" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/02724_persist_interval_type/ast.json b/parser/testdata/02724_persist_interval_type/ast.json new file mode 100644 index 0000000000..e784cd7f08 --- /dev/null +++ b/parser/testdata/02724_persist_interval_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "saved_intervals_tmp", + "tables": [ + { + "table": "saved_intervals_tmp" + } + ] +} diff --git a/parser/testdata/02724_show_indexes/ast.json b/parser/testdata/02724_show_indexes/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/02724_show_indexes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/02725_agg_projection_respect_PK/ast.json b/parser/testdata/02725_agg_projection_respect_PK/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/02725_agg_projection_respect_PK/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/02725_alias_columns_should_not_allow_compression_codec/ast.json b/parser/testdata/02725_alias_columns_should_not_allow_compression_codec/ast.json new file mode 100644 index 0000000000..06af128401 --- /dev/null +++ b/parser/testdata/02725_alias_columns_should_not_allow_compression_codec/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alias_column_should_not_allow_compression", + "tables": [ + { + "table": "alias_column_should_not_allow_compression" + } + ] +} diff --git a/parser/testdata/02725_alias_with_restricted_keywords/ast.json b/parser/testdata/02725_alias_with_restricted_keywords/ast.json new file mode 100644 index 0000000000..b76fa1cc46 --- /dev/null +++ b/parser/testdata/02725_alias_with_restricted_keywords/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "array" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "union" + } + ] + } + ] +} diff --git a/parser/testdata/02725_any_join_single_row/ast.json b/parser/testdata/02725_any_join_single_row/ast.json new file mode 100644 index 0000000000..e501e5cb9f --- /dev/null +++ b/parser/testdata/02725_any_join_single_row/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "join_test", + "tables": [ + { + "table": "join_test" + } + ] +} diff --git a/parser/testdata/02725_cnf_large_check/ast.json b/parser/testdata/02725_cnf_large_check/ast.json new file mode 100644 index 0000000000..8dd9da3208 --- /dev/null +++ b/parser/testdata/02725_cnf_large_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02725_cnf", + "tables": [ + { + "table": "02725_cnf" + } + ] +} diff --git a/parser/testdata/02725_memory-for-merges/ast.json b/parser/testdata/02725_memory-for-merges/ast.json new file mode 100644 index 0000000000..6e84c8878e --- /dev/null +++ b/parser/testdata/02725_memory-for-merges/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "02725_memory_for_merges", + "tables": [ + { + "table": "02725_memory_for_merges" + } + ], + "sync": true +} diff --git a/parser/testdata/02725_null_group_key_with_rollup/ast.json b/parser/testdata/02725_null_group_key_with_rollup/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02725_null_group_key_with_rollup/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02725_sleep_max_time/ast.json b/parser/testdata/02725_sleep_max_time/ast.json new file mode 100644 index 0000000000..8ecf1e3cc2 --- /dev/null +++ b/parser/testdata/02725_sleep_max_time/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "where": { + "name": "sleepEachRow", + "arguments": [ + { + "type": "Float", + "value": 0.05 + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/02725_url_support_virtual_column/ast.json b/parser/testdata/02725_url_support_virtual_column/ast.json new file mode 100644 index 0000000000..0b34c0242a --- /dev/null +++ b/parser/testdata/02725_url_support_virtual_column/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "_path" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "url", + "arguments": [ + { + "type": "String", + "value": "http://127.0.0.1:8123/?query=select+1\u0026user=default" + }, + { + "parts": [ + "LineAsString" + ] + }, + { + "type": "String", + "value": "s String" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02726_async_insert_flush_queue/ast.json b/parser/testdata/02726_async_insert_flush_queue/ast.json new file mode 100644 index 0000000000..bac5c84a1d --- /dev/null +++ b/parser/testdata/02726_async_insert_flush_queue/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_async_inserts_flush", + "tables": [ + { + "table": "t_async_inserts_flush" + } + ] +} diff --git a/parser/testdata/02730_dictionary_hashed_load_factor_element_count/ast.json b/parser/testdata/02730_dictionary_hashed_load_factor_element_count/ast.json new file mode 100644 index 0000000000..99ff0cde3d --- /dev/null +++ b/parser/testdata/02730_dictionary_hashed_load_factor_element_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict_sharded", + "tables": [ + { + "table": "dict_sharded" + } + ] +} diff --git a/parser/testdata/02730_with_fill_by_sorting_prefix/ast.json b/parser/testdata/02730_with_fill_by_sorting_prefix/ast.json new file mode 100644 index 0000000000..1e1f538804 --- /dev/null +++ b/parser/testdata/02730_with_fill_by_sorting_prefix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_with_fill_by_sorting_prefix", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02731_auto_convert_dictionary_layout_to_complex_by_complex_keys/ast.json b/parser/testdata/02731_auto_convert_dictionary_layout_to_complex_by_complex_keys/ast.json new file mode 100644 index 0000000000..9a39433631 --- /dev/null +++ b/parser/testdata/02731_auto_convert_dictionary_layout_to_complex_by_complex_keys/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict_flat_simple", + "tables": [ + { + "table": "dict_flat_simple" + } + ] +} diff --git a/parser/testdata/02731_formats_s3/ast.json b/parser/testdata/02731_formats_s3/ast.json new file mode 100644 index 0000000000..a41f4e737a --- /dev/null +++ b/parser/testdata/02731_formats_s3/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "02731.parquet" + } + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "remote_filesystem_read_method", + "value": { + "type": "String", + "value": "threadpool" + } + }, + { + "name": "remote_filesystem_read_prefetch", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02731_in_operator_with_one_size_tuple/ast.json b/parser/testdata/02731_in_operator_with_one_size_tuple/ast.json new file mode 100644 index 0000000000..a295f8281b --- /dev/null +++ b/parser/testdata/02731_in_operator_with_one_size_tuple/ast.json @@ -0,0 +1,32 @@ +{ + "table": "test", + "columns": [ + { + "name": "report_date", + "type": { + "name": "Date" + } + }, + { + "name": "sspid", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "report_date" + ] + } + ], + "partition_by": { + "parts": [ + "report_date" + ] + } +} diff --git a/parser/testdata/02731_parallel_replicas_join_subquery/ast.json b/parser/testdata/02731_parallel_replicas_join_subquery/ast.json new file mode 100644 index 0000000000..a26ef1d36a --- /dev/null +++ b/parser/testdata/02731_parallel_replicas_join_subquery/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "join_inner_table", + "tables": [ + { + "table": "join_inner_table" + } + ], + "sync": true +} diff --git a/parser/testdata/02731_replace_partition_from_temporary_table/ast.json b/parser/testdata/02731_replace_partition_from_temporary_table/ast.json new file mode 100644 index 0000000000..1d99d46574 --- /dev/null +++ b/parser/testdata/02731_replace_partition_from_temporary_table/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ], + "temporary": true +} diff --git a/parser/testdata/02732_transform_fuzz/ast.json b/parser/testdata/02732_transform_fuzz/ast.json new file mode 100644 index 0000000000..fea9209f5b --- /dev/null +++ b/parser/testdata/02732_transform_fuzz/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "caseWithExpr", + "arguments": [ + { + "name": "arrayReduce", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Array", + "value": null + } + ] + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02733_distinct/ast.json b/parser/testdata/02733_distinct/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02733_distinct/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02733_fix_distinct_in_order_bug_49622/ast.json b/parser/testdata/02733_fix_distinct_in_order_bug_49622/ast.json new file mode 100644 index 0000000000..dce802c319 --- /dev/null +++ b/parser/testdata/02733_fix_distinct_in_order_bug_49622/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_distinct_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02733_sparse_columns_reload/ast.json b/parser/testdata/02733_sparse_columns_reload/ast.json new file mode 100644 index 0000000000..695fc6cdbc --- /dev/null +++ b/parser/testdata/02733_sparse_columns_reload/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_reload", + "tables": [ + { + "table": "t_sparse_reload" + } + ] +} diff --git a/parser/testdata/02734_optimize_group_by/ast.json b/parser/testdata/02734_optimize_group_by/ast.json new file mode 100644 index 0000000000..55684367a6 --- /dev/null +++ b/parser/testdata/02734_optimize_group_by/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "a" + }, + "alias": "key" + }, + { + "expr": { + "type": "String", + "value": "b" + }, + "alias": "value" + } + ], + "group_by": [ + { + "parts": [ + "key" + ] + } + ], + "with_cube": true, + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02734_sparse_columns_mutation/ast.json b/parser/testdata/02734_sparse_columns_mutation/ast.json new file mode 100644 index 0000000000..cc3b515097 --- /dev/null +++ b/parser/testdata/02734_sparse_columns_mutation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_mutation", + "tables": [ + { + "table": "t_sparse_mutation" + } + ] +} diff --git a/parser/testdata/02734_sparse_columns_short_circuit/ast.json b/parser/testdata/02734_sparse_columns_short_circuit/ast.json new file mode 100644 index 0000000000..f3cf412cd1 --- /dev/null +++ b/parser/testdata/02734_sparse_columns_short_circuit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_short_circuit", + "tables": [ + { + "table": "t_sparse_short_circuit" + } + ] +} diff --git a/parser/testdata/02735_array_map_array_of_tuples/ast.json b/parser/testdata/02735_array_map_array_of_tuples/ast.json new file mode 100644 index 0000000000..f77369b52d --- /dev/null +++ b/parser/testdata/02735_array_map_array_of_tuples/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "parts": [ + "x" + ] + } + }, + { + "type": "Array", + "value": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02735_asof_join_right_null/ast.json b/parser/testdata/02735_asof_join_right_null/ast.json new file mode 100644 index 0000000000..0c495b327d --- /dev/null +++ b/parser/testdata/02735_asof_join_right_null/ast.json @@ -0,0 +1,20 @@ +{ + "table": "t1", + "columns": [ + { + "name": "a", + "type": { + "name": "Int" + } + }, + { + "name": "b", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02735_parquet_encoder/ast.json b/parser/testdata/02735_parquet_encoder/ast.json new file mode 100644 index 0000000000..8c542514b6 --- /dev/null +++ b/parser/testdata/02735_parquet_encoder/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_parquet_use_custom_encoder", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02735_system_zookeeper_auxiliary/ast.json b/parser/testdata/02735_system_zookeeper_auxiliary/ast.json new file mode 100644 index 0000000000..389631a218 --- /dev/null +++ b/parser/testdata/02735_system_zookeeper_auxiliary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_system_zookeeper_auxiliary", + "tables": [ + { + "table": "test_system_zookeeper_auxiliary" + } + ] +} diff --git a/parser/testdata/02735_system_zookeeper_connection/ast.json b/parser/testdata/02735_system_zookeeper_connection/ast.json new file mode 100644 index 0000000000..a2f3699323 --- /dev/null +++ b/parser/testdata/02735_system_zookeeper_connection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_zk_connection_table", + "tables": [ + { + "table": "test_zk_connection_table" + } + ] +} diff --git a/parser/testdata/02736_bit_count_big_int/ast.json b/parser/testdata/02736_bit_count_big_int/ast.json new file mode 100644 index 0000000000..d8f11abe2b --- /dev/null +++ b/parser/testdata/02736_bit_count_big_int/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitCount", + "arguments": [ + { + "expr": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + }, + "type": { + "name": "UInt128" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02737_arrayJaccardIndex/ast.json b/parser/testdata/02737_arrayJaccardIndex/ast.json new file mode 100644 index 0000000000..7f4fb74850 --- /dev/null +++ b/parser/testdata/02737_arrayJaccardIndex/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02737_session_timezone/ast.json b/parser/testdata/02737_session_timezone/ast.json new file mode 100644 index 0000000000..d53d1447c6 --- /dev/null +++ b/parser/testdata/02737_session_timezone/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Абырвалг" + } + } + ] +} diff --git a/parser/testdata/02737_sql_auto_is_null/ast.json b/parser/testdata/02737_sql_auto_is_null/ast.json new file mode 100644 index 0000000000..5aae95ad58 --- /dev/null +++ b/parser/testdata/02737_sql_auto_is_null/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "SQL_AUTO_IS_NULL", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02740_hashed_dictionary_load_factor_smoke/ast.json b/parser/testdata/02740_hashed_dictionary_load_factor_smoke/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02740_hashed_dictionary_load_factor_smoke/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02746_index_analysis_binary_operator_with_null/ast.json b/parser/testdata/02746_index_analysis_binary_operator_with_null/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02746_index_analysis_binary_operator_with_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02751_match_constant_needle/ast.json b/parser/testdata/02751_match_constant_needle/ast.json new file mode 100644 index 0000000000..ab5bae46a6 --- /dev/null +++ b/parser/testdata/02751_match_constant_needle/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "match", + "arguments": [ + { + "type": "String", + "value": "default/k8s1" + }, + { + "type": "String", + "value": "\\A(?:(?:[-0-9_a-z]+(?:\\.[-0-9_a-z]+)*)/k8s1)\\z" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02751_multiif_to_if_crash/ast.json b/parser/testdata/02751_multiif_to_if_crash/ast.json new file mode 100644 index 0000000000..d02ac55487 --- /dev/null +++ b/parser/testdata/02751_multiif_to_if_crash/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "A" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "multiIf", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Null", + "value": null + } + ], + "alias": "A" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02751_parallel_replicas_bug_chunkinfo_not_set/ast.json b/parser/testdata/02751_parallel_replicas_bug_chunkinfo_not_set/ast.json new file mode 100644 index 0000000000..e894b1f70f --- /dev/null +++ b/parser/testdata/02751_parallel_replicas_bug_chunkinfo_not_set/ast.json @@ -0,0 +1,93 @@ +{ + "table": "join_inner_table__fuzz_1", + "columns": [ + { + "name": "id", + "type": { + "name": "UUID" + } + }, + { + "name": "key", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Date" + } + ], + "has_parentheses": true + } + }, + { + "name": "number", + "type": { + "name": "Int64" + } + }, + { + "name": "value1", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "value2", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "time", + "type": { + "name": "Int128" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "key" + ] + } + ] + } + ], + "settings": [ + { + "name": "allow_nullable_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02751_query_log_test_partitions/ast.json b/parser/testdata/02751_query_log_test_partitions/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/02751_query_log_test_partitions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02752_custom_separated_ignore_spaces_bug/ast.json b/parser/testdata/02752_custom_separated_ignore_spaces_bug/ast.json new file mode 100644 index 0000000000..123ac10ae8 --- /dev/null +++ b/parser/testdata/02752_custom_separated_ignore_spaces_bug/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "CustomSeparatedIgnoreSpaces" + ] + }, + { + "type": "String", + "value": "x String" + }, + { + "type": "String", + "value": " unquoted_string\n" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "format_custom_escaping_rule", + "value": { + "type": "String", + "value": "CSV" + } + } + ] + } + ] +} diff --git a/parser/testdata/02752_forbidden_headers/ast.json b/parser/testdata/02752_forbidden_headers/ast.json new file mode 100644 index 0000000000..86786c125f --- /dev/null +++ b/parser/testdata/02752_forbidden_headers/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "url", + "arguments": [ + { + "type": "String", + "value": "http://localhost:8123/" + }, + { + "parts": [ + "LineAsString" + ] + }, + { + "name": "headers", + "arguments": [ + { + "left": { + "type": "String", + "value": "exact_header" + }, + "op": "=", + "right": { + "type": "String", + "value": "value" + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02752_space_function/ast.json b/parser/testdata/02752_space_function/ast.json new file mode 100644 index 0000000000..6282feca52 --- /dev/null +++ b/parser/testdata/02752_space_function/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "const, uint" + } + ] + } + ] +} diff --git a/parser/testdata/02762_replicated_database_no_args/ast.json b/parser/testdata/02762_replicated_database_no_args/ast.json new file mode 100644 index 0000000000..e07f07bfbe --- /dev/null +++ b/parser/testdata/02762_replicated_database_no_args/ast.json @@ -0,0 +1,7 @@ +{ + "database": "replicated_db_no_args", + "engine": { + "name": "Replicated" + }, + "create_database": true +} diff --git a/parser/testdata/02763_jit_compare_functions_nan/ast.json b/parser/testdata/02763_jit_compare_functions_nan/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/02763_jit_compare_functions_nan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02763_mutate_compact_part_with_skip_indices_and_projections/ast.json b/parser/testdata/02763_mutate_compact_part_with_skip_indices_and_projections/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02763_mutate_compact_part_with_skip_indices_and_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02764_index_analysis_fix/ast.json b/parser/testdata/02764_index_analysis_fix/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/02764_index_analysis_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/02764_parallel_replicas_plain_merge_tree/ast.json b/parser/testdata/02764_parallel_replicas_plain_merge_tree/ast.json new file mode 100644 index 0000000000..5bacb33179 --- /dev/null +++ b/parser/testdata/02764_parallel_replicas_plain_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "parallel_replicas_plain", + "tables": [ + { + "table": "parallel_replicas_plain" + } + ] +} diff --git a/parser/testdata/02765_parallel_replicas_final_modifier/ast.json b/parser/testdata/02765_parallel_replicas_final_modifier/ast.json new file mode 100644 index 0000000000..36b58a2f6c --- /dev/null +++ b/parser/testdata/02765_parallel_replicas_final_modifier/ast.json @@ -0,0 +1,23 @@ +{ + "if_not_exists": true, + "table": "parallel_replicas_final", + "columns": [ + { + "name": "x", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "ReplacingMergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/02766_bitshift_with_const_arguments/ast.json b/parser/testdata/02766_bitshift_with_const_arguments/ast.json new file mode 100644 index 0000000000..cb70e9048d --- /dev/null +++ b/parser/testdata/02766_bitshift_with_const_arguments/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitShiftLeft", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Null", + "value": null + } + }, + { + "type": "String", + "value": "14342" + }, + { + "type": "String", + "value": "4242348" + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02768_cse_nested_distributed/ast.json b/parser/testdata/02768_cse_nested_distributed/ast.json new file mode 100644 index 0000000000..5ed2ba4faa --- /dev/null +++ b/parser/testdata/02768_cse_nested_distributed/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "with": [ + { + "name": "s", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.2" + }, + { + "parts": [ + "system", + "settings" + ] + } + ] + } + } + } + ] + } + } + ] + } + } + } + ], + "columns": [ + { + "parts": [ + "s" + ] + } + ] + } + ] +} diff --git a/parser/testdata/02769_compare_functions_nan/ast.json b/parser/testdata/02769_compare_functions_nan/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/02769_compare_functions_nan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02769_parallel_replicas_unavailable_shards/ast.json b/parser/testdata/02769_parallel_replicas_unavailable_shards/ast.json new file mode 100644 index 0000000000..46b869207b --- /dev/null +++ b/parser/testdata/02769_parallel_replicas_unavailable_shards/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_parallel_replicas_unavailable_shards", + "tables": [ + { + "table": "test_parallel_replicas_unavailable_shards" + } + ] +} diff --git a/parser/testdata/02770_jit_aggregation_nullable_key_fix/ast.json b/parser/testdata/02770_jit_aggregation_nullable_key_fix/ast.json new file mode 100644 index 0000000000..e8356298d5 --- /dev/null +++ b/parser/testdata/02770_jit_aggregation_nullable_key_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02771_ignore_data_skipping_indices/ast.json b/parser/testdata/02771_ignore_data_skipping_indices/ast.json new file mode 100644 index 0000000000..2664b18877 --- /dev/null +++ b/parser/testdata/02771_ignore_data_skipping_indices/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02771", + "tables": [ + { + "table": "data_02771" + } + ] +} diff --git a/parser/testdata/02771_jit_functions_comparison_crash/ast.json b/parser/testdata/02771_jit_functions_comparison_crash/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/02771_jit_functions_comparison_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02771_log_faminy_truncate_count/ast.json b/parser/testdata/02771_log_faminy_truncate_count/ast.json new file mode 100644 index 0000000000..1448c123d4 --- /dev/null +++ b/parser/testdata/02771_log_faminy_truncate_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_log", + "tables": [ + { + "table": "test_log" + } + ] +} diff --git a/parser/testdata/02771_parallel_replicas_analyzer/ast.json b/parser/testdata/02771_parallel_replicas_analyzer/ast.json new file mode 100644 index 0000000000..2773c99c98 --- /dev/null +++ b/parser/testdata/02771_parallel_replicas_analyzer/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "join_inner_table__fuzz_146_replicated", + "tables": [ + { + "table": "join_inner_table__fuzz_146_replicated" + } + ], + "sync": true +} diff --git a/parser/testdata/02771_resolve_compound_identifier/ast.json b/parser/testdata/02771_resolve_compound_identifier/ast.json new file mode 100644 index 0000000000..4539558cd8 --- /dev/null +++ b/parser/testdata/02771_resolve_compound_identifier/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_02771", + "drop_database": true +} diff --git a/parser/testdata/02771_tsv_csv_custom_skip_trailing_empty_lines/ast.json b/parser/testdata/02771_tsv_csv_custom_skip_trailing_empty_lines/ast.json new file mode 100644 index 0000000000..2975c2722b --- /dev/null +++ b/parser/testdata/02771_tsv_csv_custom_skip_trailing_empty_lines/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "TSV" + ] + }, + { + "type": "String", + "value": "x UInt32, y UInt32" + }, + { + "type": "String", + "value": "1\t2\n\n" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "input_format_tsv_skip_trailing_empty_lines", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02772_jit_date_time_add/ast.json b/parser/testdata/02772_jit_date_time_add/ast.json new file mode 100644 index 0000000000..82887e93a5 --- /dev/null +++ b/parser/testdata/02772_jit_date_time_add/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02772_s3_crash/ast.json b/parser/testdata/02772_s3_crash/ast.json new file mode 100644 index 0000000000..4042cdc337 --- /dev/null +++ b/parser/testdata/02772_s3_crash/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "name": "headers", + "arguments": [ + { + "left": { + "type": "String", + "value": "random_header" + }, + "op": "=", + "right": { + "type": "String", + "value": "value" + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02775_show_columns_called_from_clickhouse/ast.json b/parser/testdata/02775_show_columns_called_from_clickhouse/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02775_show_columns_called_from_clickhouse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02780_final_streams_data_skipping_index/ast.json b/parser/testdata/02780_final_streams_data_skipping_index/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02780_final_streams_data_skipping_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02781_data_skipping_index_merge_tree_min_for_seek/ast.json b/parser/testdata/02781_data_skipping_index_merge_tree_min_for_seek/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02781_data_skipping_index_merge_tree_min_for_seek/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02782_values_null_to_lc_nullable/ast.json b/parser/testdata/02782_values_null_to_lc_nullable/ast.json new file mode 100644 index 0000000000..4898b8a39d --- /dev/null +++ b/parser/testdata/02782_values_null_to_lc_nullable/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "String", + "value": "s LowCardinality(Nullable(String))" + }, + { + "type": "Null", + "value": null + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02783_date_predicate_optimizations/ast.json b/parser/testdata/02783_date_predicate_optimizations/ast.json new file mode 100644 index 0000000000..433b4e1c80 --- /dev/null +++ b/parser/testdata/02783_date_predicate_optimizations/ast.json @@ -0,0 +1,42 @@ +{ + "table": "source", + "columns": [ + { + "name": "ts", + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "n", + "type": { + "name": "Int32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "ts" + ] + } + ] + } +} diff --git a/parser/testdata/02783_max_bytes_to_read_in_schema_inference/ast.json b/parser/testdata/02783_max_bytes_to_read_in_schema_inference/ast.json new file mode 100644 index 0000000000..edbd6986a8 --- /dev/null +++ b/parser/testdata/02783_max_bytes_to_read_in_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_max_rows_to_read_for_schema_inference", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02783_parsedatetimebesteffort_syslog/ast.json b/parser/testdata/02783_parsedatetimebesteffort_syslog/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/02783_parsedatetimebesteffort_syslog/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/02784_move_all_conditions_to_prewhere_analyzer_asan/ast.json b/parser/testdata/02784_move_all_conditions_to_prewhere_analyzer_asan/ast.json new file mode 100644 index 0000000000..87a8c22ab2 --- /dev/null +++ b/parser/testdata/02784_move_all_conditions_to_prewhere_analyzer_asan/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_02784", + "tables": [ + { + "table": "t_02784" + } + ] +} diff --git a/parser/testdata/02784_projections_read_in_order_bug/ast.json b/parser/testdata/02784_projections_read_in_order_bug/ast.json new file mode 100644 index 0000000000..ce65b30440 --- /dev/null +++ b/parser/testdata/02784_projections_read_in_order_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "events", + "tables": [ + { + "table": "events" + } + ] +} diff --git a/parser/testdata/02785_date_predicate_optimizations_ast_query_tree_rewrite/ast.json b/parser/testdata/02785_date_predicate_optimizations_ast_query_tree_rewrite/ast.json new file mode 100644 index 0000000000..797b9c1156 --- /dev/null +++ b/parser/testdata/02785_date_predicate_optimizations_ast_query_tree_rewrite/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "date_t", + "tables": [ + { + "table": "date_t" + } + ] +} diff --git a/parser/testdata/02785_global_join_too_many_columns/ast.json b/parser/testdata/02785_global_join_too_many_columns/ast.json new file mode 100644 index 0000000000..fdd46f73a7 --- /dev/null +++ b/parser/testdata/02785_global_join_too_many_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local", + "tables": [ + { + "table": "local" + } + ] +} diff --git a/parser/testdata/02785_left_anti_join_bug/ast.json b/parser/testdata/02785_left_anti_join_bug/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02785_left_anti_join_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02785_summing_merge_tree_datetime64/ast.json b/parser/testdata/02785_summing_merge_tree_datetime64/ast.json new file mode 100644 index 0000000000..1defaff4bb --- /dev/null +++ b/parser/testdata/02785_summing_merge_tree_datetime64/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "summing_merge_tree_datetime64", + "tables": [ + { + "table": "summing_merge_tree_datetime64" + } + ] +} diff --git a/parser/testdata/02786_max_execution_time_leaf/ast.json b/parser/testdata/02786_max_execution_time_leaf/ast.json new file mode 100644 index 0000000000..7006d487f6 --- /dev/null +++ b/parser/testdata/02786_max_execution_time_leaf/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02786_transform_float/ast.json b/parser/testdata/02786_transform_float/ast.json new file mode 100644 index 0000000000..c9938139cc --- /dev/null +++ b/parser/testdata/02786_transform_float/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toFloat32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "name": "toFloat32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02787_transform_null/ast.json b/parser/testdata/02787_transform_null/ast.json new file mode 100644 index 0000000000..22c7884c31 --- /dev/null +++ b/parser/testdata/02787_transform_null/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "ZERO" + }, + { + "type": "String", + "value": "ONE" + } + ] + }, + { + "type": "String", + "value": "DEFAULT" + } + ], + "alias": "result" + } + ] + } + ] +} diff --git a/parser/testdata/02788_current_schemas_function/ast.json b/parser/testdata/02788_current_schemas_function/ast.json new file mode 100644 index 0000000000..a4a828d85c --- /dev/null +++ b/parser/testdata/02788_current_schemas_function/ast.json @@ -0,0 +1,18 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "current_schemas", + "arguments": [ + { + "type": "Boolean", + "value": true + } + ], + "alias": "result" + } + ] + } + ] +} diff --git a/parser/testdata/02788_fix_logical_error_in_sorting/ast.json b/parser/testdata/02788_fix_logical_error_in_sorting/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/02788_fix_logical_error_in_sorting/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02789_functions_after_sorting_and_columns_with_same_names_bug/ast.json b/parser/testdata/02789_functions_after_sorting_and_columns_with_same_names_bug/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02789_functions_after_sorting_and_columns_with_same_names_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02789_set_index_nullable_condition_bug/ast.json b/parser/testdata/02789_set_index_nullable_condition_bug/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02789_set_index_nullable_condition_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02790_keyed_hash_bug/ast.json b/parser/testdata/02790_keyed_hash_bug/ast.json new file mode 100644 index 0000000000..2dfc22ae6b --- /dev/null +++ b/parser/testdata/02790_keyed_hash_bug/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sipHash64Keyed", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1111111111111111111 + }, + { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 222222222222223 + } + ] + } + ] + } + ] + } + ], + "group_by": [ + { + "name": "toUInt64", + "arguments": [ + { + "type": "Integer", + "value": 222222222222223 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02790_optimize_skip_unused_shards_join/ast.json b/parser/testdata/02790_optimize_skip_unused_shards_join/ast.json new file mode 100644 index 0000000000..b72906b4ca --- /dev/null +++ b/parser/testdata/02790_optimize_skip_unused_shards_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "outer", + "tables": [ + { + "table": "outer" + } + ] +} diff --git a/parser/testdata/02790_sql_standard_fetch/ast.json b/parser/testdata/02790_sql_standard_fetch/ast.json new file mode 100644 index 0000000000..b632ae840a --- /dev/null +++ b/parser/testdata/02790_sql_standard_fetch/ast.json @@ -0,0 +1,30 @@ +{ + "temporary": true, + "table": "employees", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "department", + "type": { + "name": "String" + } + }, + { + "name": "salary", + "type": { + "name": "UInt64" + } + } + ] +} diff --git a/parser/testdata/02790_url_multiple_tsv_files/ast.json b/parser/testdata/02790_url_multiple_tsv_files/ast.json new file mode 100644 index 0000000000..d5264d45fd --- /dev/null +++ b/parser/testdata/02790_url_multiple_tsv_files/ast.json @@ -0,0 +1,70 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "url", + "arguments": [ + { + "type": "String", + "value": "http://127.0.0.1:8123?query=select+{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}+as+x+format+TSV" + }, + { + "type": "String", + "value": "TSV" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_download_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02791_final_block_structure_mismatch_bug/ast.json b/parser/testdata/02791_final_block_structure_mismatch_bug/ast.json new file mode 100644 index 0000000000..1bc996086d --- /dev/null +++ b/parser/testdata/02791_final_block_structure_mismatch_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "do_not_merge_across_partitions_select_final", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02792_alter_table_modify_comment/ast.json b/parser/testdata/02792_alter_table_modify_comment/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02792_alter_table_modify_comment/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02792_drop_projection_lwd/ast.json b/parser/testdata/02792_drop_projection_lwd/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02792_drop_projection_lwd/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02794_pushdown_invalid_get/ast.json b/parser/testdata/02794_pushdown_invalid_get/ast.json new file mode 100644 index 0000000000..3d97e367b9 --- /dev/null +++ b/parser/testdata/02794_pushdown_invalid_get/ast.json @@ -0,0 +1,67 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "toInt128", + "arguments": [ + { + "type": "Null", + "value": null + } + ], + "alias": "x" + } + ] + }, + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toInt128", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "where": { + "parts": [ + "x" + ] + } + } + ] +} diff --git a/parser/testdata/02796_calculate_text_stack_trace/ast.json b/parser/testdata/02796_calculate_text_stack_trace/ast.json new file mode 100644 index 0000000000..7006d487f6 --- /dev/null +++ b/parser/testdata/02796_calculate_text_stack_trace/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02796_projection_date_filter_on_view/ast.json b/parser/testdata/02796_projection_date_filter_on_view/ast.json new file mode 100644 index 0000000000..e048d21a13 --- /dev/null +++ b/parser/testdata/02796_projection_date_filter_on_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "fx_1m", + "tables": [ + { + "table": "fx_1m" + } + ] +} diff --git a/parser/testdata/02797_aggregator_huge_mem_usage_bug/ast.json b/parser/testdata/02797_aggregator_huge_mem_usage_bug/ast.json new file mode 100644 index 0000000000..2c3b819c3f --- /dev/null +++ b/parser/testdata/02797_aggregator_huge_mem_usage_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "v", + "tables": [ + { + "table": "v" + } + ] +} diff --git a/parser/testdata/02797_range_nullable/ast.json b/parser/testdata/02797_range_nullable/ast.json new file mode 100644 index 0000000000..372e65b054 --- /dev/null +++ b/parser/testdata/02797_range_nullable/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "range", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02798_explain_settings_not_applied_bug/ast.json b/parser/testdata/02798_explain_settings_not_applied_bug/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/02798_explain_settings_not_applied_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02798_generic_transform/ast.json b/parser/testdata/02798_generic_transform/ast.json new file mode 100644 index 0000000000..354dd3cc1a --- /dev/null +++ b/parser/testdata/02798_generic_transform/ast.json @@ -0,0 +1,114 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "3" + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 5 + }, + { + "type": "String", + "value": "5" + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 7 + }, + { + "type": "String", + "value": "7" + } + ] + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + }, + { + "type": "String", + "value": "abc!" + } + ] + }, + { + "type": "String", + "value": "def" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/02798_substring_index/ast.json b/parser/testdata/02798_substring_index/ast.json new file mode 100644 index 0000000000..ce6ccd45e3 --- /dev/null +++ b/parser/testdata/02798_substring_index/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "substringIndex", + "arguments": [ + { + "type": "String", + "value": "www.clickhouse.com" + }, + { + "type": "String", + "value": "." + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 4 + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02799_transform_empty_arrays/ast.json b/parser/testdata/02799_transform_empty_arrays/ast.json new file mode 100644 index 0000000000..b85bdabb24 --- /dev/null +++ b/parser/testdata/02799_transform_empty_arrays/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Array", + "value": null + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02800_transform_alter/ast.json b/parser/testdata/02800_transform_alter/ast.json new file mode 100644 index 0000000000..1b74d7aff4 --- /dev/null +++ b/parser/testdata/02800_transform_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_xy", + "tables": [ + { + "table": "test_xy" + } + ] +} diff --git a/parser/testdata/02801_transform_nullable/ast.json b/parser/testdata/02801_transform_nullable/ast.json new file mode 100644 index 0000000000..ff5c06d6b2 --- /dev/null +++ b/parser/testdata/02801_transform_nullable/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "type": "String", + "value": "a" + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02803_remote_cannot_clone_block/ast.json b/parser/testdata/02803_remote_cannot_clone_block/ast.json new file mode 100644 index 0000000000..307d600774 --- /dev/null +++ b/parser/testdata/02803_remote_cannot_clone_block/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_10_00223", + "tables": [ + { + "table": "numbers_10_00223" + } + ] +} diff --git a/parser/testdata/02804_clusterAllReplicas_insert/ast.json b/parser/testdata/02804_clusterAllReplicas_insert/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02804_clusterAllReplicas_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02805_distributed_queries_timeouts/ast.json b/parser/testdata/02805_distributed_queries_timeouts/ast.json new file mode 100644 index 0000000000..410b49ce49 --- /dev/null +++ b/parser/testdata/02805_distributed_queries_timeouts/ast.json @@ -0,0 +1,24 @@ +{ + "table": "dist", + "engine": { + "name": "Distributed", + "parameters": [ + { + "parts": [ + "test_shard_localhost" + ] + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/02807_lower_utf8_msan/ast.json b/parser/testdata/02807_lower_utf8_msan/ast.json new file mode 100644 index 0000000000..ce51872385 --- /dev/null +++ b/parser/testdata/02807_lower_utf8_msan/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "lowerUTF8", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "©--------------------------------------" + }, + { + "type": "String", + "value": "©--------------------" + } + ] + } + ] + } + ] + } + ], + "order_by": [ + { + "expression": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02807_math_unary_crash/ast.json b/parser/testdata/02807_math_unary_crash/ast.json new file mode 100644 index 0000000000..19cae4d1bf --- /dev/null +++ b/parser/testdata/02807_math_unary_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t10", + "tables": [ + { + "table": "t10" + } + ] +} diff --git a/parser/testdata/02809_has_subsequence/ast.json b/parser/testdata/02809_has_subsequence/ast.json new file mode 100644 index 0000000000..f5157c8805 --- /dev/null +++ b/parser/testdata/02809_has_subsequence/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "hasSubsequence" + } + ] + } + ] +} diff --git a/parser/testdata/02809_has_token/ast.json b/parser/testdata/02809_has_token/ast.json new file mode 100644 index 0000000000..43783adc54 --- /dev/null +++ b/parser/testdata/02809_has_token/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hasToken", + "arguments": [ + { + "type": "String", + "value": "quotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotaquotquota" + }, + { + "type": "String", + "value": "quota" + } + ], + "alias": "r" + } + ] + } + ] +} diff --git a/parser/testdata/02809_prewhere_and_in/ast.json b/parser/testdata/02809_prewhere_and_in/ast.json new file mode 100644 index 0000000000..507443c346 --- /dev/null +++ b/parser/testdata/02809_prewhere_and_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_02809", + "tables": [ + { + "table": "t_02809" + } + ] +} diff --git a/parser/testdata/02809_storage_set_analysis_bug/ast.json b/parser/testdata/02809_storage_set_analysis_bug/ast.json new file mode 100644 index 0000000000..c74262a1af --- /dev/null +++ b/parser/testdata/02809_storage_set_analysis_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_set", + "tables": [ + { + "table": "test_set" + } + ] +} diff --git a/parser/testdata/02810_convert_uuid_to_uint128/ast.json b/parser/testdata/02810_convert_uuid_to_uint128/ast.json new file mode 100644 index 0000000000..5c7c7e6d51 --- /dev/null +++ b/parser/testdata/02810_convert_uuid_to_uint128/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toUInt128", + "arguments": [ + { + "name": "toUUID", + "arguments": [ + { + "type": "String", + "value": "00000000-0000-0000-0000-000000000000" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02810_fix_remove_dedundant_distinct_view/ast.json b/parser/testdata/02810_fix_remove_dedundant_distinct_view/ast.json new file mode 100644 index 0000000000..6eff846a1f --- /dev/null +++ b/parser/testdata/02810_fix_remove_dedundant_distinct_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_v", + "tables": [ + { + "table": "tab_v" + } + ] +} diff --git a/parser/testdata/02810_initcap/ast.json b/parser/testdata/02810_initcap/ast.json new file mode 100644 index 0000000000..1f172f94c3 --- /dev/null +++ b/parser/testdata/02810_initcap/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "initcap", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02811_insert_schema_inference/ast.json b/parser/testdata/02811_insert_schema_inference/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02811_insert_schema_inference/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02811_invalid_embedded_rocksdb_create/ast.json b/parser/testdata/02811_invalid_embedded_rocksdb_create/ast.json new file mode 100644 index 0000000000..b153bcaefc --- /dev/null +++ b/parser/testdata/02811_invalid_embedded_rocksdb_create/ast.json @@ -0,0 +1,35 @@ +{ + "table": "dict", + "columns": [ + { + "name": "k", + "type": { + "name": "String" + } + }, + { + "name": "v", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "EmbeddedRocksDB", + "parameters": [ + { + "parts": [ + "k" + ] + } + ], + "has_parentheses": true + }, + "primary_key": [ + { + "parts": [ + "k" + ] + } + ] +} diff --git a/parser/testdata/02811_parallel_replicas_prewhere_count/ast.json b/parser/testdata/02811_parallel_replicas_prewhere_count/ast.json new file mode 100644 index 0000000000..b5886be12b --- /dev/null +++ b/parser/testdata/02811_parallel_replicas_prewhere_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users", + "tables": [ + { + "table": "users" + } + ] +} diff --git a/parser/testdata/02811_primary_key_in_columns/ast.json b/parser/testdata/02811_primary_key_in_columns/ast.json new file mode 100644 index 0000000000..ca2e41d80d --- /dev/null +++ b/parser/testdata/02811_primary_key_in_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pk_test1", + "tables": [ + { + "table": "pk_test1" + } + ] +} diff --git a/parser/testdata/02811_read_in_order_and_array_join_bug/ast.json b/parser/testdata/02811_read_in_order_and_array_join_bug/ast.json new file mode 100644 index 0000000000..f44fd53aec --- /dev/null +++ b/parser/testdata/02811_read_in_order_and_array_join_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_array_joins", + "tables": [ + { + "table": "test_array_joins" + } + ] +} diff --git a/parser/testdata/02812_bug_with_unused_join_columns/ast.json b/parser/testdata/02812_bug_with_unused_join_columns/ast.json new file mode 100644 index 0000000000..8da17b7485 --- /dev/null +++ b/parser/testdata/02812_bug_with_unused_join_columns/ast.json @@ -0,0 +1,72 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "concat", + "arguments": [ + { + "parts": [ + "func", + "name" + ] + }, + { + "parts": [ + "comb", + "name" + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "functions" + }, + "alias": "func" + } + }, + { + "table": { + "table": { + "database": "system", + "table": "aggregate_function_combinators" + }, + "alias": "comb" + }, + "join": { + "type": "INNER", + "using": [ + { + "parts": [ + "name" + ] + } + ] + } + } + ] + }, + "where": { + "parts": [ + "is_aggregate" + ] + }, + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02812_csv_date_time_with_comma/ast.json b/parser/testdata/02812_csv_date_time_with_comma/ast.json new file mode 100644 index 0000000000..9348017f45 --- /dev/null +++ b/parser/testdata/02812_csv_date_time_with_comma/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "CSV" + ] + }, + { + "type": "String", + "value": "c1 DateTime, c2 String" + }, + { + "type": "String", + "value": "01-01-2000,abc" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "date_time_input_format", + "value": { + "type": "String", + "value": "best_effort" + } + } + ] + } + ] +} diff --git a/parser/testdata/02812_from_to_utc_timestamp/ast.json b/parser/testdata/02812_from_to_utc_timestamp/ast.json new file mode 100644 index 0000000000..0ef2141170 --- /dev/null +++ b/parser/testdata/02812_from_to_utc_timestamp/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tbl", + "tables": [ + { + "table": "test_tbl" + } + ] +} diff --git a/parser/testdata/02812_large_varints/ast.json b/parser/testdata/02812_large_varints/ast.json new file mode 100644 index 0000000000..9fd6469f8a --- /dev/null +++ b/parser/testdata/02812_large_varints/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "topKWeightedState", + "parameters": [ + { + "type": "Integer", + "value": 65535 + } + ], + "arguments": [ + { + "name": "now" + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/02812_pointwise_array_operations/ast.json b/parser/testdata/02812_pointwise_array_operations/ast.json new file mode 100644 index 0000000000..7ea3565d59 --- /dev/null +++ b/parser/testdata/02812_pointwise_array_operations/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + "op": "+", + "right": { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02812_subquery_operators/ast.json b/parser/testdata/02812_subquery_operators/ast.json new file mode 100644 index 0000000000..a2ae3de8f6 --- /dev/null +++ b/parser/testdata/02812_subquery_operators/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "singleValueOrNull", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02813_any_value/ast.json b/parser/testdata/02813_any_value/ast.json new file mode 100644 index 0000000000..18631e6645 --- /dev/null +++ b/parser/testdata/02813_any_value/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02813_array_agg/ast.json b/parser/testdata/02813_array_agg/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02813_array_agg/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02813_array_concat_agg/ast.json b/parser/testdata/02813_array_concat_agg/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02813_array_concat_agg/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02813_create_index_noop/ast.json b/parser/testdata/02813_create_index_noop/ast.json new file mode 100644 index 0000000000..1be967e87f --- /dev/null +++ b/parser/testdata/02813_create_index_noop/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_create_index_without_type", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02813_func_now_and_alias/ast.json b/parser/testdata/02813_func_now_and_alias/ast.json new file mode 100644 index 0000000000..8e80e00ccd --- /dev/null +++ b/parser/testdata/02813_func_now_and_alias/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "current_timestamp" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02813_func_today_and_alias/ast.json b/parser/testdata/02813_func_today_and_alias/ast.json new file mode 100644 index 0000000000..79515e6ed6 --- /dev/null +++ b/parser/testdata/02813_func_today_and_alias/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "today" + }, + "op": "=", + "right": { + "name": "current_date" + } + } + ] + } + ] +} diff --git a/parser/testdata/02813_optimize_lazy_materialization/ast.json b/parser/testdata/02813_optimize_lazy_materialization/ast.json new file mode 100644 index 0000000000..2d09bf013c --- /dev/null +++ b/parser/testdata/02813_optimize_lazy_materialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_optimize_lazy_materialization", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02813_seriesDecomposeSTL/ast.json b/parser/testdata/02813_seriesDecomposeSTL/ast.json new file mode 100644 index 0000000000..8e22038b41 --- /dev/null +++ b/parser/testdata/02813_seriesDecomposeSTL/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tb2", + "tables": [ + { + "table": "tb2" + } + ] +} diff --git a/parser/testdata/02813_seriesOutliersDetectTukey/ast.json b/parser/testdata/02813_seriesOutliersDetectTukey/ast.json new file mode 100644 index 0000000000..92439a3824 --- /dev/null +++ b/parser/testdata/02813_seriesOutliersDetectTukey/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tb1", + "tables": [ + { + "table": "tb1" + } + ] +} diff --git a/parser/testdata/02813_series_period_detect/ast.json b/parser/testdata/02813_series_period_detect/ast.json new file mode 100644 index 0000000000..92439a3824 --- /dev/null +++ b/parser/testdata/02813_series_period_detect/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tb1", + "tables": [ + { + "table": "tb1" + } + ] +} diff --git a/parser/testdata/02813_starting_in_text_log/ast.json b/parser/testdata/02813_starting_in_text_log/ast.json new file mode 100644 index 0000000000..db85a36b23 --- /dev/null +++ b/parser/testdata/02813_starting_in_text_log/ast.json @@ -0,0 +1,3 @@ +{ + "command": "FLUSH LOGS text_log" +} diff --git a/parser/testdata/02814_ReplacingMergeTree_fix_select_final_on_single_partition/ast.json b/parser/testdata/02814_ReplacingMergeTree_fix_select_final_on_single_partition/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02814_ReplacingMergeTree_fix_select_final_on_single_partition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02814_age_datediff/ast.json b/parser/testdata/02814_age_datediff/ast.json new file mode 100644 index 0000000000..3854d9d75d --- /dev/null +++ b/parser/testdata/02814_age_datediff/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "age", + "arguments": [ + { + "type": "String", + "value": "nanosecond" + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2015-08-18 20:30:36.100200005" + }, + { + "type": "Integer", + "value": 9 + }, + { + "type": "String", + "value": "UTC" + } + ] + }, + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2015-08-18 20:30:41.200400005" + }, + { + "type": "Integer", + "value": 9 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02814_create_index_uniq_noop/ast.json b/parser/testdata/02814_create_index_uniq_noop/ast.json new file mode 100644 index 0000000000..d42b55a862 --- /dev/null +++ b/parser/testdata/02814_create_index_uniq_noop/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_create_index_without_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02814_currentDatabase_for_table_functions/ast.json b/parser/testdata/02814_currentDatabase_for_table_functions/ast.json new file mode 100644 index 0000000000..6e7c861ad2 --- /dev/null +++ b/parser/testdata/02814_currentDatabase_for_table_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null_table", + "tables": [ + { + "table": "null_table" + } + ] +} diff --git a/parser/testdata/02814_order_by_tuple_window_function/ast.json b/parser/testdata/02814_order_by_tuple_window_function/ast.json new file mode 100644 index 0000000000..caf336cd40 --- /dev/null +++ b/parser/testdata/02814_order_by_tuple_window_function/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "order_by": [ + { + "expression": { + "name": "tuple", + "arguments": [ + { + "name": "count", + "over": {} + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02815_alias_to_length/ast.json b/parser/testdata/02815_alias_to_length/ast.json new file mode 100644 index 0000000000..24d2cb9c1f --- /dev/null +++ b/parser/testdata/02815_alias_to_length/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "OCTET_LENGTH", + "arguments": [ + { + "type": "String", + "value": "1234" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02815_analyzer_aggregate_functions_of_group_by_keys/ast.json b/parser/testdata/02815_analyzer_aggregate_functions_of_group_by_keys/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02815_analyzer_aggregate_functions_of_group_by_keys/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02815_first_line/ast.json b/parser/testdata/02815_first_line/ast.json new file mode 100644 index 0000000000..ef70109ea9 --- /dev/null +++ b/parser/testdata/02815_first_line/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "firstLine", + "arguments": [ + { + "type": "String", + "value": "foo\nbar\nbaz" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02815_fix_not_found_constants_col_in_block/ast.json b/parser/testdata/02815_fix_not_found_constants_col_in_block/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/02815_fix_not_found_constants_col_in_block/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/02815_join_algorithm_setting/ast.json b/parser/testdata/02815_join_algorithm_setting/ast.json new file mode 100644 index 0000000000..9396556435 --- /dev/null +++ b/parser/testdata/02815_join_algorithm_setting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rdb", + "tables": [ + { + "table": "rdb" + } + ] +} diff --git a/parser/testdata/02815_logical_error_cannot_get_column_name_of_set/ast.json b/parser/testdata/02815_logical_error_cannot_get_column_name_of_set/ast.json new file mode 100644 index 0000000000..d5d3a82017 --- /dev/null +++ b/parser/testdata/02815_logical_error_cannot_get_column_name_of_set/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "settings": [ + { + "name": "x", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02815_range_dict_no_direct_join/ast.json b/parser/testdata/02815_range_dict_no_direct_join/ast.json new file mode 100644 index 0000000000..5aa3bfcc22 --- /dev/null +++ b/parser/testdata/02815_range_dict_no_direct_join/ast.json @@ -0,0 +1,38 @@ +{ + "table": "discounts", + "columns": [ + { + "name": "advertiser_id", + "type": { + "name": "UInt64" + } + }, + { + "name": "discount_start_date", + "type": { + "name": "Date" + } + }, + { + "name": "discount_end_date", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Date" + } + ], + "has_parentheses": true + } + }, + { + "name": "amount", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02816_has_token_empty/ast.json b/parser/testdata/02816_has_token_empty/ast.json new file mode 100644 index 0000000000..9600034304 --- /dev/null +++ b/parser/testdata/02816_has_token_empty/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hasTokenCaseInsensitive", + "arguments": [ + { + "type": "String", + "value": "K(G" + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02816_s2_invalid_point/ast.json b/parser/testdata/02816_s2_invalid_point/ast.json new file mode 100644 index 0000000000..4ad32f9017 --- /dev/null +++ b/parser/testdata/02816_s2_invalid_point/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "geoToS2", + "arguments": [ + { + "name": "toFloat64", + "arguments": [ + { + "name": "toUInt64", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + { + "name": "toFloat64", + "arguments": [ + { + "name": "toUInt64", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02817_group_array_moving_zero_window_size/ast.json b/parser/testdata/02817_group_array_moving_zero_window_size/ast.json new file mode 100644 index 0000000000..e82deaf68a --- /dev/null +++ b/parser/testdata/02817_group_array_moving_zero_window_size/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArrayMovingAvg", + "parameters": [ + { + "name": "toInt64", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02828_create_as_table_function_rename/ast.json b/parser/testdata/02828_create_as_table_function_rename/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02828_create_as_table_function_rename/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02830_insert_values_time_interval/ast.json b/parser/testdata/02830_insert_values_time_interval/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02830_insert_values_time_interval/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02831_regexp_analyze_recursion/ast.json b/parser/testdata/02831_regexp_analyze_recursion/ast.json new file mode 100644 index 0000000000..4d1984eaa4 --- /dev/null +++ b/parser/testdata/02831_regexp_analyze_recursion/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "match", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "(" + }, + { + "type": "Integer", + "value": 100000 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02831_trash/ast.json b/parser/testdata/02831_trash/ast.json new file mode 100644 index 0000000000..6f3a2b2c5b --- /dev/null +++ b/parser/testdata/02831_trash/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "CRC32IEEE", + "arguments": [ + { + "name": "sipHash128" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02832_alter_delete_indexes_projections/ast.json b/parser/testdata/02832_alter_delete_indexes_projections/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02832_alter_delete_indexes_projections/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02833_array_join_columns/ast.json b/parser/testdata/02833_array_join_columns/ast.json new file mode 100644 index 0000000000..f44fd53aec --- /dev/null +++ b/parser/testdata/02833_array_join_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_array_joins", + "tables": [ + { + "table": "test_array_joins" + } + ] +} diff --git a/parser/testdata/02833_multiprewhere_extra_column/ast.json b/parser/testdata/02833_multiprewhere_extra_column/ast.json new file mode 100644 index 0000000000..09953adb9b --- /dev/null +++ b/parser/testdata/02833_multiprewhere_extra_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_multi_prewhere", + "tables": [ + { + "table": "t_multi_prewhere" + } + ] +} diff --git a/parser/testdata/02833_sparse_columns_tuple_function/ast.json b/parser/testdata/02833_sparse_columns_tuple_function/ast.json new file mode 100644 index 0000000000..01bab2e5c4 --- /dev/null +++ b/parser/testdata/02833_sparse_columns_tuple_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_tuple_sparse", + "tables": [ + { + "table": "t_tuple_sparse" + } + ] +} diff --git a/parser/testdata/02833_starts_ends_with_utf8/ast.json b/parser/testdata/02833_starts_ends_with_utf8/ast.json new file mode 100644 index 0000000000..9207bcdc10 --- /dev/null +++ b/parser/testdata/02833_starts_ends_with_utf8/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "startsWithUTF8", + "arguments": [ + { + "type": "String", + "value": "富强民主文明和谐" + }, + { + "type": "String", + "value": "富强" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02833_std_alias/ast.json b/parser/testdata/02833_std_alias/ast.json new file mode 100644 index 0000000000..b8455f4f1c --- /dev/null +++ b/parser/testdata/02833_std_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "series", + "tables": [ + { + "table": "series" + } + ] +} diff --git a/parser/testdata/02833_tuple_concat/ast.json b/parser/testdata/02833_tuple_concat/ast.json new file mode 100644 index 0000000000..d59bb095e4 --- /dev/null +++ b/parser/testdata/02833_tuple_concat/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleConcat" + } + ] + } + ] +} diff --git a/parser/testdata/02834_add_sub_date_functions/ast.json b/parser/testdata/02834_add_sub_date_functions/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/02834_add_sub_date_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/02834_alter_exception/ast.json b/parser/testdata/02834_alter_exception/ast.json new file mode 100644 index 0000000000..914af0de76 --- /dev/null +++ b/parser/testdata/02834_alter_exception/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_02834", + "tables": [ + { + "table": "alter_02834" + } + ] +} diff --git a/parser/testdata/02834_analyzer_with_statement_references/ast.json b/parser/testdata/02834_analyzer_with_statement_references/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02834_analyzer_with_statement_references/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02834_apache_arrow_abort/ast.json b/parser/testdata/02834_apache_arrow_abort/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/02834_apache_arrow_abort/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02834_array_exists_segfault/ast.json b/parser/testdata/02834_array_exists_segfault/ast.json new file mode 100644 index 0000000000..45ef63a042 --- /dev/null +++ b/parser/testdata/02834_array_exists_segfault/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02834_t", + "tables": [ + { + "table": "02834_t" + } + ] +} diff --git a/parser/testdata/02834_formats_with_variable_number_of_columns/ast.json b/parser/testdata/02834_formats_with_variable_number_of_columns/ast.json new file mode 100644 index 0000000000..006e8583bb --- /dev/null +++ b/parser/testdata/02834_formats_with_variable_number_of_columns/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "CSV" + } + ] + } + ] +} diff --git a/parser/testdata/02834_nulls_first_sort/ast.json b/parser/testdata/02834_nulls_first_sort/ast.json new file mode 100644 index 0000000000..1ba239bee2 --- /dev/null +++ b/parser/testdata/02834_nulls_first_sort/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nulls_first_sort_test", + "tables": [ + { + "table": "nulls_first_sort_test" + } + ] +} diff --git a/parser/testdata/02834_sparse_columns_sort_with_limit/ast.json b/parser/testdata/02834_sparse_columns_sort_with_limit/ast.json new file mode 100644 index 0000000000..7bc64bacd6 --- /dev/null +++ b/parser/testdata/02834_sparse_columns_sort_with_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sparse_sort_limit", + "tables": [ + { + "table": "t_sparse_sort_limit" + } + ] +} diff --git a/parser/testdata/02834_timestamp_function/ast.json b/parser/testdata/02834_timestamp_function/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/02834_timestamp_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/02835_fuzz_remove_redundant_sorting/ast.json b/parser/testdata/02835_fuzz_remove_redundant_sorting/ast.json new file mode 100644 index 0000000000..8f1156e6e1 --- /dev/null +++ b/parser/testdata/02835_fuzz_remove_redundant_sorting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers500k", + "tables": [ + { + "table": "numbers500k" + } + ] +} diff --git a/parser/testdata/02835_join_step_explain/ast.json b/parser/testdata/02835_join_step_explain/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02835_join_step_explain/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02835_nested_array_lowcardinality/ast.json b/parser/testdata/02835_nested_array_lowcardinality/ast.json new file mode 100644 index 0000000000..a3a7d0083a --- /dev/null +++ b/parser/testdata/02835_nested_array_lowcardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "cool_table", + "tables": [ + { + "table": "cool_table" + } + ] +} diff --git a/parser/testdata/02835_parallel_replicas_over_distributed/ast.json b/parser/testdata/02835_parallel_replicas_over_distributed/ast.json new file mode 100644 index 0000000000..330b1cbb63 --- /dev/null +++ b/parser/testdata/02835_parallel_replicas_over_distributed/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- 1 shard, 3 replicas" + } + ] + } + ] +} diff --git a/parser/testdata/02840_grace_hash_join_structure_mismatch/ast.json b/parser/testdata/02840_grace_hash_join_structure_mismatch/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02840_grace_hash_join_structure_mismatch/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02841_group_array_sorted/ast.json b/parser/testdata/02841_group_array_sorted/ast.json new file mode 100644 index 0000000000..096e2a511d --- /dev/null +++ b/parser/testdata/02841_group_array_sorted/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArraySorted", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02841_join_filter_set_sparse/ast.json b/parser/testdata/02841_join_filter_set_sparse/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02841_join_filter_set_sparse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02841_not_ready_set_constraints/ast.json b/parser/testdata/02841_not_ready_set_constraints/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02841_not_ready_set_constraints/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02841_parallel_final_wrong_columns_order/ast.json b/parser/testdata/02841_parallel_final_wrong_columns_order/ast.json new file mode 100644 index 0000000000..1e01f0653d --- /dev/null +++ b/parser/testdata/02841_parallel_final_wrong_columns_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab2", + "tables": [ + { + "table": "tab2" + } + ] +} diff --git a/parser/testdata/02841_parquet_filter_pushdown/ast.json b/parser/testdata/02841_parquet_filter_pushdown/ast.json new file mode 100644 index 0000000000..5544871804 --- /dev/null +++ b/parser/testdata/02841_parquet_filter_pushdown/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_parquet_row_group_size", + "value": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/02841_remote_parameter_parsing_error/ast.json b/parser/testdata/02841_remote_parameter_parsing_error/ast.json new file mode 100644 index 0000000000..66c85836d2 --- /dev/null +++ b/parser/testdata/02841_remote_parameter_parsing_error/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.1" + }, + { + "parts": [ + "sys" + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02841_tuple_modulo/ast.json b/parser/testdata/02841_tuple_modulo/ast.json new file mode 100644 index 0000000000..9c0f0fbdb0 --- /dev/null +++ b/parser/testdata/02841_tuple_modulo/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 4 + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] +} diff --git a/parser/testdata/02841_with_clause_resolve/ast.json b/parser/testdata/02841_with_clause_resolve/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02841_with_clause_resolve/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02842_filesystem_cache_validate_path/ast.json b/parser/testdata/02842_filesystem_cache_validate_path/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02842_filesystem_cache_validate_path/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02842_largestTriangleThreeBuckets_aggregate_function/ast.json b/parser/testdata/02842_largestTriangleThreeBuckets_aggregate_function/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/02842_largestTriangleThreeBuckets_aggregate_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02842_move_pk_to_end_of_prewhere/ast.json b/parser/testdata/02842_move_pk_to_end_of_prewhere/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/02842_move_pk_to_end_of_prewhere/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02842_mutations_replace_non_deterministic/ast.json b/parser/testdata/02842_mutations_replace_non_deterministic/ast.json new file mode 100644 index 0000000000..1155e0157e --- /dev/null +++ b/parser/testdata/02842_mutations_replace_non_deterministic/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_mutations_nondeterministic", + "tables": [ + { + "table": "t_mutations_nondeterministic" + } + ], + "sync": true +} diff --git a/parser/testdata/02842_truncate_database/ast.json b/parser/testdata/02842_truncate_database/ast.json new file mode 100644 index 0000000000..87ef67412d --- /dev/null +++ b/parser/testdata/02842_truncate_database/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_truncate_database", + "drop_database": true +} diff --git a/parser/testdata/02842_vertical_merge_after_add_drop_column/ast.json b/parser/testdata/02842_vertical_merge_after_add_drop_column/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02842_vertical_merge_after_add_drop_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02843_context_has_expired/ast.json b/parser/testdata/02843_context_has_expired/ast.json new file mode 100644 index 0000000000..4875be3481 --- /dev/null +++ b/parser/testdata/02843_context_has_expired/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02843_dict", + "tables": [ + { + "table": "02843_dict" + } + ] +} diff --git a/parser/testdata/02844_distributed_virtual_columns/ast.json b/parser/testdata/02844_distributed_virtual_columns/ast.json new file mode 100644 index 0000000000..f261c7a18f --- /dev/null +++ b/parser/testdata/02844_distributed_virtual_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_01072", + "tables": [ + { + "table": "data_01072" + } + ] +} diff --git a/parser/testdata/02844_subquery_timeout_with_break/ast.json b/parser/testdata/02844_subquery_timeout_with_break/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02844_subquery_timeout_with_break/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02845_arrayShiftRotate/ast.json b/parser/testdata/02845_arrayShiftRotate/ast.json new file mode 100644 index 0000000000..bf8d2c12df --- /dev/null +++ b/parser/testdata/02845_arrayShiftRotate/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "== arrayRotateLeft" + } + ] + } + ] +} diff --git a/parser/testdata/02845_domain_rfc_support_ipv6/ast.json b/parser/testdata/02845_domain_rfc_support_ipv6/ast.json new file mode 100644 index 0000000000..7d617ff3d2 --- /dev/null +++ b/parser/testdata/02845_domain_rfc_support_ipv6/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "domainRFC", + "arguments": [ + { + "type": "String", + "value": "http://[2001:db8::1]:80" + } + ] + } + ], + "format": { + "parts": [ + "CSV" + ] + } + } + ] +} diff --git a/parser/testdata/02845_group_by_constant_keys/ast.json b/parser/testdata/02845_group_by_constant_keys/ast.json new file mode 100644 index 0000000000..0b644a4a5d --- /dev/null +++ b/parser/testdata/02845_group_by_constant_keys/ast.json @@ -0,0 +1,96 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "k1" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "k2" + }, + { + "expr": { + "type": "Integer", + "value": 3 + }, + "alias": "k3" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 10000000 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k1" + ] + }, + { + "parts": [ + "k2" + ] + }, + { + "parts": [ + "k3" + ] + } + ], + "settings": [ + { + "name": "optimize_group_by_constant_keys", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "enable_software_prefetch_in_aggregation", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/02845_join_on_cond_sparse/ast.json b/parser/testdata/02845_join_on_cond_sparse/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02845_join_on_cond_sparse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02845_prewhere_preserve_column/ast.json b/parser/testdata/02845_prewhere_preserve_column/ast.json new file mode 100644 index 0000000000..51e42b09ef --- /dev/null +++ b/parser/testdata/02845_prewhere_preserve_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02845_prewhere", + "tables": [ + { + "table": "02845_prewhere" + } + ] +} diff --git a/parser/testdata/02860_distributed_flush_on_detach/ast.json b/parser/testdata/02860_distributed_flush_on_detach/ast.json new file mode 100644 index 0000000000..214f2f0efd --- /dev/null +++ b/parser/testdata/02860_distributed_flush_on_detach/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02861_filter_pushdown_const_bug/ast.json b/parser/testdata/02861_filter_pushdown_const_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02861_filter_pushdown_const_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02861_index_set_incorrect_args/ast.json b/parser/testdata/02861_index_set_incorrect_args/ast.json new file mode 100644 index 0000000000..83a8be8d7c --- /dev/null +++ b/parser/testdata/02861_index_set_incorrect_args/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "set_index__fuzz_41", + "tables": [ + { + "table": "set_index__fuzz_41" + } + ] +} diff --git a/parser/testdata/02861_interpolate_alias_precedence/ast.json b/parser/testdata/02861_interpolate_alias_precedence/ast.json new file mode 100644 index 0000000000..5180235988 --- /dev/null +++ b/parser/testdata/02861_interpolate_alias_precedence/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02861_interpolate", + "tables": [ + { + "table": "02861_interpolate" + } + ] +} diff --git a/parser/testdata/02861_replacing_merge_tree_with_cleanup/ast.json b/parser/testdata/02861_replacing_merge_tree_with_cleanup/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02861_replacing_merge_tree_with_cleanup/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02861_uuid_format_serialization/ast.json b/parser/testdata/02861_uuid_format_serialization/ast.json new file mode 100644 index 0000000000..46363f8c0e --- /dev/null +++ b/parser/testdata/02861_uuid_format_serialization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_uuid", + "tables": [ + { + "table": "t_uuid" + } + ] +} diff --git a/parser/testdata/02862_sorted_distinct_sparse_fix/ast.json b/parser/testdata/02862_sorted_distinct_sparse_fix/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02862_sorted_distinct_sparse_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02862_uuid_reinterpret_as_numeric/ast.json b/parser/testdata/02862_uuid_reinterpret_as_numeric/ast.json new file mode 100644 index 0000000000..46363f8c0e --- /dev/null +++ b/parser/testdata/02862_uuid_reinterpret_as_numeric/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_uuid", + "tables": [ + { + "table": "t_uuid" + } + ] +} diff --git a/parser/testdata/02863_decode_html_component/ast.json b/parser/testdata/02863_decode_html_component/ast.json new file mode 100644 index 0000000000..06c1112e98 --- /dev/null +++ b/parser/testdata/02863_decode_html_component/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "decodeHTMLComponent", + "arguments": [ + { + "type": "String", + "value": "Hello, \u0026quot;world\u0026quot;!" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02863_delayed_source_with_totals_and_extremes/ast.json b/parser/testdata/02863_delayed_source_with_totals_and_extremes/ast.json new file mode 100644 index 0000000000..f651b54c63 --- /dev/null +++ b/parser/testdata/02863_delayed_source_with_totals_and_extremes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02863_delayed_source", + "tables": [ + { + "table": "02863_delayed_source" + } + ] +} diff --git a/parser/testdata/02863_interpolate_subquery/ast.json b/parser/testdata/02863_interpolate_subquery/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02863_interpolate_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02863_mutation_where_in_set_result_cache_pipeline_stuck_bug/ast.json b/parser/testdata/02863_mutation_where_in_set_result_cache_pipeline_stuck_bug/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02863_mutation_where_in_set_result_cache_pipeline_stuck_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02863_non_const_timezone_check/ast.json b/parser/testdata/02863_non_const_timezone_check/ast.json new file mode 100644 index 0000000000..58b4c3a7c0 --- /dev/null +++ b/parser/testdata/02863_non_const_timezone_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "Dates", + "tables": [ + { + "table": "Dates" + } + ] +} diff --git a/parser/testdata/02864_filtered_url_with_globs/ast.json b/parser/testdata/02864_filtered_url_with_globs/ast.json new file mode 100644 index 0000000000..3ede2d6890 --- /dev/null +++ b/parser/testdata/02864_filtered_url_with_globs/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "url", + "arguments": [ + { + "type": "String", + "value": "http://127.0.0.1:8123?query=select+{1,2}+as+x+format+TSV" + }, + { + "type": "String", + "value": "TSV" + } + ] + } + } + } + ] + }, + "where": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02864_profile_event_part_lock/ast.json b/parser/testdata/02864_profile_event_part_lock/ast.json new file mode 100644 index 0000000000..76dac8037f --- /dev/null +++ b/parser/testdata/02864_profile_event_part_lock/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "random_mt", + "tables": [ + { + "table": "random_mt" + } + ] +} diff --git a/parser/testdata/02864_replace_regexp_string_fallback/ast.json b/parser/testdata/02864_replace_regexp_string_fallback/ast.json new file mode 100644 index 0000000000..6b95cdbc90 --- /dev/null +++ b/parser/testdata/02864_replace_regexp_string_fallback/ast.json @@ -0,0 +1,79 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "Hello" + }, + "alias": "haystack" + }, + { + "expr": { + "type": "String", + "value": "l" + }, + "alias": "needle" + }, + { + "expr": { + "type": "String", + "value": "x" + }, + "alias": "replacement" + }, + { + "name": "replaceRegexpOne", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "haystack" + ] + } + ] + }, + { + "parts": [ + "needle" + ] + }, + { + "parts": [ + "replacement" + ] + } + ] + }, + { + "name": "replaceRegexpAll", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "parts": [ + "haystack" + ] + } + ] + }, + { + "parts": [ + "needle" + ] + }, + { + "parts": [ + "replacement" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02864_statistics_bug_67742/ast.json b/parser/testdata/02864_statistics_bug_67742/ast.json new file mode 100644 index 0000000000..7ef37147e1 --- /dev/null +++ b/parser/testdata/02864_statistics_bug_67742/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_statistics", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02864_statistics_bug_69589/ast.json b/parser/testdata/02864_statistics_bug_69589/ast.json new file mode 100644 index 0000000000..7ef37147e1 --- /dev/null +++ b/parser/testdata/02864_statistics_bug_69589/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_statistics", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02864_statistics_create_materialize_drop/ast.json b/parser/testdata/02864_statistics_create_materialize_drop/ast.json new file mode 100644 index 0000000000..1ed43d4ec6 --- /dev/null +++ b/parser/testdata/02864_statistics_create_materialize_drop/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ], + "sync": true +} diff --git a/parser/testdata/02864_statistics_ddl/ast.json b/parser/testdata/02864_statistics_ddl/ast.json new file mode 100644 index 0000000000..f2ad7b1ef3 --- /dev/null +++ b/parser/testdata/02864_statistics_ddl/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02864_statistics_delayed_materialization_in_merge/ast.json b/parser/testdata/02864_statistics_delayed_materialization_in_merge/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02864_statistics_delayed_materialization_in_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02864_statistics_predicates/ast.json b/parser/testdata/02864_statistics_predicates/ast.json new file mode 100644 index 0000000000..7ef37147e1 --- /dev/null +++ b/parser/testdata/02864_statistics_predicates/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_statistics", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02864_statistics_usage/ast.json b/parser/testdata/02864_statistics_usage/ast.json new file mode 100644 index 0000000000..7ef37147e1 --- /dev/null +++ b/parser/testdata/02864_statistics_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_statistics", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02864_test_ipv4_type_mismatch/ast.json b/parser/testdata/02864_test_ipv4_type_mismatch/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02864_test_ipv4_type_mismatch/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02865_array_join_with_max_block_size/ast.json b/parser/testdata/02865_array_join_with_max_block_size/ast.json new file mode 100644 index 0000000000..aaa4b6c719 --- /dev/null +++ b/parser/testdata/02865_array_join_with_max_block_size/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "enable_unaligned_array_join", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/02866_size_of_marks_skip_idx_explain/ast.json b/parser/testdata/02866_size_of_marks_skip_idx_explain/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/02866_size_of_marks_skip_idx_explain/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02867_create_user_ssh/ast.json b/parser/testdata/02867_create_user_ssh/ast.json new file mode 100644 index 0000000000..489f602a0a --- /dev/null +++ b/parser/testdata/02867_create_user_ssh/ast.json @@ -0,0 +1,4 @@ +{ + "if_exists": true, + "user": "test_user_02867" +} diff --git a/parser/testdata/02867_null_lc_in_bug/ast.json b/parser/testdata/02867_null_lc_in_bug/ast.json new file mode 100644 index 0000000000..3031ed3a37 --- /dev/null +++ b/parser/testdata/02867_null_lc_in_bug/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "tnul", + "tables": [ + { + "table": "tnul" + } + ], + "sync": true +} diff --git a/parser/testdata/02867_nullable_primary_key_final/ast.json b/parser/testdata/02867_nullable_primary_key_final/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02867_nullable_primary_key_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02868_distinct_to_count_optimization/ast.json b/parser/testdata/02868_distinct_to_count_optimization/ast.json new file mode 100644 index 0000000000..64bc39961a --- /dev/null +++ b/parser/testdata/02868_distinct_to_count_optimization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_rewrite_uniq_to_count", + "tables": [ + { + "table": "test_rewrite_uniq_to_count" + } + ] +} diff --git a/parser/testdata/02868_select_support_from_keywords/ast.json b/parser/testdata/02868_select_support_from_keywords/ast.json new file mode 100644 index 0000000000..c640fa60e8 --- /dev/null +++ b/parser/testdata/02868_select_support_from_keywords/ast.json @@ -0,0 +1,66 @@ +{ + "table": "test_table", + "columns": [ + { + "name": "date", + "type": { + "name": "Date" + } + }, + { + "name": "__sign", + "type": { + "name": "Int8" + } + }, + { + "name": "from", + "type": { + "name": "Float64" + } + }, + { + "name": "to", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "CollapsingMergeTree", + "parameters": [ + { + "parts": [ + "__sign" + ] + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "date" + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "date" + ] + } + ] + }, + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/02869_insert_filenames_collisions/ast.json b/parser/testdata/02869_insert_filenames_collisions/ast.json new file mode 100644 index 0000000000..d727aaf11e --- /dev/null +++ b/parser/testdata/02869_insert_filenames_collisions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_collisions", + "tables": [ + { + "table": "t_collisions" + } + ] +} diff --git a/parser/testdata/02869_parallel_replicas_read_from_several/ast.json b/parser/testdata/02869_parallel_replicas_read_from_several/ast.json new file mode 100644 index 0000000000..2759abc05b --- /dev/null +++ b/parser/testdata/02869_parallel_replicas_read_from_several/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ], + "sync": true +} diff --git a/parser/testdata/02870_move_partition_to_volume_io_throttling/ast.json b/parser/testdata/02870_move_partition_to_volume_io_throttling/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/02870_move_partition_to_volume_io_throttling/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02870_per_column_settings/ast.json b/parser/testdata/02870_per_column_settings/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02870_per_column_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02872_prewhere_filter/ast.json b/parser/testdata/02872_prewhere_filter/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02872_prewhere_filter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02873_s3_presigned_url_and_url_with_special_characters/ast.json b/parser/testdata/02873_s3_presigned_url_and_url_with_special_characters/ast.json new file mode 100644 index 0000000000..08f77246bd --- /dev/null +++ b/parser/testdata/02873_s3_presigned_url_and_url_with_special_characters/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "type": "String", + "value": "http://localhost:11111/test/MyPrefix/BU%20-%20UNIT%20-%201/*.parquet" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02874_analysis_of_variance_overflow/ast.json b/parser/testdata/02874_analysis_of_variance_overflow/ast.json new file mode 100644 index 0000000000..7e20b5d2d4 --- /dev/null +++ b/parser/testdata/02874_analysis_of_variance_overflow/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "analysisOfVariance", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 18446744073709551615 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02874_infer_objects_as_named_tuples/ast.json b/parser/testdata/02874_infer_objects_as_named_tuples/ast.json new file mode 100644 index 0000000000..b7a776272e --- /dev/null +++ b/parser/testdata/02874_infer_objects_as_named_tuples/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_try_infer_named_tuples_from_objects", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02874_json_merge_patch_function_test/ast.json b/parser/testdata/02874_json_merge_patch_function_test/ast.json new file mode 100644 index 0000000000..8dc0731584 --- /dev/null +++ b/parser/testdata/02874_json_merge_patch_function_test/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "jsonMergePatch", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02874_toDaysSinceYearZero/ast.json b/parser/testdata/02874_toDaysSinceYearZero/ast.json new file mode 100644 index 0000000000..ab079427e8 --- /dev/null +++ b/parser/testdata/02874_toDaysSinceYearZero/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Europe/Amsterdam" + } + } + ] +} diff --git a/parser/testdata/02875_final_invalid_read_ranges_bug/ast.json b/parser/testdata/02875_final_invalid_read_ranges_bug/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02875_final_invalid_read_ranges_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02875_fix_column_decimal_serialization/ast.json b/parser/testdata/02875_fix_column_decimal_serialization/ast.json new file mode 100644 index 0000000000..8c178aa170 --- /dev/null +++ b/parser/testdata/02875_fix_column_decimal_serialization/ast.json @@ -0,0 +1,123 @@ +{ + "table": "max_length_alias_14053__fuzz_45", + "columns": [ + { + "name": "a", + "type": { + "name": "Date" + } + }, + { + "name": "b", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 76 + }, + { + "type": "Integer", + "value": 45 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "c.d", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Nullable", + "parameters": [ + { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "dcount", + "type": { + "name": "Int8" + }, + "default": { + "name": "length", + "arguments": [ + { + "parts": [ + "c", + "d" + ] + } + ] + }, + "default_kind": "ALIAS" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ], + "partition_by": { + "name": "toMonday", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + }, + "settings": [ + { + "name": "allow_nullable_key", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/02875_json_array_as_string/ast.json b/parser/testdata/02875_json_array_as_string/ast.json new file mode 100644 index 0000000000..c0162d43eb --- /dev/null +++ b/parser/testdata/02875_json_array_as_string/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_read_arrays_as_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02875_parallel_replicas_cluster_all_replicas/ast.json b/parser/testdata/02875_parallel_replicas_cluster_all_replicas/ast.json new file mode 100644 index 0000000000..d58a7bf85a --- /dev/null +++ b/parser/testdata/02875_parallel_replicas_cluster_all_replicas/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tt", + "tables": [ + { + "table": "tt" + } + ] +} diff --git a/parser/testdata/02875_parallel_replicas_remote/ast.json b/parser/testdata/02875_parallel_replicas_remote/ast.json new file mode 100644 index 0000000000..d58a7bf85a --- /dev/null +++ b/parser/testdata/02875_parallel_replicas_remote/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tt", + "tables": [ + { + "table": "tt" + } + ] +} diff --git a/parser/testdata/02876_json_incomplete_types_as_strings_inference/ast.json b/parser/testdata/02876_json_incomplete_types_as_strings_inference/ast.json new file mode 100644 index 0000000000..fa5e2aef7b --- /dev/null +++ b/parser/testdata/02876_json_incomplete_types_as_strings_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_infer_incomplete_types_as_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02876_sort_union_of_sorted/ast.json b/parser/testdata/02876_sort_union_of_sorted/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/02876_sort_union_of_sorted/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/02876_yyyymmddhhmmsstodatetime/ast.json b/parser/testdata/02876_yyyymmddhhmmsstodatetime/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/02876_yyyymmddhhmmsstodatetime/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/02876_yyyymmddtodate/ast.json b/parser/testdata/02876_yyyymmddtodate/ast.json new file mode 100644 index 0000000000..1a2222a2f1 --- /dev/null +++ b/parser/testdata/02876_yyyymmddtodate/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- YYYYMMDDToDate" + } + ] + } + ] +} diff --git a/parser/testdata/02880_indexHint__partition_id/ast.json b/parser/testdata/02880_indexHint__partition_id/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02880_indexHint__partition_id/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02882_formatQuery/ast.json b/parser/testdata/02882_formatQuery/ast.json new file mode 100644 index 0000000000..562b2d7b24 --- /dev/null +++ b/parser/testdata/02882_formatQuery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "all_valid", + "tables": [ + { + "table": "all_valid" + } + ] +} diff --git a/parser/testdata/02882_primary_key_index_in_function_different_types/ast.json b/parser/testdata/02882_primary_key_index_in_function_different_types/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02882_primary_key_index_in_function_different_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02882_replicated_fetch_checksums_doesnt_match/ast.json b/parser/testdata/02882_replicated_fetch_checksums_doesnt_match/ast.json new file mode 100644 index 0000000000..6eb1b8b063 --- /dev/null +++ b/parser/testdata/02882_replicated_fetch_checksums_doesnt_match/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "checksums_r3", + "tables": [ + { + "table": "checksums_r3" + } + ] +} diff --git a/parser/testdata/02883_array_scalar_mult_div_modulo/ast.json b/parser/testdata/02883_array_scalar_mult_div_modulo/ast.json new file mode 100644 index 0000000000..eb61f5204f --- /dev/null +++ b/parser/testdata/02883_array_scalar_mult_div_modulo/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "materialize", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + }, + "op": "*", + "right": { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02883_read_in_reverse_order_virtual_column/ast.json b/parser/testdata/02883_read_in_reverse_order_virtual_column/ast.json new file mode 100644 index 0000000000..0d417e56d8 --- /dev/null +++ b/parser/testdata/02883_read_in_reverse_order_virtual_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_reverse_order_virt_col", + "tables": [ + { + "table": "t_reverse_order_virt_col" + } + ] +} diff --git a/parser/testdata/02884_async_insert_skip_settings/ast.json b/parser/testdata/02884_async_insert_skip_settings/ast.json new file mode 100644 index 0000000000..488f3eb032 --- /dev/null +++ b/parser/testdata/02884_async_insert_skip_settings/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_async_insert_skip_settings", + "tables": [ + { + "table": "t_async_insert_skip_settings" + } + ], + "sync": true +} diff --git a/parser/testdata/02884_duplicate_index_name/ast.json b/parser/testdata/02884_duplicate_index_name/ast.json new file mode 100644 index 0000000000..c69adc94fc --- /dev/null +++ b/parser/testdata/02884_duplicate_index_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_dup_index", + "tables": [ + { + "table": "test_dup_index" + } + ] +} diff --git a/parser/testdata/02884_interval_operator_support_plural_literal/ast.json b/parser/testdata/02884_interval_operator_support_plural_literal/ast.json new file mode 100644 index 0000000000..fce6075d58 --- /dev/null +++ b/parser/testdata/02884_interval_operator_support_plural_literal/ast.json @@ -0,0 +1,15 @@ +{ + "selects": [ + { + "columns": [ + { + "value": { + "type": "Integer", + "value": 2 + }, + "unit": "YEAR" + } + ] + } + ] +} diff --git a/parser/testdata/02884_parallel_window_functions/ast.json b/parser/testdata/02884_parallel_window_functions/ast.json new file mode 100644 index 0000000000..b694eef0ed --- /dev/null +++ b/parser/testdata/02884_parallel_window_functions/ast.json @@ -0,0 +1,118 @@ +{ + "table": "window_function_threading", + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "ac" + ] + }, + { + "parts": [ + "nw" + ] + } + ] + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "name": "toUInt64", + "arguments": [ + { + "left": { + "name": "toFloat32", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 20000000 + } + } + ], + "alias": "ac" + }, + { + "name": "toFloat32", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "wg" + }, + { + "name": "toUInt16", + "arguments": [ + { + "left": { + "name": "toFloat32", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 400 + } + } + ], + "alias": "nw" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers_mt", + "arguments": [ + { + "type": "Integer", + "value": 10000000 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02884_parallel_window_functions_bug/ast.json b/parser/testdata/02884_parallel_window_functions_bug/ast.json new file mode 100644 index 0000000000..a303941316 --- /dev/null +++ b/parser/testdata/02884_parallel_window_functions_bug/ast.json @@ -0,0 +1,123 @@ +{ + "if_not_exists": true, + "table": "posts", + "columns": [ + { + "name": "page_id", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "post_id", + "type": { + "name": "String" + }, + "codec": { + "codecs": [ + { + "name": "LZ4" + } + ] + } + }, + { + "name": "host_id", + "type": { + "name": "UInt32" + }, + "codec": { + "codecs": [ + { + "name": "T64" + }, + { + "name": "LZ4" + } + ] + } + }, + { + "name": "path_id", + "type": { + "name": "UInt32" + } + }, + { + "name": "created", + "type": { + "name": "DateTime" + }, + "codec": { + "codecs": [ + { + "name": "T64" + }, + { + "name": "LZ4" + } + ] + } + }, + { + "name": "as_of", + "type": { + "name": "DateTime" + }, + "codec": { + "codecs": [ + { + "name": "T64" + }, + { + "name": "LZ4" + } + ] + } + } + ], + "engine": { + "name": "ReplacingMergeTree", + "parameters": [ + { + "parts": [ + "as_of" + ] + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "page_id" + ] + }, + { + "parts": [ + "post_id" + ] + } + ] + } + ], + "partition_by": { + "name": "toStartOfMonth", + "arguments": [ + { + "parts": [ + "created" + ] + } + ] + } +} diff --git a/parser/testdata/02884_string_distance_function/ast.json b/parser/testdata/02884_string_distance_function/ast.json new file mode 100644 index 0000000000..8384c63498 --- /dev/null +++ b/parser/testdata/02884_string_distance_function/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- const arguments" + } + ] + } + ] +} diff --git a/parser/testdata/02884_virtual_column_order_by/ast.json b/parser/testdata/02884_virtual_column_order_by/ast.json new file mode 100644 index 0000000000..5783104bc1 --- /dev/null +++ b/parser/testdata/02884_virtual_column_order_by/ast.json @@ -0,0 +1,36 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "02884_1.csv" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + } + ], + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/02885_arg_min_max_combinator/ast.json b/parser/testdata/02885_arg_min_max_combinator/ast.json new file mode 100644 index 0000000000..b06fb62128 --- /dev/null +++ b/parser/testdata/02885_arg_min_max_combinator/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumArgMin", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 20 + } + } + ] + }, + { + "name": "sumArgMax", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 20 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02885_create_distributed_table_without_as/ast.json b/parser/testdata/02885_create_distributed_table_without_as/ast.json new file mode 100644 index 0000000000..9bd9d75727 --- /dev/null +++ b/parser/testdata/02885_create_distributed_table_without_as/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dist_tbl", + "tables": [ + { + "table": "dist_tbl" + } + ] +} diff --git a/parser/testdata/02886_binary_like/ast.json b/parser/testdata/02886_binary_like/ast.json new file mode 100644 index 0000000000..705f014eea --- /dev/null +++ b/parser/testdata/02886_binary_like/ast.json @@ -0,0 +1,18 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "aяb" + }, + "pattern": { + "type": "String", + "value": "a_b" + } + } + ] + } + ] +} diff --git a/parser/testdata/02887_byteswap/ast.json b/parser/testdata/02887_byteswap/ast.json new file mode 100644 index 0000000000..5afee72d46 --- /dev/null +++ b/parser/testdata/02887_byteswap/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "byteSwap", + "arguments": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "type": { + "name": "UInt8" + }, + "operator_syntax": true + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02887_tuple_element_distributed/ast.json b/parser/testdata/02887_tuple_element_distributed/ast.json new file mode 100644 index 0000000000..b022641a9a --- /dev/null +++ b/parser/testdata/02887_tuple_element_distributed/ast.json @@ -0,0 +1,66 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "equals", + "arguments": [ + { + "name": "tupleElement", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "type": "String", + "value": "a" + }, + { + "type": "Integer", + "value": 10 + } + ], + "alias": "x" + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "String", + "value": "a" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2,3}" + }, + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02888_integer_type_inference_in_if_function/ast.json b/parser/testdata/02888_integer_type_inference_in_if_function/ast.json new file mode 100644 index 0000000000..17fc144431 --- /dev/null +++ b/parser/testdata/02888_integer_type_inference_in_if_function/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Integer", + "value": 9223372036854775806 + }, + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ], + "alias": "res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02888_obsolete_settings/ast.json b/parser/testdata/02888_obsolete_settings/ast.json new file mode 100644 index 0000000000..7816dbfd9e --- /dev/null +++ b/parser/testdata/02888_obsolete_settings/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Obsolete server settings" + } + ] + } + ] +} diff --git a/parser/testdata/02889_datetime64_from_string/ast.json b/parser/testdata/02889_datetime64_from_string/ast.json new file mode 100644 index 0000000000..de942c96c5 --- /dev/null +++ b/parser/testdata/02889_datetime64_from_string/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "-123" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02889_parts_columns_filenames/ast.json b/parser/testdata/02889_parts_columns_filenames/ast.json new file mode 100644 index 0000000000..1389a5aeb8 --- /dev/null +++ b/parser/testdata/02889_parts_columns_filenames/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_parts_columns_filenames", + "tables": [ + { + "table": "t_parts_columns_filenames" + } + ] +} diff --git a/parser/testdata/02889_print_pretty_type_names/ast.json b/parser/testdata/02889_print_pretty_type_names/ast.json new file mode 100644 index 0000000000..5dc07d344c --- /dev/null +++ b/parser/testdata/02889_print_pretty_type_names/ast.json @@ -0,0 +1,131 @@ +{ + "table": "test", + "columns": [ + { + "name": "a", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "b", + "type": { + "name": "String" + } + }, + { + "name": "c", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "d", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt64" + } + ], + "has_parentheses": true + } + }, + { + "name": "e", + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt32" + } + ], + "has_parentheses": true + } + }, + { + "name": "f", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Tuple", + "parameters": [ + { + "name": "g", + "type": { + "name": "String" + } + }, + { + "name": "h", + "type": { + "name": "Map", + "parameters": [ + { + "name": "String" + }, + { + "name": "Array", + "parameters": [ + { + "name": "Tuple", + "parameters": [ + { + "name": "i", + "type": { + "name": "String" + } + }, + { + "name": "j", + "type": { + "name": "UInt64" + } + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "k", + "type": { + "name": "Date" + } + } + ], + "has_parentheses": true + } + }, + { + "name": "l", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02890_describe_table_options/ast.json b/parser/testdata/02890_describe_table_options/ast.json new file mode 100644 index 0000000000..956d12a9ec --- /dev/null +++ b/parser/testdata/02890_describe_table_options/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_describe_options", + "tables": [ + { + "table": "t_describe_options" + } + ] +} diff --git a/parser/testdata/02890_named_tuple_functions/ast.json b/parser/testdata/02890_named_tuple_functions/ast.json new file mode 100644 index 0000000000..8a3fba6bf6 --- /dev/null +++ b/parser/testdata/02890_named_tuple_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_named_columns_in_function_tuple", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02890_partition_prune_in_extra_columns/ast.json b/parser/testdata/02890_partition_prune_in_extra_columns/ast.json new file mode 100644 index 0000000000..6c51602ea9 --- /dev/null +++ b/parser/testdata/02890_partition_prune_in_extra_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "e", + "tables": [ + { + "table": "e" + } + ] +} diff --git a/parser/testdata/02890_untuple_column_names/ast.json b/parser/testdata/02890_untuple_column_names/ast.json new file mode 100644 index 0000000000..497fff9da6 --- /dev/null +++ b/parser/testdata/02890_untuple_column_names/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- tuple element alias" + } + ] + } + ] +} diff --git a/parser/testdata/02891_alter_update_adaptive_granularity/ast.json b/parser/testdata/02891_alter_update_adaptive_granularity/ast.json new file mode 100644 index 0000000000..a4c87e1d0e --- /dev/null +++ b/parser/testdata/02891_alter_update_adaptive_granularity/ast.json @@ -0,0 +1,66 @@ +{ + "table": "kv", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "UInt64" + } + }, + { + "name": "s", + "type": { + "name": "String" + } + } + ], + "indexes": [ + { + "name": "value_idx", + "expression": { + "parts": [ + "value" + ] + }, + "type": { + "name": "minmax" + }, + "granularity": { + "type": "Integer", + "value": 1 + } + } + ], + "engine": { + "name": "ReplacingMergeTree" + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 32 + } + }, + { + "name": "index_granularity_bytes", + "value": { + "type": "Integer", + "value": 1024 + } + } + ] +} diff --git a/parser/testdata/02891_array_shingles/ast.json b/parser/testdata/02891_array_shingles/ast.json new file mode 100644 index 0000000000..b4db085d98 --- /dev/null +++ b/parser/testdata/02891_array_shingles/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02891_empty_tuple/ast.json b/parser/testdata/02891_empty_tuple/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/02891_empty_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/02891_functions_over_sparse_columns/ast.json b/parser/testdata/02891_functions_over_sparse_columns/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02891_functions_over_sparse_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02892_SummingMergeTree_Nested/ast.json b/parser/testdata/02892_SummingMergeTree_Nested/ast.json new file mode 100644 index 0000000000..b5cd93798a --- /dev/null +++ b/parser/testdata/02892_SummingMergeTree_Nested/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nested_smt", + "tables": [ + { + "table": "nested_smt" + } + ] +} diff --git a/parser/testdata/02892_orc_filter_pushdown/ast.json b/parser/testdata/02892_orc_filter_pushdown/ast.json new file mode 100644 index 0000000000..3a8a97b6aa --- /dev/null +++ b/parser/testdata/02892_orc_filter_pushdown/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_orc_string_as_string", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02892_rocksdb_trivial_count/ast.json b/parser/testdata/02892_rocksdb_trivial_count/ast.json new file mode 100644 index 0000000000..fad5391c5f --- /dev/null +++ b/parser/testdata/02892_rocksdb_trivial_count/ast.json @@ -0,0 +1,27 @@ +{ + "table": "dict", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "EmbeddedRocksDB" + }, + "primary_key": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/02893_array_enum_has_hasAny/ast.json b/parser/testdata/02893_array_enum_has_hasAny/ast.json new file mode 100644 index 0000000000..2c3b819c3f --- /dev/null +++ b/parser/testdata/02893_array_enum_has_hasAny/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "v", + "tables": [ + { + "table": "v" + } + ] +} diff --git a/parser/testdata/02893_bad_sample_view/ast.json b/parser/testdata/02893_bad_sample_view/ast.json new file mode 100644 index 0000000000..d50d6e7c3f --- /dev/null +++ b/parser/testdata/02893_bad_sample_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "view_without_sample", + "tables": [ + { + "table": "view_without_sample" + } + ] +} diff --git a/parser/testdata/02893_trash_optimization/ast.json b/parser/testdata/02893_trash_optimization/ast.json new file mode 100644 index 0000000000..573f27268b --- /dev/null +++ b/parser/testdata/02893_trash_optimization/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "merge", + "arguments": [ + { + "type": "String", + "value": "system" + }, + { + "type": "String", + "value": "^one$" + } + ] + }, + "alias": "one" + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "one", + "dummy" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "one", + "dummy" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + } + } + } + ] +} diff --git a/parser/testdata/02893_vertical_final_bugs/ast.json b/parser/testdata/02893_vertical_final_bugs/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/02893_vertical_final_bugs/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/02895_cast_operator_bug/ast.json b/parser/testdata/02895_cast_operator_bug/ast.json new file mode 100644 index 0000000000..fc52c454f6 --- /dev/null +++ b/parser/testdata/02895_cast_operator_bug/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "expr": { + "type": "Integer", + "value": 0 + }, + "type": { + "name": "UInt16" + }, + "operator_syntax": true + } + ] + } + ] +} diff --git a/parser/testdata/02896_cyclic_aliases_crash/ast.json b/parser/testdata/02896_cyclic_aliases_crash/ast.json new file mode 100644 index 0000000000..3cda4c258b --- /dev/null +++ b/parser/testdata/02896_cyclic_aliases_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_ast_depth", + "value": { + "type": "Integer", + "value": 10000000 + } + } + ] +} diff --git a/parser/testdata/02896_leading_zeroes_no_octal/ast.json b/parser/testdata/02896_leading_zeroes_no_octal/ast.json new file mode 100644 index 0000000000..e8de5769db --- /dev/null +++ b/parser/testdata/02896_leading_zeroes_no_octal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_leading_zeroes", + "tables": [ + { + "table": "t_leading_zeroes" + } + ] +} diff --git a/parser/testdata/02896_max_execution_time_with_break_overflow_mode/ast.json b/parser/testdata/02896_max_execution_time_with_break_overflow_mode/ast.json new file mode 100644 index 0000000000..9febeb5238 --- /dev/null +++ b/parser/testdata/02896_max_execution_time_with_break_overflow_mode/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_execution_time", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_estimated_execution_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02896_multiple_OR/ast.json b/parser/testdata/02896_multiple_OR/ast.json new file mode 100644 index 0000000000..b13f662555 --- /dev/null +++ b/parser/testdata/02896_multiple_OR/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "or_bug", + "tables": [ + { + "table": "or_bug" + } + ] +} diff --git a/parser/testdata/02896_optimize_array_exists_to_has_with_date/ast.json b/parser/testdata/02896_optimize_array_exists_to_has_with_date/ast.json new file mode 100644 index 0000000000..03d503dd60 --- /dev/null +++ b/parser/testdata/02896_optimize_array_exists_to_has_with_date/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayExists", + "arguments": [ + { + "parameters": [ + "date" + ], + "body": { + "left": { + "parts": [ + "date" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "2022-07-31" + } + } + }, + { + "type": "Array", + "value": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2022-07-31" + } + ] + } + ] + } + ], + "alias": "date_exists" + } + ] + } + ] +} diff --git a/parser/testdata/02898_parallel_replicas_custom_key_final/ast.json b/parser/testdata/02898_parallel_replicas_custom_key_final/ast.json new file mode 100644 index 0000000000..8be5bd38a2 --- /dev/null +++ b/parser/testdata/02898_parallel_replicas_custom_key_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02898_parallel_replicas_final", + "tables": [ + { + "table": "02898_parallel_replicas_final" + } + ] +} diff --git a/parser/testdata/02898_parallel_replicas_progress_bar/ast.json b/parser/testdata/02898_parallel_replicas_progress_bar/ast.json new file mode 100644 index 0000000000..2759abc05b --- /dev/null +++ b/parser/testdata/02898_parallel_replicas_progress_bar/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ], + "sync": true +} diff --git a/parser/testdata/02899_indexing_by_space_filling_curves/ast.json b/parser/testdata/02899_indexing_by_space_filling_curves/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02899_indexing_by_space_filling_curves/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02900_add_subtract_interval_with_string_date/ast.json b/parser/testdata/02900_add_subtract_interval_with_string_date/ast.json new file mode 100644 index 0000000000..c2eb80aa6d --- /dev/null +++ b/parser/testdata/02900_add_subtract_interval_with_string_date/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- const date, const delta" + } + ] + } + ] +} diff --git a/parser/testdata/02900_date_time_check_overflow/ast.json b/parser/testdata/02900_date_time_check_overflow/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/02900_date_time_check_overflow/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/02900_decimal_sort_with_multiple_columns/ast.json b/parser/testdata/02900_decimal_sort_with_multiple_columns/ast.json new file mode 100644 index 0000000000..ae3955c002 --- /dev/null +++ b/parser/testdata/02900_decimal_sort_with_multiple_columns/ast.json @@ -0,0 +1,81 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "op": "-", + "operand": { + "parts": [ + "number" + ] + } + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "alias": "i" + }, + { + "name": "toDecimal32", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 20 + } + }, + { + "type": "Integer", + "value": 3 + } + ], + "alias": "j" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 600 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "i" + ] + } + }, + { + "expression": { + "parts": [ + "j" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02900_issue_55858/ast.json b/parser/testdata/02900_issue_55858/ast.json new file mode 100644 index 0000000000..8180f7bbc4 --- /dev/null +++ b/parser/testdata/02900_issue_55858/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "precise_float_parsing", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02900_window_function_with_sparse_column/ast.json b/parser/testdata/02900_window_function_with_sparse_column/ast.json new file mode 100644 index 0000000000..f361f3806d --- /dev/null +++ b/parser/testdata/02900_window_function_with_sparse_column/ast.json @@ -0,0 +1,71 @@ +{ + "table": "test1", + "columns": [ + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "time", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 9 + } + ], + "has_parentheses": true + } + }, + { + "name": "key", + "type": { + "name": "Int64" + } + }, + { + "name": "value", + "type": { + "name": "Bool" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "key" + ] + }, + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "time" + ] + } + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "time" + ] + } + ] + } +} diff --git a/parser/testdata/02901_predicate_pushdown_cte_stateful/ast.json b/parser/testdata/02901_predicate_pushdown_cte_stateful/ast.json new file mode 100644 index 0000000000..fc530f9e83 --- /dev/null +++ b/parser/testdata/02901_predicate_pushdown_cte_stateful/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_error_prone_window_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02901_remove_nullable_crash_analyzer/ast.json b/parser/testdata/02901_remove_nullable_crash_analyzer/ast.json new file mode 100644 index 0000000000..74282c6e50 --- /dev/null +++ b/parser/testdata/02901_remove_nullable_crash_analyzer/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "%", + "right": { + "whens": [ + { + "condition": { + "type": "Integer", + "value": 1 + }, + "result": { + "left": { + "expr": { + "type": "Integer", + "value": 1 + }, + "not": true + }, + "op": "+", + "right": {} + } + } + ], + "else": { + "type": "Null", + "value": null + } + } + } + ] + } + ] +} diff --git a/parser/testdata/02902_add_scalar_in_all_case/ast.json b/parser/testdata/02902_add_scalar_in_all_case/ast.json new file mode 100644 index 0000000000..15636dbdee --- /dev/null +++ b/parser/testdata/02902_add_scalar_in_all_case/ast.json @@ -0,0 +1,84 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "TSVRaw" + ] + }, + { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "name": "arrayStringConcat", + "arguments": [ + { + "name": "groupArray", + "arguments": [ + { + "type": "String", + "value": "some long string" + } + ] + }, + { + "type": "String", + "value": "\n" + } + ] + }, + "type": { + "name": "LowCardinality(String)" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10000 + } + ] + } + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "TSVRaw" + ] + } + } + ] +} diff --git a/parser/testdata/02902_diable_apply_deleted_mask/ast.json b/parser/testdata/02902_diable_apply_deleted_mask/ast.json new file mode 100644 index 0000000000..c846c3c67f --- /dev/null +++ b/parser/testdata/02902_diable_apply_deleted_mask/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_apply_deleted_mask", + "tables": [ + { + "table": "test_apply_deleted_mask" + } + ] +} diff --git a/parser/testdata/02902_json_skip_null_values/ast.json b/parser/testdata/02902_json_skip_null_values/ast.json new file mode 100644 index 0000000000..6bfc278450 --- /dev/null +++ b/parser/testdata/02902_json_skip_null_values/ast.json @@ -0,0 +1,103 @@ +{ + "table": "test_02902", + "engine": { + "name": "File", + "parameters": [ + { + "parts": [ + "JSONEachRow" + ] + } + ], + "has_parentheses": true + }, + "settings": [ + { + "name": "output_format_json_named_tuples_as_objects", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_json_skip_null_value_in_named_tuples", + "value": { + "type": "Integer", + "value": 1 + } + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Tuple", + "value": [ + { + "expr": { + "parts": [ + "number" + ] + }, + "type": { + "name": "String" + }, + "operator_syntax": true + }, + { + "type": "Null", + "value": null + }, + { + "type": "Tuple", + "value": [ + { + "expr": { + "parts": [ + "number" + ] + }, + "type": { + "name": "String" + }, + "operator_syntax": true + }, + { + "type": "Null", + "value": null + } + ] + } + ] + }, + "type": { + "name": "Tuple(a Nullable(String), b Nullable(Int64), c Tuple(x Nullable(String), y Nullable(Float64)))" + } + }, + "alias": "c" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02902_select_subcolumns_from_engine_null/ast.json b/parser/testdata/02902_select_subcolumns_from_engine_null/ast.json new file mode 100644 index 0000000000..4d93ab933a --- /dev/null +++ b/parser/testdata/02902_select_subcolumns_from_engine_null/ast.json @@ -0,0 +1,29 @@ +{ + "table": "null_02902", + "columns": [ + { + "name": "t", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "num", + "type": { + "name": "Int64" + } + }, + { + "name": "str", + "type": { + "name": "String" + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Null" + } +} diff --git a/parser/testdata/02903_bug_43644/ast.json b/parser/testdata/02903_bug_43644/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/02903_bug_43644/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/02905_show_setting_query/ast.json b/parser/testdata/02905_show_setting_query/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/02905_show_setting_query/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02905_system_logs_hostname/ast.json b/parser/testdata/02905_system_logs_hostname/ast.json new file mode 100644 index 0000000000..72107cd558 --- /dev/null +++ b/parser/testdata/02905_system_logs_hostname/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "test hostname in system log tables" + } + ] + } + ] +} diff --git a/parser/testdata/02906_flatten_only_true_nested/ast.json b/parser/testdata/02906_flatten_only_true_nested/ast.json new file mode 100644 index 0000000000..83f3909a83 --- /dev/null +++ b/parser/testdata/02906_flatten_only_true_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "flatten_nested", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02906_force_optimize_projection_name/ast.json b/parser/testdata/02906_force_optimize_projection_name/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02906_force_optimize_projection_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02906_interval_comparison/ast.json b/parser/testdata/02906_interval_comparison/ast.json new file mode 100644 index 0000000000..7b6d70dcdf --- /dev/null +++ b/parser/testdata/02906_interval_comparison/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "SECOND" + }, + "op": "=", + "right": { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "SECOND" + } + } + ] + } + ] +} diff --git a/parser/testdata/02906_orc_tuple_field_prune/ast.json b/parser/testdata/02906_orc_tuple_field_prune/ast.json new file mode 100644 index 0000000000..e3084a94b6 --- /dev/null +++ b/parser/testdata/02906_orc_tuple_field_prune/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02907_filter_pushdown_crash/ast.json b/parser/testdata/02907_filter_pushdown_crash/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02907_filter_pushdown_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02907_fromDaysSinceYearZero/ast.json b/parser/testdata/02907_fromDaysSinceYearZero/ast.json new file mode 100644 index 0000000000..ab079427e8 --- /dev/null +++ b/parser/testdata/02907_fromDaysSinceYearZero/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Europe/Amsterdam" + } + } + ] +} diff --git a/parser/testdata/02910_prefetch_unexpceted_exception/ast.json b/parser/testdata/02910_prefetch_unexpceted_exception/ast.json new file mode 100644 index 0000000000..8c6c904381 --- /dev/null +++ b/parser/testdata/02910_prefetch_unexpceted_exception/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prefetched_table", + "tables": [ + { + "table": "prefetched_table" + } + ] +} diff --git a/parser/testdata/02910_replicated_merge_parameters_must_consistent/ast.json b/parser/testdata/02910_replicated_merge_parameters_must_consistent/ast.json new file mode 100644 index 0000000000..cd0c90693b --- /dev/null +++ b/parser/testdata/02910_replicated_merge_parameters_must_consistent/ast.json @@ -0,0 +1,49 @@ +{ + "table": "t", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "val", + "type": { + "name": "String" + } + }, + { + "name": "legacy_ver", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "ReplicatedReplacingMergeTree", + "parameters": [ + { + "type": "String", + "value": "/tables/{database}/t/" + }, + { + "type": "String", + "value": "r1" + }, + { + "parts": [ + "legacy_ver" + ] + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/02910_rocksdb_optimize/ast.json b/parser/testdata/02910_rocksdb_optimize/ast.json new file mode 100644 index 0000000000..fad5391c5f --- /dev/null +++ b/parser/testdata/02910_rocksdb_optimize/ast.json @@ -0,0 +1,27 @@ +{ + "table": "dict", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "EmbeddedRocksDB" + }, + "primary_key": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/02911_add_index_and_materialize_index/ast.json b/parser/testdata/02911_add_index_and_materialize_index/ast.json new file mode 100644 index 0000000000..7ca939993f --- /dev/null +++ b/parser/testdata/02911_add_index_and_materialize_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "index_test", + "tables": [ + { + "table": "index_test" + } + ] +} diff --git a/parser/testdata/02911_analyzer_explain_estimate/ast.json b/parser/testdata/02911_analyzer_explain_estimate/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02911_analyzer_explain_estimate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02911_analyzer_order_by_read_in_order_query_plan/ast.json b/parser/testdata/02911_analyzer_order_by_read_in_order_query_plan/ast.json new file mode 100644 index 0000000000..e4f4d41ec2 --- /dev/null +++ b/parser/testdata/02911_analyzer_order_by_read_in_order_query_plan/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "query_plan_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02911_analyzer_remove_unused_projection_columns/ast.json b/parser/testdata/02911_analyzer_remove_unused_projection_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02911_analyzer_remove_unused_projection_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02911_cte_invalid_query_analysis/ast.json b/parser/testdata/02911_cte_invalid_query_analysis/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/02911_cte_invalid_query_analysis/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/02911_join_on_nullsafe_optimization/ast.json b/parser/testdata/02911_join_on_nullsafe_optimization/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02911_join_on_nullsafe_optimization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02911_support_alias_column_in_indices/ast.json b/parser/testdata/02911_support_alias_column_in_indices/ast.json new file mode 100644 index 0000000000..70737cef21 --- /dev/null +++ b/parser/testdata/02911_support_alias_column_in_indices/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "02911_support_alias_column_in_indices", + "drop_database": true +} diff --git a/parser/testdata/02911_system_symbols/ast.json b/parser/testdata/02911_system_symbols/ast.json new file mode 100644 index 0000000000..29c077ee65 --- /dev/null +++ b/parser/testdata/02911_system_symbols/ast.json @@ -0,0 +1,98 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "x" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "demangle", + "arguments": [ + { + "parts": [ + "symbol" + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "symbols" + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "symbol" + ] + }, + "pattern": { + "type": "String", + "value": "%StorageSystemSymbols%" + } + } + } + ] + } + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "x" + ] + }, + "pattern": { + "type": "String", + "value": "%DB::StorageSystemSymbols::StorageSystemSymbols%" + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "x" + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + }, + "settings": [ + { + "name": "allow_introspection_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/02912_group_array_sample/ast.json b/parser/testdata/02912_group_array_sample/ast.json new file mode 100644 index 0000000000..1c56e4317d --- /dev/null +++ b/parser/testdata/02912_group_array_sample/ast.json @@ -0,0 +1,98 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "uniq", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 50 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "groupArraySample", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02912_ingestion_mv_deduplication/ast.json b/parser/testdata/02912_ingestion_mv_deduplication/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/02912_ingestion_mv_deduplication/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/02913_sum_map_state/ast.json b/parser/testdata/02913_sum_map_state/ast.json new file mode 100644 index 0000000000..9de73c1cdb --- /dev/null +++ b/parser/testdata/02913_sum_map_state/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "sumMappedArraysState", + "arguments": [ + { + "type": "Array", + "value": [ + { + "expr": { + "type": "String", + "value": "0.1" + }, + "type": { + "name": "Decimal(3)" + } + }, + { + "expr": { + "type": "String", + "value": "1" + }, + "type": { + "name": "Decimal(3)" + } + } + ] + }, + { + "type": "Array", + "value": [ + { + "expr": { + "type": "String", + "value": "1.2" + }, + "type": { + "name": "Decimal(3)" + } + }, + { + "expr": { + "type": "String", + "value": "2" + }, + "type": { + "name": "Decimal(3)" + } + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02915_analyzer_fuzz_1/ast.json b/parser/testdata/02915_analyzer_fuzz_1/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02915_analyzer_fuzz_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02915_analyzer_fuzz_2/ast.json b/parser/testdata/02915_analyzer_fuzz_2/ast.json new file mode 100644 index 0000000000..8700546b0e --- /dev/null +++ b/parser/testdata/02915_analyzer_fuzz_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "aggregate_functions_null_for_empty", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02915_analyzer_fuzz_5/ast.json b/parser/testdata/02915_analyzer_fuzz_5/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02915_analyzer_fuzz_5/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02915_analyzer_fuzz_6/ast.json b/parser/testdata/02915_analyzer_fuzz_6/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02915_analyzer_fuzz_6/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02915_move_partition_inactive_replica/ast.json b/parser/testdata/02915_move_partition_inactive_replica/ast.json new file mode 100644 index 0000000000..093b2a33f5 --- /dev/null +++ b/parser/testdata/02915_move_partition_inactive_replica/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "shard_0", + "create_database": true +} diff --git a/parser/testdata/02916_addcolumn_nested/ast.json b/parser/testdata/02916_addcolumn_nested/ast.json new file mode 100644 index 0000000000..0df3733ebc --- /dev/null +++ b/parser/testdata/02916_addcolumn_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "flatten_nested", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02916_analyzer_set_in_join/ast.json b/parser/testdata/02916_analyzer_set_in_join/ast.json new file mode 100644 index 0000000000..0db2a0fcdd --- /dev/null +++ b/parser/testdata/02916_analyzer_set_in_join/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + }, + { + "parts": [ + "b" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + }, + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 42 + } + ] + } + ] + } + } + ] + }, + "alias": "b" + } + ] + } + } + ] +} diff --git a/parser/testdata/02916_another_move_partition_inactive_replica/ast.json b/parser/testdata/02916_another_move_partition_inactive_replica/ast.json new file mode 100644 index 0000000000..093b2a33f5 --- /dev/null +++ b/parser/testdata/02916_another_move_partition_inactive_replica/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "shard_0", + "create_database": true +} diff --git a/parser/testdata/02916_csv_infer_numbers_from_strings/ast.json b/parser/testdata/02916_csv_infer_numbers_from_strings/ast.json new file mode 100644 index 0000000000..0e2a1109c0 --- /dev/null +++ b/parser/testdata/02916_csv_infer_numbers_from_strings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_csv_try_infer_numbers_from_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02916_date_text_parsing/ast.json b/parser/testdata/02916_date_text_parsing/ast.json new file mode 100644 index 0000000000..5f60ac9acf --- /dev/null +++ b/parser/testdata/02916_date_text_parsing/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "CSV" + ] + }, + { + "type": "String", + "value": "d Date, s String" + }, + { + "type": "String", + "value": "abcdefgh,SomeString" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02916_distributed_skip_unavailable_shards/ast.json b/parser/testdata/02916_distributed_skip_unavailable_shards/ast.json new file mode 100644 index 0000000000..a7b0ced4d0 --- /dev/null +++ b/parser/testdata/02916_distributed_skip_unavailable_shards/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_02916", + "tables": [ + { + "table": "table_02916" + } + ] +} diff --git a/parser/testdata/02916_glogal_in_cancel/ast.json b/parser/testdata/02916_glogal_in_cancel/ast.json new file mode 100644 index 0000000000..497382f700 --- /dev/null +++ b/parser/testdata/02916_glogal_in_cancel/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "max_execution_time", + "value": { + "type": "Float", + "value": 0.5 + } + }, + { + "name": "timeout_overflow_mode", + "value": { + "type": "String", + "value": "break" + } + }, + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02916_replication_protocol_wait_for_part/ast.json b/parser/testdata/02916_replication_protocol_wait_for_part/ast.json new file mode 100644 index 0000000000..07abab9c2f --- /dev/null +++ b/parser/testdata/02916_replication_protocol_wait_for_part/ast.json @@ -0,0 +1,46 @@ +{ + "table": "tableIn", + "columns": [ + { + "name": "n", + "type": { + "name": "int" + } + } + ], + "engine": { + "name": "ReplicatedMergeTree", + "parameters": [ + { + "type": "String", + "value": "/test/02916/{database}/table" + }, + { + "type": "String", + "value": "1" + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ], + "settings": [ + { + "name": "storage_policy", + "value": { + "type": "String", + "value": "s3_cache" + } + }, + { + "name": "sleep_before_commit_local_part_in_replicated_table_ms", + "value": { + "type": "Integer", + "value": 5000 + } + } + ] +} diff --git a/parser/testdata/02916_to_start_of_interval_with_origin/ast.json b/parser/testdata/02916_to_start_of_interval_with_origin/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/02916_to_start_of_interval_with_origin/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/02918_alter_temporary_table/ast.json b/parser/testdata/02918_alter_temporary_table/ast.json new file mode 100644 index 0000000000..8a154714d2 --- /dev/null +++ b/parser/testdata/02918_alter_temporary_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_test", + "tables": [ + { + "table": "alter_test" + } + ] +} diff --git a/parser/testdata/02918_join_pm_lc_crash/ast.json b/parser/testdata/02918_join_pm_lc_crash/ast.json new file mode 100644 index 0000000000..ca8e71fb17 --- /dev/null +++ b/parser/testdata/02918_join_pm_lc_crash/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/02918_optimize_count_for_merge_tables/ast.json b/parser/testdata/02918_optimize_count_for_merge_tables/ast.json new file mode 100644 index 0000000000..a802c8a3e9 --- /dev/null +++ b/parser/testdata/02918_optimize_count_for_merge_tables/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt1", + "tables": [ + { + "table": "mt1" + } + ] +} diff --git a/parser/testdata/02918_parallel_replicas_custom_key_unavailable_replica/ast.json b/parser/testdata/02918_parallel_replicas_custom_key_unavailable_replica/ast.json new file mode 100644 index 0000000000..e157cdcd34 --- /dev/null +++ b/parser/testdata/02918_parallel_replicas_custom_key_unavailable_replica/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02918_parallel_replicas", + "tables": [ + { + "table": "02918_parallel_replicas" + } + ] +} diff --git a/parser/testdata/02918_wrong_dictionary_source/ast.json b/parser/testdata/02918_wrong_dictionary_source/ast.json new file mode 100644 index 0000000000..f52b41717b --- /dev/null +++ b/parser/testdata/02918_wrong_dictionary_source/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "id_value_dictionary", + "tables": [ + { + "table": "id_value_dictionary" + } + ] +} diff --git a/parser/testdata/02919_alter_temporary_table_with_nondefault_engine/ast.json b/parser/testdata/02919_alter_temporary_table_with_nondefault_engine/ast.json new file mode 100644 index 0000000000..8a154714d2 --- /dev/null +++ b/parser/testdata/02919_alter_temporary_table_with_nondefault_engine/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alter_test", + "tables": [ + { + "table": "alter_test" + } + ] +} diff --git a/parser/testdata/02919_ddsketch_quantile/ast.json b/parser/testdata/02919_ddsketch_quantile/ast.json new file mode 100644 index 0000000000..26fdfd9893 --- /dev/null +++ b/parser/testdata/02919_ddsketch_quantile/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "1" + } + ] + } + ] +} diff --git a/parser/testdata/02919_insert_meet_eternal_hardware_error/ast.json b/parser/testdata/02919_insert_meet_eternal_hardware_error/ast.json new file mode 100644 index 0000000000..8c7bbacdbe --- /dev/null +++ b/parser/testdata/02919_insert_meet_eternal_hardware_error/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_hardware_error", + "tables": [ + { + "table": "t_hardware_error" + } + ] +} diff --git a/parser/testdata/02919_segfault_nullable_materialized_update/ast.json b/parser/testdata/02919_segfault_nullable_materialized_update/ast.json new file mode 100644 index 0000000000..3eabd6de73 --- /dev/null +++ b/parser/testdata/02919_segfault_nullable_materialized_update/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "crash_02919", + "tables": [ + { + "table": "crash_02919" + } + ] +} diff --git a/parser/testdata/02919_storage_fuzzjson/ast.json b/parser/testdata/02919_storage_fuzzjson/ast.json new file mode 100644 index 0000000000..a18c3c554f --- /dev/null +++ b/parser/testdata/02919_storage_fuzzjson/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02919_test_table_noarg", + "tables": [ + { + "table": "02919_test_table_noarg" + } + ] +} diff --git a/parser/testdata/02920_alter_column_of_projections/ast.json b/parser/testdata/02920_alter_column_of_projections/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02920_alter_column_of_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02920_fix_json_merge_patch/ast.json b/parser/testdata/02920_fix_json_merge_patch/ast.json new file mode 100644 index 0000000000..90c54c56f8 --- /dev/null +++ b/parser/testdata/02920_fix_json_merge_patch/ast.json @@ -0,0 +1,83 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "{\"id\":1,\"foo\":[\"bar\"]}" + }, + "alias": "a" + }, + { + "name": "jsonMergePatch", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "name": "toJSONString", + "arguments": [ + { + "name": "map", + "arguments": [ + { + "type": "String", + "value": "foo" + }, + { + "name": "arrayPushBack", + "arguments": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "JSONExtractString", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + }, + { + "name": "JSONExtractArrayRaw", + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "type": "String", + "value": "foo" + } + ] + } + ] + }, + { + "type": "String", + "value": "baz" + } + ] + } + ] + } + ] + } + ], + "alias": "b" + } + ] + } + ] +} diff --git a/parser/testdata/02920_rename_column_of_skip_indices/ast.json b/parser/testdata/02920_rename_column_of_skip_indices/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02920_rename_column_of_skip_indices/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02921_database_filesystem_path_check/ast.json b/parser/testdata/02921_database_filesystem_path_check/ast.json new file mode 100644 index 0000000000..9dfc07250c --- /dev/null +++ b/parser/testdata/02921_database_filesystem_path_check/ast.json @@ -0,0 +1,14 @@ +{ + "database": "db_filesystem", + "engine": { + "name": "Filesystem", + "parameters": [ + { + "type": "String", + "value": "/etc" + } + ], + "has_parentheses": true + }, + "create_database": true +} diff --git a/parser/testdata/02921_fuzzbits_with_array_join/ast.json b/parser/testdata/02921_fuzzbits_with_array_join/ast.json new file mode 100644 index 0000000000..d105b024a7 --- /dev/null +++ b/parser/testdata/02921_fuzzbits_with_array_join/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "length", + "arguments": [ + { + "name": "fuzzBits", + "arguments": [ + { + "type": "String", + "value": "stringstring" + }, + { + "type": "Float", + "value": 0.5 + } + ] + } + ] + }, + { + "parts": [ + "a" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + "alias": "a" + } + ] + } + } + ] +} diff --git a/parser/testdata/02921_parameterized_view_except_queries/ast.json b/parser/testdata/02921_parameterized_view_except_queries/ast.json new file mode 100644 index 0000000000..0fb5a2929c --- /dev/null +++ b/parser/testdata/02921_parameterized_view_except_queries/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- Data ---" + } + ] + } + ] +} diff --git a/parser/testdata/02922_analyzer_aggregate_nothing_type/ast.json b/parser/testdata/02922_analyzer_aggregate_nothing_type/ast.json new file mode 100644 index 0000000000..960960ec48 --- /dev/null +++ b/parser/testdata/02922_analyzer_aggregate_nothing_type/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02922_respect_nulls_states/ast.json b/parser/testdata/02922_respect_nulls_states/ast.json new file mode 100644 index 0000000000..3201b38e16 --- /dev/null +++ b/parser/testdata/02922_respect_nulls_states/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "first_value_respect_nullsState", + "arguments": [ + { + "parts": [ + "dummy" + ] + } + ] + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "name": "last_value_respect_nullsState", + "arguments": [ + { + "parts": [ + "dummy" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02923_cte_equality_disjunction/ast.json b/parser/testdata/02923_cte_equality_disjunction/ast.json new file mode 100644 index 0000000000..1d6325e913 --- /dev/null +++ b/parser/testdata/02923_cte_equality_disjunction/ast.json @@ -0,0 +1,21 @@ +{ + "table": "test_bug_optimization", + "columns": [ + { + "name": "path", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "path" + ] + } + ] +} diff --git a/parser/testdata/02931_alter_materialized_view_query_inconsistent/ast.json b/parser/testdata/02931_alter_materialized_view_query_inconsistent/ast.json new file mode 100644 index 0000000000..2fb70cbc4f --- /dev/null +++ b/parser/testdata/02931_alter_materialized_view_query_inconsistent/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pipe", + "tables": [ + { + "table": "pipe" + } + ] +} diff --git a/parser/testdata/02931_max_num_to_warn/ast.json b/parser/testdata/02931_max_num_to_warn/ast.json new file mode 100644 index 0000000000..1f8b587985 --- /dev/null +++ b/parser/testdata/02931_max_num_to_warn/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "test_max_num_to_warn_02931", + "create_database": true +} diff --git a/parser/testdata/02931_rewrite_sum_column_and_constant/ast.json b/parser/testdata/02931_rewrite_sum_column_and_constant/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02931_rewrite_sum_column_and_constant/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02931_ubsan_error_arena_aligned_alloc/ast.json b/parser/testdata/02931_ubsan_error_arena_aligned_alloc/ast.json new file mode 100644 index 0000000000..f7c4c8d044 --- /dev/null +++ b/parser/testdata/02931_ubsan_error_arena_aligned_alloc/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumResample", + "parameters": [ + { + "type": "Integer", + "value": 65535 + }, + { + "type": "Integer", + "value": 20 + }, + { + "type": "Integer", + "value": 1 + } + ], + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 20 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 200 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02932_analyzer_rewrite_sum_column_and_constant/ast.json b/parser/testdata/02932_analyzer_rewrite_sum_column_and_constant/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02932_analyzer_rewrite_sum_column_and_constant/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02932_apply_deleted_mask/ast.json b/parser/testdata/02932_apply_deleted_mask/ast.json new file mode 100644 index 0000000000..39909253c3 --- /dev/null +++ b/parser/testdata/02932_apply_deleted_mask/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_materialize_delete", + "tables": [ + { + "table": "t_materialize_delete" + } + ] +} diff --git a/parser/testdata/02932_group_by_null_fuzzer/ast.json b/parser/testdata/02932_group_by_null_fuzzer/ast.json new file mode 100644 index 0000000000..898837bdf6 --- /dev/null +++ b/parser/testdata/02932_group_by_null_fuzzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_positional_arguments", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02932_idna/ast.json b/parser/testdata/02932_idna/ast.json new file mode 100644 index 0000000000..567d264fca --- /dev/null +++ b/parser/testdata/02932_idna/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02932_lwd_and_mutations/ast.json b/parser/testdata/02932_lwd_and_mutations/ast.json new file mode 100644 index 0000000000..588aa73bc8 --- /dev/null +++ b/parser/testdata/02932_lwd_and_mutations/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwd_mutations", + "tables": [ + { + "table": "t_lwd_mutations" + } + ] +} diff --git a/parser/testdata/02932_materialized_view_with_dropped_target_table_no_exception/ast.json b/parser/testdata/02932_materialized_view_with_dropped_target_table_no_exception/ast.json new file mode 100644 index 0000000000..9bde06d65d --- /dev/null +++ b/parser/testdata/02932_materialized_view_with_dropped_target_table_no_exception/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "ignore_materialized_views_with_dropped_target_table", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02932_non_ready_set_stuck/ast.json b/parser/testdata/02932_non_ready_set_stuck/ast.json new file mode 100644 index 0000000000..6f3c95a9ae --- /dev/null +++ b/parser/testdata/02932_non_ready_set_stuck/ast.json @@ -0,0 +1,39 @@ +{ + "table": "tab", + "columns": [ + { + "name": "item_id", + "type": { + "name": "UInt64" + } + }, + { + "name": "price_sold", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Float32" + } + ], + "has_parentheses": true + } + }, + { + "name": "date", + "type": { + "name": "Date" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "item_id" + ] + } + ] +} diff --git a/parser/testdata/02932_parallel_replicas_fuzzer/ast.json b/parser/testdata/02932_parallel_replicas_fuzzer/ast.json new file mode 100644 index 0000000000..a65643dbf2 --- /dev/null +++ b/parser/testdata/02932_parallel_replicas_fuzzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_for_non_replicated_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02932_punycode/ast.json b/parser/testdata/02932_punycode/ast.json new file mode 100644 index 0000000000..567d264fca --- /dev/null +++ b/parser/testdata/02932_punycode/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02932_query_settings_max_size_drop/ast.json b/parser/testdata/02932_query_settings_max_size_drop/ast.json new file mode 100644 index 0000000000..073013f0f0 --- /dev/null +++ b/parser/testdata/02932_query_settings_max_size_drop/ast.json @@ -0,0 +1,44 @@ +{ + "table": "test_max_size_drop", + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "number" + ] + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02932_query_settings_max_size_drop_rmt/ast.json b/parser/testdata/02932_query_settings_max_size_drop_rmt/ast.json new file mode 100644 index 0000000000..a285440b51 --- /dev/null +++ b/parser/testdata/02932_query_settings_max_size_drop_rmt/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test_max_size_drop", + "tables": [ + { + "table": "test_max_size_drop" + } + ], + "sync": true +} diff --git a/parser/testdata/02932_set_ttl_where/ast.json b/parser/testdata/02932_set_ttl_where/ast.json new file mode 100644 index 0000000000..c9fa0bf285 --- /dev/null +++ b/parser/testdata/02932_set_ttl_where/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_temp", + "tables": [ + { + "table": "t_temp" + } + ] +} diff --git a/parser/testdata/02933_compare_with_bool_as_string/ast.json b/parser/testdata/02933_compare_with_bool_as_string/ast.json new file mode 100644 index 0000000000..e8718c7da7 --- /dev/null +++ b/parser/testdata/02933_compare_with_bool_as_string/ast.json @@ -0,0 +1,19 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Boolean", + "value": true + }, + "op": "=", + "right": { + "type": "String", + "value": "true" + } + } + ] + } + ] +} diff --git a/parser/testdata/02933_ephemeral_mv/ast.json b/parser/testdata/02933_ephemeral_mv/ast.json new file mode 100644 index 0000000000..3599a21e7f --- /dev/null +++ b/parser/testdata/02933_ephemeral_mv/ast.json @@ -0,0 +1,27 @@ +{ + "table": "raw", + "columns": [ + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "num", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "name" + ] + } + ] +} diff --git a/parser/testdata/02933_sqid/ast.json b/parser/testdata/02933_sqid/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02933_sqid/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02934_merge_tree_max_projections/ast.json b/parser/testdata/02934_merge_tree_max_projections/ast.json new file mode 100644 index 0000000000..b89e6525ff --- /dev/null +++ b/parser/testdata/02934_merge_tree_max_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_max_mt_projections_alter", + "tables": [ + { + "table": "test_max_mt_projections_alter" + } + ] +} diff --git a/parser/testdata/02935_date_trunc_case_unsensitiveness/ast.json b/parser/testdata/02935_date_trunc_case_unsensitiveness/ast.json new file mode 100644 index 0000000000..ef793c0d3c --- /dev/null +++ b/parser/testdata/02935_date_trunc_case_unsensitiveness/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "dateTrunc", + "arguments": [ + { + "type": "String", + "value": "DAY" + }, + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2022-03-01 12:55:55" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02935_format_with_arbitrary_types/ast.json b/parser/testdata/02935_format_with_arbitrary_types/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/02935_format_with_arbitrary_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02935_ipv6_from_uint128_equality/ast.json b/parser/testdata/02935_ipv6_from_uint128_equality/ast.json new file mode 100644 index 0000000000..a027039742 --- /dev/null +++ b/parser/testdata/02935_ipv6_from_uint128_equality/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toIPv6", + "arguments": [ + { + "expr": { + "type": "String", + "value": "1512366075204170938810683009357704959" + }, + "type": { + "name": "UInt128" + }, + "operator_syntax": true + } + ] + }, + "op": "=", + "right": { + "expr": { + "type": "String", + "value": "0123:4567:89ab:cdef:8899:aabb:ccdd:eeff" + }, + "type": { + "name": "IPv6" + }, + "operator_syntax": true + } + } + ] + } + ] +} diff --git a/parser/testdata/02935_ipv6_from_uint128_one/ast.json b/parser/testdata/02935_ipv6_from_uint128_one/ast.json new file mode 100644 index 0000000000..e36a6c7109 --- /dev/null +++ b/parser/testdata/02935_ipv6_from_uint128_one/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toIPv6", + "arguments": [ + { + "name": "toUInt128", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02935_ipv6_from_uint128_two/ast.json b/parser/testdata/02935_ipv6_from_uint128_two/ast.json new file mode 100644 index 0000000000..b1ae2618cf --- /dev/null +++ b/parser/testdata/02935_ipv6_from_uint128_two/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toIPv6", + "arguments": [ + { + "name": "toUInt128", + "arguments": [ + { + "type": "Integer", + "value": 4335 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02935_ipv6_from_uint128_with_bit_and/ast.json b/parser/testdata/02935_ipv6_from_uint128_with_bit_and/ast.json new file mode 100644 index 0000000000..917e57def3 --- /dev/null +++ b/parser/testdata/02935_ipv6_from_uint128_with_bit_and/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toIPv6", + "arguments": [ + { + "name": "bitAnd", + "arguments": [ + { + "name": "toIPv6", + "arguments": [ + { + "type": "String", + "value": "ffff:fff3:1fff:2fff:0000:0000:0000:0000" + } + ] + }, + { + "name": "toIPv6", + "arguments": [ + { + "type": "String", + "value": "f5f6:ffff:f32f:61ff:0000:0000:0000:0000" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02935_ipv6_to_and_from_uint128/ast.json b/parser/testdata/02935_ipv6_to_and_from_uint128/ast.json new file mode 100644 index 0000000000..0d963e6232 --- /dev/null +++ b/parser/testdata/02935_ipv6_to_and_from_uint128/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toIPv6", + "arguments": [ + { + "name": "toUInt128", + "arguments": [ + { + "name": "toIPv6", + "arguments": [ + { + "type": "String", + "value": "1234:5678:9abc:def0:fedc:9abc:4321:8765" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02935_parallel_replicas_settings/ast.json b/parser/testdata/02935_parallel_replicas_settings/ast.json new file mode 100644 index 0000000000..f0018db61f --- /dev/null +++ b/parser/testdata/02935_parallel_replicas_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_parallel_replicas_settings", + "tables": [ + { + "table": "test_parallel_replicas_settings" + } + ] +} diff --git a/parser/testdata/02940_json_array_of_unnamed_tuples_inference/ast.json b/parser/testdata/02940_json_array_of_unnamed_tuples_inference/ast.json new file mode 100644 index 0000000000..885b13243a --- /dev/null +++ b/parser/testdata/02940_json_array_of_unnamed_tuples_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_infer_array_of_dynamic_from_array_of_different_types", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02940_variant_text_deserialization/ast.json b/parser/testdata/02940_variant_text_deserialization/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/02940_variant_text_deserialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02941_any_RESPECT_NULL_sparse_column/ast.json b/parser/testdata/02941_any_RESPECT_NULL_sparse_column/ast.json new file mode 100644 index 0000000000..2b3d55a866 --- /dev/null +++ b/parser/testdata/02941_any_RESPECT_NULL_sparse_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_sparse_column", + "tables": [ + { + "table": "data_sparse_column" + } + ] +} diff --git a/parser/testdata/02941_projections_external_aggregation/ast.json b/parser/testdata/02941_projections_external_aggregation/ast.json new file mode 100644 index 0000000000..7b9cb1aa4d --- /dev/null +++ b/parser/testdata/02941_projections_external_aggregation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_proj_external", + "tables": [ + { + "table": "t_proj_external" + } + ] +} diff --git a/parser/testdata/02942_variant_cast/ast.json b/parser/testdata/02942_variant_cast/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/02942_variant_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02943_create_query_interpreter_sample_block_fix/ast.json b/parser/testdata/02943_create_query_interpreter_sample_block_fix/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02943_create_query_interpreter_sample_block_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02943_exprs_order_in_group_by_with_rollup/ast.json b/parser/testdata/02943_exprs_order_in_group_by_with_rollup/ast.json new file mode 100644 index 0000000000..f502ab8064 --- /dev/null +++ b/parser/testdata/02943_exprs_order_in_group_by_with_rollup/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_group_by_with_rollup_order", + "tables": [ + { + "table": "test_group_by_with_rollup_order" + } + ] +} diff --git a/parser/testdata/02943_order_by_all/ast.json b/parser/testdata/02943_order_by_all/ast.json new file mode 100644 index 0000000000..51e9ca4faa --- /dev/null +++ b/parser/testdata/02943_order_by_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "order_by_all", + "tables": [ + { + "table": "order_by_all" + } + ] +} diff --git a/parser/testdata/02943_positional_arguments_bugs/ast.json b/parser/testdata/02943_positional_arguments_bugs/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02943_positional_arguments_bugs/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02943_tokenbf_and_ngrambf_indexes_support_match_function/ast.json b/parser/testdata/02943_tokenbf_and_ngrambf_indexes_support_match_function/ast.json new file mode 100644 index 0000000000..7c507a9d39 --- /dev/null +++ b/parser/testdata/02943_tokenbf_and_ngrambf_indexes_support_match_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tokenbf_tab", + "tables": [ + { + "table": "tokenbf_tab" + } + ] +} diff --git a/parser/testdata/02943_use_full_text_skip_index_with_has_any/ast.json b/parser/testdata/02943_use_full_text_skip_index_with_has_any/ast.json new file mode 100644 index 0000000000..c8e1f22555 --- /dev/null +++ b/parser/testdata/02943_use_full_text_skip_index_with_has_any/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tokenbf_v1_hasany_test", + "tables": [ + { + "table": "tokenbf_v1_hasany_test" + } + ] +} diff --git a/parser/testdata/02943_variant_element/ast.json b/parser/testdata/02943_variant_element/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/02943_variant_element/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02944_variant_as_common_type_analyzer/ast.json b/parser/testdata/02944_variant_as_common_type_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02944_variant_as_common_type_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02945_blake3_msan/ast.json b/parser/testdata/02945_blake3_msan/ast.json new file mode 100644 index 0000000000..4e71b05d57 --- /dev/null +++ b/parser/testdata/02945_blake3_msan/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "BLAKE3", + "arguments": [ + { + "name": "BLAKE3", + "arguments": [ + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02946_literal_alias_misclassification/ast.json b/parser/testdata/02946_literal_alias_misclassification/ast.json new file mode 100644 index 0000000000..c942e58717 --- /dev/null +++ b/parser/testdata/02946_literal_alias_misclassification/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "literal_alias_misclassification", + "tables": [ + { + "table": "literal_alias_misclassification" + } + ] +} diff --git a/parser/testdata/02946_materialize_column_must_not_override_past_values/ast.json b/parser/testdata/02946_materialize_column_must_not_override_past_values/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/02946_materialize_column_must_not_override_past_values/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/02946_merge_tree_final_split_ranges_by_primary_key/ast.json b/parser/testdata/02946_merge_tree_final_split_ranges_by_primary_key/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02946_merge_tree_final_split_ranges_by_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02946_parallel_replicas_distributed/ast.json b/parser/testdata/02946_parallel_replicas_distributed/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02946_parallel_replicas_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02946_parallel_replicas_force_primary_key/ast.json b/parser/testdata/02946_parallel_replicas_force_primary_key/ast.json new file mode 100644 index 0000000000..2759abc05b --- /dev/null +++ b/parser/testdata/02946_parallel_replicas_force_primary_key/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ], + "sync": true +} diff --git a/parser/testdata/02947_dropped_tables_parts/ast.json b/parser/testdata/02947_dropped_tables_parts/ast.json new file mode 100644 index 0000000000..bcdd669c7b --- /dev/null +++ b/parser/testdata/02947_dropped_tables_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02947_table_1", + "tables": [ + { + "table": "02947_table_1" + } + ] +} diff --git a/parser/testdata/02947_merge_tree_index_table_1/ast.json b/parser/testdata/02947_merge_tree_index_table_1/ast.json new file mode 100644 index 0000000000..9ad5d58207 --- /dev/null +++ b/parser/testdata/02947_merge_tree_index_table_1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_merge_tree_index", + "tables": [ + { + "table": "t_merge_tree_index" + } + ] +} diff --git a/parser/testdata/02947_merge_tree_index_table_2/ast.json b/parser/testdata/02947_merge_tree_index_table_2/ast.json new file mode 100644 index 0000000000..9ad5d58207 --- /dev/null +++ b/parser/testdata/02947_merge_tree_index_table_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_merge_tree_index", + "tables": [ + { + "table": "t_merge_tree_index" + } + ] +} diff --git a/parser/testdata/02947_merge_tree_index_table_4/ast.json b/parser/testdata/02947_merge_tree_index_table_4/ast.json new file mode 100644 index 0000000000..9ad5d58207 --- /dev/null +++ b/parser/testdata/02947_merge_tree_index_table_4/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_merge_tree_index", + "tables": [ + { + "table": "t_merge_tree_index" + } + ] +} diff --git a/parser/testdata/02947_parallel_replicas_remote/ast.json b/parser/testdata/02947_parallel_replicas_remote/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02947_parallel_replicas_remote/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02949_parallel_replicas_in_subquery/ast.json b/parser/testdata/02949_parallel_replicas_in_subquery/ast.json new file mode 100644 index 0000000000..23eabb889c --- /dev/null +++ b/parser/testdata/02949_parallel_replicas_in_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "merge_tree_in_subqueries", + "tables": [ + { + "table": "merge_tree_in_subqueries" + } + ] +} diff --git a/parser/testdata/02949_parallel_replicas_scalar_subquery_big_integer/ast.json b/parser/testdata/02949_parallel_replicas_scalar_subquery_big_integer/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02949_parallel_replicas_scalar_subquery_big_integer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02949_ttl_group_by_bug/ast.json b/parser/testdata/02949_ttl_group_by_bug/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02949_ttl_group_by_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02950_dictionary_short_circuit/ast.json b/parser/testdata/02950_dictionary_short_circuit/ast.json new file mode 100644 index 0000000000..7052bf8d47 --- /dev/null +++ b/parser/testdata/02950_dictionary_short_circuit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dictionary_source_table", + "tables": [ + { + "table": "dictionary_source_table" + } + ] +} diff --git a/parser/testdata/02950_parallel_replicas_used_count/ast.json b/parser/testdata/02950_parallel_replicas_used_count/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02950_parallel_replicas_used_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02950_part_offset_as_primary_key/ast.json b/parser/testdata/02950_part_offset_as_primary_key/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02950_part_offset_as_primary_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02950_reading_array_tuple_subcolumns/ast.json b/parser/testdata/02950_reading_array_tuple_subcolumns/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02950_reading_array_tuple_subcolumns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02952_conjunction_optimization/ast.json b/parser/testdata/02952_conjunction_optimization/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02952_conjunction_optimization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02953_slow_create_view/ast.json b/parser/testdata/02953_slow_create_view/ast.json new file mode 100644 index 0000000000..f3c546f608 --- /dev/null +++ b/parser/testdata/02953_slow_create_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "slow_view1", + "tables": [ + { + "table": "slow_view1" + } + ] +} diff --git a/parser/testdata/02955_avro_format_zstd_encode_support/ast.json b/parser/testdata/02955_avro_format_zstd_encode_support/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02955_avro_format_zstd_encode_support/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02955_sparkBar_alias_sparkbar/ast.json b/parser/testdata/02955_sparkBar_alias_sparkbar/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02955_sparkBar_alias_sparkbar/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02956_fix_to_start_of_milli_microsecond/ast.json b/parser/testdata/02956_fix_to_start_of_milli_microsecond/ast.json new file mode 100644 index 0000000000..7729e41752 --- /dev/null +++ b/parser/testdata/02956_fix_to_start_of_milli_microsecond/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfInterval", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2023-10-09 10:11:12.000999" + }, + { + "type": "Integer", + "value": 6 + } + ] + }, + { + "name": "toIntervalMillisecond", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02956_format_constexpr/ast.json b/parser/testdata/02956_format_constexpr/ast.json new file mode 100644 index 0000000000..4a165c8051 --- /dev/null +++ b/parser/testdata/02956_format_constexpr/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isConstant", + "arguments": [ + { + "name": "format", + "arguments": [ + { + "type": "String", + "value": "{}, world" + }, + { + "type": "String", + "value": "Hello" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02956_rocksdb_with_ttl/ast.json b/parser/testdata/02956_rocksdb_with_ttl/ast.json new file mode 100644 index 0000000000..1160b67f77 --- /dev/null +++ b/parser/testdata/02956_rocksdb_with_ttl/ast.json @@ -0,0 +1,34 @@ +{ + "table": "dict_with_ttl", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "EmbeddedRocksDB", + "parameters": [ + { + "type": "Integer", + "value": 2 + } + ], + "has_parentheses": true + }, + "primary_key": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/02960_alter_table_part_query_parameter/ast.json b/parser/testdata/02960_alter_table_part_query_parameter/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02960_alter_table_part_query_parameter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02960_validate_database_engines/ast.json b/parser/testdata/02960_validate_database_engines/ast.json new file mode 100644 index 0000000000..01e89bbe9c --- /dev/null +++ b/parser/testdata/02960_validate_database_engines/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test2960_valid_database_engine", + "drop_database": true +} diff --git a/parser/testdata/02961_analyzer_low_cardinality_fuzzer/ast.json b/parser/testdata/02961_analyzer_low_cardinality_fuzzer/ast.json new file mode 100644 index 0000000000..86b2180369 --- /dev/null +++ b/parser/testdata/02961_analyzer_low_cardinality_fuzzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/02961_higher_order_constant_expressions/ast.json b/parser/testdata/02961_higher_order_constant_expressions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02961_higher_order_constant_expressions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02961_read_bool_as_string_json/ast.json b/parser/testdata/02961_read_bool_as_string_json/ast.json new file mode 100644 index 0000000000..9b0ee0550e --- /dev/null +++ b/parser/testdata/02961_read_bool_as_string_json/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_read_bools_as_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02961_sumMapFiltered_keepKey/ast.json b/parser/testdata/02961_sumMapFiltered_keepKey/ast.json new file mode 100644 index 0000000000..396de0670c --- /dev/null +++ b/parser/testdata/02961_sumMapFiltered_keepKey/ast.json @@ -0,0 +1,215 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumMapFiltered", + "parameters": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ], + "arguments": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "String", + "value": "a Array(Int64), b Array(Int64)" + }, + { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 6 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 8 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02962_analyzer_const_in_count_distinct/ast.json b/parser/testdata/02962_analyzer_const_in_count_distinct/ast.json new file mode 100644 index 0000000000..389c5fce05 --- /dev/null +++ b/parser/testdata/02962_analyzer_const_in_count_distinct/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "count_distinct_optimization", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02962_analyzer_constant_set/ast.json b/parser/testdata/02962_analyzer_constant_set/ast.json new file mode 100644 index 0000000000..b2106d60af --- /dev/null +++ b/parser/testdata/02962_analyzer_constant_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_parallel_index", + "tables": [ + { + "table": "test_parallel_index" + } + ] +} diff --git a/parser/testdata/02962_analyzer_resolve_group_by_on_shards/ast.json b/parser/testdata/02962_analyzer_resolve_group_by_on_shards/ast.json new file mode 100644 index 0000000000..8fc6fdc9dc --- /dev/null +++ b/parser/testdata/02962_analyzer_resolve_group_by_on_shards/ast.json @@ -0,0 +1,245 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Null", + "value": null + }, + "op": "AND", + "right": { + "left": { + "name": "toDate", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 2147483647 + } + }, + { + "type": "Null", + "value": null + } + ] + }, + "op": "AND", + "right": { + "type": "Null", + "value": null + } + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "left": { + "type": "Null", + "value": null + }, + "op": "AND", + "right": { + "type": "Null", + "value": null + } + }, + { + "type": "Null", + "value": null + }, + { + "left": { + "name": "toDate", + "arguments": [ + { + "left": { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "0.0001048577" + }, + { + "name": "toDate", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "left": { + "left": { + "type": "Integer", + "value": 10 + }, + "op": "AND", + "right": { + "left": { + "left": { + "name": "toDate", + "arguments": [ + { + "type": "Integer", + "value": 257 + }, + { + "type": "Integer", + "value": 9223372036854775807 + }, + { + "type": "Null", + "value": null + } + ] + }, + "op": "AND", + "right": { + "type": "Null", + "value": null + } + }, + "op": "AND", + "right": { + "type": "Null", + "value": null + } + } + }, + "op": "AND", + "right": { + "type": "Null", + "value": null + } + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + }, + "op": "AND", + "right": { + "type": "Null", + "value": null + } + }, + "op": "AND", + "right": { + "op": "-", + "operand": { + "type": "Integer", + "value": 2147483648 + } + } + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + }, + "op": "AND", + "right": { + "type": "Null", + "value": null + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "where": { + "name": "toDate", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "type": "Null", + "value": null + } + ] + }, + "group_by": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02962_indexHint_rpn_construction/ast.json b/parser/testdata/02962_indexHint_rpn_construction/ast.json new file mode 100644 index 0000000000..2913fd0ad1 --- /dev/null +++ b/parser/testdata/02962_indexHint_rpn_construction/ast.json @@ -0,0 +1,48 @@ +{ + "table": "tab", + "columns": [ + { + "name": "foo", + "type": { + "name": "Array", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ], + "indexes": [ + { + "name": "idx", + "expression": { + "parts": [ + "foo" + ] + }, + "type": { + "name": "bloom_filter" + }, + "granularity": { + "type": "Integer", + "value": 1 + } + } + ], + "engine": { + "name": "MergeTree" + }, + "primary_key": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02962_join_using_bug_57894/ast.json b/parser/testdata/02962_join_using_bug_57894/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02962_join_using_bug_57894/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02962_max_joined_block_rows/ast.json b/parser/testdata/02962_max_joined_block_rows/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/02962_max_joined_block_rows/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/02962_parallel_window_functions_different_partitioning/ast.json b/parser/testdata/02962_parallel_window_functions_different_partitioning/ast.json new file mode 100644 index 0000000000..d2b0e424db --- /dev/null +++ b/parser/testdata/02962_parallel_window_functions_different_partitioning/ast.json @@ -0,0 +1,38 @@ +{ + "table": "empsalary", + "columns": [ + { + "name": "depname", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "empno", + "type": { + "name": "UInt64" + } + }, + { + "name": "salary", + "type": { + "name": "Int32" + } + }, + { + "name": "enroll_date", + "type": { + "name": "Date" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/02963_invalid_identifier/ast.json b/parser/testdata/02963_invalid_identifier/ast.json new file mode 100644 index 0000000000..f3f9ae6dc5 --- /dev/null +++ b/parser/testdata/02963_invalid_identifier/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "table": "t.t.t" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "tables" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "name": "currentDatabase" + } + } + } + ] +} diff --git a/parser/testdata/02963_msan_agg_addBatchLookupTable8/ast.json b/parser/testdata/02963_msan_agg_addBatchLookupTable8/ast.json new file mode 100644 index 0000000000..81f5076ccc --- /dev/null +++ b/parser/testdata/02963_msan_agg_addBatchLookupTable8/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "alias": "even" + }, + { + "name": "aggThrow", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "even" + ] + } + ] + } + ] +} diff --git a/parser/testdata/02963_single_value_destructor/ast.json b/parser/testdata/02963_single_value_destructor/ast.json new file mode 100644 index 0000000000..d1358f9fa8 --- /dev/null +++ b/parser/testdata/02963_single_value_destructor/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "argMax", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100000 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/02963_test_flexible_disk_configuration/ast.json b/parser/testdata/02963_test_flexible_disk_configuration/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02963_test_flexible_disk_configuration/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02965_projection_with_partition_pruning/ast.json b/parser/testdata/02965_projection_with_partition_pruning/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/02965_projection_with_partition_pruning/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/02966_float32_promotion/ast.json b/parser/testdata/02966_float32_promotion/ast.json new file mode 100644 index 0000000000..6caaf6662e --- /dev/null +++ b/parser/testdata/02966_float32_promotion/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "f32_table", + "tables": [ + { + "table": "f32_table" + } + ] +} diff --git a/parser/testdata/02967_fuzz_bad_cast/ast.json b/parser/testdata/02967_fuzz_bad_cast/ast.json new file mode 100644 index 0000000000..ab6051f953 --- /dev/null +++ b/parser/testdata/02967_fuzz_bad_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1__fuzz_4", + "tables": [ + { + "table": "t1__fuzz_4" + } + ] +} diff --git a/parser/testdata/02967_index_hint_crash/ast.json b/parser/testdata/02967_index_hint_crash/ast.json new file mode 100644 index 0000000000..2913fd0ad1 --- /dev/null +++ b/parser/testdata/02967_index_hint_crash/ast.json @@ -0,0 +1,48 @@ +{ + "table": "tab", + "columns": [ + { + "name": "foo", + "type": { + "name": "Array", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ], + "indexes": [ + { + "name": "idx", + "expression": { + "parts": [ + "foo" + ] + }, + "type": { + "name": "bloom_filter" + }, + "granularity": { + "type": "Integer", + "value": 1 + } + } + ], + "engine": { + "name": "MergeTree" + }, + "primary_key": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/02968_adaptive_async_insert_timeout/ast.json b/parser/testdata/02968_adaptive_async_insert_timeout/ast.json new file mode 100644 index 0000000000..3843072648 --- /dev/null +++ b/parser/testdata/02968_adaptive_async_insert_timeout/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "async_insert_mt_test", + "tables": [ + { + "table": "async_insert_mt_test" + } + ] +} diff --git a/parser/testdata/02968_analyzer_join_column_not_found/ast.json b/parser/testdata/02968_analyzer_join_column_not_found/ast.json new file mode 100644 index 0000000000..f5801571a3 --- /dev/null +++ b/parser/testdata/02968_analyzer_join_column_not_found/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "im", + "tables": [ + { + "table": "im" + } + ] +} diff --git a/parser/testdata/02968_full_sorting_join_fuzz/ast.json b/parser/testdata/02968_full_sorting_join_fuzz/ast.json new file mode 100644 index 0000000000..4bf6fd1193 --- /dev/null +++ b/parser/testdata/02968_full_sorting_join_fuzz/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "max_bytes_in_join", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "full_sorting_merge" + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10240 + } + } + ] +} diff --git a/parser/testdata/02968_projection_merge/ast.json b/parser/testdata/02968_projection_merge/ast.json new file mode 100644 index 0000000000..5a53375428 --- /dev/null +++ b/parser/testdata/02968_projection_merge/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "ReplacingMergeTree" + } + ] + } + ] +} diff --git a/parser/testdata/02968_url_args/ast.json b/parser/testdata/02968_url_args/ast.json new file mode 100644 index 0000000000..dfe43aca6b --- /dev/null +++ b/parser/testdata/02968_url_args/ast.json @@ -0,0 +1,53 @@ +{ + "table": "a", + "columns": [ + { + "name": "x", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "URL", + "parameters": [ + { + "type": "String", + "value": "https://example.com/" + }, + { + "parts": [ + "CSV" + ] + }, + { + "name": "headers", + "arguments": [ + { + "left": { + "type": "String", + "value": "foo" + }, + "op": "=", + "right": { + "type": "String", + "value": "bar" + } + }, + { + "left": { + "type": "String", + "value": "a" + }, + "op": "=", + "right": { + "type": "String", + "value": "13" + } + } + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/02969_analyzer_eliminate_injective_functions/ast.json b/parser/testdata/02969_analyzer_eliminate_injective_functions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02969_analyzer_eliminate_injective_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02969_functions_to_subcolumns_if_null/ast.json b/parser/testdata/02969_functions_to_subcolumns_if_null/ast.json new file mode 100644 index 0000000000..c7786bcda0 --- /dev/null +++ b/parser/testdata/02969_functions_to_subcolumns_if_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_subcolumns_if", + "tables": [ + { + "table": "t_subcolumns_if" + } + ] +} diff --git a/parser/testdata/02969_mysql_cast_type_aliases/ast.json b/parser/testdata/02969_mysql_cast_type_aliases/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/02969_mysql_cast_type_aliases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02970_generate_series/ast.json b/parser/testdata/02970_generate_series/ast.json new file mode 100644 index 0000000000..1a7fb34ee3 --- /dev/null +++ b/parser/testdata/02970_generate_series/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generate_series", + "arguments": [ + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 4 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02970_visible_width_behavior/ast.json b/parser/testdata/02970_visible_width_behavior/ast.json new file mode 100644 index 0000000000..c93a45b6da --- /dev/null +++ b/parser/testdata/02970_visible_width_behavior/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "visibleWidth", + "arguments": [ + { + "type": "String", + "value": "ClickHouse是一个很好的数据库" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02971_functions_to_subcolumns_column_names/ast.json b/parser/testdata/02971_functions_to_subcolumns_column_names/ast.json new file mode 100644 index 0000000000..9d7953edab --- /dev/null +++ b/parser/testdata/02971_functions_to_subcolumns_column_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_column_names", + "tables": [ + { + "table": "t_column_names" + } + ] +} diff --git a/parser/testdata/02971_functions_to_subcolumns_map/ast.json b/parser/testdata/02971_functions_to_subcolumns_map/ast.json new file mode 100644 index 0000000000..3c1debc271 --- /dev/null +++ b/parser/testdata/02971_functions_to_subcolumns_map/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_func_to_subcolumns_map", + "tables": [ + { + "table": "t_func_to_subcolumns_map" + } + ] +} diff --git a/parser/testdata/02971_functions_to_subcolumns_variant/ast.json b/parser/testdata/02971_functions_to_subcolumns_variant/ast.json new file mode 100644 index 0000000000..ae33186bad --- /dev/null +++ b/parser/testdata/02971_functions_to_subcolumns_variant/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_func_to_subcolumns_variant", + "tables": [ + { + "table": "t_func_to_subcolumns_variant" + } + ] +} diff --git a/parser/testdata/02971_limit_by_distributed/ast.json b/parser/testdata/02971_limit_by_distributed/ast.json new file mode 100644 index 0000000000..c5015ca9b4 --- /dev/null +++ b/parser/testdata/02971_limit_by_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tlb", + "tables": [ + { + "table": "tlb" + } + ] +} diff --git a/parser/testdata/02972_insert_deduplication_token_hierarchical_inserts/ast.json b/parser/testdata/02972_insert_deduplication_token_hierarchical_inserts/ast.json new file mode 100644 index 0000000000..873b70b0af --- /dev/null +++ b/parser/testdata/02972_insert_deduplication_token_hierarchical_inserts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_deduplicate", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02972_insert_deduplication_token_hierarchical_inserts_views/ast.json b/parser/testdata/02972_insert_deduplication_token_hierarchical_inserts_views/ast.json new file mode 100644 index 0000000000..873b70b0af --- /dev/null +++ b/parser/testdata/02972_insert_deduplication_token_hierarchical_inserts_views/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_deduplicate", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02972_parallel_replicas_cte/ast.json b/parser/testdata/02972_parallel_replicas_cte/ast.json new file mode 100644 index 0000000000..2280f00c09 --- /dev/null +++ b/parser/testdata/02972_parallel_replicas_cte/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pr_1", + "tables": [ + { + "table": "pr_1" + } + ] +} diff --git a/parser/testdata/02972_to_string_nullable_timezone/ast.json b/parser/testdata/02972_to_string_nullable_timezone/ast.json new file mode 100644 index 0000000000..ab079427e8 --- /dev/null +++ b/parser/testdata/02972_to_string_nullable_timezone/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Europe/Amsterdam" + } + } + ] +} diff --git a/parser/testdata/02973_analyzer_join_use_nulls_column_not_found/ast.json b/parser/testdata/02973_analyzer_join_use_nulls_column_not_found/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/02973_analyzer_join_use_nulls_column_not_found/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02973_block_number_sparse_serialization_and_mutation/ast.json b/parser/testdata/02973_block_number_sparse_serialization_and_mutation/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/02973_block_number_sparse_serialization_and_mutation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02973_dictionary_table_exception_fix/ast.json b/parser/testdata/02973_dictionary_table_exception_fix/ast.json new file mode 100644 index 0000000000..205b8c59a3 --- /dev/null +++ b/parser/testdata/02973_dictionary_table_exception_fix/ast.json @@ -0,0 +1,21 @@ +{ + "table": "test_table", + "columns": [ + { + "name": "i", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "i" + ] + } + ] +} diff --git a/parser/testdata/02974_analyzer_array_join_subcolumn/ast.json b/parser/testdata/02974_analyzer_array_join_subcolumn/ast.json new file mode 100644 index 0000000000..3e13596f87 --- /dev/null +++ b/parser/testdata/02974_analyzer_array_join_subcolumn/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t2", + "tables": [ + { + "table": "t2" + } + ] +} diff --git a/parser/testdata/02974_if_with_map/ast.json b/parser/testdata/02974_if_with_map/ast.json new file mode 100644 index 0000000000..966fee0c6d --- /dev/null +++ b/parser/testdata/02974_if_with_map/ast.json @@ -0,0 +1,91 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + }, + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02975_intdiv_with_decimal/ast.json b/parser/testdata/02975_intdiv_with_decimal/ast.json new file mode 100644 index 0000000000..39360a4436 --- /dev/null +++ b/parser/testdata/02975_intdiv_with_decimal/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02975_system_zookeeper_retries/ast.json b/parser/testdata/02975_system_zookeeper_retries/ast.json new file mode 100644 index 0000000000..8352b5681f --- /dev/null +++ b/parser/testdata/02975_system_zookeeper_retries/ast.json @@ -0,0 +1,95 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "path" + ] + }, + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "zookeeper" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "path" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "/keeper" + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "path" + ] + } + }, + { + "expression": { + "parts": [ + "name" + ] + } + } + ], + "settings": [ + { + "name": "insert_keeper_retry_initial_backoff_ms", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "insert_keeper_retry_max_backoff_ms", + "value": { + "type": "Integer", + "value": 20 + } + }, + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Float", + "value": 0.3 + } + }, + { + "name": "insert_keeper_fault_injection_seed", + "value": { + "type": "Integer", + "value": 4 + } + }, + { + "name": "log_comment", + "value": { + "type": "String", + "value": "02975_system_zookeeper_retries" + } + } + ] + } + ] +} diff --git a/parser/testdata/02976_system_zookeeper_filters/ast.json b/parser/testdata/02976_system_zookeeper_filters/ast.json new file mode 100644 index 0000000000..e1e356c739 --- /dev/null +++ b/parser/testdata/02976_system_zookeeper_filters/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_unrestricted_reads_from_keeper", + "value": { + "type": "String", + "value": "false" + } + } + ] +} diff --git a/parser/testdata/02977_csv_format_support_tuple/ast.json b/parser/testdata/02977_csv_format_support_tuple/ast.json new file mode 100644 index 0000000000..18b6291ab4 --- /dev/null +++ b/parser/testdata/02977_csv_format_support_tuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_csv_serialize_tuple_into_separate_columns", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/02981_nested_bad_types/ast.json b/parser/testdata/02981_nested_bad_types/ast.json new file mode 100644 index 0000000000..bd27d8c850 --- /dev/null +++ b/parser/testdata/02981_nested_bad_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02981_translate_fixedstring/ast.json b/parser/testdata/02981_translate_fixedstring/ast.json new file mode 100644 index 0000000000..79ac5761a7 --- /dev/null +++ b/parser/testdata/02981_translate_fixedstring/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "translate", + "arguments": [ + { + "expr": { + "type": "String", + "value": "aaa" + }, + "type": { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "A" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02981_variant_type_function/ast.json b/parser/testdata/02981_variant_type_function/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/02981_variant_type_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02981_vertical_merges_memory_usage/ast.json b/parser/testdata/02981_vertical_merges_memory_usage/ast.json new file mode 100644 index 0000000000..de0f9289ff --- /dev/null +++ b/parser/testdata/02981_vertical_merges_memory_usage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_vertical_merge_memory", + "tables": [ + { + "table": "t_vertical_merge_memory" + } + ] +} diff --git a/parser/testdata/02982_changeDate/ast.json b/parser/testdata/02982_changeDate/ast.json new file mode 100644 index 0000000000..6415fa5f4f --- /dev/null +++ b/parser/testdata/02982_changeDate/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/02982_create_mv_inner_extra/ast.json b/parser/testdata/02982_create_mv_inner_extra/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/02982_create_mv_inner_extra/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +} diff --git a/parser/testdata/02982_parallel_replicas_unexpected_cluster/ast.json b/parser/testdata/02982_parallel_replicas_unexpected_cluster/ast.json new file mode 100644 index 0000000000..e8f347454b --- /dev/null +++ b/parser/testdata/02982_parallel_replicas_unexpected_cluster/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_unexpected_cluster", + "tables": [ + { + "table": "test_unexpected_cluster" + } + ] +} diff --git a/parser/testdata/02982_unambiguous_alter_commands/ast.json b/parser/testdata/02982_unambiguous_alter_commands/ast.json new file mode 100644 index 0000000000..6643dbc2bc --- /dev/null +++ b/parser/testdata/02982_unambiguous_alter_commands/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- Alter commands in parens" + } + ] + } + ] +} diff --git a/parser/testdata/02983_const_sharding_key/ast.json b/parser/testdata/02983_const_sharding_key/ast.json new file mode 100644 index 0000000000..3923ec2d21 --- /dev/null +++ b/parser/testdata/02983_const_sharding_key/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "shard_0", + "drop_database": true +} diff --git a/parser/testdata/02983_empty_map/ast.json b/parser/testdata/02983_empty_map/ast.json new file mode 100644 index 0000000000..3f8a3774e7 --- /dev/null +++ b/parser/testdata/02983_empty_map/ast.json @@ -0,0 +1,145 @@ +{ + "table": "t1", + "columns": [ + { + "name": "f1", + "type": { + "name": "Int32" + } + }, + { + "name": "f2", + "type": { + "name": "Map", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + }, + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + }, + { + "name": "f3", + "type": { + "name": "Map", + "parameters": [ + { + "name": "String" + }, + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "f4", + "type": { + "name": "Map", + "parameters": [ + { + "name": "Int32" + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory" + }, + "as_select": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "f1" + }, + { + "name": "map", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + } + ], + "alias": "f2" + }, + { + "parts": [ + "f2" + ], + "alias": "f3" + }, + { + "parts": [ + "f2" + ], + "alias": "f4" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000111 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/02983_empty_map_hasToken/ast.json b/parser/testdata/02983_empty_map_hasToken/ast.json new file mode 100644 index 0000000000..66db293b8e --- /dev/null +++ b/parser/testdata/02983_empty_map_hasToken/ast.json @@ -0,0 +1,61 @@ +{ + "table": "test", + "columns": [ + { + "name": "t", + "type": { + "name": "String" + } + }, + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "h", + "type": { + "name": "Map", + "parameters": [ + { + "name": "String" + }, + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "t" + ] + }, + { + "parts": [ + "id" + ] + } + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 4096 + } + } + ] +} diff --git a/parser/testdata/02984_topk_empty_merge/ast.json b/parser/testdata/02984_topk_empty_merge/ast.json new file mode 100644 index 0000000000..447eae5f5d --- /dev/null +++ b/parser/testdata/02984_topk_empty_merge/ast.json @@ -0,0 +1,77 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "topK", + "arguments": [ + { + "type": "String", + "value": "102.4" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Null", + "value": null + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "dummy" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + } + } + ] + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02985_dialects_with_distributed_tables/ast.json b/parser/testdata/02985_dialects_with_distributed_tables/ast.json new file mode 100644 index 0000000000..f1dc6ea9e7 --- /dev/null +++ b/parser/testdata/02985_dialects_with_distributed_tables/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_prql_dialect", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02985_if_over_big_int_decimal/ast.json b/parser/testdata/02985_if_over_big_int_decimal/ast.json new file mode 100644 index 0000000000..e1c98add82 --- /dev/null +++ b/parser/testdata/02985_if_over_big_int_decimal/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumIf", + "arguments": [ + { + "expr": { + "parts": [ + "number" + ] + }, + "type": { + "name": "Int128" + }, + "operator_syntax": true + }, + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 10 + } + }, + "op": "==", + "right": { + "type": "Integer", + "value": 0 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02985_minmax_index_aggregate_function/ast.json b/parser/testdata/02985_minmax_index_aggregate_function/ast.json new file mode 100644 index 0000000000..6f655e74a2 --- /dev/null +++ b/parser/testdata/02985_minmax_index_aggregate_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_index_agg_func", + "tables": [ + { + "table": "t_index_agg_func" + } + ] +} diff --git a/parser/testdata/02985_shard_query_start_time/ast.json b/parser/testdata/02985_shard_query_start_time/ast.json new file mode 100644 index 0000000000..9026862c19 --- /dev/null +++ b/parser/testdata/02985_shard_query_start_time/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sharded_table", + "tables": [ + { + "table": "sharded_table" + } + ] +} diff --git a/parser/testdata/02986_leftpad_fixedstring/ast.json b/parser/testdata/02986_leftpad_fixedstring/ast.json new file mode 100644 index 0000000000..37a28bcc04 --- /dev/null +++ b/parser/testdata/02986_leftpad_fixedstring/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "leftPad", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "abc" + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "leftPad", + "arguments": [ + { + "type": "String", + "value": "abc" + }, + { + "expr": { + "type": "String", + "value": "0" + }, + "type": { + "name": "Int32" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02987_group_array_intersect/ast.json b/parser/testdata/02987_group_array_intersect/ast.json new file mode 100644 index 0000000000..ddbf5d324e --- /dev/null +++ b/parser/testdata/02987_group_array_intersect/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02987_logical_optimizer_pass_lowcardinality/ast.json b/parser/testdata/02987_logical_optimizer_pass_lowcardinality/ast.json new file mode 100644 index 0000000000..3a917a8256 --- /dev/null +++ b/parser/testdata/02987_logical_optimizer_pass_lowcardinality/ast.json @@ -0,0 +1,21 @@ +{ + "table": "02987_logical_optimizer_table", + "columns": [ + { + "name": "key", + "type": { + "name": "Int" + } + }, + { + "name": "value", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/02988_join_using_prewhere_pushdown/ast.json b/parser/testdata/02988_join_using_prewhere_pushdown/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/02988_join_using_prewhere_pushdown/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/02988_ordinary_database_warning/ast.json b/parser/testdata/02988_ordinary_database_warning/ast.json new file mode 100644 index 0000000000..039e5c1b13 --- /dev/null +++ b/parser/testdata/02988_ordinary_database_warning/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "02988_ordinary", + "drop_database": true +} diff --git a/parser/testdata/02989_group_by_tuple/ast.json b/parser/testdata/02989_group_by_tuple/ast.json new file mode 100644 index 0000000000..0e0e4da993 --- /dev/null +++ b/parser/testdata/02989_group_by_tuple/ast.json @@ -0,0 +1,63 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/02989_join_using_parent_scope/ast.json b/parser/testdata/02989_join_using_parent_scope/ast.json new file mode 100644 index 0000000000..05433156ea --- /dev/null +++ b/parser/testdata/02989_join_using_parent_scope/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tabc", + "tables": [ + { + "table": "tabc" + } + ] +} diff --git a/parser/testdata/02989_replicated_merge_tree_invalid_metadata_version/ast.json b/parser/testdata/02989_replicated_merge_tree_invalid_metadata_version/ast.json new file mode 100644 index 0000000000..96057cfb7a --- /dev/null +++ b/parser/testdata/02989_replicated_merge_tree_invalid_metadata_version/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_replicated", + "tables": [ + { + "table": "test_table_replicated" + } + ] +} diff --git a/parser/testdata/02989_system_tables_metadata_version/ast.json b/parser/testdata/02989_system_tables_metadata_version/ast.json new file mode 100644 index 0000000000..f354fc48ab --- /dev/null +++ b/parser/testdata/02989_system_tables_metadata_version/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_temporary_table_02989", + "tables": [ + { + "table": "test_temporary_table_02989" + } + ] +} diff --git a/parser/testdata/02989_variant_comparison/ast.json b/parser/testdata/02989_variant_comparison/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/02989_variant_comparison/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02990_arrayFold_nullable_lc/ast.json b/parser/testdata/02990_arrayFold_nullable_lc/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02990_arrayFold_nullable_lc/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02990_format_not_precedence/ast.json b/parser/testdata/02990_format_not_precedence/ast.json new file mode 100644 index 0000000000..b0b1863174 --- /dev/null +++ b/parser/testdata/02990_format_not_precedence/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "op": "NOT", + "operand": { + "left": { + "type": "Integer", + "value": 0 + }, + "op": "+", + "right": { + "op": "NOT", + "operand": { + "type": "Integer", + "value": 0 + } + } + } + } + ] + } + ] +} diff --git a/parser/testdata/02990_optimize_uniq_to_count_alias/ast.json b/parser/testdata/02990_optimize_uniq_to_count_alias/ast.json new file mode 100644 index 0000000000..9423afd266 --- /dev/null +++ b/parser/testdata/02990_optimize_uniq_to_count_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tags", + "tables": [ + { + "table": "tags" + } + ] +} diff --git a/parser/testdata/02990_parts_splitter_invalid_ranges/ast.json b/parser/testdata/02990_parts_splitter_invalid_ranges/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/02990_parts_splitter_invalid_ranges/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/02990_rmt_replica_path_uuid/ast.json b/parser/testdata/02990_rmt_replica_path_uuid/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/02990_rmt_replica_path_uuid/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/02990_variant_where_cond/ast.json b/parser/testdata/02990_variant_where_cond/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/02990_variant_where_cond/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02991_count_rewrite_analyzer/ast.json b/parser/testdata/02991_count_rewrite_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02991_count_rewrite_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02992_all_columns_should_have_comment/ast.json b/parser/testdata/02992_all_columns_should_have_comment/ast.json new file mode 100644 index 0000000000..ffdcc6e987 --- /dev/null +++ b/parser/testdata/02992_all_columns_should_have_comment/ast.json @@ -0,0 +1,3 @@ +{ + "command": "FLUSH LOGS" +} diff --git a/parser/testdata/02992_analyzer_group_by_const/ast.json b/parser/testdata/02992_analyzer_group_by_const/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02992_analyzer_group_by_const/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02992_settings_overflow/ast.json b/parser/testdata/02992_settings_overflow/ast.json new file mode 100644 index 0000000000..6f45a390a3 --- /dev/null +++ b/parser/testdata/02992_settings_overflow/ast.json @@ -0,0 +1,14 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "op": "-", + "operand": { + "type": "Integer", + "value": 1 + } + } + } + ] +} diff --git a/parser/testdata/02993_lazy_index_loading/ast.json b/parser/testdata/02993_lazy_index_loading/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02993_lazy_index_loading/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02993_values_escape_quote/ast.json b/parser/testdata/02993_values_escape_quote/ast.json new file mode 100644 index 0000000000..7a3057e3df --- /dev/null +++ b/parser/testdata/02993_values_escape_quote/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "foo" + } + ], + "format": { + "parts": [ + "Values" + ] + } + } + ] +} diff --git a/parser/testdata/02994_cosineDistanceNullable/ast.json b/parser/testdata/02994_cosineDistanceNullable/ast.json new file mode 100644 index 0000000000..7604679848 --- /dev/null +++ b/parser/testdata/02994_cosineDistanceNullable/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "cosineDistance", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Float", + "value": 0.5 + } + ] + }, + { + "type": "Float", + "value": 0.1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02994_inconsistent_formatting/ast.json b/parser/testdata/02994_inconsistent_formatting/ast.json new file mode 100644 index 0000000000..6a84920033 --- /dev/null +++ b/parser/testdata/02994_inconsistent_formatting/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "table", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/02994_sanity_check_settings/ast.json b/parser/testdata/02994_sanity_check_settings/ast.json new file mode 100644 index 0000000000..4f46873637 --- /dev/null +++ b/parser/testdata/02994_sanity_check_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "error" + } + } + ] +} diff --git a/parser/testdata/02995_preliminary_filters_duplicated_columns/ast.json b/parser/testdata/02995_preliminary_filters_duplicated_columns/ast.json new file mode 100644 index 0000000000..aa2c8422fb --- /dev/null +++ b/parser/testdata/02995_preliminary_filters_duplicated_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02995_preliminary_filters_duplicated_columns_SimpleAggregateFunction/ast.json b/parser/testdata/02995_preliminary_filters_duplicated_columns_SimpleAggregateFunction/ast.json new file mode 100644 index 0000000000..aa2c8422fb --- /dev/null +++ b/parser/testdata/02995_preliminary_filters_duplicated_columns_SimpleAggregateFunction/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02996_analyzer_prewhere_projection/ast.json b/parser/testdata/02996_analyzer_prewhere_projection/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/02996_analyzer_prewhere_projection/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02996_index_compaction_counterexample/ast.json b/parser/testdata/02996_index_compaction_counterexample/ast.json new file mode 100644 index 0000000000..34187c0650 --- /dev/null +++ b/parser/testdata/02996_index_compaction_counterexample/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "b", + "tables": [ + { + "table": "b" + } + ] +} diff --git a/parser/testdata/02996_nullable_arrayReduce/ast.json b/parser/testdata/02996_nullable_arrayReduce/ast.json new file mode 100644 index 0000000000..14ff25625e --- /dev/null +++ b/parser/testdata/02996_nullable_arrayReduce/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayReduce", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "stddevSampOrNull" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02997_fix_datetime64_scale_conversion/ast.json b/parser/testdata/02997_fix_datetime64_scale_conversion/ast.json new file mode 100644 index 0000000000..7e8a3753d7 --- /dev/null +++ b/parser/testdata/02997_fix_datetime64_scale_conversion/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_0", + "tables": [ + { + "table": "test_0" + } + ] +} diff --git a/parser/testdata/02998_analyzer_prewhere_report/ast.json b/parser/testdata/02998_analyzer_prewhere_report/ast.json new file mode 100644 index 0000000000..05e928a6c4 --- /dev/null +++ b/parser/testdata/02998_analyzer_prewhere_report/ast.json @@ -0,0 +1,43 @@ +{ + "table": "hits", + "columns": [ + { + "name": "date", + "type": { + "name": "Date" + } + }, + { + "name": "data", + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt32" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "date" + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "date" + ] + } + ] + } +} diff --git a/parser/testdata/02998_analyzer_secret_args_tree_node/ast.json b/parser/testdata/02998_analyzer_secret_args_tree_node/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02998_analyzer_secret_args_tree_node/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02998_ipv6_hashing/ast.json b/parser/testdata/02998_ipv6_hashing/ast.json new file mode 100644 index 0000000000..149b49ff92 --- /dev/null +++ b/parser/testdata/02998_ipv6_hashing/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toIPv6", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "fe80::62:5aff:fed1:daf0" + } + ] + } + ] + } + ], + "alias": "ipv6" + }, + { + "name": "SHA256", + "arguments": [ + { + "parts": [ + "ipv6" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/02998_operator_respect_nulls/ast.json b/parser/testdata/02998_operator_respect_nulls/ast.json new file mode 100644 index 0000000000..1f55af987c --- /dev/null +++ b/parser/testdata/02998_operator_respect_nulls/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "plus", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/02998_pretty_format_print_readable_number_on_single_value/ast.json b/parser/testdata/02998_pretty_format_print_readable_number_on_single_value/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/02998_pretty_format_print_readable_number_on_single_value/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/02998_primary_key_skip_columns/ast.json b/parser/testdata/02998_primary_key_skip_columns/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/02998_primary_key_skip_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/02998_projection_after_attach_partition/ast.json b/parser/testdata/02998_projection_after_attach_partition/ast.json new file mode 100644 index 0000000000..d30208b433 --- /dev/null +++ b/parser/testdata/02998_projection_after_attach_partition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "visits_order", + "tables": [ + { + "table": "visits_order" + } + ] +} diff --git a/parser/testdata/02998_to_milliseconds/ast.json b/parser/testdata/02998_to_milliseconds/ast.json new file mode 100644 index 0000000000..3fb097d1ea --- /dev/null +++ b/parser/testdata/02998_to_milliseconds/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toMillisecond" + } + ] + } + ] +} diff --git a/parser/testdata/02999_analyzer_preimage_null/ast.json b/parser/testdata/02999_analyzer_preimage_null/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/02999_analyzer_preimage_null/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/02999_scalar_subqueries_bug_1/ast.json b/parser/testdata/02999_scalar_subqueries_bug_1/ast.json new file mode 100644 index 0000000000..b63517ad51 --- /dev/null +++ b/parser/testdata/02999_scalar_subqueries_bug_1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_table_select", + "tables": [ + { + "table": "t_table_select" + } + ] +} diff --git a/parser/testdata/02999_scalar_subqueries_bug_2/ast.json b/parser/testdata/02999_scalar_subqueries_bug_2/ast.json new file mode 100644 index 0000000000..0e48e23032 --- /dev/null +++ b/parser/testdata/02999_scalar_subqueries_bug_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "source", + "tables": [ + { + "table": "source" + } + ] +} diff --git a/parser/testdata/02999_ulid_short_circuit/ast.json b/parser/testdata/02999_ulid_short_circuit/ast.json new file mode 100644 index 0000000000..d4df7879f6 --- /dev/null +++ b/parser/testdata/02999_ulid_short_circuit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Europe/Madrid" + } + } + ] +} diff --git a/parser/testdata/02999_variant_suspicious_types/ast.json b/parser/testdata/02999_variant_suspicious_types/ast.json new file mode 100644 index 0000000000..245ec3bd82 --- /dev/null +++ b/parser/testdata/02999_variant_suspicious_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_variant_types", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03000_minmax_index_first/ast.json b/parser/testdata/03000_minmax_index_first/ast.json new file mode 100644 index 0000000000..a60bce1c35 --- /dev/null +++ b/parser/testdata/03000_minmax_index_first/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "skip_table", + "tables": [ + { + "table": "skip_table" + } + ] +} diff --git a/parser/testdata/03000_too_big_max_execution_time_setting/ast.json b/parser/testdata/03000_too_big_max_execution_time_setting/ast.json new file mode 100644 index 0000000000..dbbec82820 --- /dev/null +++ b/parser/testdata/03000_too_big_max_execution_time_setting/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "settings": [ + { + "name": "max_execution_time", + "value": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + } + ] +} diff --git a/parser/testdata/03000_traverse_shadow_system_data_paths/ast.json b/parser/testdata/03000_traverse_shadow_system_data_paths/ast.json new file mode 100644 index 0000000000..3ca25d112f --- /dev/null +++ b/parser/testdata/03000_traverse_shadow_system_data_paths/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03000_traverse_shadow_system_data_path_table", + "tables": [ + { + "table": "03000_traverse_shadow_system_data_path_table" + } + ] +} diff --git a/parser/testdata/03000_virtual_columns_in_prewhere/ast.json b/parser/testdata/03000_virtual_columns_in_prewhere/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/03000_virtual_columns_in_prewhere/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03001_block_offset_column_2/ast.json b/parser/testdata/03001_block_offset_column_2/ast.json new file mode 100644 index 0000000000..4b2edbd515 --- /dev/null +++ b/parser/testdata/03001_block_offset_column_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_block_offset", + "tables": [ + { + "table": "t_block_offset" + } + ] +} diff --git a/parser/testdata/03001_consider_lwd_when_merge/ast.json b/parser/testdata/03001_consider_lwd_when_merge/ast.json new file mode 100644 index 0000000000..2c0ce93f33 --- /dev/null +++ b/parser/testdata/03001_consider_lwd_when_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lwd_merge", + "tables": [ + { + "table": "lwd_merge" + } + ] +} diff --git a/parser/testdata/03001_data_version_column/ast.json b/parser/testdata/03001_data_version_column/ast.json new file mode 100644 index 0000000000..61c6ce98af --- /dev/null +++ b/parser/testdata/03001_data_version_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_data_version", + "tables": [ + { + "table": "t_data_version" + } + ] +} diff --git a/parser/testdata/03001_insert_threads_deduplication/ast.json b/parser/testdata/03001_insert_threads_deduplication/ast.json new file mode 100644 index 0000000000..16075aaf15 --- /dev/null +++ b/parser/testdata/03001_insert_threads_deduplication/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "landing", + "tables": [ + { + "table": "landing" + } + ], + "sync": true +} diff --git a/parser/testdata/03001_max_parallel_replicas_zero_value/ast.json b/parser/testdata/03001_max_parallel_replicas_zero_value/ast.json new file mode 100644 index 0000000000..75983f3ecc --- /dev/null +++ b/parser/testdata/03001_max_parallel_replicas_zero_value/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_d", + "tables": [ + { + "table": "test_d" + } + ] +} diff --git a/parser/testdata/03002_analyzer_prewhere/ast.json b/parser/testdata/03002_analyzer_prewhere/ast.json new file mode 100644 index 0000000000..f946a83dd5 --- /dev/null +++ b/parser/testdata/03002_analyzer_prewhere/ast.json @@ -0,0 +1,137 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 16 + } + }, + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "enable_positional_arguments", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "log_queries", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "table_function_remote_max_addresses", + "value": { + "type": "Integer", + "value": 200 + } + }, + { + "name": "any_join_distinct_right_table_keys", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "enable_analyzer", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "max_memory_usage", + "value": { + "type": "Integer", + "value": 10000000000 + } + }, + { + "name": "log_comment", + "value": { + "type": "String", + "value": "/workspace/ch/tests/queries/0_stateless/01710_projection_in_index.sql" + } + }, + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + }, + { + "name": "enable_optimize_predicate_expression", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "prefer_localhost_replica", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "allow_introspection_functions", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "optimize_functions_to_subcolumns", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "transform_null_in", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "optimize_use_projections", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "parallelize_output_from_storages", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/03002_filter_skip_virtual_columns_with_non_deterministic_functions/ast.json b/parser/testdata/03002_filter_skip_virtual_columns_with_non_deterministic_functions/ast.json new file mode 100644 index 0000000000..7006d487f6 --- /dev/null +++ b/parser/testdata/03002_filter_skip_virtual_columns_with_non_deterministic_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03002_int_div_decimal_with_date_bug/ast.json b/parser/testdata/03002_int_div_decimal_with_date_bug/ast.json new file mode 100644 index 0000000000..7bf33f0d10 --- /dev/null +++ b/parser/testdata/03002_int_div_decimal_with_date_bug/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "expr": { + "type": "String", + "value": "1.0" + }, + "type": { + "name": "Decimal256(3)" + } + }, + { + "name": "today" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03002_map_array_functions_with_low_cardinality/ast.json b/parser/testdata/03002_map_array_functions_with_low_cardinality/ast.json new file mode 100644 index 0000000000..621859b559 --- /dev/null +++ b/parser/testdata/03002_map_array_functions_with_low_cardinality/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "mapContainsKeyLike", + "arguments": [ + { + "name": "map", + "arguments": [ + { + "type": "String", + "value": "aa" + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "String", + "value": "bb" + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "a%" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03002_modify_query_cte/ast.json b/parser/testdata/03002_modify_query_cte/ast.json new file mode 100644 index 0000000000..4899fffffe --- /dev/null +++ b/parser/testdata/03002_modify_query_cte/ast.json @@ -0,0 +1,37 @@ +{ + "table": "table_03002", + "columns": [ + { + "name": "ts", + "type": { + "name": "DateTime" + } + }, + { + "name": "event_type", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "event_type" + ] + }, + { + "parts": [ + "ts" + ] + } + ] + } + ] +} diff --git a/parser/testdata/03002_sample_factor_where/ast.json b/parser/testdata/03002_sample_factor_where/ast.json new file mode 100644 index 0000000000..20b10a5fdc --- /dev/null +++ b/parser/testdata/03002_sample_factor_where/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sample_factor", + "tables": [ + { + "table": "t_sample_factor" + } + ] +} diff --git a/parser/testdata/03003_analyzer_setting/ast.json b/parser/testdata/03003_analyzer_setting/ast.json new file mode 100644 index 0000000000..a699c86b69 --- /dev/null +++ b/parser/testdata/03003_analyzer_setting/ast.json @@ -0,0 +1,30 @@ +{ + "table": "test", + "columns": [ + { + "name": "dummy", + "type": { + "name": "Int8" + } + } + ], + "engine": { + "name": "Distributed", + "parameters": [ + { + "parts": [ + "test_cluster_two_shards" + ] + }, + { + "type": "String", + "value": "system" + }, + { + "type": "String", + "value": "one" + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03003_compatibility_setting_bad_value/ast.json b/parser/testdata/03003_compatibility_setting_bad_value/ast.json new file mode 100644 index 0000000000..a7a98cea02 --- /dev/null +++ b/parser/testdata/03003_compatibility_setting_bad_value/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 42 + } + ], + "settings": [ + { + "name": "compatibility", + "value": { + "type": "Null", + "value": null + } + } + ] + } + ] +} diff --git a/parser/testdata/03003_count_asterisk_filter/ast.json b/parser/testdata/03003_count_asterisk_filter/ast.json new file mode 100644 index 0000000000..1b09113915 --- /dev/null +++ b/parser/testdata/03003_count_asterisk_filter/ast.json @@ -0,0 +1,32 @@ +{ + "table": "users", + "columns": [ + { + "name": "uid", + "type": { + "name": "Int16" + } + }, + { + "name": "name", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "age", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03003_functions_to_subcolumns_final/ast.json b/parser/testdata/03003_functions_to_subcolumns_final/ast.json new file mode 100644 index 0000000000..e7a833ab28 --- /dev/null +++ b/parser/testdata/03003_functions_to_subcolumns_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_length_1", + "tables": [ + { + "table": "t_length_1" + } + ] +} diff --git a/parser/testdata/03004_force_null_for_omitted/ast.json b/parser/testdata/03004_force_null_for_omitted/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/03004_force_null_for_omitted/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03004_json_named_tuples_inference_ambiguous_paths_as_string/ast.json b/parser/testdata/03004_json_named_tuples_inference_ambiguous_paths_as_string/ast.json new file mode 100644 index 0000000000..6b4c01495c --- /dev/null +++ b/parser/testdata/03004_json_named_tuples_inference_ambiguous_paths_as_string/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_use_string_type_for_ambiguous_paths_in_named_tuples_inference_from_objects", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03005_input_function_in_join/ast.json b/parser/testdata/03005_input_function_in_join/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03005_input_function_in_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03006_buffer_overflow_join/ast.json b/parser/testdata/03006_buffer_overflow_join/ast.json new file mode 100644 index 0000000000..8de2e8f6dd --- /dev/null +++ b/parser/testdata/03006_buffer_overflow_join/ast.json @@ -0,0 +1,29 @@ +{ + "table": "03006_buffer_overflow_l", + "columns": [ + { + "name": "a", + "type": { + "name": "String" + } + }, + { + "name": "b", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "String" + }, + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03006_mv_deduplication_throw_if_async_insert/ast.json b/parser/testdata/03006_mv_deduplication_throw_if_async_insert/ast.json new file mode 100644 index 0000000000..7a328119a0 --- /dev/null +++ b/parser/testdata/03006_mv_deduplication_throw_if_async_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "02985_test", + "tables": [ + { + "table": "02985_test" + } + ] +} diff --git a/parser/testdata/03006_parallel_replicas_cte_explain_syntax_crash/ast.json b/parser/testdata/03006_parallel_replicas_cte_explain_syntax_crash/ast.json new file mode 100644 index 0000000000..7756ad0f16 --- /dev/null +++ b/parser/testdata/03006_parallel_replicas_cte_explain_syntax_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "numbers_1e6__fuzz_34", + "tables": [ + { + "table": "numbers_1e6__fuzz_34" + } + ] +} diff --git a/parser/testdata/03007_column_nullable_uninitialzed_value/ast.json b/parser/testdata/03007_column_nullable_uninitialzed_value/ast.json new file mode 100644 index 0000000000..4a11344045 --- /dev/null +++ b/parser/testdata/03007_column_nullable_uninitialzed_value/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + }, + "op": "\u003e", + "right": { + "name": "avg", + "arguments": [ + { + "name": "toDecimal32", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + } + } + ] + }, + "with_totals": true, + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03008_deduplication_cases_from_docs/ast.json b/parser/testdata/03008_deduplication_cases_from_docs/ast.json new file mode 100644 index 0000000000..f8638d0e9a --- /dev/null +++ b/parser/testdata/03008_deduplication_cases_from_docs/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Different materialized view insert into one underlayed table equal data." + } + ] + } + ] +} diff --git a/parser/testdata/03008_deduplication_insert_into_partitioned_table/ast.json b/parser/testdata/03008_deduplication_insert_into_partitioned_table/ast.json new file mode 100644 index 0000000000..c2a11ab2b8 --- /dev/null +++ b/parser/testdata/03008_deduplication_insert_into_partitioned_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "partitioned_table", + "tables": [ + { + "table": "partitioned_table" + } + ] +} diff --git a/parser/testdata/03008_deduplication_remote_insert_select/ast.json b/parser/testdata/03008_deduplication_remote_insert_select/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/03008_deduplication_remote_insert_select/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/03008_deduplication_wrong_mv/ast.json b/parser/testdata/03008_deduplication_wrong_mv/ast.json new file mode 100644 index 0000000000..9c0ec412c7 --- /dev/null +++ b/parser/testdata/03008_deduplication_wrong_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv", + "tables": [ + { + "table": "mv" + } + ] +} diff --git a/parser/testdata/03008_filter_projections_non_deterministoc_functions/ast.json b/parser/testdata/03008_filter_projections_non_deterministoc_functions/ast.json new file mode 100644 index 0000000000..73dca9f2bb --- /dev/null +++ b/parser/testdata/03008_filter_projections_non_deterministoc_functions/ast.json @@ -0,0 +1,21 @@ +{ + "table": "test", + "columns": [ + { + "name": "number", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "number" + ] + } + ] +} diff --git a/parser/testdata/03008_index_small/ast.json b/parser/testdata/03008_index_small/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03008_index_small/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03008_optimize_equal_ranges/ast.json b/parser/testdata/03008_optimize_equal_ranges/ast.json new file mode 100644 index 0000000000..a7544b51ee --- /dev/null +++ b/parser/testdata/03008_optimize_equal_ranges/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_optimize_equal_ranges", + "tables": [ + { + "table": "t_optimize_equal_ranges" + } + ] +} diff --git a/parser/testdata/03008_uniq_exact_equal_ranges/ast.json b/parser/testdata/03008_uniq_exact_equal_ranges/ast.json new file mode 100644 index 0000000000..a0f2c66e68 --- /dev/null +++ b/parser/testdata/03008_uniq_exact_equal_ranges/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_uniq_exact", + "tables": [ + { + "table": "t_uniq_exact" + } + ] +} diff --git a/parser/testdata/03009_consecutive_keys_nullable/ast.json b/parser/testdata/03009_consecutive_keys_nullable/ast.json new file mode 100644 index 0000000000..4778e39cdb --- /dev/null +++ b/parser/testdata/03009_consecutive_keys_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_nullable_keys_1", + "tables": [ + { + "table": "t_nullable_keys_1" + } + ] +} diff --git a/parser/testdata/03009_range_dict_get_or_default/ast.json b/parser/testdata/03009_range_dict_get_or_default/ast.json new file mode 100644 index 0000000000..602dc0bd7a --- /dev/null +++ b/parser/testdata/03009_range_dict_get_or_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "range_dictionary", + "tables": [ + { + "table": "range_dictionary" + } + ] +} diff --git a/parser/testdata/03009_storage_memory_circ_buffer_usage/ast.json b/parser/testdata/03009_storage_memory_circ_buffer_usage/ast.json new file mode 100644 index 0000000000..69038a4b04 --- /dev/null +++ b/parser/testdata/03009_storage_memory_circ_buffer_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 65409 + } + } + ] +} diff --git a/parser/testdata/03010_file_log_large_poll_batch_size/ast.json b/parser/testdata/03010_file_log_large_poll_batch_size/ast.json new file mode 100644 index 0000000000..359889cd49 --- /dev/null +++ b/parser/testdata/03010_file_log_large_poll_batch_size/ast.json @@ -0,0 +1,34 @@ +{ + "table": "test", + "columns": [ + { + "name": "number", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "FileLog", + "parameters": [ + { + "type": "String", + "value": "./user_files/data.jsonl" + }, + { + "type": "String", + "value": "JSONEachRow" + } + ], + "has_parentheses": true + }, + "settings": [ + { + "name": "poll_max_batch_size", + "value": { + "type": "Integer", + "value": 18446744073709 + } + } + ] +} diff --git a/parser/testdata/03010_read_system_parts_table_test/ast.json b/parser/testdata/03010_read_system_parts_table_test/ast.json new file mode 100644 index 0000000000..b5886be12b --- /dev/null +++ b/parser/testdata/03010_read_system_parts_table_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users", + "tables": [ + { + "table": "users" + } + ] +} diff --git a/parser/testdata/03010_sum_to_to_count_if_nullable/ast.json b/parser/testdata/03010_sum_to_to_count_if_nullable/ast.json new file mode 100644 index 0000000000..b2c9ecb93a --- /dev/null +++ b/parser/testdata/03010_sum_to_to_count_if_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_rewrite_sum_if_to_count_if", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03010_view_prewhere_in/ast.json b/parser/testdata/03010_view_prewhere_in/ast.json new file mode 100644 index 0000000000..2c3b819c3f --- /dev/null +++ b/parser/testdata/03010_view_prewhere_in/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "v", + "tables": [ + { + "table": "v" + } + ] +} diff --git a/parser/testdata/03010_virtual_memory_mappings_asynchronous_metrics/ast.json b/parser/testdata/03010_virtual_memory_mappings_asynchronous_metrics/ast.json new file mode 100644 index 0000000000..bfda6a988f --- /dev/null +++ b/parser/testdata/03010_virtual_memory_mappings_asynchronous_metrics/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "least", + "arguments": [ + { + "parts": [ + "value" + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "asynchronous_metrics" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "metric" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "VMMaxMapCount" + } + } + } + ] +} diff --git a/parser/testdata/03011_adaptative_timeout_compatibility/ast.json b/parser/testdata/03011_adaptative_timeout_compatibility/ast.json new file mode 100644 index 0000000000..c8f2199e4b --- /dev/null +++ b/parser/testdata/03011_adaptative_timeout_compatibility/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "value" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "async_insert_use_adaptive_busy_timeout" + } + }, + "settings": [ + { + "name": "compatibility", + "value": { + "type": "String", + "value": "23.12" + } + } + ] + } + ] +} diff --git a/parser/testdata/03011_definitive_guide_to_cast/ast.json b/parser/testdata/03011_definitive_guide_to_cast/ast.json new file mode 100644 index 0000000000..ab079427e8 --- /dev/null +++ b/parser/testdata/03011_definitive_guide_to_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Europe/Amsterdam" + } + } + ] +} diff --git a/parser/testdata/03012_prewhere_merge_distributed/ast.json b/parser/testdata/03012_prewhere_merge_distributed/ast.json new file mode 100644 index 0000000000..006c394edc --- /dev/null +++ b/parser/testdata/03012_prewhere_merge_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_local", + "tables": [ + { + "table": "test_local" + } + ] +} diff --git a/parser/testdata/03013_addDays_with_timezone/ast.json b/parser/testdata/03013_addDays_with_timezone/ast.json new file mode 100644 index 0000000000..f2dbe1a38b --- /dev/null +++ b/parser/testdata/03013_addDays_with_timezone/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "addDays", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2024-01-01" + }, + { + "type": "Integer", + "value": 6 + }, + { + "type": "String", + "value": "Asia/Shanghai" + } + ] + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "String", + "value": "Asia/Shanghai" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03013_fuzz_arrayPartialReverseSort/ast.json b/parser/testdata/03013_fuzz_arrayPartialReverseSort/ast.json new file mode 100644 index 0000000000..be26690936 --- /dev/null +++ b/parser/testdata/03013_fuzz_arrayPartialReverseSort/ast.json @@ -0,0 +1,121 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "res" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayPartialReverseSort", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "name": "emptyArrayUInt64" + }, + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "alias": "arr" + }, + { + "name": "arrayResize", + "arguments": [ + { + "parts": [ + "arr" + ] + }, + { + "name": "if", + "arguments": [ + { + "name": "empty", + "arguments": [ + { + "parts": [ + "arr" + ] + } + ] + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "alias": "res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 7 + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03013_group_by_use_nulls_with_materialize_and_analyzer/ast.json b/parser/testdata/03013_group_by_use_nulls_with_materialize_and_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03013_group_by_use_nulls_with_materialize_and_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03013_ignore_drop_queries_probability/ast.json b/parser/testdata/03013_ignore_drop_queries_probability/ast.json new file mode 100644 index 0000000000..e44f03cc5b --- /dev/null +++ b/parser/testdata/03013_ignore_drop_queries_probability/ast.json @@ -0,0 +1,14 @@ +{ + "table": "test_memory", + "columns": [ + { + "name": "number", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03013_position_const_start_pos/ast.json b/parser/testdata/03013_position_const_start_pos/ast.json new file mode 100644 index 0000000000..dd8ba9a6a4 --- /dev/null +++ b/parser/testdata/03013_position_const_start_pos/ast.json @@ -0,0 +1,14 @@ +{ + "table": "03013_position_const_start_pos", + "columns": [ + { + "name": "n", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03013_repeat_with_nonnative_integers/ast.json b/parser/testdata/03013_repeat_with_nonnative_integers/ast.json new file mode 100644 index 0000000000..36c04f2375 --- /dev/null +++ b/parser/testdata/03013_repeat_with_nonnative_integers/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "repeat", + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 12 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03013_test_part_level_is_reset_attach_from_disk_mt/ast.json b/parser/testdata/03013_test_part_level_is_reset_attach_from_disk_mt/ast.json new file mode 100644 index 0000000000..44521e2438 --- /dev/null +++ b/parser/testdata/03013_test_part_level_is_reset_attach_from_disk_mt/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "alter_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03014_analyzer_group_by_use_nulls/ast.json b/parser/testdata/03014_analyzer_group_by_use_nulls/ast.json new file mode 100644 index 0000000000..77b6659e20 --- /dev/null +++ b/parser/testdata/03014_analyzer_group_by_use_nulls/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "a" + }, + "alias": "key" + }, + { + "expr": { + "type": "String", + "value": "b" + }, + "alias": "value" + } + ], + "group_by": [ + { + "parts": [ + "key" + ] + } + ], + "with_cube": true, + "settings": [ + { + "name": "group_by_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03014_group_by_use_nulls_injective_functions_and_analyzer/ast.json b/parser/testdata/03014_group_by_use_nulls_injective_functions_and_analyzer/ast.json new file mode 100644 index 0000000000..9990a701c9 --- /dev/null +++ b/parser/testdata/03014_group_by_use_nulls_injective_functions_and_analyzer/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "group_by_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "optimize_injective_functions_in_group_by", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03014_msan_parse_date_time/ast.json b/parser/testdata/03014_msan_parse_date_time/ast.json new file mode 100644 index 0000000000..f1bd388415 --- /dev/null +++ b/parser/testdata/03014_msan_parse_date_time/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTimeBestEffort", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "01/12/2017," + }, + { + "type": "Integer", + "value": 11 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03015_aggregator_empty_data_multiple_blocks/ast.json b/parser/testdata/03015_aggregator_empty_data_multiple_blocks/ast.json new file mode 100644 index 0000000000..846d7079aa --- /dev/null +++ b/parser/testdata/03015_aggregator_empty_data_multiple_blocks/ast.json @@ -0,0 +1,15 @@ +{ + "table": "03015_aggregator_empty_data_multiple_blocks", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int32" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/03015_peder1001/ast.json b/parser/testdata/03015_peder1001/ast.json new file mode 100644 index 0000000000..4991bdfd17 --- /dev/null +++ b/parser/testdata/03015_peder1001/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_data", + "tables": [ + { + "table": "test_data" + } + ] +} diff --git a/parser/testdata/03018_analyzer_distributed_query_with_positional_arguments/ast.json b/parser/testdata/03018_analyzer_distributed_query_with_positional_arguments/ast.json new file mode 100644 index 0000000000..9c3c58d29b --- /dev/null +++ b/parser/testdata/03018_analyzer_distributed_query_with_positional_arguments/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "x" + ] + } + ] + } + ] +} diff --git a/parser/testdata/03019_numbers_pretty/ast.json b/parser/testdata/03019_numbers_pretty/ast.json new file mode 100644 index 0000000000..09c747e116 --- /dev/null +++ b/parser/testdata/03019_numbers_pretty/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_row_numbers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03020_order_by_SimpleAggregateFunction/ast.json b/parser/testdata/03020_order_by_SimpleAggregateFunction/ast.json new file mode 100644 index 0000000000..adde7fdd89 --- /dev/null +++ b/parser/testdata/03020_order_by_SimpleAggregateFunction/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_primary_key", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03022_alter_materialized_view_query_has_inner_table/ast.json b/parser/testdata/03022_alter_materialized_view_query_has_inner_table/ast.json new file mode 100644 index 0000000000..84d9f19838 --- /dev/null +++ b/parser/testdata/03022_alter_materialized_view_query_has_inner_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src_table", + "tables": [ + { + "table": "src_table" + } + ] +} diff --git a/parser/testdata/03022_highlight_digit_groups/ast.json b/parser/testdata/03022_highlight_digit_groups/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/03022_highlight_digit_groups/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03023_analyzer_optimize_group_by_function_keys_with_nulls/ast.json b/parser/testdata/03023_analyzer_optimize_group_by_function_keys_with_nulls/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03023_analyzer_optimize_group_by_function_keys_with_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03023_group_by_use_nulls_analyzer_crashes/ast.json b/parser/testdata/03023_group_by_use_nulls_analyzer_crashes/ast.json new file mode 100644 index 0000000000..a5879d2d49 --- /dev/null +++ b/parser/testdata/03023_group_by_use_nulls_analyzer_crashes/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "group_by_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03023_remove_unused_column_distinct/ast.json b/parser/testdata/03023_remove_unused_column_distinct/ast.json new file mode 100644 index 0000000000..d6c5a202ce --- /dev/null +++ b/parser/testdata/03023_remove_unused_column_distinct/ast.json @@ -0,0 +1,130 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "product_id" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + { + "parts": [ + "product_id" + ] + }, + { + "parts": [ + "section_id" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "product_" + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ], + "alias": "product_id" + }, + { + "name": "concat", + "arguments": [ + { + "type": "String", + "value": "section_" + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 3 + } + } + ], + "alias": "section_id" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03024_total_rows_approx_is_set_for_system_zeros_and_generate_random/ast.json b/parser/testdata/03024_total_rows_approx_is_set_for_system_zeros_and_generate_random/ast.json new file mode 100644 index 0000000000..648a3e2afc --- /dev/null +++ b/parser/testdata/03024_total_rows_approx_is_set_for_system_zeros_and_generate_random/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Float", + "value": 100000000000 + } + } + ] +} diff --git a/parser/testdata/03030_system_flush_distributed_settings/ast.json b/parser/testdata/03030_system_flush_distributed_settings/ast.json new file mode 100644 index 0000000000..219c3ff029 --- /dev/null +++ b/parser/testdata/03030_system_flush_distributed_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ephemeral", + "tables": [ + { + "table": "ephemeral" + } + ] +} diff --git a/parser/testdata/03031_distinguish_bool_and_int_in_settings/ast.json b/parser/testdata/03031_distinguish_bool_and_int_in_settings/ast.json new file mode 100644 index 0000000000..740772a2a7 --- /dev/null +++ b/parser/testdata/03031_distinguish_bool_and_int_in_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "custom_f1", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/03031_filter_float64_logical_error/ast.json b/parser/testdata/03031_filter_float64_logical_error/ast.json new file mode 100644 index 0000000000..85882c1a00 --- /dev/null +++ b/parser/testdata/03031_filter_float64_logical_error/ast.json @@ -0,0 +1,118 @@ +{ + "table": "03031_test", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "value_1", + "type": { + "name": "String" + } + }, + { + "name": "value_2", + "type": { + "name": "String" + } + }, + { + "name": "value_3", + "type": { + "name": "String" + } + } + ], + "indexes": [ + { + "name": "value_1_idx", + "expression": { + "parts": [ + "value_1" + ] + }, + "type": { + "name": "bloom_filter" + }, + "granularity": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "value_2_idx", + "expression": { + "parts": [ + "value_2" + ] + }, + "type": { + "name": "ngrambf_v1", + "arguments": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 512 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + "granularity": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "value_3_idx", + "expression": { + "parts": [ + "value_3" + ] + }, + "type": { + "name": "tokenbf_v1", + "arguments": [ + { + "type": "Integer", + "value": 512 + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 0 + } + ] + }, + "granularity": { + "type": "Integer", + "value": 1 + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03031_low_cardinality_logical_error/ast.json b/parser/testdata/03031_low_cardinality_logical_error/ast.json new file mode 100644 index 0000000000..0637f6dd52 --- /dev/null +++ b/parser/testdata/03031_low_cardinality_logical_error/ast.json @@ -0,0 +1,213 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Array", + "value": [ + { + "name": "toString", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "alias": "item_id" + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "item_id" + ] + } + ], + "with_totals": true + } + ] + } + }, + "alias": "l" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Array", + "value": [ + { + "name": "toString", + "arguments": [ + { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ] + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "alias": "item_id" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "r" + }, + "join": { + "type": "FULL", + "on": { + "left": { + "parts": [ + "l", + "item_id" + ] + }, + "op": "=", + "right": { + "parts": [ + "r", + "item_id" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "type": "Integer", + "value": 1 + } + }, + { + "expression": { + "type": "Integer", + "value": 2 + } + }, + { + "expression": { + "type": "Integer", + "value": 3 + } + } + ] + } + ] +} diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row/ast.json b/parser/testdata/03031_read_in_order_optimization_with_virtual_row/ast.json new file mode 100644 index 0000000000..c6c51556e3 --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "read_in_order_use_virtual_row", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_explain/ast.json b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_explain/ast.json new file mode 100644 index 0000000000..5fcbc9c0a7 --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_explain/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "merge_tree_min_rows_for_concurrent_read", + "value": { + "type": "Integer", + "value": 1000 + } + }, + { + "name": "read_in_order_use_virtual_row", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/ast.json b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/ast.json new file mode 100644 index 0000000000..8bf9c9108c --- /dev/null +++ b/parser/testdata/03031_read_in_order_optimization_with_virtual_row_special/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_03031", + "drop_database": true +} diff --git a/parser/testdata/03031_table_function_fuzzquery/ast.json b/parser/testdata/03031_table_function_fuzzquery/ast.json new file mode 100644 index 0000000000..752ce10033 --- /dev/null +++ b/parser/testdata/03031_table_function_fuzzquery/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "fuzzQuery", + "arguments": [ + { + "type": "String", + "value": "SELECT 1" + }, + { + "type": "Integer", + "value": 500 + }, + { + "type": "Integer", + "value": 8956 + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 0 + }, + "format": { + "parts": [ + "TSVWithNamesAndTypes" + ] + } + } + ] +} diff --git a/parser/testdata/03031_tuple_elimination_analyzer/ast.json b/parser/testdata/03031_tuple_elimination_analyzer/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03031_tuple_elimination_analyzer/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03032_multi_search_const_low_cardinality/ast.json b/parser/testdata/03032_multi_search_const_low_cardinality/ast.json new file mode 100644 index 0000000000..db8111b48a --- /dev/null +++ b/parser/testdata/03032_multi_search_const_low_cardinality/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "multiSearchFirstIndex", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03032_numbers_zeros/ast.json b/parser/testdata/03032_numbers_zeros/ast.json new file mode 100644 index 0000000000..6e7de2c9d6 --- /dev/null +++ b/parser/testdata/03032_numbers_zeros/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "------numbers_0-argument-----" + } + ] + } + ] +} diff --git a/parser/testdata/03032_redundant_equals/ast.json b/parser/testdata/03032_redundant_equals/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03032_redundant_equals/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03032_rmt_create_columns_from_replica/ast.json b/parser/testdata/03032_rmt_create_columns_from_replica/ast.json new file mode 100644 index 0000000000..8e9193dcb0 --- /dev/null +++ b/parser/testdata/03032_rmt_create_columns_from_replica/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_r1", + "tables": [ + { + "table": "data_r1" + } + ] +} diff --git a/parser/testdata/03032_save_bad_json_escape_sequences/ast.json b/parser/testdata/03032_save_bad_json_escape_sequences/ast.json new file mode 100644 index 0000000000..1cb86378fc --- /dev/null +++ b/parser/testdata/03032_save_bad_json_escape_sequences/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_throw_on_bad_escape_sequence", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03032_scalars_create_as_select/ast.json b/parser/testdata/03032_scalars_create_as_select/ast.json new file mode 100644 index 0000000000..e56ff9c1f6 --- /dev/null +++ b/parser/testdata/03032_scalars_create_as_select/ast.json @@ -0,0 +1,89 @@ +{ + "table": "query_run_metric_arrays", + "engine": { + "name": "Memory" + }, + "as_select": { + "selects": [ + { + "with": [ + { + "name": "all_metrics", + "query": { + "query": { + "selects": [ + { + "with": [ + { + "name": "all_names", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupUniqArrayArray", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] + } + } + } + ], + "columns": [ + { + "parts": [ + "all_names" + ] + } + ] + } + ] + } + } + } + ], + "columns": [ + { + "parts": [ + "all_metrics" + ] + } + ] + } + ] + } +} diff --git a/parser/testdata/03032_storage_memory_modify_settings/ast.json b/parser/testdata/03032_storage_memory_modify_settings/ast.json new file mode 100644 index 0000000000..69038a4b04 --- /dev/null +++ b/parser/testdata/03032_storage_memory_modify_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 65409 + } + } + ] +} diff --git a/parser/testdata/03032_string_to_variant_cast/ast.json b/parser/testdata/03032_string_to_variant_cast/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03032_string_to_variant_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03032_variant_bool_number_not_suspicious/ast.json b/parser/testdata/03032_variant_bool_number_not_suspicious/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03032_variant_bool_number_not_suspicious/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03033_analyzer_merge_engine_filter_push_down/ast.json b/parser/testdata/03033_analyzer_merge_engine_filter_push_down/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/03033_analyzer_merge_engine_filter_push_down/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03033_analyzer_parametrized_view_alias/ast.json b/parser/testdata/03033_analyzer_parametrized_view_alias/ast.json new file mode 100644 index 0000000000..bded605b70 --- /dev/null +++ b/parser/testdata/03033_analyzer_parametrized_view_alias/ast.json @@ -0,0 +1,27 @@ +{ + "table": "raw_data", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt8" + } + }, + { + "name": "data", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03033_analyzer_resolve_from_parent_scope/ast.json b/parser/testdata/03033_analyzer_resolve_from_parent_scope/ast.json new file mode 100644 index 0000000000..2a9d91a907 --- /dev/null +++ b/parser/testdata/03033_analyzer_resolve_from_parent_scope/ast.json @@ -0,0 +1,20 @@ +{ + "table": "vecs_Float32", + "columns": [ + { + "name": "v", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Float32" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03033_create_as_copies_comment/ast.json b/parser/testdata/03033_create_as_copies_comment/ast.json new file mode 100644 index 0000000000..344e22a3f7 --- /dev/null +++ b/parser/testdata/03033_create_as_copies_comment/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "base", + "tables": [ + { + "table": "base" + } + ] +} diff --git a/parser/testdata/03033_cte_numbers_memory/ast.json b/parser/testdata/03033_cte_numbers_memory/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03033_cte_numbers_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03033_dist_settings.optimize_skip_unused_shards_rewrite_in_composite_sharding_key/ast.json b/parser/testdata/03033_dist_settings.optimize_skip_unused_shards_rewrite_in_composite_sharding_key/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03033_dist_settings.optimize_skip_unused_shards_rewrite_in_composite_sharding_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03033_dynamic_text_serialization/ast.json b/parser/testdata/03033_dynamic_text_serialization/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03033_dynamic_text_serialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03033_final_undefined_last_mark/ast.json b/parser/testdata/03033_final_undefined_last_mark/ast.json new file mode 100644 index 0000000000..10c481d2bb --- /dev/null +++ b/parser/testdata/03033_final_undefined_last_mark/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "account_test", + "tables": [ + { + "table": "account_test" + } + ] +} diff --git a/parser/testdata/03033_from_unixtimestamp_joda_by_int64/ast.json b/parser/testdata/03033_from_unixtimestamp_joda_by_int64/ast.json new file mode 100644 index 0000000000..1f8392364a --- /dev/null +++ b/parser/testdata/03033_from_unixtimestamp_joda_by_int64/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "fromUnixTimestampInJodaSyntax", + "arguments": [ + { + "type": "Integer", + "value": 10262736196 + }, + { + "type": "String", + "value": "YYYY-MM-dd HH:mm:ss" + }, + { + "type": "String", + "value": "Asia/Shanghai" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03033_lightweight_deletes_sync/ast.json b/parser/testdata/03033_lightweight_deletes_sync/ast.json new file mode 100644 index 0000000000..4887a97249 --- /dev/null +++ b/parser/testdata/03033_lightweight_deletes_sync/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_deletes", + "tables": [ + { + "table": "t_lightweight_deletes" + } + ] +} diff --git a/parser/testdata/03033_parts_splitter_bug_and_index_loading/ast.json b/parser/testdata/03033_parts_splitter_bug_and_index_loading/ast.json new file mode 100644 index 0000000000..81e5360bc4 --- /dev/null +++ b/parser/testdata/03033_parts_splitter_bug_and_index_loading/ast.json @@ -0,0 +1,46 @@ +{ + "table": "t", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt32" + } + }, + { + "name": "b", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03033_recursive_cte_basic/ast.json b/parser/testdata/03033_recursive_cte_basic/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03033_recursive_cte_basic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03033_scalars_context_data_race/ast.json b/parser/testdata/03033_scalars_context_data_race/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03033_scalars_context_data_race/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03033_set_index_in/ast.json b/parser/testdata/03033_set_index_in/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/03033_set_index_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03033_tupleIntXYZ_and_tupleModulo/ast.json b/parser/testdata/03033_tupleIntXYZ_and_tupleModulo/ast.json new file mode 100644 index 0000000000..50d9f58c0d --- /dev/null +++ b/parser/testdata/03033_tupleIntXYZ_and_tupleModulo/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tupleIntDiv", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 15 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 5 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03033_virtual_column_override/ast.json b/parser/testdata/03033_virtual_column_override/ast.json new file mode 100644 index 0000000000..101943788d --- /dev/null +++ b/parser/testdata/03033_virtual_column_override/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "override_test", + "tables": [ + { + "table": "override_test" + } + ] +} diff --git a/parser/testdata/03033_with_fill_interpolate/ast.json b/parser/testdata/03033_with_fill_interpolate/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03033_with_fill_interpolate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03034_ddls_and_merges_with_unusual_maps/ast.json b/parser/testdata/03034_ddls_and_merges_with_unusual_maps/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/03034_ddls_and_merges_with_unusual_maps/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03034_dynamic_conversions/ast.json b/parser/testdata/03034_dynamic_conversions/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03034_dynamic_conversions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03034_json_extract_variant/ast.json b/parser/testdata/03034_json_extract_variant/ast.json new file mode 100644 index 0000000000..5ad278b607 --- /dev/null +++ b/parser/testdata/03034_json_extract_variant/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONExtract", + "arguments": [ + { + "type": "String", + "value": "{\"a\" : 42}" + }, + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "Variant(String, UInt32)" + } + ], + "alias": "v" + }, + { + "name": "variantType", + "arguments": [ + { + "parts": [ + "v" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03034_normalized_ast/ast.json b/parser/testdata/03034_normalized_ast/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03034_normalized_ast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03034_recursive_cte_tree/ast.json b/parser/testdata/03034_recursive_cte_tree/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03034_recursive_cte_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03034_recursive_cte_tree_fuzz_crash_fix/ast.json b/parser/testdata/03034_recursive_cte_tree_fuzz_crash_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03034_recursive_cte_tree_fuzz_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03034_recursive_cte_tree_merge_tree/ast.json b/parser/testdata/03034_recursive_cte_tree_merge_tree/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03034_recursive_cte_tree_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03035_alias_column_bug_distributed/ast.json b/parser/testdata/03035_alias_column_bug_distributed/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03035_alias_column_bug_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03035_argMinMax_numeric_non_extreme_bug/ast.json b/parser/testdata/03035_argMinMax_numeric_non_extreme_bug/ast.json new file mode 100644 index 0000000000..02a4f7b7f9 --- /dev/null +++ b/parser/testdata/03035_argMinMax_numeric_non_extreme_bug/ast.json @@ -0,0 +1,72 @@ +{ + "if_not_exists": true, + "table": "test", + "columns": [ + { + "name": "value", + "type": { + "name": "Float64" + }, + "codec": { + "codecs": [ + { + "name": "Delta" + }, + { + "name": "LZ4" + } + ] + } + }, + { + "name": "uuid", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "time", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + }, + "codec": { + "codecs": [ + { + "name": "DoubleDelta" + }, + { + "name": "LZ4" + } + ] + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "uuid" + ] + } + ] +} diff --git a/parser/testdata/03035_dynamic_sorting/ast.json b/parser/testdata/03035_dynamic_sorting/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03035_dynamic_sorting/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03035_internal_functions_direct_call/ast.json b/parser/testdata/03035_internal_functions_direct_call/ast.json new file mode 100644 index 0000000000..eb7bb33067 --- /dev/null +++ b/parser/testdata/03035_internal_functions_direct_call/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "__actionName" + } + ] + } + ] +} diff --git a/parser/testdata/03035_materialized_primary_key/ast.json b/parser/testdata/03035_materialized_primary_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03035_materialized_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03035_morton_encode_no_rows/ast.json b/parser/testdata/03035_morton_encode_no_rows/ast.json new file mode 100644 index 0000000000..01e1e4a200 --- /dev/null +++ b/parser/testdata/03035_morton_encode_no_rows/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "mortonEncode", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "type": "Integer", + "value": 65534 + }, + { + "type": "Integer", + "value": 65533 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03036_clamp/ast.json b/parser/testdata/03036_clamp/ast.json new file mode 100644 index 0000000000..1f5ab937c5 --- /dev/null +++ b/parser/testdata/03036_clamp/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "clamp", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 20 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03036_dynamic_read_shared_subcolumns_compact_merge_tree/ast.json b/parser/testdata/03036_dynamic_read_shared_subcolumns_compact_merge_tree/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03036_dynamic_read_shared_subcolumns_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03036_dynamic_read_shared_subcolumns_memory/ast.json b/parser/testdata/03036_dynamic_read_shared_subcolumns_memory/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03036_dynamic_read_shared_subcolumns_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03036_dynamic_read_shared_subcolumns_wide_merge_tree/ast.json b/parser/testdata/03036_dynamic_read_shared_subcolumns_wide_merge_tree/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03036_dynamic_read_shared_subcolumns_wide_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03036_dynamic_read_subcolumns_compact_merge_tree/ast.json b/parser/testdata/03036_dynamic_read_subcolumns_compact_merge_tree/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03036_dynamic_read_subcolumns_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03036_dynamic_read_subcolumns_memory/ast.json b/parser/testdata/03036_dynamic_read_subcolumns_memory/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03036_dynamic_read_subcolumns_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03036_dynamic_read_subcolumns_wide_merge_tree/ast.json b/parser/testdata/03036_dynamic_read_subcolumns_wide_merge_tree/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03036_dynamic_read_subcolumns_wide_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03036_join_filter_push_down_equivalent_sets/ast.json b/parser/testdata/03036_join_filter_push_down_equivalent_sets/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03036_join_filter_push_down_equivalent_sets/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03036_prewhere_lambda_function/ast.json b/parser/testdata/03036_prewhere_lambda_function/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03036_prewhere_lambda_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03036_reading_s3_archives/ast.json b/parser/testdata/03036_reading_s3_archives/ast.json new file mode 100644 index 0000000000..2b98e5d4ee --- /dev/null +++ b/parser/testdata/03036_reading_s3_archives/ast.json @@ -0,0 +1,87 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "data" + ] + }, + { + "parts": [ + "_size" + ] + }, + { + "parts": [ + "_file" + ] + }, + { + "parts": [ + "_path" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "03036_archive1.zip :: example1.csv" + } + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "type": "Tuple", + "value": [ + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "_file" + ] + }, + { + "parts": [ + "_path" + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03036_reading_s3_cluster_archives/ast.json b/parser/testdata/03036_reading_s3_cluster_archives/ast.json new file mode 100644 index 0000000000..62c29933e9 --- /dev/null +++ b/parser/testdata/03036_reading_s3_cluster_archives/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "s3, single archive" + } + ] + } + ] +} diff --git a/parser/testdata/03036_schema_inference_cache_s3_archives/ast.json b/parser/testdata/03036_schema_inference_cache_s3_archives/ast.json new file mode 100644 index 0000000000..4ca2874d07 --- /dev/null +++ b/parser/testdata/03036_schema_inference_cache_s3_archives/ast.json @@ -0,0 +1,49 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "03036_archive1.zip :: example{1,2}.csv" + } + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "name": "tuple", + "arguments": [ + {} + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03036_with_numbers/ast.json b/parser/testdata/03036_with_numbers/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03036_with_numbers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_1_horizontal_compact_merge_tree/ast.json b/parser/testdata/03037_dynamic_merges_1_horizontal_compact_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_1_horizontal_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_1_horizontal_compact_wide_tree/ast.json b/parser/testdata/03037_dynamic_merges_1_horizontal_compact_wide_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_1_horizontal_compact_wide_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_1_vertical_compact_merge_tree/ast.json b/parser/testdata/03037_dynamic_merges_1_vertical_compact_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_1_vertical_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_1_vertical_wide_merge_tree/ast.json b/parser/testdata/03037_dynamic_merges_1_vertical_wide_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_1_vertical_wide_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_2_horizontal_compact_merge_tree/ast.json b/parser/testdata/03037_dynamic_merges_2_horizontal_compact_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_2_horizontal_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_2_horizontal_wide_merge_tree/ast.json b/parser/testdata/03037_dynamic_merges_2_horizontal_wide_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_2_horizontal_wide_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_2_vertical_compact_merge_tree/ast.json b/parser/testdata/03037_dynamic_merges_2_vertical_compact_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_2_vertical_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_dynamic_merges_2_vertical_wide_merge_tree/ast.json b/parser/testdata/03037_dynamic_merges_2_vertical_wide_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03037_dynamic_merges_2_vertical_wide_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_precent_rank/ast.json b/parser/testdata/03037_precent_rank/ast.json new file mode 100644 index 0000000000..7253082313 --- /dev/null +++ b/parser/testdata/03037_precent_rank/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "product_groups", + "tables": [ + { + "table": "product_groups" + } + ] +} diff --git a/parser/testdata/03037_union_view/ast.json b/parser/testdata/03037_union_view/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03037_union_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03037_zero_step_in_numbers_table_function/ast.json b/parser/testdata/03037_zero_step_in_numbers_table_function/ast.json new file mode 100644 index 0000000000..b074c78199 --- /dev/null +++ b/parser/testdata/03037_zero_step_in_numbers_table_function/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03038_ambiguous_column/ast.json b/parser/testdata/03038_ambiguous_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03038_ambiguous_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03038_move_partition_to_oneself_deadlock/ast.json b/parser/testdata/03038_move_partition_to_oneself_deadlock/ast.json new file mode 100644 index 0000000000..a3e4d95b9e --- /dev/null +++ b/parser/testdata/03038_move_partition_to_oneself_deadlock/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_trivial_insert_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03038_nested_dynamic_merges_compact_horizontal/ast.json b/parser/testdata/03038_nested_dynamic_merges_compact_horizontal/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03038_nested_dynamic_merges_compact_horizontal/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03038_nested_dynamic_merges_compact_vertical/ast.json b/parser/testdata/03038_nested_dynamic_merges_compact_vertical/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03038_nested_dynamic_merges_compact_vertical/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03038_nested_dynamic_merges_wide_horizontal/ast.json b/parser/testdata/03038_nested_dynamic_merges_wide_horizontal/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03038_nested_dynamic_merges_wide_horizontal/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03038_nested_dynamic_merges_wide_vertical/ast.json b/parser/testdata/03038_nested_dynamic_merges_wide_vertical/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03038_nested_dynamic_merges_wide_vertical/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03039_unknown_identifier_window_function/ast.json b/parser/testdata/03039_unknown_identifier_window_function/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03039_unknown_identifier_window_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03040_alias_column_join/ast.json b/parser/testdata/03040_alias_column_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03040_alias_column_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03040_array_sum_and_join/ast.json b/parser/testdata/03040_array_sum_and_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03040_array_sum_and_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03040_dynamic_type_alters_1_compact_merge_tree/ast.json b/parser/testdata/03040_dynamic_type_alters_1_compact_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03040_dynamic_type_alters_1_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03040_dynamic_type_alters_1_memory/ast.json b/parser/testdata/03040_dynamic_type_alters_1_memory/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03040_dynamic_type_alters_1_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03040_dynamic_type_alters_1_wide_merge_tree/ast.json b/parser/testdata/03040_dynamic_type_alters_1_wide_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03040_dynamic_type_alters_1_wide_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03040_dynamic_type_alters_2_compact_merge_tree/ast.json b/parser/testdata/03040_dynamic_type_alters_2_compact_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03040_dynamic_type_alters_2_compact_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03040_dynamic_type_alters_2_wide_merge_tree/ast.json b/parser/testdata/03040_dynamic_type_alters_2_wide_merge_tree/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03040_dynamic_type_alters_2_wide_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03041_analyzer_gigachad_join/ast.json b/parser/testdata/03041_analyzer_gigachad_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03041_analyzer_gigachad_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03041_select_with_query_result/ast.json b/parser/testdata/03041_select_with_query_result/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03041_select_with_query_result/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03042_analyzer_alias_join/ast.json b/parser/testdata/03042_analyzer_alias_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03042_analyzer_alias_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03042_not_found_column_c1/ast.json b/parser/testdata/03042_not_found_column_c1/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03042_not_found_column_c1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03043_group_array_result_is_expected/ast.json b/parser/testdata/03043_group_array_result_is_expected/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03043_group_array_result_is_expected/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03044_analyzer_alias_join/ast.json b/parser/testdata/03044_analyzer_alias_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03044_analyzer_alias_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03044_array_join_columns_in_nested_table/ast.json b/parser/testdata/03044_array_join_columns_in_nested_table/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03044_array_join_columns_in_nested_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03045_analyzer_alias_join_with_if/ast.json b/parser/testdata/03045_analyzer_alias_join_with_if/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03045_analyzer_alias_join_with_if/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03045_unknown_identifier_alias_substitution/ast.json b/parser/testdata/03045_unknown_identifier_alias_substitution/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03045_unknown_identifier_alias_substitution/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03046_column_in_block_array_join/ast.json b/parser/testdata/03046_column_in_block_array_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03046_column_in_block_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03047_analyzer_alias_join/ast.json b/parser/testdata/03047_analyzer_alias_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03047_analyzer_alias_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03047_group_by_field_identified_aggregation/ast.json b/parser/testdata/03047_group_by_field_identified_aggregation/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03047_group_by_field_identified_aggregation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_events/ast.json b/parser/testdata/03047_on_fly_mutations_events/ast.json new file mode 100644 index 0000000000..01c2960beb --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_events/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_mut_7", + "tables": [ + { + "table": "t_lightweight_mut_7" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_materialized/ast.json b/parser/testdata/03047_on_fly_mutations_materialized/ast.json new file mode 100644 index 0000000000..1799bcb704 --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_materialized/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_update_materialized", + "tables": [ + { + "table": "t_update_materialized" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_multiple_updates/ast.json b/parser/testdata/03047_on_fly_mutations_multiple_updates/ast.json new file mode 100644 index 0000000000..74274a993c --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_multiple_updates/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_mut_5", + "tables": [ + { + "table": "t_lightweight_mut_5" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_multiple_updates_rmt/ast.json b/parser/testdata/03047_on_fly_mutations_multiple_updates_rmt/ast.json new file mode 100644 index 0000000000..74274a993c --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_multiple_updates_rmt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_mut_5", + "tables": [ + { + "table": "t_lightweight_mut_5" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_non_deterministic/ast.json b/parser/testdata/03047_on_fly_mutations_non_deterministic/ast.json new file mode 100644 index 0000000000..8c9b1a9ef4 --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_non_deterministic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_mut_2", + "tables": [ + { + "table": "t_lightweight_mut_2" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_non_deterministic_replace/ast.json b/parser/testdata/03047_on_fly_mutations_non_deterministic_replace/ast.json new file mode 100644 index 0000000000..74274a993c --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_non_deterministic_replace/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_mut_5", + "tables": [ + { + "table": "t_lightweight_mut_5" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_prewhere/ast.json b/parser/testdata/03047_on_fly_mutations_prewhere/ast.json new file mode 100644 index 0000000000..8ab767d117 --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_update_prewhere", + "tables": [ + { + "table": "t_update_prewhere" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_projections/ast.json b/parser/testdata/03047_on_fly_mutations_projections/ast.json new file mode 100644 index 0000000000..2b6a56dcc6 --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_update_projections", + "tables": [ + { + "table": "t_update_projections" + } + ] +} diff --git a/parser/testdata/03047_on_fly_mutations_skip_index/ast.json b/parser/testdata/03047_on_fly_mutations_skip_index/ast.json new file mode 100644 index 0000000000..e0ba5917b9 --- /dev/null +++ b/parser/testdata/03047_on_fly_mutations_skip_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_skip_indexes_on_data_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03047_on_fly_update_delete/ast.json b/parser/testdata/03047_on_fly_update_delete/ast.json new file mode 100644 index 0000000000..51774524c0 --- /dev/null +++ b/parser/testdata/03047_on_fly_update_delete/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_mut_6", + "tables": [ + { + "table": "t_lightweight_mut_6" + } + ] +} diff --git a/parser/testdata/03048_not_found_column_xxx_in_block/ast.json b/parser/testdata/03048_not_found_column_xxx_in_block/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03048_not_found_column_xxx_in_block/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03049_analyzer_group_by_alias/ast.json b/parser/testdata/03049_analyzer_group_by_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03049_analyzer_group_by_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03049_unknown_identifier_materialized_column/ast.json b/parser/testdata/03049_unknown_identifier_materialized_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03049_unknown_identifier_materialized_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03050_select_one_one_one/ast.json b/parser/testdata/03050_select_one_one_one/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03050_select_one_one_one/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03051_many_ctes/ast.json b/parser/testdata/03051_many_ctes/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03051_many_ctes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03052_query_hash_includes_aliases/ast.json b/parser/testdata/03052_query_hash_includes_aliases/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03052_query_hash_includes_aliases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03053_analyzer_join_alias/ast.json b/parser/testdata/03053_analyzer_join_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03053_analyzer_join_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03054_analyzer_join_alias/ast.json b/parser/testdata/03054_analyzer_join_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03054_analyzer_join_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03055_analyzer_subquery_group_array/ast.json b/parser/testdata/03055_analyzer_subquery_group_array/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03055_analyzer_subquery_group_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03057_analyzer_subquery_alias_join/ast.json b/parser/testdata/03057_analyzer_subquery_alias_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03057_analyzer_subquery_alias_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03058_analyzer_ambiguous_columns/ast.json b/parser/testdata/03058_analyzer_ambiguous_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03058_analyzer_ambiguous_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03059_analyzer_join_engine_missing_column/ast.json b/parser/testdata/03059_analyzer_join_engine_missing_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03059_analyzer_join_engine_missing_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03060_analyzer_regular_view_alias/ast.json b/parser/testdata/03060_analyzer_regular_view_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03060_analyzer_regular_view_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03061_analyzer_alias_as_right_key_in_join/ast.json b/parser/testdata/03061_analyzer_alias_as_right_key_in_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03061_analyzer_alias_as_right_key_in_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03062_analyzer_join_engine_missing_column/ast.json b/parser/testdata/03062_analyzer_join_engine_missing_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03062_analyzer_join_engine_missing_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03063_analyzer_multi_join_wrong_table_specifier/ast.json b/parser/testdata/03063_analyzer_multi_join_wrong_table_specifier/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03063_analyzer_multi_join_wrong_table_specifier/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03064_analyzer_named_subqueries/ast.json b/parser/testdata/03064_analyzer_named_subqueries/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03064_analyzer_named_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03065_analyzer_cross_join_and_array_join/ast.json b/parser/testdata/03065_analyzer_cross_join_and_array_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03065_analyzer_cross_join_and_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03066_analyzer_global_with_statement/ast.json b/parser/testdata/03066_analyzer_global_with_statement/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03066_analyzer_global_with_statement/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03067_analyzer_complex_alias_join/ast.json b/parser/testdata/03067_analyzer_complex_alias_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03067_analyzer_complex_alias_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03068_analyzer_distributed_join/ast.json b/parser/testdata/03068_analyzer_distributed_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03068_analyzer_distributed_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03069_analyzer_with_alias_in_array_join/ast.json b/parser/testdata/03069_analyzer_with_alias_in_array_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03069_analyzer_with_alias_in_array_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03070_analyzer_CTE_scalar_as_numbers/ast.json b/parser/testdata/03070_analyzer_CTE_scalar_as_numbers/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03070_analyzer_CTE_scalar_as_numbers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03071_analyzer_array_join_forbid_non_existing_columns/ast.json b/parser/testdata/03071_analyzer_array_join_forbid_non_existing_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03071_analyzer_array_join_forbid_non_existing_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03072_analyzer_missing_columns_from_subquery/ast.json b/parser/testdata/03072_analyzer_missing_columns_from_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03072_analyzer_missing_columns_from_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03073_analyzer_alias_as_column_name/ast.json b/parser/testdata/03073_analyzer_alias_as_column_name/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03073_analyzer_alias_as_column_name/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03074_analyzer_alias_column_in_view/ast.json b/parser/testdata/03074_analyzer_alias_column_in_view/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03074_analyzer_alias_column_in_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03075_analyzer_subquery_alias/ast.json b/parser/testdata/03075_analyzer_subquery_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03075_analyzer_subquery_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03076_analyzer_multiple_joins_alias/ast.json b/parser/testdata/03076_analyzer_multiple_joins_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03076_analyzer_multiple_joins_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03077_analyzer_multi_scalar_subquery_aliases/ast.json b/parser/testdata/03077_analyzer_multi_scalar_subquery_aliases/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03077_analyzer_multi_scalar_subquery_aliases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03078_analyzer_multi_scalar_subquery_aliases/ast.json b/parser/testdata/03078_analyzer_multi_scalar_subquery_aliases/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03078_analyzer_multi_scalar_subquery_aliases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03079_analyzer_numeric_literals_as_column_names/ast.json b/parser/testdata/03079_analyzer_numeric_literals_as_column_names/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03079_analyzer_numeric_literals_as_column_names/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03080_analyzer_prefer_column_name_to_alias__virtual_columns/ast.json b/parser/testdata/03080_analyzer_prefer_column_name_to_alias__virtual_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03080_analyzer_prefer_column_name_to_alias__virtual_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03080_incorrect_join_with_merge/ast.json b/parser/testdata/03080_incorrect_join_with_merge/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03080_incorrect_join_with_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03081_analyzer_agg_func_CTE/ast.json b/parser/testdata/03081_analyzer_agg_func_CTE/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03081_analyzer_agg_func_CTE/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03082_analyzer_left_join_correct_column/ast.json b/parser/testdata/03082_analyzer_left_join_correct_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03082_analyzer_left_join_correct_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03084_analyzer_join_column_alias/ast.json b/parser/testdata/03084_analyzer_join_column_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03084_analyzer_join_column_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03085_analyzer_alias_column_group_by/ast.json b/parser/testdata/03085_analyzer_alias_column_group_by/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03085_analyzer_alias_column_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03086_analyzer_window_func_part_of_group_by/ast.json b/parser/testdata/03086_analyzer_window_func_part_of_group_by/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03086_analyzer_window_func_part_of_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03087_analyzer_subquery_with_alias/ast.json b/parser/testdata/03087_analyzer_subquery_with_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03087_analyzer_subquery_with_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03088_analyzer_ambiguous_column_multi_call/ast.json b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03088_analyzer_ambiguous_column_multi_call/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03089_analyzer_alias_replacement/ast.json b/parser/testdata/03089_analyzer_alias_replacement/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03089_analyzer_alias_replacement/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03090_analyzer_multiple_using_statements/ast.json b/parser/testdata/03090_analyzer_multiple_using_statements/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03090_analyzer_multiple_using_statements/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03091_analyzer_same_table_name_in_different_databases/ast.json b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03091_analyzer_same_table_name_in_different_databases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03092_analyzer_same_table_name_in_different_databases/ast.json b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03092_analyzer_same_table_name_in_different_databases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03093_analyzer_column_alias/ast.json b/parser/testdata/03093_analyzer_column_alias/ast.json new file mode 100644 index 0000000000..cb3baa670a --- /dev/null +++ b/parser/testdata/03093_analyzer_column_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/03093_analyzer_miel_test/ast.json b/parser/testdata/03093_analyzer_miel_test/ast.json new file mode 100644 index 0000000000..aae450c53c --- /dev/null +++ b/parser/testdata/03093_analyzer_miel_test/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_03093", + "tables": [ + { + "table": "test_03093" + } + ] +} diff --git a/parser/testdata/03093_reading_bug_with_parallel_replicas/ast.json b/parser/testdata/03093_reading_bug_with_parallel_replicas/ast.json new file mode 100644 index 0000000000..8cd86cd423 --- /dev/null +++ b/parser/testdata/03093_reading_bug_with_parallel_replicas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 16 + } + } + ] +} diff --git a/parser/testdata/03093_special_column_errors/ast.json b/parser/testdata/03093_special_column_errors/ast.json new file mode 100644 index 0000000000..8d31000fc3 --- /dev/null +++ b/parser/testdata/03093_special_column_errors/ast.json @@ -0,0 +1,46 @@ +{ + "table": "replacing_wrong", + "columns": [ + { + "name": "key", + "type": { + "name": "Int64" + } + }, + { + "name": "ver", + "type": { + "name": "Int64" + } + }, + { + "name": "is_deleted", + "type": { + "name": "UInt16" + } + } + ], + "engine": { + "name": "ReplacingMergeTree", + "parameters": [ + { + "parts": [ + "ver" + ] + }, + { + "parts": [ + "is_deleted" + ] + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/03093_virtual_column_override_group_by/ast.json b/parser/testdata/03093_virtual_column_override_group_by/ast.json new file mode 100644 index 0000000000..4af92ffa38 --- /dev/null +++ b/parser/testdata/03093_virtual_column_override_group_by/ast.json @@ -0,0 +1,31 @@ +{ + "table": "override_test__fuzz_45", + "columns": [ + { + "name": "_part", + "type": { + "name": "Float32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } +} diff --git a/parser/testdata/03094_analyzer_fiddle_multiif/ast.json b/parser/testdata/03094_analyzer_fiddle_multiif/ast.json new file mode 100644 index 0000000000..b915efdc2f --- /dev/null +++ b/parser/testdata/03094_analyzer_fiddle_multiif/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users_03094", + "tables": [ + { + "table": "users_03094" + } + ] +} diff --git a/parser/testdata/03094_grouparraysorted_memory/ast.json b/parser/testdata/03094_grouparraysorted_memory/ast.json new file mode 100644 index 0000000000..f74661b284 --- /dev/null +++ b/parser/testdata/03094_grouparraysorted_memory/ast.json @@ -0,0 +1,109 @@ +{ + "table": "03094_grouparrysorted_dest", + "columns": [ + { + "name": "ServiceName", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + }, + "codec": { + "codecs": [ + { + "name": "ZSTD", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + }, + { + "name": "SlowSpans", + "type": { + "name": "AggregateFunction", + "parameters": [ + { + "name": "groupArraySorted", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + }, + { + "name": "Tuple", + "parameters": [ + { + "name": "NegativeDurationNs", + "type": { + "name": "Int64" + } + }, + { + "name": "Timestamp", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 9 + } + ], + "has_parentheses": true + } + }, + { + "name": "TraceId", + "type": { + "name": "String" + } + }, + { + "name": "SpanId", + "type": { + "name": "String" + } + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + }, + "codec": { + "codecs": [ + { + "name": "ZSTD", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ], + "engine": { + "name": "AggregatingMergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "ServiceName" + ] + } + ] +} diff --git a/parser/testdata/03094_one_thousand_joins/ast.json b/parser/testdata/03094_one_thousand_joins/ast.json new file mode 100644 index 0000000000..9c376f33dd --- /dev/null +++ b/parser/testdata/03094_one_thousand_joins/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "default" + } + } + ] +} diff --git a/parser/testdata/03094_transform_return_first/ast.json b/parser/testdata/03094_transform_return_first/ast.json new file mode 100644 index 0000000000..583a393b4d --- /dev/null +++ b/parser/testdata/03094_transform_return_first/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "transform", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03094_virtual_column_table_name/ast.json b/parser/testdata/03094_virtual_column_table_name/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03094_virtual_column_table_name/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03095_group_by_server_constants_bug/ast.json b/parser/testdata/03095_group_by_server_constants_bug/ast.json new file mode 100644 index 0000000000..8650b46ad9 --- /dev/null +++ b/parser/testdata/03095_group_by_server_constants_bug/ast.json @@ -0,0 +1,50 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "serverUUID", + "alias": "s" + }, + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "s" + ] + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03095_join_filter_push_down_right_stream_filled/ast.json b/parser/testdata/03095_join_filter_push_down_right_stream_filled/ast.json new file mode 100644 index 0000000000..93f4555734 --- /dev/null +++ b/parser/testdata/03095_join_filter_push_down_right_stream_filled/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1__fuzz_0", + "tables": [ + { + "table": "t1__fuzz_0" + } + ] +} diff --git a/parser/testdata/03095_merge_and_buffer_tables/ast.json b/parser/testdata/03095_merge_and_buffer_tables/ast.json new file mode 100644 index 0000000000..a802c8a3e9 --- /dev/null +++ b/parser/testdata/03095_merge_and_buffer_tables/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt1", + "tables": [ + { + "table": "mt1" + } + ] +} diff --git a/parser/testdata/03095_msan_uuid_string_to_num/ast.json b/parser/testdata/03095_msan_uuid_string_to_num/ast.json new file mode 100644 index 0000000000..f28abd7d76 --- /dev/null +++ b/parser/testdata/03095_msan_uuid_string_to_num/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "UUIDStringToNum", + "arguments": [ + { + "type": "String", + "value": "00112233-4455-6677-8899-aabbccddeeff" + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03095_window_functions_qualify/ast.json b/parser/testdata/03095_window_functions_qualify/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03095_window_functions_qualify/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03096_order_by_system_tables/ast.json b/parser/testdata/03096_order_by_system_tables/ast.json new file mode 100644 index 0000000000..ffdcc6e987 --- /dev/null +++ b/parser/testdata/03096_order_by_system_tables/ast.json @@ -0,0 +1,3 @@ +{ + "command": "FLUSH LOGS" +} diff --git a/parser/testdata/03096_update_non_indexed_columns/ast.json b/parser/testdata/03096_update_non_indexed_columns/ast.json new file mode 100644 index 0000000000..61fec7de88 --- /dev/null +++ b/parser/testdata/03096_update_non_indexed_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_03096", + "tables": [ + { + "table": "test_03096" + } + ] +} diff --git a/parser/testdata/03097_query_log_join_processes/ast.json b/parser/testdata/03097_query_log_join_processes/ast.json new file mode 100644 index 0000000000..35d11677b7 --- /dev/null +++ b/parser/testdata/03097_query_log_join_processes/ast.json @@ -0,0 +1,3 @@ +{ + "command": "FLUSH LOGS query_log" +} diff --git a/parser/testdata/03098_prefer_column_to_alias_subquery/ast.json b/parser/testdata/03098_prefer_column_to_alias_subquery/ast.json new file mode 100644 index 0000000000..48e0b18d70 --- /dev/null +++ b/parser/testdata/03098_prefer_column_to_alias_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "clickhouse_alias_issue_1", + "tables": [ + { + "table": "clickhouse_alias_issue_1" + } + ] +} diff --git a/parser/testdata/03099_analyzer_multi_join/ast.json b/parser/testdata/03099_analyzer_multi_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03099_analyzer_multi_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03100_analyzer_constants_in_multiif/ast.json b/parser/testdata/03100_analyzer_constants_in_multiif/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03100_analyzer_constants_in_multiif/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_01_basics/ast.json b/parser/testdata/03100_lwu_01_basics/ast.json new file mode 100644 index 0000000000..eded613a2f --- /dev/null +++ b/parser/testdata/03100_lwu_01_basics/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_02_basics/ast.json b/parser/testdata/03100_lwu_02_basics/ast.json new file mode 100644 index 0000000000..eded613a2f --- /dev/null +++ b/parser/testdata/03100_lwu_02_basics/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_03_join/ast.json b/parser/testdata/03100_lwu_03_join/ast.json new file mode 100644 index 0000000000..eded613a2f --- /dev/null +++ b/parser/testdata/03100_lwu_03_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_04_prewhere/ast.json b/parser/testdata/03100_lwu_04_prewhere/ast.json new file mode 100644 index 0000000000..373bb35d10 --- /dev/null +++ b/parser/testdata/03100_lwu_04_prewhere/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_shared", + "tables": [ + { + "table": "t_shared" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_05_basics/ast.json b/parser/testdata/03100_lwu_05_basics/ast.json new file mode 100644 index 0000000000..478b8ef5bc --- /dev/null +++ b/parser/testdata/03100_lwu_05_basics/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight", + "tables": [ + { + "table": "t_lightweight" + } + ] +} diff --git a/parser/testdata/03100_lwu_06_apply_patches/ast.json b/parser/testdata/03100_lwu_06_apply_patches/ast.json new file mode 100644 index 0000000000..eded613a2f --- /dev/null +++ b/parser/testdata/03100_lwu_06_apply_patches/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_07_merge_patches/ast.json b/parser/testdata/03100_lwu_07_merge_patches/ast.json new file mode 100644 index 0000000000..4f6f45b074 --- /dev/null +++ b/parser/testdata/03100_lwu_07_merge_patches/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_lightweight", + "tables": [ + { + "table": "t_lightweight" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_08_multiple_blocks/ast.json b/parser/testdata/03100_lwu_08_multiple_blocks/ast.json new file mode 100644 index 0000000000..d19f614326 --- /dev/null +++ b/parser/testdata/03100_lwu_08_multiple_blocks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lightweight_8", + "tables": [ + { + "table": "t_lightweight_8" + } + ] +} diff --git a/parser/testdata/03100_lwu_09_different_structure/ast.json b/parser/testdata/03100_lwu_09_different_structure/ast.json new file mode 100644 index 0000000000..eded613a2f --- /dev/null +++ b/parser/testdata/03100_lwu_09_different_structure/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Float", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_10_apply_on_merges/ast.json b/parser/testdata/03100_lwu_10_apply_on_merges/ast.json new file mode 100644 index 0000000000..5780916d54 --- /dev/null +++ b/parser/testdata/03100_lwu_10_apply_on_merges/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_lwu_merges", + "tables": [ + { + "table": "t_lwu_merges" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_12_sequential_consistency/ast.json b/parser/testdata/03100_lwu_12_sequential_consistency/ast.json new file mode 100644 index 0000000000..04419ee6d2 --- /dev/null +++ b/parser/testdata/03100_lwu_12_sequential_consistency/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_lwu_sequential_1", + "tables": [ + { + "table": "t_lwu_sequential_1" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_18_sequence/ast.json b/parser/testdata/03100_lwu_18_sequence/ast.json new file mode 100644 index 0000000000..719d304300 --- /dev/null +++ b/parser/testdata/03100_lwu_18_sequence/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_sequence", + "tables": [ + { + "table": "t_lwu_sequence" + } + ] +} diff --git a/parser/testdata/03100_lwu_19_nullable/ast.json b/parser/testdata/03100_lwu_19_nullable/ast.json new file mode 100644 index 0000000000..a6c08c935a --- /dev/null +++ b/parser/testdata/03100_lwu_19_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mutation_table", + "tables": [ + { + "table": "mutation_table" + } + ] +} diff --git a/parser/testdata/03100_lwu_20_different_structure/ast.json b/parser/testdata/03100_lwu_20_different_structure/ast.json new file mode 100644 index 0000000000..e8443b5f84 --- /dev/null +++ b/parser/testdata/03100_lwu_20_different_structure/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testing", + "tables": [ + { + "table": "testing" + } + ] +} diff --git a/parser/testdata/03100_lwu_22_detach_attach_patches/ast.json b/parser/testdata/03100_lwu_22_detach_attach_patches/ast.json new file mode 100644 index 0000000000..58b99335a6 --- /dev/null +++ b/parser/testdata/03100_lwu_22_detach_attach_patches/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_detach_attach_patches", + "tables": [ + { + "table": "t_detach_attach_patches" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_23_apply_patches/ast.json b/parser/testdata/03100_lwu_23_apply_patches/ast.json new file mode 100644 index 0000000000..7702f292a5 --- /dev/null +++ b/parser/testdata/03100_lwu_23_apply_patches/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_apply_patches", + "tables": [ + { + "table": "t_apply_patches" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_26_subcolumns/ast.json b/parser/testdata/03100_lwu_26_subcolumns/ast.json new file mode 100644 index 0000000000..5f2f4d2649 --- /dev/null +++ b/parser/testdata/03100_lwu_26_subcolumns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_subcolumns", + "tables": [ + { + "table": "t_lwu_subcolumns" + } + ] +} diff --git a/parser/testdata/03100_lwu_27_update_after_on_fly_mutations/ast.json b/parser/testdata/03100_lwu_27_update_after_on_fly_mutations/ast.json new file mode 100644 index 0000000000..7f70688b4f --- /dev/null +++ b/parser/testdata/03100_lwu_27_update_after_on_fly_mutations/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_lwu_on_fly", + "tables": [ + { + "table": "t_lwu_on_fly" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_30_join_cache/ast.json b/parser/testdata/03100_lwu_30_join_cache/ast.json new file mode 100644 index 0000000000..79c751c5a5 --- /dev/null +++ b/parser/testdata/03100_lwu_30_join_cache/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_patch_join_cache", + "tables": [ + { + "table": "t_patch_join_cache" + } + ] +} diff --git a/parser/testdata/03100_lwu_31_merge_memory_usage/ast.json b/parser/testdata/03100_lwu_31_merge_memory_usage/ast.json new file mode 100644 index 0000000000..feb65286af --- /dev/null +++ b/parser/testdata/03100_lwu_31_merge_memory_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_lightweight_update", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_32_on_fly_filter/ast.json b/parser/testdata/03100_lwu_32_on_fly_filter/ast.json new file mode 100644 index 0000000000..feb65286af --- /dev/null +++ b/parser/testdata/03100_lwu_32_on_fly_filter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_lightweight_update", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_33_add_column/ast.json b/parser/testdata/03100_lwu_33_add_column/ast.json new file mode 100644 index 0000000000..281adc5208 --- /dev/null +++ b/parser/testdata/03100_lwu_33_add_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_add_column", + "tables": [ + { + "table": "t_lwu_add_column" + } + ] +} diff --git a/parser/testdata/03100_lwu_34_multistep_prewhere/ast.json b/parser/testdata/03100_lwu_34_multistep_prewhere/ast.json new file mode 100644 index 0000000000..74071e9f45 --- /dev/null +++ b/parser/testdata/03100_lwu_34_multistep_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_multistep", + "tables": [ + { + "table": "t_lwu_multistep" + } + ] +} diff --git a/parser/testdata/03100_lwu_35_lock_profile_events/ast.json b/parser/testdata/03100_lwu_35_lock_profile_events/ast.json new file mode 100644 index 0000000000..c75ee4534d --- /dev/null +++ b/parser/testdata/03100_lwu_35_lock_profile_events/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_lwu_lock_profile_events", + "tables": [ + { + "table": "t_lwu_lock_profile_events" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_36_json_skip_indexes/ast.json b/parser/testdata/03100_lwu_36_json_skip_indexes/ast.json new file mode 100644 index 0000000000..e0ba5917b9 --- /dev/null +++ b/parser/testdata/03100_lwu_36_json_skip_indexes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_skip_indexes_on_data_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03100_lwu_37_update_all_columns/ast.json b/parser/testdata/03100_lwu_37_update_all_columns/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03100_lwu_37_update_all_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03100_lwu_38_replacing/ast.json b/parser/testdata/03100_lwu_38_replacing/ast.json new file mode 100644 index 0000000000..b29eba7db1 --- /dev/null +++ b/parser/testdata/03100_lwu_38_replacing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_replacing", + "tables": [ + { + "table": "t_lwu_replacing" + } + ] +} diff --git a/parser/testdata/03100_lwu_39_after_replace_partition/ast.json b/parser/testdata/03100_lwu_39_after_replace_partition/ast.json new file mode 100644 index 0000000000..7ee0b7c219 --- /dev/null +++ b/parser/testdata/03100_lwu_39_after_replace_partition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_replace", + "tables": [ + { + "table": "t_lwu_replace" + } + ] +} diff --git a/parser/testdata/03100_lwu_41_bytes_limits/ast.json b/parser/testdata/03100_lwu_41_bytes_limits/ast.json new file mode 100644 index 0000000000..43e2d7381b --- /dev/null +++ b/parser/testdata/03100_lwu_41_bytes_limits/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_bytes_limits", + "tables": [ + { + "table": "t_lwu_bytes_limits" + } + ] +} diff --git a/parser/testdata/03100_lwu_43_subquery_from_rmt/ast.json b/parser/testdata/03100_lwu_43_subquery_from_rmt/ast.json new file mode 100644 index 0000000000..7c3ff69715 --- /dev/null +++ b/parser/testdata/03100_lwu_43_subquery_from_rmt/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "lightweight_test", + "tables": [ + { + "table": "lightweight_test" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_44_missing_default/ast.json b/parser/testdata/03100_lwu_44_missing_default/ast.json new file mode 100644 index 0000000000..a37277f841 --- /dev/null +++ b/parser/testdata/03100_lwu_44_missing_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_defaults", + "tables": [ + { + "table": "t_lwu_defaults" + } + ] +} diff --git a/parser/testdata/03100_lwu_45_query_condition_cache/ast.json b/parser/testdata/03100_lwu_45_query_condition_cache/ast.json new file mode 100644 index 0000000000..929e016ba7 --- /dev/null +++ b/parser/testdata/03100_lwu_45_query_condition_cache/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_condition_cache", + "tables": [ + { + "table": "t_lwu_condition_cache" + } + ] +} diff --git a/parser/testdata/03100_lwu_46_deletes_skip_indexes/ast.json b/parser/testdata/03100_lwu_46_deletes_skip_indexes/ast.json new file mode 100644 index 0000000000..6af5833737 --- /dev/null +++ b/parser/testdata/03100_lwu_46_deletes_skip_indexes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwd_indexes", + "tables": [ + { + "table": "t_lwd_indexes" + } + ] +} diff --git a/parser/testdata/03100_lwu_deletes_1/ast.json b/parser/testdata/03100_lwu_deletes_1/ast.json new file mode 100644 index 0000000000..f21d8abb03 --- /dev/null +++ b/parser/testdata/03100_lwu_deletes_1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_delete", + "tables": [ + { + "table": "t_lwu_delete" + } + ] +} diff --git a/parser/testdata/03100_lwu_deletes_2/ast.json b/parser/testdata/03100_lwu_deletes_2/ast.json new file mode 100644 index 0000000000..f27c115b84 --- /dev/null +++ b/parser/testdata/03100_lwu_deletes_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lwd_test", + "tables": [ + { + "table": "lwd_test" + } + ] +} diff --git a/parser/testdata/03100_lwu_deletes_3/ast.json b/parser/testdata/03100_lwu_deletes_3/ast.json new file mode 100644 index 0000000000..65c7ae420f --- /dev/null +++ b/parser/testdata/03100_lwu_deletes_3/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_lwu_deletes_3", + "tables": [ + { + "table": "t_lwu_deletes_3" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_deletes_4_index/ast.json b/parser/testdata/03100_lwu_deletes_4_index/ast.json new file mode 100644 index 0000000000..71d79cd970 --- /dev/null +++ b/parser/testdata/03100_lwu_deletes_4_index/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_lwd_index", + "tables": [ + { + "table": "t_lwd_index" + } + ], + "sync": true +} diff --git a/parser/testdata/03100_lwu_deletes_5_vertical_merge/ast.json b/parser/testdata/03100_lwu_deletes_5_vertical_merge/ast.json new file mode 100644 index 0000000000..1a64b45c2b --- /dev/null +++ b/parser/testdata/03100_lwu_deletes_5_vertical_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwu_deletes_vertical", + "tables": [ + { + "table": "t_lwu_deletes_vertical" + } + ] +} diff --git a/parser/testdata/03101_analyzer_identifiers_1/ast.json b/parser/testdata/03101_analyzer_identifiers_1/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03101_analyzer_identifiers_2/ast.json b/parser/testdata/03101_analyzer_identifiers_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03101_analyzer_identifiers_3/ast.json b/parser/testdata/03101_analyzer_identifiers_3/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_3/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03101_analyzer_identifiers_4/ast.json b/parser/testdata/03101_analyzer_identifiers_4/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03101_analyzer_identifiers_4/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03101_analyzer_invalid_join_on/ast.json b/parser/testdata/03101_analyzer_invalid_join_on/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03101_analyzer_invalid_join_on/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03102_prefer_column_name_to_alias/ast.json b/parser/testdata/03102_prefer_column_name_to_alias/ast.json new file mode 100644 index 0000000000..cc32049e4c --- /dev/null +++ b/parser/testdata/03102_prefer_column_name_to_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "loans", + "tables": [ + { + "table": "loans" + } + ] +} diff --git a/parser/testdata/03103_positional_arguments/ast.json b/parser/testdata/03103_positional_arguments/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03103_positional_arguments/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03104_create_view_join/ast.json b/parser/testdata/03104_create_view_join/ast.json new file mode 100644 index 0000000000..2fde98dd5d --- /dev/null +++ b/parser/testdata/03104_create_view_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_01", + "tables": [ + { + "table": "test_table_01" + } + ] +} diff --git a/parser/testdata/03105_table_aliases_in_mv/ast.json b/parser/testdata/03105_table_aliases_in_mv/ast.json new file mode 100644 index 0000000000..27bb6b6be3 --- /dev/null +++ b/parser/testdata/03105_table_aliases_in_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "event", + "tables": [ + { + "table": "event" + } + ] +} diff --git a/parser/testdata/03107_ill_formed_select_in_materialized_view/ast.json b/parser/testdata/03107_ill_formed_select_in_materialized_view/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/03107_ill_formed_select_in_materialized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/03108_describe_union_all/ast.json b/parser/testdata/03108_describe_union_all/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03108_describe_union_all/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03109_ast_too_big/ast.json b/parser/testdata/03109_ast_too_big/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03109_ast_too_big/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03110_unicode_alias/ast.json b/parser/testdata/03110_unicode_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03110_unicode_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03111_inner_join_group_by/ast.json b/parser/testdata/03111_inner_join_group_by/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03111_inner_join_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03112_analyzer_not_found_column_in_block/ast.json b/parser/testdata/03112_analyzer_not_found_column_in_block/ast.json new file mode 100644 index 0000000000..de8469d78e --- /dev/null +++ b/parser/testdata/03112_analyzer_not_found_column_in_block/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "my_first_table", + "tables": [ + { + "table": "my_first_table" + } + ] +} diff --git a/parser/testdata/03113_analyzer_not_found_column_in_block_2/ast.json b/parser/testdata/03113_analyzer_not_found_column_in_block_2/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03113_analyzer_not_found_column_in_block_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03114_analyzer_cte_with_join/ast.json b/parser/testdata/03114_analyzer_cte_with_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03114_analyzer_cte_with_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03115_alias_exists_column/ast.json b/parser/testdata/03115_alias_exists_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03115_alias_exists_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03116_analyzer_explicit_alias_as_column_name/ast.json b/parser/testdata/03116_analyzer_explicit_alias_as_column_name/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03116_analyzer_explicit_alias_as_column_name/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03117_analyzer_same_column_name_as_func/ast.json b/parser/testdata/03117_analyzer_same_column_name_as_func/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03117_analyzer_same_column_name_as_func/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03118_analyzer_multi_join_prewhere/ast.json b/parser/testdata/03118_analyzer_multi_join_prewhere/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03118_analyzer_multi_join_prewhere/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03119_analyzer_window_function_in_CTE_alias/ast.json b/parser/testdata/03119_analyzer_window_function_in_CTE_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03119_analyzer_window_function_in_CTE_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03120_analyzer_dist_join/ast.json b/parser/testdata/03120_analyzer_dist_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03120_analyzer_dist_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03120_analyzer_param_in_CTE_alias/ast.json b/parser/testdata/03120_analyzer_param_in_CTE_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03120_analyzer_param_in_CTE_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03121_analyzer_filed_redefenition_in_subquery/ast.json b/parser/testdata/03121_analyzer_filed_redefenition_in_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03121_analyzer_filed_redefenition_in_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03122_analyzer_collate_in_window_function/ast.json b/parser/testdata/03122_analyzer_collate_in_window_function/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03122_analyzer_collate_in_window_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03123_analyzer_dist_join_CTE/ast.json b/parser/testdata/03123_analyzer_dist_join_CTE/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03123_analyzer_dist_join_CTE/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03124_analyzer_nested_CTE_dist_in/ast.json b/parser/testdata/03124_analyzer_nested_CTE_dist_in/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03124_analyzer_nested_CTE_dist_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03125_analyzer_CTE_two_joins/ast.json b/parser/testdata/03125_analyzer_CTE_two_joins/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03125_analyzer_CTE_two_joins/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03126_column_not_under_group_by/ast.json b/parser/testdata/03126_column_not_under_group_by/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03126_column_not_under_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03127_argMin_combinator_state/ast.json b/parser/testdata/03127_argMin_combinator_state/ast.json new file mode 100644 index 0000000000..cf46bfcce8 --- /dev/null +++ b/parser/testdata/03127_argMin_combinator_state/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "sumArgMinState", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03127_system_unload_primary_key_table/ast.json b/parser/testdata/03127_system_unload_primary_key_table/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03127_system_unload_primary_key_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03127_window_functions_uint16/ast.json b/parser/testdata/03127_window_functions_uint16/ast.json new file mode 100644 index 0000000000..a687348005 --- /dev/null +++ b/parser/testdata/03127_window_functions_uint16/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tumbleStart", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2020-01-09 12:00:01" + }, + { + "type": "String", + "value": "US/Samoa" + } + ] + }, + { + "value": { + "type": "String", + "value": "1" + }, + "unit": "WEEK" + }, + { + "type": "String", + "value": "US/Samoa" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03128_argMin_combinator_projection/ast.json b/parser/testdata/03128_argMin_combinator_projection/ast.json new file mode 100644 index 0000000000..94361af37b --- /dev/null +++ b/parser/testdata/03128_argMin_combinator_projection/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "combinator_argMin_table_r1", + "tables": [ + { + "table": "combinator_argMin_table_r1" + } + ], + "sync": true +} diff --git a/parser/testdata/03128_merge_tree_index_lazy_load/ast.json b/parser/testdata/03128_merge_tree_index_lazy_load/ast.json new file mode 100644 index 0000000000..d9d742734a --- /dev/null +++ b/parser/testdata/03128_merge_tree_index_lazy_load/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_index_lazy_load", + "tables": [ + { + "table": "t_index_lazy_load" + } + ] +} diff --git a/parser/testdata/03128_system_unload_primary_key/ast.json b/parser/testdata/03128_system_unload_primary_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03128_system_unload_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03129_cte_with_final/ast.json b/parser/testdata/03129_cte_with_final/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03129_cte_with_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03129_low_cardinality_nullable_non_first_primary_key/ast.json b/parser/testdata/03129_low_cardinality_nullable_non_first_primary_key/ast.json new file mode 100644 index 0000000000..9d215ded0b --- /dev/null +++ b/parser/testdata/03129_low_cardinality_nullable_non_first_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "small", + "tables": [ + { + "table": "small" + } + ] +} diff --git a/parser/testdata/03129_serial_test_zookeeper/ast.json b/parser/testdata/03129_serial_test_zookeeper/ast.json new file mode 100644 index 0000000000..d0b44ce108 --- /dev/null +++ b/parser/testdata/03129_serial_test_zookeeper/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "generateSerialID", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "x" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03129_update_nested_materialized_column_check/ast.json b/parser/testdata/03129_update_nested_materialized_column_check/ast.json new file mode 100644 index 0000000000..33b5cde802 --- /dev/null +++ b/parser/testdata/03129_update_nested_materialized_column_check/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "asterisk_include_materialized_columns", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03130_abs_in_key_condition_bug/ast.json b/parser/testdata/03130_abs_in_key_condition_bug/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03130_abs_in_key_condition_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03130_analyzer_array_join_prefer_column/ast.json b/parser/testdata/03130_analyzer_array_join_prefer_column/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03130_analyzer_array_join_prefer_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03130_analyzer_self_join_group_by/ast.json b/parser/testdata/03130_analyzer_self_join_group_by/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03130_analyzer_self_join_group_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03130_convert_outer_join_to_inner_join/ast.json b/parser/testdata/03130_convert_outer_join_to_inner_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03130_convert_outer_join_to_inner_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03130_generateSnowflakeId/ast.json b/parser/testdata/03130_generateSnowflakeId/ast.json new file mode 100644 index 0000000000..6415fa5f4f --- /dev/null +++ b/parser/testdata/03130_generateSnowflakeId/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/03131_deprecated_functions/ast.json b/parser/testdata/03131_deprecated_functions/ast.json new file mode 100644 index 0000000000..cc4e2f3bbc --- /dev/null +++ b/parser/testdata/03131_deprecated_functions/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "neighbor", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/03131_hilbert_coding/ast.json b/parser/testdata/03131_hilbert_coding/ast.json new file mode 100644 index 0000000000..46aa82ec30 --- /dev/null +++ b/parser/testdata/03131_hilbert_coding/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "----- START -----" + } + ] + } + ] +} diff --git a/parser/testdata/03131_rewrite_sum_if_nullable/ast.json b/parser/testdata/03131_rewrite_sum_if_nullable/ast.json new file mode 100644 index 0000000000..ae367639ad --- /dev/null +++ b/parser/testdata/03131_rewrite_sum_if_nullable/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "name": "if", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03132_jit_sort_description_crash_fix/ast.json b/parser/testdata/03132_jit_sort_description_crash_fix/ast.json new file mode 100644 index 0000000000..f54ddfeaa9 --- /dev/null +++ b/parser/testdata/03132_jit_sort_description_crash_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_syntax_for_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03132_rewrite_aggregate_function_with_if_implicit_cast/ast.json b/parser/testdata/03132_rewrite_aggregate_function_with_if_implicit_cast/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03132_rewrite_aggregate_function_with_if_implicit_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03132_sqlancer_union_all/ast.json b/parser/testdata/03132_sqlancer_union_all/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03132_sqlancer_union_all/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03141_fetches_errors_stress/ast.json b/parser/testdata/03141_fetches_errors_stress/ast.json new file mode 100644 index 0000000000..7b1d76c6a3 --- /dev/null +++ b/parser/testdata/03141_fetches_errors_stress/ast.json @@ -0,0 +1,36 @@ +{ + "table": "data_r1", + "columns": [ + { + "name": "key", + "type": { + "name": "Int" + } + }, + { + "name": "value", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "ReplicatedMergeTree", + "parameters": [ + { + "type": "String", + "value": "/tables/{database}/data" + }, + { + "type": "String", + "value": "{table}" + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03142_alter_comment_parameterized_view/ast.json b/parser/testdata/03142_alter_comment_parameterized_view/ast.json new file mode 100644 index 0000000000..542f0704dd --- /dev/null +++ b/parser/testdata/03142_alter_comment_parameterized_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_comment", + "tables": [ + { + "table": "test_table_comment" + } + ] +} diff --git a/parser/testdata/03142_skip_ANSI_in_UTF8_compute_width/ast.json b/parser/testdata/03142_skip_ANSI_in_UTF8_compute_width/ast.json new file mode 100644 index 0000000000..2174045282 --- /dev/null +++ b/parser/testdata/03142_skip_ANSI_in_UTF8_compute_width/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "format", + "arguments": [ + { + "type": "String", + "value": "\u001b[38;2;{0};{1};{2}m█\u001b[0m" + }, + { + "type": "Integer", + "value": 255 + }, + { + "type": "Integer", + "value": 128 + }, + { + "type": "Integer", + "value": 128 + } + ], + "alias": "x" + } + ], + "format": { + "parts": [ + "Pretty" + ] + } + } + ] +} diff --git a/parser/testdata/03142_untuple_crash/ast.json b/parser/testdata/03142_untuple_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03142_untuple_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03142_window_function_limit_by/ast.json b/parser/testdata/03142_window_function_limit_by/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03142_window_function_limit_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03143_asof_join_ddb_long/ast.json b/parser/testdata/03143_asof_join_ddb_long/ast.json new file mode 100644 index 0000000000..885547b352 --- /dev/null +++ b/parser/testdata/03143_asof_join_ddb_long/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "build", + "tables": [ + { + "table": "build" + } + ] +} diff --git a/parser/testdata/03143_cte_scope/ast.json b/parser/testdata/03143_cte_scope/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03143_cte_scope/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03143_group_by_constant_secondary/ast.json b/parser/testdata/03143_group_by_constant_secondary/ast.json new file mode 100644 index 0000000000..1233b3fdf8 --- /dev/null +++ b/parser/testdata/03143_group_by_constant_secondary/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "parts": [ + "test_cluster_two_shards" + ] + }, + { + "parts": [ + "system" + ] + }, + { + "parts": [ + "one" + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "type": "String", + "value": "hi" + } + ], + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "group_by_two_level_threshold", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "group_by_two_level_threshold_bytes", + "value": { + "type": "Integer", + "value": 33950592 + } + } + ] + } + ] +} diff --git a/parser/testdata/03143_join_filter_push_down_filled_join_fix/ast.json b/parser/testdata/03143_join_filter_push_down_filled_join_fix/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03143_join_filter_push_down_filled_join_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03143_parallel_replicas_mat_view_bug/ast.json b/parser/testdata/03143_parallel_replicas_mat_view_bug/ast.json new file mode 100644 index 0000000000..7ca2c115d1 --- /dev/null +++ b/parser/testdata/03143_parallel_replicas_mat_view_bug/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "mv_table", + "tables": [ + { + "table": "mv_table" + } + ], + "sync": true +} diff --git a/parser/testdata/03143_ttl_in_system_parts_columns_table/ast.json b/parser/testdata/03143_ttl_in_system_parts_columns_table/ast.json new file mode 100644 index 0000000000..0b0cb0111c --- /dev/null +++ b/parser/testdata/03143_ttl_in_system_parts_columns_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_03143", + "tables": [ + { + "table": "test_03143" + } + ] +} diff --git a/parser/testdata/03143_window_functions_qualify_validation/ast.json b/parser/testdata/03143_window_functions_qualify_validation/ast.json new file mode 100644 index 0000000000..70a4a9735e --- /dev/null +++ b/parser/testdata/03143_window_functions_qualify_validation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "uk_price_paid", + "tables": [ + { + "table": "uk_price_paid" + } + ] +} diff --git a/parser/testdata/03144_aggregate_states_with_different_types/ast.json b/parser/testdata/03144_aggregate_states_with_different_types/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03144_aggregate_states_with_different_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03144_alter_column_and_read/ast.json b/parser/testdata/03144_alter_column_and_read/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/03144_alter_column_and_read/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/03144_asof_join_ddb_doubles/ast.json b/parser/testdata/03144_asof_join_ddb_doubles/ast.json new file mode 100644 index 0000000000..78aa8b9181 --- /dev/null +++ b/parser/testdata/03144_asof_join_ddb_doubles/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "full_sorting_merge" + } + } + ] +} diff --git a/parser/testdata/03144_invalid_filter/ast.json b/parser/testdata/03144_invalid_filter/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03144_invalid_filter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03145_asof_join_ddb_inequalities/ast.json b/parser/testdata/03145_asof_join_ddb_inequalities/ast.json new file mode 100644 index 0000000000..8a6c4b8de8 --- /dev/null +++ b/parser/testdata/03145_asof_join_ddb_inequalities/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "events0", + "tables": [ + { + "table": "events0" + } + ] +} diff --git a/parser/testdata/03145_unicode_quotes/ast.json b/parser/testdata/03145_unicode_quotes/ast.json new file mode 100644 index 0000000000..339191fdfd --- /dev/null +++ b/parser/testdata/03145_unicode_quotes/ast.json @@ -0,0 +1,15 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "This is an example of using English-style Unicode single quotes." + }, + "alias": "curly" + } + ] + } + ] +} diff --git a/parser/testdata/03146_bug47862/ast.json b/parser/testdata/03146_bug47862/ast.json new file mode 100644 index 0000000000..4ab67abacc --- /dev/null +++ b/parser/testdata/03146_bug47862/ast.json @@ -0,0 +1,151 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toInt64", + "arguments": [ + { + "parts": [ + "lookup_res" + ] + } + ], + "alias": "cast_res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "indexOf", + "arguments": [ + { + "parts": [ + "field_id" + ] + }, + { + "type": "Integer", + "value": 10 + } + ], + "alias": "val_idx" + }, + { + "expr": { + "array": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "110" + } + ] + }, + "index": { + "parts": [ + "val_idx" + ] + } + }, + "alias": "lookup_res" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 15 + } + ] + } + ] + } + ], + "alias": "field_id" + } + ] + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "val_idx" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "cast_res" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + }, + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03146_parameterized_view_with_date/ast.json b/parser/testdata/03146_parameterized_view_with_date/ast.json new file mode 100644 index 0000000000..2f33d73b99 --- /dev/null +++ b/parser/testdata/03146_parameterized_view_with_date/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table_pv", + "tables": [ + { + "table": "table_pv" + } + ] +} diff --git a/parser/testdata/03146_tpc_ds_grouping/ast.json b/parser/testdata/03146_tpc_ds_grouping/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03146_tpc_ds_grouping/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03147_asof_join_ddb_missing/ast.json b/parser/testdata/03147_asof_join_ddb_missing/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03147_asof_join_ddb_missing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03147_datetime64_constant_index_analysis/ast.json b/parser/testdata/03147_datetime64_constant_index_analysis/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03147_datetime64_constant_index_analysis/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03147_parquet_memory_tracking/ast.json b/parser/testdata/03147_parquet_memory_tracking/ast.json new file mode 100644 index 0000000000..cc60cb46fd --- /dev/null +++ b/parser/testdata/03147_parquet_memory_tracking/ast.json @@ -0,0 +1,65 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "03147_parquet_memory_tracking.parquet" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10000000 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "output_format_parquet_compression_method", + "value": { + "type": "String", + "value": "none" + } + }, + { + "name": "output_format_parquet_row_group_size", + "value": { + "type": "Integer", + "value": 1000000000000 + } + }, + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/03147_rows_before_limit_fix/ast.json b/parser/testdata/03147_rows_before_limit_fix/ast.json new file mode 100644 index 0000000000..067d542637 --- /dev/null +++ b/parser/testdata/03147_rows_before_limit_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "exact_rows_before_limit", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03147_table_function_loop/ast.json b/parser/testdata/03147_table_function_loop/ast.json new file mode 100644 index 0000000000..b371fb5ffb --- /dev/null +++ b/parser/testdata/03147_table_function_loop/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "loop", + "arguments": [ + { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/03147_table_function_loop_remote_storage/ast.json b/parser/testdata/03147_table_function_loop_remote_storage/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03147_table_function_loop_remote_storage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03148_asof_join_ddb_subquery/ast.json b/parser/testdata/03148_asof_join_ddb_subquery/ast.json new file mode 100644 index 0000000000..ce65b30440 --- /dev/null +++ b/parser/testdata/03148_asof_join_ddb_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "events", + "tables": [ + { + "table": "events" + } + ] +} diff --git a/parser/testdata/03148_mutations_virtual_columns/ast.json b/parser/testdata/03148_mutations_virtual_columns/ast.json new file mode 100644 index 0000000000..7783b0dcdd --- /dev/null +++ b/parser/testdata/03148_mutations_virtual_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_mut_virtuals", + "tables": [ + { + "table": "t_mut_virtuals" + } + ] +} diff --git a/parser/testdata/03148_query_log_used_dictionaries/ast.json b/parser/testdata/03148_query_log_used_dictionaries/ast.json new file mode 100644 index 0000000000..f0c247f8cf --- /dev/null +++ b/parser/testdata/03148_query_log_used_dictionaries/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03148_dictionary", + "tables": [ + { + "table": "03148_dictionary" + } + ] +} diff --git a/parser/testdata/03148_setting_max_streams_to_max_threads_ratio_overflow/ast.json b/parser/testdata/03148_setting_max_streams_to_max_threads_ratio_overflow/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03148_setting_max_streams_to_max_threads_ratio_overflow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03149_analyzer_join_projection_name/ast.json b/parser/testdata/03149_analyzer_join_projection_name/ast.json new file mode 100644 index 0000000000..297a1b94d4 --- /dev/null +++ b/parser/testdata/03149_analyzer_join_projection_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "groups_dict", + "tables": [ + { + "table": "groups_dict" + } + ] +} diff --git a/parser/testdata/03149_analyzer_join_projection_name_2/ast.json b/parser/testdata/03149_analyzer_join_projection_name_2/ast.json new file mode 100644 index 0000000000..297a1b94d4 --- /dev/null +++ b/parser/testdata/03149_analyzer_join_projection_name_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "groups_dict", + "tables": [ + { + "table": "groups_dict" + } + ] +} diff --git a/parser/testdata/03149_analyzer_window_redefinition/ast.json b/parser/testdata/03149_analyzer_window_redefinition/ast.json new file mode 100644 index 0000000000..bfc6c05841 --- /dev/null +++ b/parser/testdata/03149_analyzer_window_redefinition/ast.json @@ -0,0 +1,31 @@ +{ + "table": "users", + "columns": [ + { + "name": "uid", + "type": { + "name": "Int16" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "age", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03149_asof_join_ddb_timestamps/ast.json b/parser/testdata/03149_asof_join_ddb_timestamps/ast.json new file mode 100644 index 0000000000..8a6c4b8de8 --- /dev/null +++ b/parser/testdata/03149_asof_join_ddb_timestamps/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "events0", + "tables": [ + { + "table": "events0" + } + ] +} diff --git a/parser/testdata/03149_variant_pop_back_typo/ast.json b/parser/testdata/03149_variant_pop_back_typo/ast.json new file mode 100644 index 0000000000..e33f9b2f98 --- /dev/null +++ b/parser/testdata/03149_variant_pop_back_typo/ast.json @@ -0,0 +1,84 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Array", + "value": null + }, + { + "type": "String", + "value": "" + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "map", + "arguments": [ + { + "type": "String", + "value": "" + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "" + }, + { + "name": "toUInt128", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "use_variant_as_common_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03150_dynamic_type_mv_insert/ast.json b/parser/testdata/03150_dynamic_type_mv_insert/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03150_dynamic_type_mv_insert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03150_grouping_sets_use_nulls_pushdown/ast.json b/parser/testdata/03150_grouping_sets_use_nulls_pushdown/ast.json new file mode 100644 index 0000000000..8b31cd1870 --- /dev/null +++ b/parser/testdata/03150_grouping_sets_use_nulls_pushdown/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_grouping_sets_predicate", + "tables": [ + { + "table": "test_grouping_sets_predicate" + } + ] +} diff --git a/parser/testdata/03150_infer_type_variant/ast.json b/parser/testdata/03150_infer_type_variant/ast.json new file mode 100644 index 0000000000..cd2e0a2682 --- /dev/null +++ b/parser/testdata/03150_infer_type_variant/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_try_infer_variants", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03150_trace_log_add_build_id/ast.json b/parser/testdata/03150_trace_log_add_build_id/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/03150_trace_log_add_build_id/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03150_url_hash_non_constant_level/ast.json b/parser/testdata/03150_url_hash_non_constant_level/ast.json new file mode 100644 index 0000000000..4c3b2a6edc --- /dev/null +++ b/parser/testdata/03150_url_hash_non_constant_level/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "with": [ + { + "name": "url", + "query": { + "type": "String", + "value": "https://www3.botinok.co.edu.il/~kozlevich/CGI-BIN/WEBSIT~0.DLL?longptr=0xFFFFFFFF\u0026ONERR=CONTINUE#!PGNUM=99" + } + } + ], + "columns": [ + { + "name": "URLHash", + "arguments": [ + { + "parts": [ + "url" + ] + }, + { + "name": "arrayJoin", + "arguments": [ + { + "name": "range", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03151_analyzer_view_read_only_necessary_columns/ast.json b/parser/testdata/03151_analyzer_view_read_only_necessary_columns/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03151_analyzer_view_read_only_necessary_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03151_dynamic_type_scale_max_types/ast.json b/parser/testdata/03151_dynamic_type_scale_max_types/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03151_dynamic_type_scale_max_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03151_external_cross_join/ast.json b/parser/testdata/03151_external_cross_join/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03151_external_cross_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03151_pmj_join_non_procssed_clash/ast.json b/parser/testdata/03151_pmj_join_non_procssed_clash/ast.json new file mode 100644 index 0000000000..ac5c54b4e8 --- /dev/null +++ b/parser/testdata/03151_pmj_join_non_procssed_clash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "partial_merge" + } + } + ] +} diff --git a/parser/testdata/03151_redundant_distinct_with_window/ast.json b/parser/testdata/03151_redundant_distinct_with_window/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/03151_redundant_distinct_with_window/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/03152_analyzer_columns_list/ast.json b/parser/testdata/03152_analyzer_columns_list/ast.json new file mode 100644 index 0000000000..f4766408db --- /dev/null +++ b/parser/testdata/03152_analyzer_columns_list/ast.json @@ -0,0 +1,38 @@ +{ + "table": "test", + "columns": [ + { + "name": "foo", + "type": { + "name": "String" + } + }, + { + "name": "bar", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "foo" + ] + }, + { + "parts": [ + "bar" + ] + } + ] + } + ] +} diff --git a/parser/testdata/03152_dynamic_type_simple/ast.json b/parser/testdata/03152_dynamic_type_simple/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03152_dynamic_type_simple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03152_join_filter_push_down_equivalent_columns/ast.json b/parser/testdata/03152_join_filter_push_down_equivalent_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03152_join_filter_push_down_equivalent_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03152_trailing_comma_in_columns_list_in_insert/ast.json b/parser/testdata/03152_trailing_comma_in_columns_list_in_insert/ast.json new file mode 100644 index 0000000000..0cdd13346d --- /dev/null +++ b/parser/testdata/03152_trailing_comma_in_columns_list_in_insert/ast.json @@ -0,0 +1,24 @@ +{ + "temporary": true, + "table": "test", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt8" + } + }, + { + "name": "b", + "type": { + "name": "UInt8" + } + }, + { + "name": "c", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/03153_dynamic_type_empty/ast.json b/parser/testdata/03153_dynamic_type_empty/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03153_dynamic_type_empty/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03153_trailing_comma_in_values_list_in_insert/ast.json b/parser/testdata/03153_trailing_comma_in_values_list_in_insert/ast.json new file mode 100644 index 0000000000..0cdd13346d --- /dev/null +++ b/parser/testdata/03153_trailing_comma_in_values_list_in_insert/ast.json @@ -0,0 +1,24 @@ +{ + "temporary": true, + "table": "test", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt8" + } + }, + { + "name": "b", + "type": { + "name": "UInt8" + } + }, + { + "name": "c", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/03154_recursive_cte_distributed/ast.json b/parser/testdata/03154_recursive_cte_distributed/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03154_recursive_cte_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03155_analyzer_interpolate/ast.json b/parser/testdata/03155_analyzer_interpolate/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03155_analyzer_interpolate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03155_datasketches_ubsan/ast.json b/parser/testdata/03155_datasketches_ubsan/ast.json new file mode 100644 index 0000000000..829663ce07 --- /dev/null +++ b/parser/testdata/03155_datasketches_ubsan/ast.json @@ -0,0 +1,85 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqTheta", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "uniqTheta distinct" + }, + { + "type": "Integer", + "value": 18 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "where": { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 16 + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03155_in_nested_subselects/ast.json b/parser/testdata/03155_in_nested_subselects/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03155_in_nested_subselects/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03156_analyzer_array_join_distributed/ast.json b/parser/testdata/03156_analyzer_array_join_distributed/ast.json new file mode 100644 index 0000000000..edb362594e --- /dev/null +++ b/parser/testdata/03156_analyzer_array_join_distributed/ast.json @@ -0,0 +1,34 @@ +{ + "table": "arrays_test", + "columns": [ + { + "name": "s", + "type": { + "name": "String" + } + }, + { + "name": "arr", + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "s" + ] + } + ] +} diff --git a/parser/testdata/03156_group_concat/ast.json b/parser/testdata/03156_group_concat/ast.json new file mode 100644 index 0000000000..33b00b6922 --- /dev/null +++ b/parser/testdata/03156_group_concat/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_groupConcat", + "tables": [ + { + "table": "test_groupConcat" + } + ] +} diff --git a/parser/testdata/03156_nullable_number_tips/ast.json b/parser/testdata/03156_nullable_number_tips/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/03156_nullable_number_tips/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03156_tuple_map_low_cardinality/ast.json b/parser/testdata/03156_tuple_map_low_cardinality/ast.json new file mode 100644 index 0000000000..bf20ce088c --- /dev/null +++ b/parser/testdata/03156_tuple_map_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_map_lc", + "tables": [ + { + "table": "t_map_lc" + } + ] +} diff --git a/parser/testdata/03157_dynamic_type_json/ast.json b/parser/testdata/03157_dynamic_type_json/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03157_dynamic_type_json/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03157_negative_positional_arguments_ubsan/ast.json b/parser/testdata/03157_negative_positional_arguments_ubsan/ast.json new file mode 100644 index 0000000000..8eb0f0eee1 --- /dev/null +++ b/parser/testdata/03157_negative_positional_arguments_ubsan/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "group_by": [ + { + "op": "-", + "operand": { + "type": "Integer", + "value": 9223372036854775808 + } + } + ] + } + ] +} diff --git a/parser/testdata/03158_dynamic_type_from_variant/ast.json b/parser/testdata/03158_dynamic_type_from_variant/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03158_dynamic_type_from_variant/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03159_dynamic_type_all_types/ast.json b/parser/testdata/03159_dynamic_type_all_types/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03159_dynamic_type_all_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03160_dynamic_type_agg/ast.json b/parser/testdata/03160_dynamic_type_agg/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03160_dynamic_type_agg/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03161_cnf_reduction/ast.json b/parser/testdata/03161_cnf_reduction/ast.json new file mode 100644 index 0000000000..5e3c3e761f --- /dev/null +++ b/parser/testdata/03161_cnf_reduction/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03161_table", + "tables": [ + { + "table": "03161_table" + } + ] +} diff --git a/parser/testdata/03161_create_table_as_mv/ast.json b/parser/testdata/03161_create_table_as_mv/ast.json new file mode 100644 index 0000000000..09b86d5724 --- /dev/null +++ b/parser/testdata/03161_create_table_as_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "base_table", + "tables": [ + { + "table": "base_table" + } + ] +} diff --git a/parser/testdata/03161_ipv4_ipv6_equality/ast.json b/parser/testdata/03161_ipv4_ipv6_equality/ast.json new file mode 100644 index 0000000000..c2cba78552 --- /dev/null +++ b/parser/testdata/03161_ipv4_ipv6_equality/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toIPv4", + "arguments": [ + { + "type": "String", + "value": "127.0.0.1" + } + ] + }, + "op": "=", + "right": { + "name": "toIPv6", + "arguments": [ + { + "type": "String", + "value": "::ffff:127.0.0.1" + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03161_lightweight_delete_projection/ast.json b/parser/testdata/03161_lightweight_delete_projection/ast.json new file mode 100644 index 0000000000..de29dd447d --- /dev/null +++ b/parser/testdata/03161_lightweight_delete_projection/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "lightweight_deletes_sync", + "value": { + "type": "Integer", + "value": 2 + } + }, + { + "name": "alter_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03162_dynamic_type_nested/ast.json b/parser/testdata/03162_dynamic_type_nested/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03162_dynamic_type_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03163_dynamic_as_supertype/ast.json b/parser/testdata/03163_dynamic_as_supertype/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03163_dynamic_as_supertype/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03164_adapting_parquet_reader_output_size/ast.json b/parser/testdata/03164_adapting_parquet_reader_output_size/ast.json new file mode 100644 index 0000000000..fecc18cd74 --- /dev/null +++ b/parser/testdata/03164_adapting_parquet_reader_output_size/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_insert_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03164_analyzer_global_in_alias/ast.json b/parser/testdata/03164_analyzer_global_in_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03164_analyzer_global_in_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03164_analyzer_rewrite_aggregate_function_with_if/ast.json b/parser/testdata/03164_analyzer_rewrite_aggregate_function_with_if/ast.json new file mode 100644 index 0000000000..7b5f7a8046 --- /dev/null +++ b/parser/testdata/03164_analyzer_rewrite_aggregate_function_with_if/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countIf", + "arguments": [ + { + "name": "multiIf", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 2 + } + }, + { + "type": "Null", + "value": null + }, + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 4 + } + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03164_analyzer_validate_tree_size/ast.json b/parser/testdata/03164_analyzer_validate_tree_size/ast.json new file mode 100644 index 0000000000..2bbd946c18 --- /dev/null +++ b/parser/testdata/03164_analyzer_validate_tree_size/ast.json @@ -0,0 +1,6008 @@ +{ + "table": "t", + "columns": [ + { + "name": "c1", + "type": { + "name": "Int64" + } + }, + { + "name": "c2", + "type": { + "name": "Int64" + } + }, + { + "name": "c3", + "type": { + "name": "Int64" + } + }, + { + "name": "c4", + "type": { + "name": "Int64" + } + }, + { + "name": "c5", + "type": { + "name": "Int64" + } + }, + { + "name": "c6", + "type": { + "name": "Int64" + } + }, + { + "name": "c7", + "type": { + "name": "Int64" + } + }, + { + "name": "c8", + "type": { + "name": "Int64" + } + }, + { + "name": "c9", + "type": { + "name": "Int64" + } + }, + { + "name": "c10", + "type": { + "name": "Int64" + } + }, + { + "name": "c11", + "type": { + "name": "Int64" + } + }, + { + "name": "c12", + "type": { + "name": "Int64" + } + }, + { + "name": "c13", + "type": { + "name": "Int64" + } + }, + { + "name": "c14", + "type": { + "name": "Int64" + } + }, + { + "name": "c15", + "type": { + "name": "Int64" + } + }, + { + "name": "c16", + "type": { + "name": "Int64" + } + }, + { + "name": "c17", + "type": { + "name": "Int64" + } + }, + { + "name": "c18", + "type": { + "name": "Int64" + } + }, + { + "name": "c19", + "type": { + "name": "Int64" + } + }, + { + "name": "c20", + "type": { + "name": "Int64" + } + }, + { + "name": "c21", + "type": { + "name": "Int64" + } + }, + { + "name": "c22", + "type": { + "name": "Int64" + } + }, + { + "name": "c23", + "type": { + "name": "Int64" + } + }, + { + "name": "c24", + "type": { + "name": "Int64" + } + }, + { + "name": "c25", + "type": { + "name": "Int64" + } + }, + { + "name": "c26", + "type": { + "name": "Int64" + } + }, + { + "name": "c27", + "type": { + "name": "Int64" + } + }, + { + "name": "c28", + "type": { + "name": "Int64" + } + }, + { + "name": "c29", + "type": { + "name": "Int64" + } + }, + { + "name": "c30", + "type": { + "name": "Int64" + } + }, + { + "name": "c31", + "type": { + "name": "Int64" + } + }, + { + "name": "c32", + "type": { + "name": "Int64" + } + }, + { + "name": "c33", + "type": { + "name": "Int64" + } + }, + { + "name": "c34", + "type": { + "name": "Int64" + } + }, + { + "name": "c35", + "type": { + "name": "Int64" + } + }, + { + "name": "c36", + "type": { + "name": "Int64" + } + }, + { + "name": "c37", + "type": { + "name": "Int64" + } + }, + { + "name": "c38", + "type": { + "name": "Int64" + } + }, + { + "name": "c39", + "type": { + "name": "Int64" + } + }, + { + "name": "c40", + "type": { + "name": "Int64" + } + }, + { + "name": "c41", + "type": { + "name": "Int64" + } + }, + { + "name": "c42", + "type": { + "name": "Int64" + } + }, + { + "name": "c43", + "type": { + "name": "Int64" + } + }, + { + "name": "c44", + "type": { + "name": "Int64" + } + }, + { + "name": "c45", + "type": { + "name": "Int64" + } + }, + { + "name": "c46", + "type": { + "name": "Int64" + } + }, + { + "name": "c47", + "type": { + "name": "Int64" + } + }, + { + "name": "c48", + "type": { + "name": "Int64" + } + }, + { + "name": "c49", + "type": { + "name": "Int64" + } + }, + { + "name": "c50", + "type": { + "name": "Int64" + } + }, + { + "name": "c51", + "type": { + "name": "Int64" + } + }, + { + "name": "c52", + "type": { + "name": "Int64" + } + }, + { + "name": "c53", + "type": { + "name": "Int64" + } + }, + { + "name": "c54", + "type": { + "name": "Int64" + } + }, + { + "name": "c55", + "type": { + "name": "Int64" + } + }, + { + "name": "c56", + "type": { + "name": "Int64" + } + }, + { + "name": "c57", + "type": { + "name": "Int64" + } + }, + { + "name": "c58", + "type": { + "name": "Int64" + } + }, + { + "name": "c59", + "type": { + "name": "Int64" + } + }, + { + "name": "c60", + "type": { + "name": "Int64" + } + }, + { + "name": "c61", + "type": { + "name": "Int64" + } + }, + { + "name": "c62", + "type": { + "name": "Int64" + } + }, + { + "name": "c63", + "type": { + "name": "Int64" + } + }, + { + "name": "c64", + "type": { + "name": "Int64" + } + }, + { + "name": "c65", + "type": { + "name": "Int64" + } + }, + { + "name": "c66", + "type": { + "name": "Int64" + } + }, + { + "name": "c67", + "type": { + "name": "Int64" + } + }, + { + "name": "c68", + "type": { + "name": "Int64" + } + }, + { + "name": "c69", + "type": { + "name": "Int64" + } + }, + { + "name": "c70", + "type": { + "name": "Int64" + } + }, + { + "name": "c71", + "type": { + "name": "Int64" + } + }, + { + "name": "c72", + "type": { + "name": "Int64" + } + }, + { + "name": "c73", + "type": { + "name": "Int64" + } + }, + { + "name": "c74", + "type": { + "name": "Int64" + } + }, + { + "name": "c75", + "type": { + "name": "Int64" + } + }, + { + "name": "c76", + "type": { + "name": "Int64" + } + }, + { + "name": "c77", + "type": { + "name": "Int64" + } + }, + { + "name": "c78", + "type": { + "name": "Int64" + } + }, + { + "name": "c79", + "type": { + "name": "Int64" + } + }, + { + "name": "c80", + "type": { + "name": "Int64" + } + }, + { + "name": "c81", + "type": { + "name": "Int64" + } + }, + { + "name": "c82", + "type": { + "name": "Int64" + } + }, + { + "name": "c83", + "type": { + "name": "Int64" + } + }, + { + "name": "c84", + "type": { + "name": "Int64" + } + }, + { + "name": "c85", + "type": { + "name": "Int64" + } + }, + { + "name": "c86", + "type": { + "name": "Int64" + } + }, + { + "name": "c87", + "type": { + "name": "Int64" + } + }, + { + "name": "c88", + "type": { + "name": "Int64" + } + }, + { + "name": "c89", + "type": { + "name": "Int64" + } + }, + { + "name": "c90", + "type": { + "name": "Int64" + } + }, + { + "name": "c91", + "type": { + "name": "Int64" + } + }, + { + "name": "c92", + "type": { + "name": "Int64" + } + }, + { + "name": "c93", + "type": { + "name": "Int64" + } + }, + { + "name": "c94", + "type": { + "name": "Int64" + } + }, + { + "name": "c95", + "type": { + "name": "Int64" + } + }, + { + "name": "c96", + "type": { + "name": "Int64" + } + }, + { + "name": "c97", + "type": { + "name": "Int64" + } + }, + { + "name": "c98", + "type": { + "name": "Int64" + } + }, + { + "name": "c99", + "type": { + "name": "Int64" + } + }, + { + "name": "c100", + "type": { + "name": "Int64" + } + }, + { + "name": "c101", + "type": { + "name": "Int64" + } + }, + { + "name": "c102", + "type": { + "name": "Int64" + } + }, + { + "name": "c103", + "type": { + "name": "Int64" + } + }, + { + "name": "c104", + "type": { + "name": "Int64" + } + }, + { + "name": "c105", + "type": { + "name": "Int64" + } + }, + { + "name": "c106", + "type": { + "name": "Int64" + } + }, + { + "name": "c107", + "type": { + "name": "Int64" + } + }, + { + "name": "c108", + "type": { + "name": "Int64" + } + }, + { + "name": "c109", + "type": { + "name": "Int64" + } + }, + { + "name": "c110", + "type": { + "name": "Int64" + } + }, + { + "name": "c111", + "type": { + "name": "Int64" + } + }, + { + "name": "c112", + "type": { + "name": "Int64" + } + }, + { + "name": "c113", + "type": { + "name": "Int64" + } + }, + { + "name": "c114", + "type": { + "name": "Int64" + } + }, + { + "name": "c115", + "type": { + "name": "Int64" + } + }, + { + "name": "c116", + "type": { + "name": "Int64" + } + }, + { + "name": "c117", + "type": { + "name": "Int64" + } + }, + { + "name": "c118", + "type": { + "name": "Int64" + } + }, + { + "name": "c119", + "type": { + "name": "Int64" + } + }, + { + "name": "c120", + "type": { + "name": "Int64" + } + }, + { + "name": "c121", + "type": { + "name": "Int64" + } + }, + { + "name": "c122", + "type": { + "name": "Int64" + } + }, + { + "name": "c123", + "type": { + "name": "Int64" + } + }, + { + "name": "c124", + "type": { + "name": "Int64" + } + }, + { + "name": "c125", + "type": { + "name": "Int64" + } + }, + { + "name": "c126", + "type": { + "name": "Int64" + } + }, + { + "name": "c127", + "type": { + "name": "Int64" + } + }, + { + "name": "c128", + "type": { + "name": "Int64" + } + }, + { + "name": "c129", + "type": { + "name": "Int64" + } + }, + { + "name": "c130", + "type": { + "name": "Int64" + } + }, + { + "name": "c131", + "type": { + "name": "Int64" + } + }, + { + "name": "c132", + "type": { + "name": "Int64" + } + }, + { + "name": "c133", + "type": { + "name": "Int64" + } + }, + { + "name": "c134", + "type": { + "name": "Int64" + } + }, + { + "name": "c135", + "type": { + "name": "Int64" + } + }, + { + "name": "c136", + "type": { + "name": "Int64" + } + }, + { + "name": "c137", + "type": { + "name": "Int64" + } + }, + { + "name": "c138", + "type": { + "name": "Int64" + } + }, + { + "name": "c139", + "type": { + "name": "Int64" + } + }, + { + "name": "c140", + "type": { + "name": "Int64" + } + }, + { + "name": "c141", + "type": { + "name": "Int64" + } + }, + { + "name": "c142", + "type": { + "name": "Int64" + } + }, + { + "name": "c143", + "type": { + "name": "Int64" + } + }, + { + "name": "c144", + "type": { + "name": "Int64" + } + }, + { + "name": "c145", + "type": { + "name": "Int64" + } + }, + { + "name": "c146", + "type": { + "name": "Int64" + } + }, + { + "name": "c147", + "type": { + "name": "Int64" + } + }, + { + "name": "c148", + "type": { + "name": "Int64" + } + }, + { + "name": "c149", + "type": { + "name": "Int64" + } + }, + { + "name": "c150", + "type": { + "name": "Int64" + } + }, + { + "name": "c151", + "type": { + "name": "Int64" + } + }, + { + "name": "c152", + "type": { + "name": "Int64" + } + }, + { + "name": "c153", + "type": { + "name": "Int64" + } + }, + { + "name": "c154", + "type": { + "name": "Int64" + } + }, + { + "name": "c155", + "type": { + "name": "Int64" + } + }, + { + "name": "c156", + "type": { + "name": "Int64" + } + }, + { + "name": "c157", + "type": { + "name": "Int64" + } + }, + { + "name": "c158", + "type": { + "name": "Int64" + } + }, + { + "name": "c159", + "type": { + "name": "Int64" + } + }, + { + "name": "c160", + "type": { + "name": "Int64" + } + }, + { + "name": "c161", + "type": { + "name": "Int64" + } + }, + { + "name": "c162", + "type": { + "name": "Int64" + } + }, + { + "name": "c163", + "type": { + "name": "Int64" + } + }, + { + "name": "c164", + "type": { + "name": "Int64" + } + }, + { + "name": "c165", + "type": { + "name": "Int64" + } + }, + { + "name": "c166", + "type": { + "name": "Int64" + } + }, + { + "name": "c167", + "type": { + "name": "Int64" + } + }, + { + "name": "c168", + "type": { + "name": "Int64" + } + }, + { + "name": "c169", + "type": { + "name": "Int64" + } + }, + { + "name": "c170", + "type": { + "name": "Int64" + } + }, + { + "name": "c171", + "type": { + "name": "Int64" + } + }, + { + "name": "c172", + "type": { + "name": "Int64" + } + }, + { + "name": "c173", + "type": { + "name": "Int64" + } + }, + { + "name": "c174", + "type": { + "name": "Int64" + } + }, + { + "name": "c175", + "type": { + "name": "Int64" + } + }, + { + "name": "c176", + "type": { + "name": "Int64" + } + }, + { + "name": "c177", + "type": { + "name": "Int64" + } + }, + { + "name": "c178", + "type": { + "name": "Int64" + } + }, + { + "name": "c179", + "type": { + "name": "Int64" + } + }, + { + "name": "c180", + "type": { + "name": "Int64" + } + }, + { + "name": "c181", + "type": { + "name": "Int64" + } + }, + { + "name": "c182", + "type": { + "name": "Int64" + } + }, + { + "name": "c183", + "type": { + "name": "Int64" + } + }, + { + "name": "c184", + "type": { + "name": "Int64" + } + }, + { + "name": "c185", + "type": { + "name": "Int64" + } + }, + { + "name": "c186", + "type": { + "name": "Int64" + } + }, + { + "name": "c187", + "type": { + "name": "Int64" + } + }, + { + "name": "c188", + "type": { + "name": "Int64" + } + }, + { + "name": "c189", + "type": { + "name": "Int64" + } + }, + { + "name": "c190", + "type": { + "name": "Int64" + } + }, + { + "name": "c191", + "type": { + "name": "Int64" + } + }, + { + "name": "c192", + "type": { + "name": "Int64" + } + }, + { + "name": "c193", + "type": { + "name": "Int64" + } + }, + { + "name": "c194", + "type": { + "name": "Int64" + } + }, + { + "name": "c195", + "type": { + "name": "Int64" + } + }, + { + "name": "c196", + "type": { + "name": "Int64" + } + }, + { + "name": "c197", + "type": { + "name": "Int64" + } + }, + { + "name": "c198", + "type": { + "name": "Int64" + } + }, + { + "name": "c199", + "type": { + "name": "Int64" + } + }, + { + "name": "c200", + "type": { + "name": "Int64" + } + }, + { + "name": "c201", + "type": { + "name": "Int64" + } + }, + { + "name": "c202", + "type": { + "name": "Int64" + } + }, + { + "name": "c203", + "type": { + "name": "Int64" + } + }, + { + "name": "c204", + "type": { + "name": "Int64" + } + }, + { + "name": "c205", + "type": { + "name": "Int64" + } + }, + { + "name": "c206", + "type": { + "name": "Int64" + } + }, + { + "name": "c207", + "type": { + "name": "Int64" + } + }, + { + "name": "c208", + "type": { + "name": "Int64" + } + }, + { + "name": "c209", + "type": { + "name": "Int64" + } + }, + { + "name": "c210", + "type": { + "name": "Int64" + } + }, + { + "name": "c211", + "type": { + "name": "Int64" + } + }, + { + "name": "c212", + "type": { + "name": "Int64" + } + }, + { + "name": "c213", + "type": { + "name": "Int64" + } + }, + { + "name": "c214", + "type": { + "name": "Int64" + } + }, + { + "name": "c215", + "type": { + "name": "Int64" + } + }, + { + "name": "c216", + "type": { + "name": "Int64" + } + }, + { + "name": "c217", + "type": { + "name": "Int64" + } + }, + { + "name": "c218", + "type": { + "name": "Int64" + } + }, + { + "name": "c219", + "type": { + "name": "Int64" + } + }, + { + "name": "c220", + "type": { + "name": "Int64" + } + }, + { + "name": "c221", + "type": { + "name": "Int64" + } + }, + { + "name": "c222", + "type": { + "name": "Int64" + } + }, + { + "name": "c223", + "type": { + "name": "Int64" + } + }, + { + "name": "c224", + "type": { + "name": "Int64" + } + }, + { + "name": "c225", + "type": { + "name": "Int64" + } + }, + { + "name": "c226", + "type": { + "name": "Int64" + } + }, + { + "name": "c227", + "type": { + "name": "Int64" + } + }, + { + "name": "c228", + "type": { + "name": "Int64" + } + }, + { + "name": "c229", + "type": { + "name": "Int64" + } + }, + { + "name": "c230", + "type": { + "name": "Int64" + } + }, + { + "name": "c231", + "type": { + "name": "Int64" + } + }, + { + "name": "c232", + "type": { + "name": "Int64" + } + }, + { + "name": "c233", + "type": { + "name": "Int64" + } + }, + { + "name": "c234", + "type": { + "name": "Int64" + } + }, + { + "name": "c235", + "type": { + "name": "Int64" + } + }, + { + "name": "c236", + "type": { + "name": "Int64" + } + }, + { + "name": "c237", + "type": { + "name": "Int64" + } + }, + { + "name": "c238", + "type": { + "name": "Int64" + } + }, + { + "name": "c239", + "type": { + "name": "Int64" + } + }, + { + "name": "c240", + "type": { + "name": "Int64" + } + }, + { + "name": "c241", + "type": { + "name": "Int64" + } + }, + { + "name": "c242", + "type": { + "name": "Int64" + } + }, + { + "name": "c243", + "type": { + "name": "Int64" + } + }, + { + "name": "c244", + "type": { + "name": "Int64" + } + }, + { + "name": "c245", + "type": { + "name": "Int64" + } + }, + { + "name": "c246", + "type": { + "name": "Int64" + } + }, + { + "name": "c247", + "type": { + "name": "Int64" + } + }, + { + "name": "c248", + "type": { + "name": "Int64" + } + }, + { + "name": "c249", + "type": { + "name": "Int64" + } + }, + { + "name": "c250", + "type": { + "name": "Int64" + } + }, + { + "name": "c251", + "type": { + "name": "Int64" + } + }, + { + "name": "c252", + "type": { + "name": "Int64" + } + }, + { + "name": "c253", + "type": { + "name": "Int64" + } + }, + { + "name": "c254", + "type": { + "name": "Int64" + } + }, + { + "name": "c255", + "type": { + "name": "Int64" + } + }, + { + "name": "c256", + "type": { + "name": "Int64" + } + }, + { + "name": "c257", + "type": { + "name": "Int64" + } + }, + { + "name": "c258", + "type": { + "name": "Int64" + } + }, + { + "name": "c259", + "type": { + "name": "Int64" + } + }, + { + "name": "c260", + "type": { + "name": "Int64" + } + }, + { + "name": "c261", + "type": { + "name": "Int64" + } + }, + { + "name": "c262", + "type": { + "name": "Int64" + } + }, + { + "name": "c263", + "type": { + "name": "Int64" + } + }, + { + "name": "c264", + "type": { + "name": "Int64" + } + }, + { + "name": "c265", + "type": { + "name": "Int64" + } + }, + { + "name": "c266", + "type": { + "name": "Int64" + } + }, + { + "name": "c267", + "type": { + "name": "Int64" + } + }, + { + "name": "c268", + "type": { + "name": "Int64" + } + }, + { + "name": "c269", + "type": { + "name": "Int64" + } + }, + { + "name": "c270", + "type": { + "name": "Int64" + } + }, + { + "name": "c271", + "type": { + "name": "Int64" + } + }, + { + "name": "c272", + "type": { + "name": "Int64" + } + }, + { + "name": "c273", + "type": { + "name": "Int64" + } + }, + { + "name": "c274", + "type": { + "name": "Int64" + } + }, + { + "name": "c275", + "type": { + "name": "Int64" + } + }, + { + "name": "c276", + "type": { + "name": "Int64" + } + }, + { + "name": "c277", + "type": { + "name": "Int64" + } + }, + { + "name": "c278", + "type": { + "name": "Int64" + } + }, + { + "name": "c279", + "type": { + "name": "Int64" + } + }, + { + "name": "c280", + "type": { + "name": "Int64" + } + }, + { + "name": "c281", + "type": { + "name": "Int64" + } + }, + { + "name": "c282", + "type": { + "name": "Int64" + } + }, + { + "name": "c283", + "type": { + "name": "Int64" + } + }, + { + "name": "c284", + "type": { + "name": "Int64" + } + }, + { + "name": "c285", + "type": { + "name": "Int64" + } + }, + { + "name": "c286", + "type": { + "name": "Int64" + } + }, + { + "name": "c287", + "type": { + "name": "Int64" + } + }, + { + "name": "c288", + "type": { + "name": "Int64" + } + }, + { + "name": "c289", + "type": { + "name": "Int64" + } + }, + { + "name": "c290", + "type": { + "name": "Int64" + } + }, + { + "name": "c291", + "type": { + "name": "Int64" + } + }, + { + "name": "c292", + "type": { + "name": "Int64" + } + }, + { + "name": "c293", + "type": { + "name": "Int64" + } + }, + { + "name": "c294", + "type": { + "name": "Int64" + } + }, + { + "name": "c295", + "type": { + "name": "Int64" + } + }, + { + "name": "c296", + "type": { + "name": "Int64" + } + }, + { + "name": "c297", + "type": { + "name": "Int64" + } + }, + { + "name": "c298", + "type": { + "name": "Int64" + } + }, + { + "name": "c299", + "type": { + "name": "Int64" + } + }, + { + "name": "c300", + "type": { + "name": "Int64" + } + }, + { + "name": "c301", + "type": { + "name": "Int64" + } + }, + { + "name": "c302", + "type": { + "name": "Int64" + } + }, + { + "name": "c303", + "type": { + "name": "Int64" + } + }, + { + "name": "c304", + "type": { + "name": "Int64" + } + }, + { + "name": "c305", + "type": { + "name": "Int64" + } + }, + { + "name": "c306", + "type": { + "name": "Int64" + } + }, + { + "name": "c307", + "type": { + "name": "Int64" + } + }, + { + "name": "c308", + "type": { + "name": "Int64" + } + }, + { + "name": "c309", + "type": { + "name": "Int64" + } + }, + { + "name": "c310", + "type": { + "name": "Int64" + } + }, + { + "name": "c311", + "type": { + "name": "Int64" + } + }, + { + "name": "c312", + "type": { + "name": "Int64" + } + }, + { + "name": "c313", + "type": { + "name": "Int64" + } + }, + { + "name": "c314", + "type": { + "name": "Int64" + } + }, + { + "name": "c315", + "type": { + "name": "Int64" + } + }, + { + "name": "c316", + "type": { + "name": "Int64" + } + }, + { + "name": "c317", + "type": { + "name": "Int64" + } + }, + { + "name": "c318", + "type": { + "name": "Int64" + } + }, + { + "name": "c319", + "type": { + "name": "Int64" + } + }, + { + "name": "c320", + "type": { + "name": "Int64" + } + }, + { + "name": "c321", + "type": { + "name": "Int64" + } + }, + { + "name": "c322", + "type": { + "name": "Int64" + } + }, + { + "name": "c323", + "type": { + "name": "Int64" + } + }, + { + "name": "c324", + "type": { + "name": "Int64" + } + }, + { + "name": "c325", + "type": { + "name": "Int64" + } + }, + { + "name": "c326", + "type": { + "name": "Int64" + } + }, + { + "name": "c327", + "type": { + "name": "Int64" + } + }, + { + "name": "c328", + "type": { + "name": "Int64" + } + }, + { + "name": "c329", + "type": { + "name": "Int64" + } + }, + { + "name": "c330", + "type": { + "name": "Int64" + } + }, + { + "name": "c331", + "type": { + "name": "Int64" + } + }, + { + "name": "c332", + "type": { + "name": "Int64" + } + }, + { + "name": "c333", + "type": { + "name": "Int64" + } + }, + { + "name": "c334", + "type": { + "name": "Int64" + } + }, + { + "name": "c335", + "type": { + "name": "Int64" + } + }, + { + "name": "c336", + "type": { + "name": "Int64" + } + }, + { + "name": "c337", + "type": { + "name": "Int64" + } + }, + { + "name": "c338", + "type": { + "name": "Int64" + } + }, + { + "name": "c339", + "type": { + "name": "Int64" + } + }, + { + "name": "c340", + "type": { + "name": "Int64" + } + }, + { + "name": "c341", + "type": { + "name": "Int64" + } + }, + { + "name": "c342", + "type": { + "name": "Int64" + } + }, + { + "name": "c343", + "type": { + "name": "Int64" + } + }, + { + "name": "c344", + "type": { + "name": "Int64" + } + }, + { + "name": "c345", + "type": { + "name": "Int64" + } + }, + { + "name": "c346", + "type": { + "name": "Int64" + } + }, + { + "name": "c347", + "type": { + "name": "Int64" + } + }, + { + "name": "c348", + "type": { + "name": "Int64" + } + }, + { + "name": "c349", + "type": { + "name": "Int64" + } + }, + { + "name": "c350", + "type": { + "name": "Int64" + } + }, + { + "name": "c351", + "type": { + "name": "Int64" + } + }, + { + "name": "c352", + "type": { + "name": "Int64" + } + }, + { + "name": "c353", + "type": { + "name": "Int64" + } + }, + { + "name": "c354", + "type": { + "name": "Int64" + } + }, + { + "name": "c355", + "type": { + "name": "Int64" + } + }, + { + "name": "c356", + "type": { + "name": "Int64" + } + }, + { + "name": "c357", + "type": { + "name": "Int64" + } + }, + { + "name": "c358", + "type": { + "name": "Int64" + } + }, + { + "name": "c359", + "type": { + "name": "Int64" + } + }, + { + "name": "c360", + "type": { + "name": "Int64" + } + }, + { + "name": "c361", + "type": { + "name": "Int64" + } + }, + { + "name": "c362", + "type": { + "name": "Int64" + } + }, + { + "name": "c363", + "type": { + "name": "Int64" + } + }, + { + "name": "c364", + "type": { + "name": "Int64" + } + }, + { + "name": "c365", + "type": { + "name": "Int64" + } + }, + { + "name": "c366", + "type": { + "name": "Int64" + } + }, + { + "name": "c367", + "type": { + "name": "Int64" + } + }, + { + "name": "c368", + "type": { + "name": "Int64" + } + }, + { + "name": "c369", + "type": { + "name": "Int64" + } + }, + { + "name": "c370", + "type": { + "name": "Int64" + } + }, + { + "name": "c371", + "type": { + "name": "Int64" + } + }, + { + "name": "c372", + "type": { + "name": "Int64" + } + }, + { + "name": "c373", + "type": { + "name": "Int64" + } + }, + { + "name": "c374", + "type": { + "name": "Int64" + } + }, + { + "name": "c375", + "type": { + "name": "Int64" + } + }, + { + "name": "c376", + "type": { + "name": "Int64" + } + }, + { + "name": "c377", + "type": { + "name": "Int64" + } + }, + { + "name": "c378", + "type": { + "name": "Int64" + } + }, + { + "name": "c379", + "type": { + "name": "Int64" + } + }, + { + "name": "c380", + "type": { + "name": "Int64" + } + }, + { + "name": "c381", + "type": { + "name": "Int64" + } + }, + { + "name": "c382", + "type": { + "name": "Int64" + } + }, + { + "name": "c383", + "type": { + "name": "Int64" + } + }, + { + "name": "c384", + "type": { + "name": "Int64" + } + }, + { + "name": "c385", + "type": { + "name": "Int64" + } + }, + { + "name": "c386", + "type": { + "name": "Int64" + } + }, + { + "name": "c387", + "type": { + "name": "Int64" + } + }, + { + "name": "c388", + "type": { + "name": "Int64" + } + }, + { + "name": "c389", + "type": { + "name": "Int64" + } + }, + { + "name": "c390", + "type": { + "name": "Int64" + } + }, + { + "name": "c391", + "type": { + "name": "Int64" + } + }, + { + "name": "c392", + "type": { + "name": "Int64" + } + }, + { + "name": "c393", + "type": { + "name": "Int64" + } + }, + { + "name": "c394", + "type": { + "name": "Int64" + } + }, + { + "name": "c395", + "type": { + "name": "Int64" + } + }, + { + "name": "c396", + "type": { + "name": "Int64" + } + }, + { + "name": "c397", + "type": { + "name": "Int64" + } + }, + { + "name": "c398", + "type": { + "name": "Int64" + } + }, + { + "name": "c399", + "type": { + "name": "Int64" + } + }, + { + "name": "c400", + "type": { + "name": "Int64" + } + }, + { + "name": "c401", + "type": { + "name": "Int64" + } + }, + { + "name": "c402", + "type": { + "name": "Int64" + } + }, + { + "name": "c403", + "type": { + "name": "Int64" + } + }, + { + "name": "c404", + "type": { + "name": "Int64" + } + }, + { + "name": "c405", + "type": { + "name": "Int64" + } + }, + { + "name": "c406", + "type": { + "name": "Int64" + } + }, + { + "name": "c407", + "type": { + "name": "Int64" + } + }, + { + "name": "c408", + "type": { + "name": "Int64" + } + }, + { + "name": "c409", + "type": { + "name": "Int64" + } + }, + { + "name": "c410", + "type": { + "name": "Int64" + } + }, + { + "name": "c411", + "type": { + "name": "Int64" + } + }, + { + "name": "c412", + "type": { + "name": "Int64" + } + }, + { + "name": "c413", + "type": { + "name": "Int64" + } + }, + { + "name": "c414", + "type": { + "name": "Int64" + } + }, + { + "name": "c415", + "type": { + "name": "Int64" + } + }, + { + "name": "c416", + "type": { + "name": "Int64" + } + }, + { + "name": "c417", + "type": { + "name": "Int64" + } + }, + { + "name": "c418", + "type": { + "name": "Int64" + } + }, + { + "name": "c419", + "type": { + "name": "Int64" + } + }, + { + "name": "c420", + "type": { + "name": "Int64" + } + }, + { + "name": "c421", + "type": { + "name": "Int64" + } + }, + { + "name": "c422", + "type": { + "name": "Int64" + } + }, + { + "name": "c423", + "type": { + "name": "Int64" + } + }, + { + "name": "c424", + "type": { + "name": "Int64" + } + }, + { + "name": "c425", + "type": { + "name": "Int64" + } + }, + { + "name": "c426", + "type": { + "name": "Int64" + } + }, + { + "name": "c427", + "type": { + "name": "Int64" + } + }, + { + "name": "c428", + "type": { + "name": "Int64" + } + }, + { + "name": "c429", + "type": { + "name": "Int64" + } + }, + { + "name": "c430", + "type": { + "name": "Int64" + } + }, + { + "name": "c431", + "type": { + "name": "Int64" + } + }, + { + "name": "c432", + "type": { + "name": "Int64" + } + }, + { + "name": "c433", + "type": { + "name": "Int64" + } + }, + { + "name": "c434", + "type": { + "name": "Int64" + } + }, + { + "name": "c435", + "type": { + "name": "Int64" + } + }, + { + "name": "c436", + "type": { + "name": "Int64" + } + }, + { + "name": "c437", + "type": { + "name": "Int64" + } + }, + { + "name": "c438", + "type": { + "name": "Int64" + } + }, + { + "name": "c439", + "type": { + "name": "Int64" + } + }, + { + "name": "c440", + "type": { + "name": "Int64" + } + }, + { + "name": "c441", + "type": { + "name": "Int64" + } + }, + { + "name": "c442", + "type": { + "name": "Int64" + } + }, + { + "name": "c443", + "type": { + "name": "Int64" + } + }, + { + "name": "c444", + "type": { + "name": "Int64" + } + }, + { + "name": "c445", + "type": { + "name": "Int64" + } + }, + { + "name": "c446", + "type": { + "name": "Int64" + } + }, + { + "name": "c447", + "type": { + "name": "Int64" + } + }, + { + "name": "c448", + "type": { + "name": "Int64" + } + }, + { + "name": "c449", + "type": { + "name": "Int64" + } + }, + { + "name": "c450", + "type": { + "name": "Int64" + } + }, + { + "name": "c451", + "type": { + "name": "Int64" + } + }, + { + "name": "c452", + "type": { + "name": "Int64" + } + }, + { + "name": "c453", + "type": { + "name": "Int64" + } + }, + { + "name": "c454", + "type": { + "name": "Int64" + } + }, + { + "name": "c455", + "type": { + "name": "Int64" + } + }, + { + "name": "c456", + "type": { + "name": "Int64" + } + }, + { + "name": "c457", + "type": { + "name": "Int64" + } + }, + { + "name": "c458", + "type": { + "name": "Int64" + } + }, + { + "name": "c459", + "type": { + "name": "Int64" + } + }, + { + "name": "c460", + "type": { + "name": "Int64" + } + }, + { + "name": "c461", + "type": { + "name": "Int64" + } + }, + { + "name": "c462", + "type": { + "name": "Int64" + } + }, + { + "name": "c463", + "type": { + "name": "Int64" + } + }, + { + "name": "c464", + "type": { + "name": "Int64" + } + }, + { + "name": "c465", + "type": { + "name": "Int64" + } + }, + { + "name": "c466", + "type": { + "name": "Int64" + } + }, + { + "name": "c467", + "type": { + "name": "Int64" + } + }, + { + "name": "c468", + "type": { + "name": "Int64" + } + }, + { + "name": "c469", + "type": { + "name": "Int64" + } + }, + { + "name": "c470", + "type": { + "name": "Int64" + } + }, + { + "name": "c471", + "type": { + "name": "Int64" + } + }, + { + "name": "c472", + "type": { + "name": "Int64" + } + }, + { + "name": "c473", + "type": { + "name": "Int64" + } + }, + { + "name": "c474", + "type": { + "name": "Int64" + } + }, + { + "name": "c475", + "type": { + "name": "Int64" + } + }, + { + "name": "c476", + "type": { + "name": "Int64" + } + }, + { + "name": "c477", + "type": { + "name": "Int64" + } + }, + { + "name": "c478", + "type": { + "name": "Int64" + } + }, + { + "name": "c479", + "type": { + "name": "Int64" + } + }, + { + "name": "c480", + "type": { + "name": "Int64" + } + }, + { + "name": "c481", + "type": { + "name": "Int64" + } + }, + { + "name": "c482", + "type": { + "name": "Int64" + } + }, + { + "name": "c483", + "type": { + "name": "Int64" + } + }, + { + "name": "c484", + "type": { + "name": "Int64" + } + }, + { + "name": "c485", + "type": { + "name": "Int64" + } + }, + { + "name": "c486", + "type": { + "name": "Int64" + } + }, + { + "name": "c487", + "type": { + "name": "Int64" + } + }, + { + "name": "c488", + "type": { + "name": "Int64" + } + }, + { + "name": "c489", + "type": { + "name": "Int64" + } + }, + { + "name": "c490", + "type": { + "name": "Int64" + } + }, + { + "name": "c491", + "type": { + "name": "Int64" + } + }, + { + "name": "c492", + "type": { + "name": "Int64" + } + }, + { + "name": "c493", + "type": { + "name": "Int64" + } + }, + { + "name": "c494", + "type": { + "name": "Int64" + } + }, + { + "name": "c495", + "type": { + "name": "Int64" + } + }, + { + "name": "c496", + "type": { + "name": "Int64" + } + }, + { + "name": "c497", + "type": { + "name": "Int64" + } + }, + { + "name": "c498", + "type": { + "name": "Int64" + } + }, + { + "name": "c499", + "type": { + "name": "Int64" + } + }, + { + "name": "c500", + "type": { + "name": "Int64" + } + }, + { + "name": "b1", + "type": { + "name": "Int64" + } + }, + { + "name": "b2", + "type": { + "name": "Int64" + } + }, + { + "name": "b3", + "type": { + "name": "Int64" + } + }, + { + "name": "b4", + "type": { + "name": "Int64" + } + }, + { + "name": "b5", + "type": { + "name": "Int64" + } + }, + { + "name": "b6", + "type": { + "name": "Int64" + } + }, + { + "name": "b7", + "type": { + "name": "Int64" + } + }, + { + "name": "b8", + "type": { + "name": "Int64" + } + }, + { + "name": "b9", + "type": { + "name": "Int64" + } + }, + { + "name": "b10", + "type": { + "name": "Int64" + } + }, + { + "name": "b11", + "type": { + "name": "Int64" + } + }, + { + "name": "b12", + "type": { + "name": "Int64" + } + }, + { + "name": "b13", + "type": { + "name": "Int64" + } + }, + { + "name": "b14", + "type": { + "name": "Int64" + } + }, + { + "name": "b15", + "type": { + "name": "Int64" + } + }, + { + "name": "b16", + "type": { + "name": "Int64" + } + }, + { + "name": "b17", + "type": { + "name": "Int64" + } + }, + { + "name": "b18", + "type": { + "name": "Int64" + } + }, + { + "name": "b19", + "type": { + "name": "Int64" + } + }, + { + "name": "b20", + "type": { + "name": "Int64" + } + }, + { + "name": "b21", + "type": { + "name": "Int64" + } + }, + { + "name": "b22", + "type": { + "name": "Int64" + } + }, + { + "name": "b23", + "type": { + "name": "Int64" + } + }, + { + "name": "b24", + "type": { + "name": "Int64" + } + }, + { + "name": "b25", + "type": { + "name": "Int64" + } + }, + { + "name": "b26", + "type": { + "name": "Int64" + } + }, + { + "name": "b27", + "type": { + "name": "Int64" + } + }, + { + "name": "b28", + "type": { + "name": "Int64" + } + }, + { + "name": "b29", + "type": { + "name": "Int64" + } + }, + { + "name": "b30", + "type": { + "name": "Int64" + } + }, + { + "name": "b31", + "type": { + "name": "Int64" + } + }, + { + "name": "b32", + "type": { + "name": "Int64" + } + }, + { + "name": "b33", + "type": { + "name": "Int64" + } + }, + { + "name": "b34", + "type": { + "name": "Int64" + } + }, + { + "name": "b35", + "type": { + "name": "Int64" + } + }, + { + "name": "b36", + "type": { + "name": "Int64" + } + }, + { + "name": "b37", + "type": { + "name": "Int64" + } + }, + { + "name": "b38", + "type": { + "name": "Int64" + } + }, + { + "name": "b39", + "type": { + "name": "Int64" + } + }, + { + "name": "b40", + "type": { + "name": "Int64" + } + }, + { + "name": "b41", + "type": { + "name": "Int64" + } + }, + { + "name": "b42", + "type": { + "name": "Int64" + } + }, + { + "name": "b43", + "type": { + "name": "Int64" + } + }, + { + "name": "b44", + "type": { + "name": "Int64" + } + }, + { + "name": "b45", + "type": { + "name": "Int64" + } + }, + { + "name": "b46", + "type": { + "name": "Int64" + } + }, + { + "name": "b47", + "type": { + "name": "Int64" + } + }, + { + "name": "b48", + "type": { + "name": "Int64" + } + }, + { + "name": "b49", + "type": { + "name": "Int64" + } + }, + { + "name": "b50", + "type": { + "name": "Int64" + } + }, + { + "name": "b51", + "type": { + "name": "Int64" + } + }, + { + "name": "b52", + "type": { + "name": "Int64" + } + }, + { + "name": "b53", + "type": { + "name": "Int64" + } + }, + { + "name": "b54", + "type": { + "name": "Int64" + } + }, + { + "name": "b55", + "type": { + "name": "Int64" + } + }, + { + "name": "b56", + "type": { + "name": "Int64" + } + }, + { + "name": "b57", + "type": { + "name": "Int64" + } + }, + { + "name": "b58", + "type": { + "name": "Int64" + } + }, + { + "name": "b59", + "type": { + "name": "Int64" + } + }, + { + "name": "b60", + "type": { + "name": "Int64" + } + }, + { + "name": "b61", + "type": { + "name": "Int64" + } + }, + { + "name": "b62", + "type": { + "name": "Int64" + } + }, + { + "name": "b63", + "type": { + "name": "Int64" + } + }, + { + "name": "b64", + "type": { + "name": "Int64" + } + }, + { + "name": "b65", + "type": { + "name": "Int64" + } + }, + { + "name": "b66", + "type": { + "name": "Int64" + } + }, + { + "name": "b67", + "type": { + "name": "Int64" + } + }, + { + "name": "b68", + "type": { + "name": "Int64" + } + }, + { + "name": "b69", + "type": { + "name": "Int64" + } + }, + { + "name": "b70", + "type": { + "name": "Int64" + } + }, + { + "name": "b71", + "type": { + "name": "Int64" + } + }, + { + "name": "b72", + "type": { + "name": "Int64" + } + }, + { + "name": "b73", + "type": { + "name": "Int64" + } + }, + { + "name": "b74", + "type": { + "name": "Int64" + } + }, + { + "name": "b75", + "type": { + "name": "Int64" + } + }, + { + "name": "b76", + "type": { + "name": "Int64" + } + }, + { + "name": "b77", + "type": { + "name": "Int64" + } + }, + { + "name": "b78", + "type": { + "name": "Int64" + } + }, + { + "name": "b79", + "type": { + "name": "Int64" + } + }, + { + "name": "b80", + "type": { + "name": "Int64" + } + }, + { + "name": "b81", + "type": { + "name": "Int64" + } + }, + { + "name": "b82", + "type": { + "name": "Int64" + } + }, + { + "name": "b83", + "type": { + "name": "Int64" + } + }, + { + "name": "b84", + "type": { + "name": "Int64" + } + }, + { + "name": "b85", + "type": { + "name": "Int64" + } + }, + { + "name": "b86", + "type": { + "name": "Int64" + } + }, + { + "name": "b87", + "type": { + "name": "Int64" + } + }, + { + "name": "b88", + "type": { + "name": "Int64" + } + }, + { + "name": "b89", + "type": { + "name": "Int64" + } + }, + { + "name": "b90", + "type": { + "name": "Int64" + } + }, + { + "name": "b91", + "type": { + "name": "Int64" + } + }, + { + "name": "b92", + "type": { + "name": "Int64" + } + }, + { + "name": "b93", + "type": { + "name": "Int64" + } + }, + { + "name": "b94", + "type": { + "name": "Int64" + } + }, + { + "name": "b95", + "type": { + "name": "Int64" + } + }, + { + "name": "b96", + "type": { + "name": "Int64" + } + }, + { + "name": "b97", + "type": { + "name": "Int64" + } + }, + { + "name": "b98", + "type": { + "name": "Int64" + } + }, + { + "name": "b99", + "type": { + "name": "Int64" + } + }, + { + "name": "b100", + "type": { + "name": "Int64" + } + }, + { + "name": "b101", + "type": { + "name": "Int64" + } + }, + { + "name": "b102", + "type": { + "name": "Int64" + } + }, + { + "name": "b103", + "type": { + "name": "Int64" + } + }, + { + "name": "b104", + "type": { + "name": "Int64" + } + }, + { + "name": "b105", + "type": { + "name": "Int64" + } + }, + { + "name": "b106", + "type": { + "name": "Int64" + } + }, + { + "name": "b107", + "type": { + "name": "Int64" + } + }, + { + "name": "b108", + "type": { + "name": "Int64" + } + }, + { + "name": "b109", + "type": { + "name": "Int64" + } + }, + { + "name": "b110", + "type": { + "name": "Int64" + } + }, + { + "name": "b111", + "type": { + "name": "Int64" + } + }, + { + "name": "b112", + "type": { + "name": "Int64" + } + }, + { + "name": "b113", + "type": { + "name": "Int64" + } + }, + { + "name": "b114", + "type": { + "name": "Int64" + } + }, + { + "name": "b115", + "type": { + "name": "Int64" + } + }, + { + "name": "b116", + "type": { + "name": "Int64" + } + }, + { + "name": "b117", + "type": { + "name": "Int64" + } + }, + { + "name": "b118", + "type": { + "name": "Int64" + } + }, + { + "name": "b119", + "type": { + "name": "Int64" + } + }, + { + "name": "b120", + "type": { + "name": "Int64" + } + }, + { + "name": "b121", + "type": { + "name": "Int64" + } + }, + { + "name": "b122", + "type": { + "name": "Int64" + } + }, + { + "name": "b123", + "type": { + "name": "Int64" + } + }, + { + "name": "b124", + "type": { + "name": "Int64" + } + }, + { + "name": "b125", + "type": { + "name": "Int64" + } + }, + { + "name": "b126", + "type": { + "name": "Int64" + } + }, + { + "name": "b127", + "type": { + "name": "Int64" + } + }, + { + "name": "b128", + "type": { + "name": "Int64" + } + }, + { + "name": "b129", + "type": { + "name": "Int64" + } + }, + { + "name": "b130", + "type": { + "name": "Int64" + } + }, + { + "name": "b131", + "type": { + "name": "Int64" + } + }, + { + "name": "b132", + "type": { + "name": "Int64" + } + }, + { + "name": "b133", + "type": { + "name": "Int64" + } + }, + { + "name": "b134", + "type": { + "name": "Int64" + } + }, + { + "name": "b135", + "type": { + "name": "Int64" + } + }, + { + "name": "b136", + "type": { + "name": "Int64" + } + }, + { + "name": "b137", + "type": { + "name": "Int64" + } + }, + { + "name": "b138", + "type": { + "name": "Int64" + } + }, + { + "name": "b139", + "type": { + "name": "Int64" + } + }, + { + "name": "b140", + "type": { + "name": "Int64" + } + }, + { + "name": "b141", + "type": { + "name": "Int64" + } + }, + { + "name": "b142", + "type": { + "name": "Int64" + } + }, + { + "name": "b143", + "type": { + "name": "Int64" + } + }, + { + "name": "b144", + "type": { + "name": "Int64" + } + }, + { + "name": "b145", + "type": { + "name": "Int64" + } + }, + { + "name": "b146", + "type": { + "name": "Int64" + } + }, + { + "name": "b147", + "type": { + "name": "Int64" + } + }, + { + "name": "b148", + "type": { + "name": "Int64" + } + }, + { + "name": "b149", + "type": { + "name": "Int64" + } + }, + { + "name": "b150", + "type": { + "name": "Int64" + } + }, + { + "name": "b151", + "type": { + "name": "Int64" + } + }, + { + "name": "b152", + "type": { + "name": "Int64" + } + }, + { + "name": "b153", + "type": { + "name": "Int64" + } + }, + { + "name": "b154", + "type": { + "name": "Int64" + } + }, + { + "name": "b155", + "type": { + "name": "Int64" + } + }, + { + "name": "b156", + "type": { + "name": "Int64" + } + }, + { + "name": "b157", + "type": { + "name": "Int64" + } + }, + { + "name": "b158", + "type": { + "name": "Int64" + } + }, + { + "name": "b159", + "type": { + "name": "Int64" + } + }, + { + "name": "b160", + "type": { + "name": "Int64" + } + }, + { + "name": "b161", + "type": { + "name": "Int64" + } + }, + { + "name": "b162", + "type": { + "name": "Int64" + } + }, + { + "name": "b163", + "type": { + "name": "Int64" + } + }, + { + "name": "b164", + "type": { + "name": "Int64" + } + }, + { + "name": "b165", + "type": { + "name": "Int64" + } + }, + { + "name": "b166", + "type": { + "name": "Int64" + } + }, + { + "name": "b167", + "type": { + "name": "Int64" + } + }, + { + "name": "b168", + "type": { + "name": "Int64" + } + }, + { + "name": "b169", + "type": { + "name": "Int64" + } + }, + { + "name": "b170", + "type": { + "name": "Int64" + } + }, + { + "name": "b171", + "type": { + "name": "Int64" + } + }, + { + "name": "b172", + "type": { + "name": "Int64" + } + }, + { + "name": "b173", + "type": { + "name": "Int64" + } + }, + { + "name": "b174", + "type": { + "name": "Int64" + } + }, + { + "name": "b175", + "type": { + "name": "Int64" + } + }, + { + "name": "b176", + "type": { + "name": "Int64" + } + }, + { + "name": "b177", + "type": { + "name": "Int64" + } + }, + { + "name": "b178", + "type": { + "name": "Int64" + } + }, + { + "name": "b179", + "type": { + "name": "Int64" + } + }, + { + "name": "b180", + "type": { + "name": "Int64" + } + }, + { + "name": "b181", + "type": { + "name": "Int64" + } + }, + { + "name": "b182", + "type": { + "name": "Int64" + } + }, + { + "name": "b183", + "type": { + "name": "Int64" + } + }, + { + "name": "b184", + "type": { + "name": "Int64" + } + }, + { + "name": "b185", + "type": { + "name": "Int64" + } + }, + { + "name": "b186", + "type": { + "name": "Int64" + } + }, + { + "name": "b187", + "type": { + "name": "Int64" + } + }, + { + "name": "b188", + "type": { + "name": "Int64" + } + }, + { + "name": "b189", + "type": { + "name": "Int64" + } + }, + { + "name": "b190", + "type": { + "name": "Int64" + } + }, + { + "name": "b191", + "type": { + "name": "Int64" + } + }, + { + "name": "b192", + "type": { + "name": "Int64" + } + }, + { + "name": "b193", + "type": { + "name": "Int64" + } + }, + { + "name": "b194", + "type": { + "name": "Int64" + } + }, + { + "name": "b195", + "type": { + "name": "Int64" + } + }, + { + "name": "b196", + "type": { + "name": "Int64" + } + }, + { + "name": "b197", + "type": { + "name": "Int64" + } + }, + { + "name": "b198", + "type": { + "name": "Int64" + } + }, + { + "name": "b199", + "type": { + "name": "Int64" + } + }, + { + "name": "b200", + "type": { + "name": "Int64" + } + }, + { + "name": "b201", + "type": { + "name": "Int64" + } + }, + { + "name": "b202", + "type": { + "name": "Int64" + } + }, + { + "name": "b203", + "type": { + "name": "Int64" + } + }, + { + "name": "b204", + "type": { + "name": "Int64" + } + }, + { + "name": "b205", + "type": { + "name": "Int64" + } + }, + { + "name": "b206", + "type": { + "name": "Int64" + } + }, + { + "name": "b207", + "type": { + "name": "Int64" + } + }, + { + "name": "b208", + "type": { + "name": "Int64" + } + }, + { + "name": "b209", + "type": { + "name": "Int64" + } + }, + { + "name": "b210", + "type": { + "name": "Int64" + } + }, + { + "name": "b211", + "type": { + "name": "Int64" + } + }, + { + "name": "b212", + "type": { + "name": "Int64" + } + }, + { + "name": "b213", + "type": { + "name": "Int64" + } + }, + { + "name": "b214", + "type": { + "name": "Int64" + } + }, + { + "name": "b215", + "type": { + "name": "Int64" + } + }, + { + "name": "b216", + "type": { + "name": "Int64" + } + }, + { + "name": "b217", + "type": { + "name": "Int64" + } + }, + { + "name": "b218", + "type": { + "name": "Int64" + } + }, + { + "name": "b219", + "type": { + "name": "Int64" + } + }, + { + "name": "b220", + "type": { + "name": "Int64" + } + }, + { + "name": "b221", + "type": { + "name": "Int64" + } + }, + { + "name": "b222", + "type": { + "name": "Int64" + } + }, + { + "name": "b223", + "type": { + "name": "Int64" + } + }, + { + "name": "b224", + "type": { + "name": "Int64" + } + }, + { + "name": "b225", + "type": { + "name": "Int64" + } + }, + { + "name": "b226", + "type": { + "name": "Int64" + } + }, + { + "name": "b227", + "type": { + "name": "Int64" + } + }, + { + "name": "b228", + "type": { + "name": "Int64" + } + }, + { + "name": "b229", + "type": { + "name": "Int64" + } + }, + { + "name": "b230", + "type": { + "name": "Int64" + } + }, + { + "name": "b231", + "type": { + "name": "Int64" + } + }, + { + "name": "b232", + "type": { + "name": "Int64" + } + }, + { + "name": "b233", + "type": { + "name": "Int64" + } + }, + { + "name": "b234", + "type": { + "name": "Int64" + } + }, + { + "name": "b235", + "type": { + "name": "Int64" + } + }, + { + "name": "b236", + "type": { + "name": "Int64" + } + }, + { + "name": "b237", + "type": { + "name": "Int64" + } + }, + { + "name": "b238", + "type": { + "name": "Int64" + } + }, + { + "name": "b239", + "type": { + "name": "Int64" + } + }, + { + "name": "b240", + "type": { + "name": "Int64" + } + }, + { + "name": "b241", + "type": { + "name": "Int64" + } + }, + { + "name": "b242", + "type": { + "name": "Int64" + } + }, + { + "name": "b243", + "type": { + "name": "Int64" + } + }, + { + "name": "b244", + "type": { + "name": "Int64" + } + }, + { + "name": "b245", + "type": { + "name": "Int64" + } + }, + { + "name": "b246", + "type": { + "name": "Int64" + } + }, + { + "name": "b247", + "type": { + "name": "Int64" + } + }, + { + "name": "b248", + "type": { + "name": "Int64" + } + }, + { + "name": "b249", + "type": { + "name": "Int64" + } + }, + { + "name": "b250", + "type": { + "name": "Int64" + } + }, + { + "name": "b251", + "type": { + "name": "Int64" + } + }, + { + "name": "b252", + "type": { + "name": "Int64" + } + }, + { + "name": "b253", + "type": { + "name": "Int64" + } + }, + { + "name": "b254", + "type": { + "name": "Int64" + } + }, + { + "name": "b255", + "type": { + "name": "Int64" + } + }, + { + "name": "b256", + "type": { + "name": "Int64" + } + }, + { + "name": "b257", + "type": { + "name": "Int64" + } + }, + { + "name": "b258", + "type": { + "name": "Int64" + } + }, + { + "name": "b259", + "type": { + "name": "Int64" + } + }, + { + "name": "b260", + "type": { + "name": "Int64" + } + }, + { + "name": "b261", + "type": { + "name": "Int64" + } + }, + { + "name": "b262", + "type": { + "name": "Int64" + } + }, + { + "name": "b263", + "type": { + "name": "Int64" + } + }, + { + "name": "b264", + "type": { + "name": "Int64" + } + }, + { + "name": "b265", + "type": { + "name": "Int64" + } + }, + { + "name": "b266", + "type": { + "name": "Int64" + } + }, + { + "name": "b267", + "type": { + "name": "Int64" + } + }, + { + "name": "b268", + "type": { + "name": "Int64" + } + }, + { + "name": "b269", + "type": { + "name": "Int64" + } + }, + { + "name": "b270", + "type": { + "name": "Int64" + } + }, + { + "name": "b271", + "type": { + "name": "Int64" + } + }, + { + "name": "b272", + "type": { + "name": "Int64" + } + }, + { + "name": "b273", + "type": { + "name": "Int64" + } + }, + { + "name": "b274", + "type": { + "name": "Int64" + } + }, + { + "name": "b275", + "type": { + "name": "Int64" + } + }, + { + "name": "b276", + "type": { + "name": "Int64" + } + }, + { + "name": "b277", + "type": { + "name": "Int64" + } + }, + { + "name": "b278", + "type": { + "name": "Int64" + } + }, + { + "name": "b279", + "type": { + "name": "Int64" + } + }, + { + "name": "b280", + "type": { + "name": "Int64" + } + }, + { + "name": "b281", + "type": { + "name": "Int64" + } + }, + { + "name": "b282", + "type": { + "name": "Int64" + } + }, + { + "name": "b283", + "type": { + "name": "Int64" + } + }, + { + "name": "b284", + "type": { + "name": "Int64" + } + }, + { + "name": "b285", + "type": { + "name": "Int64" + } + }, + { + "name": "b286", + "type": { + "name": "Int64" + } + }, + { + "name": "b287", + "type": { + "name": "Int64" + } + }, + { + "name": "b288", + "type": { + "name": "Int64" + } + }, + { + "name": "b289", + "type": { + "name": "Int64" + } + }, + { + "name": "b290", + "type": { + "name": "Int64" + } + }, + { + "name": "b291", + "type": { + "name": "Int64" + } + }, + { + "name": "b292", + "type": { + "name": "Int64" + } + }, + { + "name": "b293", + "type": { + "name": "Int64" + } + }, + { + "name": "b294", + "type": { + "name": "Int64" + } + }, + { + "name": "b295", + "type": { + "name": "Int64" + } + }, + { + "name": "b296", + "type": { + "name": "Int64" + } + }, + { + "name": "b297", + "type": { + "name": "Int64" + } + }, + { + "name": "b298", + "type": { + "name": "Int64" + } + }, + { + "name": "b299", + "type": { + "name": "Int64" + } + }, + { + "name": "b300", + "type": { + "name": "Int64" + } + }, + { + "name": "b301", + "type": { + "name": "Int64" + } + }, + { + "name": "b302", + "type": { + "name": "Int64" + } + }, + { + "name": "b303", + "type": { + "name": "Int64" + } + }, + { + "name": "b304", + "type": { + "name": "Int64" + } + }, + { + "name": "b305", + "type": { + "name": "Int64" + } + }, + { + "name": "b306", + "type": { + "name": "Int64" + } + }, + { + "name": "b307", + "type": { + "name": "Int64" + } + }, + { + "name": "b308", + "type": { + "name": "Int64" + } + }, + { + "name": "b309", + "type": { + "name": "Int64" + } + }, + { + "name": "b310", + "type": { + "name": "Int64" + } + }, + { + "name": "b311", + "type": { + "name": "Int64" + } + }, + { + "name": "b312", + "type": { + "name": "Int64" + } + }, + { + "name": "b313", + "type": { + "name": "Int64" + } + }, + { + "name": "b314", + "type": { + "name": "Int64" + } + }, + { + "name": "b315", + "type": { + "name": "Int64" + } + }, + { + "name": "b316", + "type": { + "name": "Int64" + } + }, + { + "name": "b317", + "type": { + "name": "Int64" + } + }, + { + "name": "b318", + "type": { + "name": "Int64" + } + }, + { + "name": "b319", + "type": { + "name": "Int64" + } + }, + { + "name": "b320", + "type": { + "name": "Int64" + } + }, + { + "name": "b321", + "type": { + "name": "Int64" + } + }, + { + "name": "b322", + "type": { + "name": "Int64" + } + }, + { + "name": "b323", + "type": { + "name": "Int64" + } + }, + { + "name": "b324", + "type": { + "name": "Int64" + } + }, + { + "name": "b325", + "type": { + "name": "Int64" + } + }, + { + "name": "b326", + "type": { + "name": "Int64" + } + }, + { + "name": "b327", + "type": { + "name": "Int64" + } + }, + { + "name": "b328", + "type": { + "name": "Int64" + } + }, + { + "name": "b329", + "type": { + "name": "Int64" + } + }, + { + "name": "b330", + "type": { + "name": "Int64" + } + }, + { + "name": "b331", + "type": { + "name": "Int64" + } + }, + { + "name": "b332", + "type": { + "name": "Int64" + } + }, + { + "name": "b333", + "type": { + "name": "Int64" + } + }, + { + "name": "b334", + "type": { + "name": "Int64" + } + }, + { + "name": "b335", + "type": { + "name": "Int64" + } + }, + { + "name": "b336", + "type": { + "name": "Int64" + } + }, + { + "name": "b337", + "type": { + "name": "Int64" + } + }, + { + "name": "b338", + "type": { + "name": "Int64" + } + }, + { + "name": "b339", + "type": { + "name": "Int64" + } + }, + { + "name": "b340", + "type": { + "name": "Int64" + } + }, + { + "name": "b341", + "type": { + "name": "Int64" + } + }, + { + "name": "b342", + "type": { + "name": "Int64" + } + }, + { + "name": "b343", + "type": { + "name": "Int64" + } + }, + { + "name": "b344", + "type": { + "name": "Int64" + } + }, + { + "name": "b345", + "type": { + "name": "Int64" + } + }, + { + "name": "b346", + "type": { + "name": "Int64" + } + }, + { + "name": "b347", + "type": { + "name": "Int64" + } + }, + { + "name": "b348", + "type": { + "name": "Int64" + } + }, + { + "name": "b349", + "type": { + "name": "Int64" + } + }, + { + "name": "b350", + "type": { + "name": "Int64" + } + }, + { + "name": "b351", + "type": { + "name": "Int64" + } + }, + { + "name": "b352", + "type": { + "name": "Int64" + } + }, + { + "name": "b353", + "type": { + "name": "Int64" + } + }, + { + "name": "b354", + "type": { + "name": "Int64" + } + }, + { + "name": "b355", + "type": { + "name": "Int64" + } + }, + { + "name": "b356", + "type": { + "name": "Int64" + } + }, + { + "name": "b357", + "type": { + "name": "Int64" + } + }, + { + "name": "b358", + "type": { + "name": "Int64" + } + }, + { + "name": "b359", + "type": { + "name": "Int64" + } + }, + { + "name": "b360", + "type": { + "name": "Int64" + } + }, + { + "name": "b361", + "type": { + "name": "Int64" + } + }, + { + "name": "b362", + "type": { + "name": "Int64" + } + }, + { + "name": "b363", + "type": { + "name": "Int64" + } + }, + { + "name": "b364", + "type": { + "name": "Int64" + } + }, + { + "name": "b365", + "type": { + "name": "Int64" + } + }, + { + "name": "b366", + "type": { + "name": "Int64" + } + }, + { + "name": "b367", + "type": { + "name": "Int64" + } + }, + { + "name": "b368", + "type": { + "name": "Int64" + } + }, + { + "name": "b369", + "type": { + "name": "Int64" + } + }, + { + "name": "b370", + "type": { + "name": "Int64" + } + }, + { + "name": "b371", + "type": { + "name": "Int64" + } + }, + { + "name": "b372", + "type": { + "name": "Int64" + } + }, + { + "name": "b373", + "type": { + "name": "Int64" + } + }, + { + "name": "b374", + "type": { + "name": "Int64" + } + }, + { + "name": "b375", + "type": { + "name": "Int64" + } + }, + { + "name": "b376", + "type": { + "name": "Int64" + } + }, + { + "name": "b377", + "type": { + "name": "Int64" + } + }, + { + "name": "b378", + "type": { + "name": "Int64" + } + }, + { + "name": "b379", + "type": { + "name": "Int64" + } + }, + { + "name": "b380", + "type": { + "name": "Int64" + } + }, + { + "name": "b381", + "type": { + "name": "Int64" + } + }, + { + "name": "b382", + "type": { + "name": "Int64" + } + }, + { + "name": "b383", + "type": { + "name": "Int64" + } + }, + { + "name": "b384", + "type": { + "name": "Int64" + } + }, + { + "name": "b385", + "type": { + "name": "Int64" + } + }, + { + "name": "b386", + "type": { + "name": "Int64" + } + }, + { + "name": "b387", + "type": { + "name": "Int64" + } + }, + { + "name": "b388", + "type": { + "name": "Int64" + } + }, + { + "name": "b389", + "type": { + "name": "Int64" + } + }, + { + "name": "b390", + "type": { + "name": "Int64" + } + }, + { + "name": "b391", + "type": { + "name": "Int64" + } + }, + { + "name": "b392", + "type": { + "name": "Int64" + } + }, + { + "name": "b393", + "type": { + "name": "Int64" + } + }, + { + "name": "b394", + "type": { + "name": "Int64" + } + }, + { + "name": "b395", + "type": { + "name": "Int64" + } + }, + { + "name": "b396", + "type": { + "name": "Int64" + } + }, + { + "name": "b397", + "type": { + "name": "Int64" + } + }, + { + "name": "b398", + "type": { + "name": "Int64" + } + }, + { + "name": "b399", + "type": { + "name": "Int64" + } + }, + { + "name": "b400", + "type": { + "name": "Int64" + } + }, + { + "name": "b401", + "type": { + "name": "Int64" + } + }, + { + "name": "b402", + "type": { + "name": "Int64" + } + }, + { + "name": "b403", + "type": { + "name": "Int64" + } + }, + { + "name": "b404", + "type": { + "name": "Int64" + } + }, + { + "name": "b405", + "type": { + "name": "Int64" + } + }, + { + "name": "b406", + "type": { + "name": "Int64" + } + }, + { + "name": "b407", + "type": { + "name": "Int64" + } + }, + { + "name": "b408", + "type": { + "name": "Int64" + } + }, + { + "name": "b409", + "type": { + "name": "Int64" + } + }, + { + "name": "b410", + "type": { + "name": "Int64" + } + }, + { + "name": "b411", + "type": { + "name": "Int64" + } + }, + { + "name": "b412", + "type": { + "name": "Int64" + } + }, + { + "name": "b413", + "type": { + "name": "Int64" + } + }, + { + "name": "b414", + "type": { + "name": "Int64" + } + }, + { + "name": "b415", + "type": { + "name": "Int64" + } + }, + { + "name": "b416", + "type": { + "name": "Int64" + } + }, + { + "name": "b417", + "type": { + "name": "Int64" + } + }, + { + "name": "b418", + "type": { + "name": "Int64" + } + }, + { + "name": "b419", + "type": { + "name": "Int64" + } + }, + { + "name": "b420", + "type": { + "name": "Int64" + } + }, + { + "name": "b421", + "type": { + "name": "Int64" + } + }, + { + "name": "b422", + "type": { + "name": "Int64" + } + }, + { + "name": "b423", + "type": { + "name": "Int64" + } + }, + { + "name": "b424", + "type": { + "name": "Int64" + } + }, + { + "name": "b425", + "type": { + "name": "Int64" + } + }, + { + "name": "b426", + "type": { + "name": "Int64" + } + }, + { + "name": "b427", + "type": { + "name": "Int64" + } + }, + { + "name": "b428", + "type": { + "name": "Int64" + } + }, + { + "name": "b429", + "type": { + "name": "Int64" + } + }, + { + "name": "b430", + "type": { + "name": "Int64" + } + }, + { + "name": "b431", + "type": { + "name": "Int64" + } + }, + { + "name": "b432", + "type": { + "name": "Int64" + } + }, + { + "name": "b433", + "type": { + "name": "Int64" + } + }, + { + "name": "b434", + "type": { + "name": "Int64" + } + }, + { + "name": "b435", + "type": { + "name": "Int64" + } + }, + { + "name": "b436", + "type": { + "name": "Int64" + } + }, + { + "name": "b437", + "type": { + "name": "Int64" + } + }, + { + "name": "b438", + "type": { + "name": "Int64" + } + }, + { + "name": "b439", + "type": { + "name": "Int64" + } + }, + { + "name": "b440", + "type": { + "name": "Int64" + } + }, + { + "name": "b441", + "type": { + "name": "Int64" + } + }, + { + "name": "b442", + "type": { + "name": "Int64" + } + }, + { + "name": "b443", + "type": { + "name": "Int64" + } + }, + { + "name": "b444", + "type": { + "name": "Int64" + } + }, + { + "name": "b445", + "type": { + "name": "Int64" + } + }, + { + "name": "b446", + "type": { + "name": "Int64" + } + }, + { + "name": "b447", + "type": { + "name": "Int64" + } + }, + { + "name": "b448", + "type": { + "name": "Int64" + } + }, + { + "name": "b449", + "type": { + "name": "Int64" + } + }, + { + "name": "b450", + "type": { + "name": "Int64" + } + }, + { + "name": "b451", + "type": { + "name": "Int64" + } + }, + { + "name": "b452", + "type": { + "name": "Int64" + } + }, + { + "name": "b453", + "type": { + "name": "Int64" + } + }, + { + "name": "b454", + "type": { + "name": "Int64" + } + }, + { + "name": "b455", + "type": { + "name": "Int64" + } + }, + { + "name": "b456", + "type": { + "name": "Int64" + } + }, + { + "name": "b457", + "type": { + "name": "Int64" + } + }, + { + "name": "b458", + "type": { + "name": "Int64" + } + }, + { + "name": "b459", + "type": { + "name": "Int64" + } + }, + { + "name": "b460", + "type": { + "name": "Int64" + } + }, + { + "name": "b461", + "type": { + "name": "Int64" + } + }, + { + "name": "b462", + "type": { + "name": "Int64" + } + }, + { + "name": "b463", + "type": { + "name": "Int64" + } + }, + { + "name": "b464", + "type": { + "name": "Int64" + } + }, + { + "name": "b465", + "type": { + "name": "Int64" + } + }, + { + "name": "b466", + "type": { + "name": "Int64" + } + }, + { + "name": "b467", + "type": { + "name": "Int64" + } + }, + { + "name": "b468", + "type": { + "name": "Int64" + } + }, + { + "name": "b469", + "type": { + "name": "Int64" + } + }, + { + "name": "b470", + "type": { + "name": "Int64" + } + }, + { + "name": "b471", + "type": { + "name": "Int64" + } + }, + { + "name": "b472", + "type": { + "name": "Int64" + } + }, + { + "name": "b473", + "type": { + "name": "Int64" + } + }, + { + "name": "b474", + "type": { + "name": "Int64" + } + }, + { + "name": "b475", + "type": { + "name": "Int64" + } + }, + { + "name": "b476", + "type": { + "name": "Int64" + } + }, + { + "name": "b477", + "type": { + "name": "Int64" + } + }, + { + "name": "b478", + "type": { + "name": "Int64" + } + }, + { + "name": "b479", + "type": { + "name": "Int64" + } + }, + { + "name": "b480", + "type": { + "name": "Int64" + } + }, + { + "name": "b481", + "type": { + "name": "Int64" + } + }, + { + "name": "b482", + "type": { + "name": "Int64" + } + }, + { + "name": "b483", + "type": { + "name": "Int64" + } + }, + { + "name": "b484", + "type": { + "name": "Int64" + } + }, + { + "name": "b485", + "type": { + "name": "Int64" + } + }, + { + "name": "b486", + "type": { + "name": "Int64" + } + }, + { + "name": "b487", + "type": { + "name": "Int64" + } + }, + { + "name": "b488", + "type": { + "name": "Int64" + } + }, + { + "name": "b489", + "type": { + "name": "Int64" + } + }, + { + "name": "b490", + "type": { + "name": "Int64" + } + }, + { + "name": "b491", + "type": { + "name": "Int64" + } + }, + { + "name": "b492", + "type": { + "name": "Int64" + } + }, + { + "name": "b493", + "type": { + "name": "Int64" + } + }, + { + "name": "b494", + "type": { + "name": "Int64" + } + }, + { + "name": "b495", + "type": { + "name": "Int64" + } + }, + { + "name": "b496", + "type": { + "name": "Int64" + } + }, + { + "name": "b497", + "type": { + "name": "Int64" + } + }, + { + "name": "b498", + "type": { + "name": "Int64" + } + }, + { + "name": "b499", + "type": { + "name": "Int64" + } + }, + { + "name": "b500", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03164_create_as_default/ast.json b/parser/testdata/03164_create_as_default/ast.json new file mode 100644 index 0000000000..84d9f19838 --- /dev/null +++ b/parser/testdata/03164_create_as_default/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src_table", + "tables": [ + { + "table": "src_table" + } + ] +} diff --git a/parser/testdata/03164_early_constant_folding_analyzer/ast.json b/parser/testdata/03164_early_constant_folding_analyzer/ast.json new file mode 100644 index 0000000000..67c77eb78e --- /dev/null +++ b/parser/testdata/03164_early_constant_folding_analyzer/ast.json @@ -0,0 +1,218 @@ +{ + "table": "checks", + "columns": [ + { + "name": "pull_request_number", + "type": { + "name": "UInt32" + } + }, + { + "name": "commit_sha", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "check_name", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "check_status", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "check_duration_ms", + "type": { + "name": "UInt64" + } + }, + { + "name": "check_start_time", + "type": { + "name": "DateTime" + } + }, + { + "name": "test_name", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "test_status", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "test_duration_ms", + "type": { + "name": "UInt64" + } + }, + { + "name": "report_url", + "type": { + "name": "String" + } + }, + { + "name": "pull_request_url", + "type": { + "name": "String" + } + }, + { + "name": "commit_url", + "type": { + "name": "String" + } + }, + { + "name": "task_url", + "type": { + "name": "String" + } + }, + { + "name": "base_ref", + "type": { + "name": "String" + } + }, + { + "name": "base_repo", + "type": { + "name": "String" + } + }, + { + "name": "head_ref", + "type": { + "name": "String" + } + }, + { + "name": "head_repo", + "type": { + "name": "String" + } + }, + { + "name": "test_context_raw", + "type": { + "name": "String" + } + }, + { + "name": "instance_type", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "instance_id", + "type": { + "name": "String" + } + }, + { + "name": "date", + "type": { + "name": "Date" + }, + "default": { + "name": "toDate", + "arguments": [ + { + "parts": [ + "check_start_time" + ] + } + ] + }, + "default_kind": "MATERIALIZED" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "date" + ] + }, + { + "parts": [ + "pull_request_number" + ] + }, + { + "parts": [ + "commit_sha" + ] + }, + { + "parts": [ + "check_name" + ] + }, + { + "parts": [ + "test_name" + ] + }, + { + "parts": [ + "check_start_time" + ] + } + ] + } + ] +} diff --git a/parser/testdata/03164_linestring_geometry/ast.json b/parser/testdata/03164_linestring_geometry/ast.json new file mode 100644 index 0000000000..4f366118b6 --- /dev/null +++ b/parser/testdata/03164_linestring_geometry/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "readWKTLineString", + "arguments": [ + { + "type": "String", + "value": "LINESTRING (1 1, 2 2, 3 3, 1 1)" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03164_materialize_skip_index/ast.json b/parser/testdata/03164_materialize_skip_index/ast.json new file mode 100644 index 0000000000..6547cc66a6 --- /dev/null +++ b/parser/testdata/03164_materialize_skip_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_skip_index_insert", + "tables": [ + { + "table": "t_skip_index_insert" + } + ] +} diff --git a/parser/testdata/03164_materialize_skip_index_on_merge/ast.json b/parser/testdata/03164_materialize_skip_index_on_merge/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03164_materialize_skip_index_on_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03164_optimize_read_in_order_nullable/ast.json b/parser/testdata/03164_optimize_read_in_order_nullable/ast.json new file mode 100644 index 0000000000..5c371e8ec7 --- /dev/null +++ b/parser/testdata/03164_optimize_read_in_order_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03164_users", + "tables": [ + { + "table": "03164_users" + } + ] +} diff --git a/parser/testdata/03164_orc_signedness/ast.json b/parser/testdata/03164_orc_signedness/ast.json new file mode 100644 index 0000000000..b23038753d --- /dev/null +++ b/parser/testdata/03164_orc_signedness/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_orc_filter_push_down", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03164_parallel_replicas_range_filter_min_max/ast.json b/parser/testdata/03164_parallel_replicas_range_filter_min_max/ast.json new file mode 100644 index 0000000000..0a81a8837e --- /dev/null +++ b/parser/testdata/03164_parallel_replicas_range_filter_min_max/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "range_filter_custom_range_test", + "tables": [ + { + "table": "range_filter_custom_range_test" + } + ] +} diff --git a/parser/testdata/03164_s3_settings_for_queries_and_merges/ast.json b/parser/testdata/03164_s3_settings_for_queries_and_merges/ast.json new file mode 100644 index 0000000000..8afe5a73f5 --- /dev/null +++ b/parser/testdata/03164_s3_settings_for_queries_and_merges/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_prefetched_read_pool_for_remote_filesystem", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03165_distinct_with_window_func_crash/ast.json b/parser/testdata/03165_distinct_with_window_func_crash/ast.json new file mode 100644 index 0000000000..e8458063c0 --- /dev/null +++ b/parser/testdata/03165_distinct_with_window_func_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "atable", + "tables": [ + { + "table": "atable" + } + ] +} diff --git a/parser/testdata/03165_order_by_duplicate/ast.json b/parser/testdata/03165_order_by_duplicate/ast.json new file mode 100644 index 0000000000..8a2f871a3e --- /dev/null +++ b/parser/testdata/03165_order_by_duplicate/ast.json @@ -0,0 +1,44 @@ +{ + "table": "test", + "engine": { + "name": "ReplacingMergeTree" + }, + "primary_key": [ + { + "parts": [ + "id" + ] + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "id" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/03165_parseReadableSize/ast.json b/parser/testdata/03165_parseReadableSize/ast.json new file mode 100644 index 0000000000..340460f9db --- /dev/null +++ b/parser/testdata/03165_parseReadableSize/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatReadableSize", + "arguments": [ + { + "name": "parseReadableSize", + "arguments": [ + { + "type": "String", + "value": "1 B" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03165_storage_merge_view_prewhere/ast.json b/parser/testdata/03165_storage_merge_view_prewhere/ast.json new file mode 100644 index 0000000000..12cb61b1df --- /dev/null +++ b/parser/testdata/03165_storage_merge_view_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ids", + "tables": [ + { + "table": "ids" + } + ] +} diff --git a/parser/testdata/03165_string_functions_with_token_text_indexes/ast.json b/parser/testdata/03165_string_functions_with_token_text_indexes/ast.json new file mode 100644 index 0000000000..29e6e0f9a2 --- /dev/null +++ b/parser/testdata/03165_string_functions_with_token_text_indexes/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-------- Bloom filter --------" + } + ] + } + ] +} diff --git a/parser/testdata/03166_mv_prewhere_duplicating_name_bug/ast.json b/parser/testdata/03166_mv_prewhere_duplicating_name_bug/ast.json new file mode 100644 index 0000000000..db06aadcfe --- /dev/null +++ b/parser/testdata/03166_mv_prewhere_duplicating_name_bug/ast.json @@ -0,0 +1,14 @@ +{ + "table": "src", + "columns": [ + { + "name": "x", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "Log" + } +} diff --git a/parser/testdata/03166_optimize_row_order_during_insert/ast.json b/parser/testdata/03166_optimize_row_order_during_insert/ast.json new file mode 100644 index 0000000000..d121fc848a --- /dev/null +++ b/parser/testdata/03166_optimize_row_order_during_insert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03166_skip_indexes_vertical_merge_1/ast.json b/parser/testdata/03166_skip_indexes_vertical_merge_1/ast.json new file mode 100644 index 0000000000..4cf6b39734 --- /dev/null +++ b/parser/testdata/03166_skip_indexes_vertical_merge_1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_ind_merge_1", + "tables": [ + { + "table": "t_ind_merge_1" + } + ] +} diff --git a/parser/testdata/03166_skip_indexes_vertical_merge_2/ast.json b/parser/testdata/03166_skip_indexes_vertical_merge_2/ast.json new file mode 100644 index 0000000000..1874d36dc7 --- /dev/null +++ b/parser/testdata/03166_skip_indexes_vertical_merge_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_ind_merge_2", + "tables": [ + { + "table": "t_ind_merge_2" + } + ] +} diff --git a/parser/testdata/03167_base64_url_functions/ast.json b/parser/testdata/03167_base64_url_functions/ast.json new file mode 100644 index 0000000000..39385dc62a --- /dev/null +++ b/parser/testdata/03167_base64_url_functions/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "base64URLEncode" + } + ] + } + ] +} diff --git a/parser/testdata/03167_empty_tuple_concat/ast.json b/parser/testdata/03167_empty_tuple_concat/ast.json new file mode 100644 index 0000000000..8f750f6715 --- /dev/null +++ b/parser/testdata/03167_empty_tuple_concat/ast.json @@ -0,0 +1,19 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Tuple", + "value": [] + }, + "op": "||", + "right": { + "type": "Tuple", + "value": [] + } + } + ] + } + ] +} diff --git a/parser/testdata/03167_fancy_quotes_off_by_one/ast.json b/parser/testdata/03167_fancy_quotes_off_by_one/ast.json new file mode 100644 index 0000000000..356639a3f3 --- /dev/null +++ b/parser/testdata/03167_fancy_quotes_off_by_one/ast.json @@ -0,0 +1,15 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "test" + }, + "alias": "column" + } + ] + } + ] +} diff --git a/parser/testdata/03167_parametrized_view_with_cte/ast.json b/parser/testdata/03167_parametrized_view_with_cte/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03167_parametrized_view_with_cte/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03167_transactions_are_really_disabled/ast.json b/parser/testdata/03167_transactions_are_really_disabled/ast.json new file mode 100644 index 0000000000..c7d8ea8320 --- /dev/null +++ b/parser/testdata/03167_transactions_are_really_disabled/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv_table", + "tables": [ + { + "table": "mv_table" + } + ] +} diff --git a/parser/testdata/03168_attach_as_replicated_materialized_view/ast.json b/parser/testdata/03168_attach_as_replicated_materialized_view/ast.json new file mode 100644 index 0000000000..46d781b72b --- /dev/null +++ b/parser/testdata/03168_attach_as_replicated_materialized_view/ast.json @@ -0,0 +1,43 @@ +{ + "table": "hourly_data", + "columns": [ + { + "name": "domain_name", + "type": { + "name": "String" + } + }, + { + "name": "event_time", + "type": { + "name": "DateTime" + } + }, + { + "name": "count_views", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "domain_name" + ] + }, + { + "parts": [ + "event_time" + ] + } + ] + } + ] +} diff --git a/parser/testdata/03168_cld2_tsan/ast.json b/parser/testdata/03168_cld2_tsan/ast.json new file mode 100644 index 0000000000..80c7d07080 --- /dev/null +++ b/parser/testdata/03168_cld2_tsan/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "detectLanguageMixed", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "二兎を追う者は一兎をも得ず二兎を追う者は一兎をも得ず A vaincre sans peril, on triomphe sans gloire." + } + ] + } + ] + } + ], + "group_by": [ + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "name": "stringToH3", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "85283473ffffff" + }, + { + "type": "Integer", + "value": 14 + } + ] + }, + { + "type": "Integer", + "value": 14 + } + ] + } + ] + } + ], + "settings": [ + { + "name": "allow_experimental_nlp_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03168_loop_engine_with_parallel_replicas/ast.json b/parser/testdata/03168_loop_engine_with_parallel_replicas/ast.json new file mode 100644 index 0000000000..c57d3c67c4 --- /dev/null +++ b/parser/testdata/03168_loop_engine_with_parallel_replicas/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "03147_db", + "drop_database": true +} diff --git a/parser/testdata/03168_read_in_order_buffering_1/ast.json b/parser/testdata/03168_read_in_order_buffering_1/ast.json new file mode 100644 index 0000000000..b7a2dc6373 --- /dev/null +++ b/parser/testdata/03168_read_in_order_buffering_1/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_read_in_order_1", + "tables": [ + { + "table": "t_read_in_order_1" + } + ] +} diff --git a/parser/testdata/03168_read_in_order_buffering_2/ast.json b/parser/testdata/03168_read_in_order_buffering_2/ast.json new file mode 100644 index 0000000000..ded7bbdae6 --- /dev/null +++ b/parser/testdata/03168_read_in_order_buffering_2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_read_in_order_2", + "tables": [ + { + "table": "t_read_in_order_2" + } + ] +} diff --git a/parser/testdata/03169_cache_complex_dict_short_circuit_bug/ast.json b/parser/testdata/03169_cache_complex_dict_short_circuit_bug/ast.json new file mode 100644 index 0000000000..a19cb0c204 --- /dev/null +++ b/parser/testdata/03169_cache_complex_dict_short_circuit_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "complex_key_simple_attributes_source_short_circuit_table", + "tables": [ + { + "table": "complex_key_simple_attributes_source_short_circuit_table" + } + ] +} diff --git a/parser/testdata/03169_display_column_names_in_footer/ast.json b/parser/testdata/03169_display_column_names_in_footer/ast.json new file mode 100644 index 0000000000..1c69a447f5 --- /dev/null +++ b/parser/testdata/03169_display_column_names_in_footer/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + {}, + { + "name": "toTypeName", + "arguments": [ + {} + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 49 + } + } + ] + } + } + } + } + ] + }, + "format": { + "parts": [ + "Pretty" + ] + } + } + ] +} diff --git a/parser/testdata/03169_modify_column_data_loss/ast.json b/parser/testdata/03169_modify_column_data_loss/ast.json new file mode 100644 index 0000000000..a7892c088a --- /dev/null +++ b/parser/testdata/03169_modify_column_data_loss/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "column_modify_test", + "tables": [ + { + "table": "column_modify_test" + } + ] +} diff --git a/parser/testdata/03169_optimize_injective_functions_inside_uniq_crash/ast.json b/parser/testdata/03169_optimize_injective_functions_inside_uniq_crash/ast.json new file mode 100644 index 0000000000..955918700e --- /dev/null +++ b/parser/testdata/03169_optimize_injective_functions_inside_uniq_crash/ast.json @@ -0,0 +1,128 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "u" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "intDiv", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 4096 + } + ], + "alias": "k" + }, + { + "name": "uniqCombined", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 16 + } + ] + } + ] + } + ] + } + ] + } + ], + "alias": "u" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 4096 + }, + "op": "*", + "right": { + "type": "Integer", + "value": 100 + } + } + ] + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "k" + ] + } + ] + } + ] + } + } + } + } + ] + }, + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "optimize_injective_functions_inside_uniq", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/03170_part_offset_as_table_column/ast.json b/parser/testdata/03170_part_offset_as_table_column/ast.json new file mode 100644 index 0000000000..444ca012b7 --- /dev/null +++ b/parser/testdata/03170_part_offset_as_table_column/ast.json @@ -0,0 +1,30 @@ +{ + "table": "test_table", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt32" + } + }, + { + "name": "_part_offset", + "type": null, + "default": { + "type": "Integer", + "value": 0 + }, + "default_kind": "DEFAULT" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/03171_condition_pushdown/ast.json b/parser/testdata/03171_condition_pushdown/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03171_condition_pushdown/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03171_direct_dict_short_circuit_bug/ast.json b/parser/testdata/03171_direct_dict_short_circuit_bug/ast.json new file mode 100644 index 0000000000..3bc0ac5b84 --- /dev/null +++ b/parser/testdata/03171_direct_dict_short_circuit_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "short_circuit_function_evaluation", + "value": { + "type": "String", + "value": "enable" + } + } + ] +} diff --git a/parser/testdata/03171_function_to_subcolumns_fuzzer/ast.json b/parser/testdata/03171_function_to_subcolumns_fuzzer/ast.json new file mode 100644 index 0000000000..5db256c789 --- /dev/null +++ b/parser/testdata/03171_function_to_subcolumns_fuzzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_functions_to_subcolumns", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03171_hashed_dictionary_short_circuit_bug_fix/ast.json b/parser/testdata/03171_hashed_dictionary_short_circuit_bug_fix/ast.json new file mode 100644 index 0000000000..8ba9daae0d --- /dev/null +++ b/parser/testdata/03171_hashed_dictionary_short_circuit_bug_fix/ast.json @@ -0,0 +1,32 @@ +{ + "table": "x", + "columns": [ + { + "name": "hash_id", + "type": { + "name": "UInt64" + } + }, + { + "name": "user_result", + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 2 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/03171_indexing_by_hilbert_curve/ast.json b/parser/testdata/03171_indexing_by_hilbert_curve/ast.json new file mode 100644 index 0000000000..6508ea1025 --- /dev/null +++ b/parser/testdata/03171_indexing_by_hilbert_curve/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_index_analysis_only_on_coordinator", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03172_bcrypt_validation/ast.json b/parser/testdata/03172_bcrypt_validation/ast.json new file mode 100644 index 0000000000..d3077b12ed --- /dev/null +++ b/parser/testdata/03172_bcrypt_validation/ast.json @@ -0,0 +1,4 @@ +{ + "if_exists": true, + "user": "03172_user_invalid_bcrypt_hash" +} diff --git a/parser/testdata/03172_format_settings_clauses/ast.json b/parser/testdata/03172_format_settings_clauses/ast.json new file mode 100644 index 0000000000..18631e6645 --- /dev/null +++ b/parser/testdata/03172_format_settings_clauses/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03172_system_detached_tables_no_loop/ast.json b/parser/testdata/03172_system_detached_tables_no_loop/ast.json new file mode 100644 index 0000000000..50ff97ac26 --- /dev/null +++ b/parser/testdata/03172_system_detached_tables_no_loop/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-----------------------" + } + ] + } + ] +} diff --git a/parser/testdata/03173_check_cyclic_dependencies_on_create_and_rename/ast.json b/parser/testdata/03173_check_cyclic_dependencies_on_create_and_rename/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03173_check_cyclic_dependencies_on_create_and_rename/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03173_distinct_combinator_alignment/ast.json b/parser/testdata/03173_distinct_combinator_alignment/ast.json new file mode 100644 index 0000000000..97ff7a74b6 --- /dev/null +++ b/parser/testdata/03173_distinct_combinator_alignment/ast.json @@ -0,0 +1,172 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "topKDistinctState", + "parameters": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ], + "arguments": [ + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "name": "map", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + }, + { + "type": "Integer", + "value": 5 + } + ] + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + }, + { + "name": "map", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Integer", + "value": 4 + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 4 + } + ] + }, + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + ], + "with_cube": true, + "with_totals": true, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03173_forbid_qualify/ast.json b/parser/testdata/03173_forbid_qualify/ast.json new file mode 100644 index 0000000000..ce2dc01470 --- /dev/null +++ b/parser/testdata/03173_forbid_qualify/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_qualify", + "tables": [ + { + "table": "test_qualify" + } + ] +} diff --git a/parser/testdata/03173_set_transformed_partition_pruning/ast.json b/parser/testdata/03173_set_transformed_partition_pruning/ast.json new file mode 100644 index 0000000000..e8f831bbf8 --- /dev/null +++ b/parser/testdata/03173_set_transformed_partition_pruning/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Single partition by function" + } + ] + } + ] +} diff --git a/parser/testdata/03174_exact_rows_before_aggregation/ast.json b/parser/testdata/03174_exact_rows_before_aggregation/ast.json new file mode 100644 index 0000000000..8ca7e9ed12 --- /dev/null +++ b/parser/testdata/03174_exact_rows_before_aggregation/ast.json @@ -0,0 +1,32 @@ +{ + "settings": [ + { + "name": "rows_before_aggregation", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "exact_rows_before_limit", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/03174_least_greatest_ignore_null_input_values/ast.json b/parser/testdata/03174_least_greatest_ignore_null_input_values/ast.json new file mode 100644 index 0000000000..d721caa7fe --- /dev/null +++ b/parser/testdata/03174_least_greatest_ignore_null_input_values/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Test with default NULL behavior" + } + ] + } + ] +} diff --git a/parser/testdata/03174_merge_join_bug/ast.json b/parser/testdata/03174_merge_join_bug/ast.json new file mode 100644 index 0000000000..a75b224ca1 --- /dev/null +++ b/parser/testdata/03174_merge_join_bug/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "full_sorting_merge" + } + } + ] +} diff --git a/parser/testdata/03174_projection_deduplicate/ast.json b/parser/testdata/03174_projection_deduplicate/ast.json new file mode 100644 index 0000000000..0b6c5bb154 --- /dev/null +++ b/parser/testdata/03174_projection_deduplicate/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_projection_deduplicate", + "tables": [ + { + "table": "test_projection_deduplicate" + } + ] +} diff --git a/parser/testdata/03174_split_parts_ranges_into_intersecting_and_non_intersecting_final_and_read-in-order_bug/ast.json b/parser/testdata/03174_split_parts_ranges_into_intersecting_and_non_intersecting_final_and_read-in-order_bug/ast.json new file mode 100644 index 0000000000..75d0a84541 --- /dev/null +++ b/parser/testdata/03174_split_parts_ranges_into_intersecting_and_non_intersecting_final_and_read-in-order_bug/ast.json @@ -0,0 +1,48 @@ +{ + "table": "tab", + "columns": [ + { + "name": "x", + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "y", + "type": { + "name": "UInt32" + } + }, + { + "name": "v", + "type": { + "name": "Int32" + } + } + ], + "engine": { + "name": "ReplacingMergeTree", + "parameters": [ + { + "parts": [ + "v" + ] + } + ], + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/03175_sparse_and_skip_index/ast.json b/parser/testdata/03175_sparse_and_skip_index/ast.json new file mode 100644 index 0000000000..13953eb260 --- /dev/null +++ b/parser/testdata/03175_sparse_and_skip_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_bloom_filter", + "tables": [ + { + "table": "t_bloom_filter" + } + ] +} diff --git a/parser/testdata/03176_check_timeout_in_index_analysis/ast.json b/parser/testdata/03176_check_timeout_in_index_analysis/ast.json new file mode 100644 index 0000000000..8067b594fc --- /dev/null +++ b/parser/testdata/03176_check_timeout_in_index_analysis/ast.json @@ -0,0 +1,33 @@ +{ + "table": "t_03176", + "columns": [ + { + "name": "k", + "type": { + "name": "UInt64" + } + }, + { + "name": "v", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "k" + ] + } + ], + "partition_by": { + "parts": [ + "k" + ] + } +} diff --git a/parser/testdata/03195_group_concat_deserialization_fix/ast.json b/parser/testdata/03195_group_concat_deserialization_fix/ast.json new file mode 100644 index 0000000000..d5827341ed --- /dev/null +++ b/parser/testdata/03195_group_concat_deserialization_fix/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_serialization", + "tables": [ + { + "table": "test_serialization" + } + ] +} diff --git a/parser/testdata/03196_max_intersections_arena_crash/ast.json b/parser/testdata/03196_max_intersections_arena_crash/ast.json new file mode 100644 index 0000000000..25ff8ead41 --- /dev/null +++ b/parser/testdata/03196_max_intersections_arena_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "my_events", + "tables": [ + { + "table": "my_events" + } + ] +} diff --git a/parser/testdata/03197_fix_parse_mysql_iso_date/ast.json b/parser/testdata/03197_fix_parse_mysql_iso_date/ast.json new file mode 100644 index 0000000000..87952a8b19 --- /dev/null +++ b/parser/testdata/03197_fix_parse_mysql_iso_date/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTime", + "arguments": [ + { + "type": "String", + "value": "2024-06-20" + }, + { + "type": "String", + "value": "%F" + }, + { + "type": "String", + "value": "UTC" + } + ], + "alias": "x" + } + ] + } + ] +} diff --git a/parser/testdata/03197_storage_join_strictness_type_restriction/ast.json b/parser/testdata/03197_storage_join_strictness_type_restriction/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03197_storage_join_strictness_type_restriction/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03198_bit_shift_throws_error_for_out_of_bounds/ast.json b/parser/testdata/03198_bit_shift_throws_error_for_out_of_bounds/ast.json new file mode 100644 index 0000000000..db58ffa4ee --- /dev/null +++ b/parser/testdata/03198_bit_shift_throws_error_for_out_of_bounds/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- bitShiftRight" + } + ] + } + ] +} diff --git a/parser/testdata/03198_dynamic_read_subcolumns/ast.json b/parser/testdata/03198_dynamic_read_subcolumns/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03198_dynamic_read_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03198_group_array_intersect/ast.json b/parser/testdata/03198_group_array_intersect/ast.json new file mode 100644 index 0000000000..624e00b7e2 --- /dev/null +++ b/parser/testdata/03198_group_array_intersect/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_numbers__fuzz_29", + "tables": [ + { + "table": "test_numbers__fuzz_29" + } + ] +} diff --git a/parser/testdata/03198_json_extract_more_types/ast.json b/parser/testdata/03198_json_extract_more_types/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/03198_json_extract_more_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03198_table_function_directory_path/ast.json b/parser/testdata/03198_table_function_directory_path/ast.json new file mode 100644 index 0000000000..51c3c53ba2 --- /dev/null +++ b/parser/testdata/03198_table_function_directory_path/ast.json @@ -0,0 +1,37 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "data_03198_table_function_directory_path.csv" + }, + { + "type": "String", + "value": "csv" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "1.csv" + } + ], + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/03199_fix_auc_tie_handling/ast.json b/parser/testdata/03199_fix_auc_tie_handling/ast.json new file mode 100644 index 0000000000..401aafb0c2 --- /dev/null +++ b/parser/testdata/03199_fix_auc_tie_handling/ast.json @@ -0,0 +1,40 @@ +{ + "table": "labels_unordered", + "columns": [ + { + "name": "idx", + "type": { + "name": "Int64" + } + }, + { + "name": "score", + "type": { + "name": "Float64" + } + }, + { + "name": "label", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "idx" + ] + } + ], + "primary_key": [ + { + "parts": [ + "idx" + ] + } + ] +} diff --git a/parser/testdata/03199_has_lc_fixed_string/ast.json b/parser/testdata/03199_has_lc_fixed_string/ast.json new file mode 100644 index 0000000000..0bc3e63c38 --- /dev/null +++ b/parser/testdata/03199_has_lc_fixed_string/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03199_fixedstring_array", + "tables": [ + { + "table": "03199_fixedstring_array" + } + ] +} diff --git a/parser/testdata/03199_join_with_materialized_column/ast.json b/parser/testdata/03199_join_with_materialized_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03199_join_with_materialized_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03199_json_extract_dynamic/ast.json b/parser/testdata/03199_json_extract_dynamic/ast.json new file mode 100644 index 0000000000..0a95182900 --- /dev/null +++ b/parser/testdata/03199_json_extract_dynamic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_json_try_infer_numbers_from_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03199_merge_filters_bug/ast.json b/parser/testdata/03199_merge_filters_bug/ast.json new file mode 100644 index 0000000000..db7335af62 --- /dev/null +++ b/parser/testdata/03199_merge_filters_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_reorder_prewhere_conditions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03199_queries_with_new_analyzer/ast.json b/parser/testdata/03199_queries_with_new_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03199_queries_with_new_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03200_memory_engine_alter_dynamic/ast.json b/parser/testdata/03200_memory_engine_alter_dynamic/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03200_memory_engine_alter_dynamic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03200_subcolumns_join_use_nulls/ast.json b/parser/testdata/03200_subcolumns_join_use_nulls/ast.json new file mode 100644 index 0000000000..0c52f16d4a --- /dev/null +++ b/parser/testdata/03200_subcolumns_join_use_nulls/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_subcolumns_join", + "tables": [ + { + "table": "t_subcolumns_join" + } + ] +} diff --git a/parser/testdata/03201_analyzer_resolve_in_parent_scope/ast.json b/parser/testdata/03201_analyzer_resolve_in_parent_scope/ast.json new file mode 100644 index 0000000000..a9122b7782 --- /dev/null +++ b/parser/testdata/03201_analyzer_resolve_in_parent_scope/ast.json @@ -0,0 +1,49 @@ +{ + "view": "fake", + "as_select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "table" + ] + }, + { + "parts": [ + "database" + ] + }, + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "tables" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "name": "currentDatabase" + } + } + } + ] + } +} diff --git a/parser/testdata/03201_sumIf_to_countIf_return_type/ast.json b/parser/testdata/03201_sumIf_to_countIf_return_type/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03201_sumIf_to_countIf_return_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03202_enum_json_cast/ast.json b/parser/testdata/03202_enum_json_cast/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03202_enum_json_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03202_system_load_primary_key/ast.json b/parser/testdata/03202_system_load_primary_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03202_system_load_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03203_count_with_non_deterministic_function/ast.json b/parser/testdata/03203_count_with_non_deterministic_function/ast.json new file mode 100644 index 0000000000..5e1b2fc951 --- /dev/null +++ b/parser/testdata/03203_count_with_non_deterministic_function/ast.json @@ -0,0 +1,32 @@ +{ + "table": "t", + "columns": [ + { + "name": "p", + "type": { + "name": "UInt8" + } + }, + { + "name": "x", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ], + "partition_by": { + "parts": [ + "p" + ] + } +} diff --git a/parser/testdata/03203_drop_detached_partition_all/ast.json b/parser/testdata/03203_drop_detached_partition_all/ast.json new file mode 100644 index 0000000000..7d41f96ba0 --- /dev/null +++ b/parser/testdata/03203_drop_detached_partition_all/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_03203", + "tables": [ + { + "table": "t_03203" + } + ] +} diff --git a/parser/testdata/03203_fill_missed_subcolumns/ast.json b/parser/testdata/03203_fill_missed_subcolumns/ast.json new file mode 100644 index 0000000000..bd6432b704 --- /dev/null +++ b/parser/testdata/03203_fill_missed_subcolumns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_missed_subcolumns", + "tables": [ + { + "table": "t_missed_subcolumns" + } + ] +} diff --git a/parser/testdata/03203_function_printf/ast.json b/parser/testdata/03203_function_printf/ast.json new file mode 100644 index 0000000000..49f7ff4b71 --- /dev/null +++ b/parser/testdata/03203_function_printf/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_fallback_to_vertical", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03203_multiif_and_where_2_conditions_old_analyzer_bug/ast.json b/parser/testdata/03203_multiif_and_where_2_conditions_old_analyzer_bug/ast.json new file mode 100644 index 0000000000..b628e62240 --- /dev/null +++ b/parser/testdata/03203_multiif_and_where_2_conditions_old_analyzer_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bugcheck1", + "tables": [ + { + "table": "bugcheck1" + } + ] +} diff --git a/parser/testdata/03203_optimize_disjunctions_chain_to_in/ast.json b/parser/testdata/03203_optimize_disjunctions_chain_to_in/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03203_optimize_disjunctions_chain_to_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03203_system_numbers_limit_and_offset_simple/ast.json b/parser/testdata/03203_system_numbers_limit_and_offset_simple/ast.json new file mode 100644 index 0000000000..9d4cd92231 --- /dev/null +++ b/parser/testdata/03203_system_numbers_limit_and_offset_simple/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "case 1" + } + ] + } + ] +} diff --git a/parser/testdata/03203_variant_convert_field_to_type_bug/ast.json b/parser/testdata/03203_variant_convert_field_to_type_bug/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03203_variant_convert_field_to_type_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03204_distributed_with_scalar_subquery/ast.json b/parser/testdata/03204_distributed_with_scalar_subquery/ast.json new file mode 100644 index 0000000000..1f3b8230ff --- /dev/null +++ b/parser/testdata/03204_distributed_with_scalar_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_c3oollc8r", + "tables": [ + { + "table": "t_c3oollc8r" + } + ] +} diff --git a/parser/testdata/03204_index_hint_fuzzer/ast.json b/parser/testdata/03204_index_hint_fuzzer/ast.json new file mode 100644 index 0000000000..778d54c1fc --- /dev/null +++ b/parser/testdata/03204_index_hint_fuzzer/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "tuple", + "arguments": [ + { + "name": "indexHint", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "aaa" + } + ] + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03204_storage_join_optimize/ast.json b/parser/testdata/03204_storage_join_optimize/ast.json new file mode 100644 index 0000000000..520b6de55e --- /dev/null +++ b/parser/testdata/03204_storage_join_optimize/ast.json @@ -0,0 +1,38 @@ +{ + "table": "dict_03204", + "columns": [ + { + "name": "k", + "type": { + "name": "UInt64" + } + }, + { + "name": "v", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Join", + "parameters": [ + { + "parts": [ + "ANY" + ] + }, + { + "parts": [ + "LEFT" + ] + }, + { + "parts": [ + "k" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03205_hashing_empty_tuples/ast.json b/parser/testdata/03205_hashing_empty_tuples/ast.json new file mode 100644 index 0000000000..68e6ada498 --- /dev/null +++ b/parser/testdata/03205_hashing_empty_tuples/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sipHash64", + "arguments": [ + { + "type": "Tuple", + "value": [] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03205_json_cast_from_string/ast.json b/parser/testdata/03205_json_cast_from_string/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03205_json_cast_from_string/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03205_json_syntax/ast.json b/parser/testdata/03205_json_syntax/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03205_json_syntax/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03205_overlay/ast.json b/parser/testdata/03205_overlay/ast.json new file mode 100644 index 0000000000..336ac5b89b --- /dev/null +++ b/parser/testdata/03205_overlay/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Negative test of overlay" + } + ] + } + ] +} diff --git a/parser/testdata/03205_parallel_replicas_alter_select_ubsan/ast.json b/parser/testdata/03205_parallel_replicas_alter_select_ubsan/ast.json new file mode 100644 index 0000000000..44521e2438 --- /dev/null +++ b/parser/testdata/03205_parallel_replicas_alter_select_ubsan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "alter_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03205_parallel_window_finctions_and_column_sparse_bug/ast.json b/parser/testdata/03205_parallel_window_finctions_and_column_sparse_bug/ast.json new file mode 100644 index 0000000000..117381c59b --- /dev/null +++ b/parser/testdata/03205_parallel_window_finctions_and_column_sparse_bug/ast.json @@ -0,0 +1,27 @@ +{ + "table": "t", + "columns": [ + { + "name": "c", + "type": { + "name": "Int32" + } + }, + { + "name": "d", + "type": { + "name": "Bool" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "c" + ] + } + ] +} diff --git a/parser/testdata/03205_system_sync_replica_format/ast.json b/parser/testdata/03205_system_sync_replica_format/ast.json new file mode 100644 index 0000000000..c95738138d --- /dev/null +++ b/parser/testdata/03205_system_sync_replica_format/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatQuery", + "arguments": [ + { + "type": "String", + "value": "SYSTEM SYNC REPLICA db.table LIGHTWEIGHT" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03206_is_null_constant_result_old_analyzer_bug/ast.json b/parser/testdata/03206_is_null_constant_result_old_analyzer_bug/ast.json new file mode 100644 index 0000000000..0bb910f781 --- /dev/null +++ b/parser/testdata/03206_is_null_constant_result_old_analyzer_bug/ast.json @@ -0,0 +1,16 @@ +{ + "table": "left", + "columns": [ + { + "name": "x", + "type": { + "name": "UUID" + } + } + ], + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03206_projection_merge_special_mergetree/ast.json b/parser/testdata/03206_projection_merge_special_mergetree/ast.json new file mode 100644 index 0000000000..1e0f923590 --- /dev/null +++ b/parser/testdata/03206_projection_merge_special_mergetree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tp", + "tables": [ + { + "table": "tp" + } + ] +} diff --git a/parser/testdata/03206_projection_merge_special_mergetree_ignore/ast.json b/parser/testdata/03206_projection_merge_special_mergetree_ignore/ast.json new file mode 100644 index 0000000000..1e0f923590 --- /dev/null +++ b/parser/testdata/03206_projection_merge_special_mergetree_ignore/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tp", + "tables": [ + { + "table": "tp" + } + ] +} diff --git a/parser/testdata/03206_replication_lag_metric/ast.json b/parser/testdata/03206_replication_lag_metric/ast.json new file mode 100644 index 0000000000..36035bacde --- /dev/null +++ b/parser/testdata/03206_replication_lag_metric/ast.json @@ -0,0 +1,22 @@ +{ + "database": "rdb1", + "engine": { + "name": "Replicated", + "parameters": [ + { + "type": "String", + "value": "/test/test_replication_lag_metric" + }, + { + "type": "String", + "value": "shard1" + }, + { + "type": "String", + "value": "replica1" + } + ], + "has_parentheses": true + }, + "create_database": true +} diff --git a/parser/testdata/03207_composite_expressions_lambda_consistent_formatting/ast.json b/parser/testdata/03207_composite_expressions_lambda_consistent_formatting/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03207_composite_expressions_lambda_consistent_formatting/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03207_json_read_subcolumns_1_memory/ast.json b/parser/testdata/03207_json_read_subcolumns_1_memory/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03207_json_read_subcolumns_1_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03207_json_read_subcolumns_2_memory/ast.json b/parser/testdata/03207_json_read_subcolumns_2_memory/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03207_json_read_subcolumns_2_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03208_array_of_json_read_subcolumns_2_memory/ast.json b/parser/testdata/03208_array_of_json_read_subcolumns_2_memory/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03208_array_of_json_read_subcolumns_2_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03208_buffer_over_distributed_type_mismatch/ast.json b/parser/testdata/03208_buffer_over_distributed_type_mismatch/ast.json new file mode 100644 index 0000000000..ab13d89b54 --- /dev/null +++ b/parser/testdata/03208_buffer_over_distributed_type_mismatch/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "realtimedrep", + "tables": [ + { + "table": "realtimedrep" + } + ] +} diff --git a/parser/testdata/03208_groupArrayIntersect_serialization/ast.json b/parser/testdata/03208_groupArrayIntersect_serialization/ast.json new file mode 100644 index 0000000000..be8949fd3b --- /dev/null +++ b/parser/testdata/03208_groupArrayIntersect_serialization/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "groupArrayIntersectState", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "alias": "a" + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03208_multiple_joins_with_storage_join/ast.json b/parser/testdata/03208_multiple_joins_with_storage_join/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/03208_multiple_joins_with_storage_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/03208_numbers_total_rows_approx/ast.json b/parser/testdata/03208_numbers_total_rows_approx/ast.json new file mode 100644 index 0000000000..8cf0525cd9 --- /dev/null +++ b/parser/testdata/03208_numbers_total_rows_approx/ast.json @@ -0,0 +1,62 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 10 + } + } + ] + } + ] +} diff --git a/parser/testdata/03208_uniq_with_empty_tuple/ast.json b/parser/testdata/03208_uniq_with_empty_tuple/ast.json new file mode 100644 index 0000000000..49f7c3cf26 --- /dev/null +++ b/parser/testdata/03208_uniq_with_empty_tuple/ast.json @@ -0,0 +1,16 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqTheta", + "arguments": [ + { + "name": "tuple" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03209_functions_json_msan_fuzzer_issue/ast.json b/parser/testdata/03209_functions_json_msan_fuzzer_issue/ast.json new file mode 100644 index 0000000000..8e0dad973a --- /dev/null +++ b/parser/testdata/03209_functions_json_msan_fuzzer_issue/ast.json @@ -0,0 +1,195 @@ +{ + "selects": [ + { + "with": [ + { + "name": "raw", + "query": { + "type": "String", + "value": "{ \"v\":1.1}" + } + } + ], + "columns": [ + { + "name": "JSONExtract", + "arguments": [ + { + "parts": [ + "raw" + ] + }, + { + "type": "String", + "value": "float" + } + ], + "alias": "float32_1" + }, + { + "name": "JSONExtract", + "arguments": [ + { + "name": "concat", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "type": "String", + "value": "1970-01-05" + }, + { + "type": "Integer", + "value": 10 + }, + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + }, + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "type": "Integer", + "value": 10 + }, + { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + }, + { + "name": "materialize", + "arguments": [ + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + ] + }, + { + "type": "String", + "value": ", " + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 2 + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + }, + { + "parts": [ + "raw" + ] + }, + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "String", + "value": "v" + } + ] + }, + { + "type": "String", + "value": "Float32" + } + ], + "alias": "float32_2" + }, + { + "name": "JSONExtractFloat", + "arguments": [ + { + "parts": [ + "raw" + ] + } + ], + "alias": "float64_1" + }, + { + "name": "JSONExtract", + "arguments": [ + { + "parts": [ + "raw" + ] + }, + { + "type": "String", + "value": "v" + }, + { + "type": "String", + "value": "double" + } + ], + "alias": "float64_2" + } + ] + } + ] +} diff --git a/parser/testdata/03209_parallel_replicas_lost_decimal_conversion/ast.json b/parser/testdata/03209_parallel_replicas_lost_decimal_conversion/ast.json new file mode 100644 index 0000000000..9fa61f8371 --- /dev/null +++ b/parser/testdata/03209_parallel_replicas_lost_decimal_conversion/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_03209", + "tables": [ + { + "table": "t_03209" + } + ], + "sync": true +} diff --git a/parser/testdata/03209_parallel_replicas_order_by_all/ast.json b/parser/testdata/03209_parallel_replicas_order_by_all/ast.json new file mode 100644 index 0000000000..8ef28244bb --- /dev/null +++ b/parser/testdata/03209_parallel_replicas_order_by_all/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "order_by_all", + "tables": [ + { + "table": "order_by_all" + } + ], + "sync": true +} diff --git a/parser/testdata/03209_parameterized_view_with_non_literal_params/ast.json b/parser/testdata/03209_parameterized_view_with_non_literal_params/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03209_parameterized_view_with_non_literal_params/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03210_convert_outer_join_to_inner_join_any_join/ast.json b/parser/testdata/03210_convert_outer_join_to_inner_join_any_join/ast.json new file mode 100644 index 0000000000..0007067f1f --- /dev/null +++ b/parser/testdata/03210_convert_outer_join_to_inner_join_any_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "user_country", + "tables": [ + { + "table": "user_country" + } + ] +} diff --git a/parser/testdata/03210_dynamic_squashing/ast.json b/parser/testdata/03210_dynamic_squashing/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03210_dynamic_squashing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03210_empty_tuple_lhs_of_in/ast.json b/parser/testdata/03210_empty_tuple_lhs_of_in/ast.json new file mode 100644 index 0000000000..b312e92a1d --- /dev/null +++ b/parser/testdata/03210_empty_tuple_lhs_of_in/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "tuple" + }, + "list": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ], + "settings": [ + { + "name": "allow_experimental_map_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03210_nested_short_circuit_functions_bug/ast.json b/parser/testdata/03210_nested_short_circuit_functions_bug/ast.json new file mode 100644 index 0000000000..dc2f582e86 --- /dev/null +++ b/parser/testdata/03210_nested_short_circuit_functions_bug/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "name": "equals", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "abc" + } + ] + }, + { + "type": "String", + "value": "aws.lambda.duration" + } + ] + }, + { + "name": "if", + "arguments": [ + { + "left": { + "name": "toFloat64", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "x86_74" + } + ] + } + ] + }, + "op": "\u003c", + "right": { + "type": "Float", + "value": 50 + } + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "settings": [ + { + "name": "short_circuit_function_evaluation", + "value": { + "type": "String", + "value": "enable" + } + } + ] + } + ] +} diff --git a/parser/testdata/03210_optimize_rewrite_aggregate_function_with_if_return_type_bug/ast.json b/parser/testdata/03210_optimize_rewrite_aggregate_function_with_if_return_type_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03210_optimize_rewrite_aggregate_function_with_if_return_type_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03210_variant_with_aggregate_function_type/ast.json b/parser/testdata/03210_variant_with_aggregate_function_type/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03210_variant_with_aggregate_function_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03211_convert_outer_join_to_inner_join_anti_join/ast.json b/parser/testdata/03211_convert_outer_join_to_inner_join_anti_join/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03211_convert_outer_join_to_inner_join_anti_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03212_optimize_with_constraints_logical_error/ast.json b/parser/testdata/03212_optimize_with_constraints_logical_error/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03212_optimize_with_constraints_logical_error/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03212_variant_dynamic_cast_or_default/ast.json b/parser/testdata/03212_variant_dynamic_cast_or_default/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03212_variant_dynamic_cast_or_default/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03213_array_element_msan/ast.json b/parser/testdata/03213_array_element_msan/ast.json new file mode 100644 index 0000000000..9c7b307adc --- /dev/null +++ b/parser/testdata/03213_array_element_msan/ast.json @@ -0,0 +1,66 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "type": "Array", + "value": [ + { + "array": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 13 + }, + { + "type": "Integer", + "value": 15 + } + ] + }, + "index": { + "name": "toNullable", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ] + }, + "index": { + "name": "materialize", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03213_deep_json/ast.json b/parser/testdata/03213_deep_json/ast.json new file mode 100644 index 0000000000..a09b4a365a --- /dev/null +++ b/parser/testdata/03213_deep_json/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "JSONCompactEachRow" + ] + }, + { + "type": "String", + "value": "x UInt32, y UInt32" + }, + { + "name": "REPEAT", + "arguments": [ + { + "type": "String", + "value": "[1,1," + }, + { + "type": "Integer", + "value": 100000 + } + ] + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "input_format_json_compact_allow_variable_number_of_columns", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03213_denseRank_percentRank_alias/ast.json b/parser/testdata/03213_denseRank_percentRank_alias/ast.json new file mode 100644 index 0000000000..ed79c0419c --- /dev/null +++ b/parser/testdata/03213_denseRank_percentRank_alias/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "---- denseRank() ----" + } + ] + } + ] +} diff --git a/parser/testdata/03213_distributed_analyzer/ast.json b/parser/testdata/03213_distributed_analyzer/ast.json new file mode 100644 index 0000000000..f3a8480211 --- /dev/null +++ b/parser/testdata/03213_distributed_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 8 + } + } + ] +} diff --git a/parser/testdata/03214_bitslice_argument_evaluation/ast.json b/parser/testdata/03214_bitslice_argument_evaluation/ast.json new file mode 100644 index 0000000000..d853c48f36 --- /dev/null +++ b/parser/testdata/03214_bitslice_argument_evaluation/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bitSlice" + } + ] + } + ] +} diff --git a/parser/testdata/03214_count_distinct_null_key_memory_leak/ast.json b/parser/testdata/03214_count_distinct_null_key_memory_leak/ast.json new file mode 100644 index 0000000000..84f5da9014 --- /dev/null +++ b/parser/testdata/03214_count_distinct_null_key_memory_leak/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "testnull", + "tables": [ + { + "table": "testnull" + } + ] +} diff --git a/parser/testdata/03214_join_on_tuple_comparison_elimination_bug/ast.json b/parser/testdata/03214_join_on_tuple_comparison_elimination_bug/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/03214_join_on_tuple_comparison_elimination_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/03214_json_typed_dynamic_path/ast.json b/parser/testdata/03214_json_typed_dynamic_path/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03214_json_typed_dynamic_path/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03215_analyzer_materialized_constants_bug/ast.json b/parser/testdata/03215_analyzer_materialized_constants_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03215_analyzer_materialized_constants_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03215_analyzer_replace_with_dummy_tables/ast.json b/parser/testdata/03215_analyzer_replace_with_dummy_tables/ast.json new file mode 100644 index 0000000000..28a6c9e722 --- /dev/null +++ b/parser/testdata/03215_analyzer_replace_with_dummy_tables/ast.json @@ -0,0 +1,21 @@ +{ + "table": "t", + "columns": [ + { + "name": "number", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "number" + ] + } + ] +} diff --git a/parser/testdata/03215_fix_get_index_in_tuple/ast.json b/parser/testdata/03215_fix_get_index_in_tuple/ast.json new file mode 100644 index 0000000000..56201cfadd --- /dev/null +++ b/parser/testdata/03215_fix_get_index_in_tuple/ast.json @@ -0,0 +1,35 @@ +{ + "if_not_exists": true, + "table": "dummy_table_03215", + "columns": [ + { + "name": "id_col", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "date_col", + "type": { + "name": "Date" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "date_col" + ] + } + ] +} diff --git a/parser/testdata/03215_key_condition_bug/ast.json b/parser/testdata/03215_key_condition_bug/ast.json new file mode 100644 index 0000000000..71a0d6f33d --- /dev/null +++ b/parser/testdata/03215_key_condition_bug/ast.json @@ -0,0 +1,21 @@ +{ + "table": "t", + "columns": [ + { + "name": "x", + "type": { + "name": "Int8" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/03215_multilinestring_geometry/ast.json b/parser/testdata/03215_multilinestring_geometry/ast.json new file mode 100644 index 0000000000..8a7ca84d60 --- /dev/null +++ b/parser/testdata/03215_multilinestring_geometry/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "readWKTMultiLineString", + "arguments": [ + { + "type": "String", + "value": "MULTILINESTRING ((1 1, 2 2, 3 3, 1 1))" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03215_parquet_index/ast.json b/parser/testdata/03215_parquet_index/ast.json new file mode 100644 index 0000000000..4993f0a9f0 --- /dev/null +++ b/parser/testdata/03215_parquet_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_parquet", + "tables": [ + { + "table": "test_parquet" + } + ] +} diff --git a/parser/testdata/03215_parsing_archive_name_s3/ast.json b/parser/testdata/03215_parsing_archive_name_s3/ast.json new file mode 100644 index 0000000000..391b853e73 --- /dev/null +++ b/parser/testdata/03215_parsing_archive_name_s3/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "s3_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03215_partition_in_tuple/ast.json b/parser/testdata/03215_partition_in_tuple/ast.json new file mode 100644 index 0000000000..aeede6e27e --- /dev/null +++ b/parser/testdata/03215_partition_in_tuple/ast.json @@ -0,0 +1,109 @@ +{ + "table": "t", + "columns": [ + { + "name": "a", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + }, + { + "name": "b", + "type": { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 6 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ], + "partition_by": { + "name": "toStartOfDay", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + }, + "as_select": { + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "2023-01-01 00:00:00.000" + }, + { + "type": "String", + "value": "fd4c03" + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "String", + "value": "2023-01-01 00:00:00.000" + }, + { + "type": "String", + "value": "123456" + } + ] + } + ] + } + } + } + ] + } + } + ] + } +} diff --git a/parser/testdata/03215_toStartOfWeek_with_dateTime64_fix/ast.json b/parser/testdata/03215_toStartOfWeek_with_dateTime64_fix/ast.json new file mode 100644 index 0000000000..5f8d9ac1bc --- /dev/null +++ b/parser/testdata/03215_toStartOfWeek_with_dateTime64_fix/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfWeek", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "1970-01-01" + }, + { + "type": "Integer", + "value": 6 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03215_validate_type_in_alter_add_modify_column/ast.json b/parser/testdata/03215_validate_type_in_alter_add_modify_column/ast.json new file mode 100644 index 0000000000..bd27d8c850 --- /dev/null +++ b/parser/testdata/03215_validate_type_in_alter_add_modify_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03215_varian_as_common_type_integers/ast.json b/parser/testdata/03215_varian_as_common_type_integers/ast.json new file mode 100644 index 0000000000..a6557bf51f --- /dev/null +++ b/parser/testdata/03215_varian_as_common_type_integers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_variant_as_common_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03215_varian_as_common_type_tuple_map/ast.json b/parser/testdata/03215_varian_as_common_type_tuple_map/ast.json new file mode 100644 index 0000000000..a6557bf51f --- /dev/null +++ b/parser/testdata/03215_varian_as_common_type_tuple_map/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_variant_as_common_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03215_view_with_recursive/ast.json b/parser/testdata/03215_view_with_recursive/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03215_view_with_recursive/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03216_arrayWithConstant_limits/ast.json b/parser/testdata/03216_arrayWithConstant_limits/ast.json new file mode 100644 index 0000000000..019ec00691 --- /dev/null +++ b/parser/testdata/03216_arrayWithConstant_limits/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayWithConstant", + "arguments": [ + { + "type": "Integer", + "value": 96142475 + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "qMUF" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03217_datetime64_constant_to_ast/ast.json b/parser/testdata/03217_datetime64_constant_to_ast/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03217_datetime64_constant_to_ast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03217_filtering_in_system_tables/ast.json b/parser/testdata/03217_filtering_in_system_tables/ast.json new file mode 100644 index 0000000000..2f4c70ca35 --- /dev/null +++ b/parser/testdata/03217_filtering_in_system_tables/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "database" + ] + }, + { + "parts": [ + "table" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "tables" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "information_schema" + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "table" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "tables" + } + } + } + } + ] +} diff --git a/parser/testdata/03217_fliter_pushdown_no_keys/ast.json b/parser/testdata/03217_fliter_pushdown_no_keys/ast.json new file mode 100644 index 0000000000..9aea215eb4 --- /dev/null +++ b/parser/testdata/03217_fliter_pushdown_no_keys/ast.json @@ -0,0 +1,60 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "last_seen" + ] + } + ], + "alias": "dates_seen" + }, + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ], + "alias": "last_seen" + } + ] + } + ] + } + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "last_seen" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 2 + } + } + } + ] +} diff --git a/parser/testdata/03217_json_merge_patch_stack_overflow/ast.json b/parser/testdata/03217_json_merge_patch_stack_overflow/ast.json new file mode 100644 index 0000000000..b025da7e7d --- /dev/null +++ b/parser/testdata/03217_json_merge_patch_stack_overflow/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONMergePatch", + "arguments": [ + { + "name": "REPEAT", + "arguments": [ + { + "type": "String", + "value": "{\"c\":" + }, + { + "type": "Integer", + "value": 1000000 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03217_primary_index_memory_leak/ast.json b/parser/testdata/03217_primary_index_memory_leak/ast.json new file mode 100644 index 0000000000..3f17cae776 --- /dev/null +++ b/parser/testdata/03217_primary_index_memory_leak/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_primary_index_memory", + "tables": [ + { + "table": "t_primary_index_memory" + } + ] +} diff --git a/parser/testdata/03218_materialize_msan/ast.json b/parser/testdata/03218_materialize_msan/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03218_materialize_msan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03221_create_if_not_exists_setting/ast.json b/parser/testdata/03221_create_if_not_exists_setting/ast.json new file mode 100644 index 0000000000..3d1b7fa44d --- /dev/null +++ b/parser/testdata/03221_create_if_not_exists_setting/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "create_if_not_exists", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03221_incomplete_utf8_sequence/ast.json b/parser/testdata/03221_incomplete_utf8_sequence/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/03221_incomplete_utf8_sequence/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03221_key_condition_bug/ast.json b/parser/testdata/03221_key_condition_bug/ast.json new file mode 100644 index 0000000000..e66611d787 --- /dev/null +++ b/parser/testdata/03221_key_condition_bug/ast.json @@ -0,0 +1,23 @@ +{ + "if_not_exists": true, + "table": "report_metrics_v2", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ] +} diff --git a/parser/testdata/03221_merge_profile_events/ast.json b/parser/testdata/03221_merge_profile_events/ast.json new file mode 100644 index 0000000000..5135765b94 --- /dev/null +++ b/parser/testdata/03221_merge_profile_events/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_merge_profile_events_1", + "tables": [ + { + "table": "t_merge_profile_events_1" + } + ] +} diff --git a/parser/testdata/03221_variant_logical_error/ast.json b/parser/testdata/03221_variant_logical_error/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03221_variant_logical_error/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03222_create_timeseries_table/ast.json b/parser/testdata/03222_create_timeseries_table/ast.json new file mode 100644 index 0000000000..fc290b5f59 --- /dev/null +++ b/parser/testdata/03222_create_timeseries_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_time_series_table", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03222_date_time_inference/ast.json b/parser/testdata/03222_date_time_inference/ast.json new file mode 100644 index 0000000000..0fa915047e --- /dev/null +++ b/parser/testdata/03222_date_time_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_try_infer_datetimes", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03222_datetime64_small_value_const/ast.json b/parser/testdata/03222_datetime64_small_value_const/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03222_datetime64_small_value_const/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03222_json_empty_as_default/ast.json b/parser/testdata/03222_json_empty_as_default/ast.json new file mode 100644 index 0000000000..9d002d9180 --- /dev/null +++ b/parser/testdata/03222_json_empty_as_default/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "input_format_json_empty_as_default", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03222_json_squashing/ast.json b/parser/testdata/03222_json_squashing/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03222_json_squashing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03222_parallel_replicas_final_in_subquery/ast.json b/parser/testdata/03222_parallel_replicas_final_in_subquery/ast.json new file mode 100644 index 0000000000..cca17a4f6b --- /dev/null +++ b/parser/testdata/03222_parallel_replicas_final_in_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_00808", + "tables": [ + { + "table": "test_00808" + } + ] +} diff --git a/parser/testdata/03222_parallel_replicas_min_marks_to_read_overflow/ast.json b/parser/testdata/03222_parallel_replicas_min_marks_to_read_overflow/ast.json new file mode 100644 index 0000000000..e4475cb120 --- /dev/null +++ b/parser/testdata/03222_parallel_replicas_min_marks_to_read_overflow/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test__fuzz_22", + "tables": [ + { + "table": "test__fuzz_22" + } + ], + "sync": true +} diff --git a/parser/testdata/03222_pr_asan_index_granularity/ast.json b/parser/testdata/03222_pr_asan_index_granularity/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03222_pr_asan_index_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03223_analyzer_with_cube_fuzz/ast.json b/parser/testdata/03223_analyzer_with_cube_fuzz/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03223_analyzer_with_cube_fuzz/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03223_interval_data_type_comparison/ast.json b/parser/testdata/03223_interval_data_type_comparison/ast.json new file mode 100644 index 0000000000..0681511a04 --- /dev/null +++ b/parser/testdata/03223_interval_data_type_comparison/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Comparing nanoseconds" + } + ] + } + ] +} diff --git a/parser/testdata/03223_nested_json_in_shared_data_merges/ast.json b/parser/testdata/03223_nested_json_in_shared_data_merges/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03223_nested_json_in_shared_data_merges/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03223_system_tables_set_not_ready/ast.json b/parser/testdata/03223_system_tables_set_not_ready/ast.json new file mode 100644 index 0000000000..792df73008 --- /dev/null +++ b/parser/testdata/03223_system_tables_set_not_ready/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "null", + "tables": [ + { + "table": "null" + } + ] +} diff --git a/parser/testdata/03224_arrayUnion/ast.json b/parser/testdata/03224_arrayUnion/ast.json new file mode 100644 index 0000000000..29cbfe826c --- /dev/null +++ b/parser/testdata/03224_arrayUnion/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "array_union", + "tables": [ + { + "table": "array_union" + } + ] +} diff --git a/parser/testdata/03224_invalid_alter/ast.json b/parser/testdata/03224_invalid_alter/ast.json new file mode 100644 index 0000000000..90bd6d06e7 --- /dev/null +++ b/parser/testdata/03224_invalid_alter/ast.json @@ -0,0 +1,57 @@ +{ + "table": "test", + "columns": [ + { + "name": "str", + "type": { + "name": "String" + } + }, + { + "name": "column_with_codec", + "type": { + "name": "String" + }, + "codec": { + "codecs": [ + { + "name": "ZSTD" + } + ] + } + }, + { + "name": "column_with_alias", + "type": { + "name": "String" + }, + "default": { + "name": "concat", + "arguments": [ + { + "parts": [ + "str" + ] + }, + { + "expr": { + "type": "String", + "value": "a" + }, + "alias": "a" + } + ] + }, + "default_kind": "MATERIALIZED" + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03224_json_merges_new_type_in_shared_data/ast.json b/parser/testdata/03224_json_merges_new_type_in_shared_data/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03224_json_merges_new_type_in_shared_data/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03224_nested_json_merges_new_type_in_shared_data/ast.json b/parser/testdata/03224_nested_json_merges_new_type_in_shared_data/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03224_nested_json_merges_new_type_in_shared_data/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03224_tuple_element_identifier/ast.json b/parser/testdata/03224_tuple_element_identifier/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03224_tuple_element_identifier/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03225_const_prewhere_non_ataptive/ast.json b/parser/testdata/03225_const_prewhere_non_ataptive/ast.json new file mode 100644 index 0000000000..a1b6f50df5 --- /dev/null +++ b/parser/testdata/03225_const_prewhere_non_ataptive/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_const_prewhere", + "tables": [ + { + "table": "t_const_prewhere" + } + ] +} diff --git a/parser/testdata/03227_distinct_dynamic_types_json_paths/ast.json b/parser/testdata/03227_distinct_dynamic_types_json_paths/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03227_distinct_dynamic_types_json_paths/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03227_dynamic_subcolumns_enumerate_streams/ast.json b/parser/testdata/03227_dynamic_subcolumns_enumerate_streams/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03227_dynamic_subcolumns_enumerate_streams/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03227_implicit_select/ast.json b/parser/testdata/03227_implicit_select/ast.json new file mode 100644 index 0000000000..0f6e2e5e18 --- /dev/null +++ b/parser/testdata/03227_implicit_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "implicit_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03227_json_invalid_regexp/ast.json b/parser/testdata/03227_json_invalid_regexp/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03227_json_invalid_regexp/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03227_test_sample_n/ast.json b/parser/testdata/03227_test_sample_n/ast.json new file mode 100644 index 0000000000..b091ffa291 --- /dev/null +++ b/parser/testdata/03227_test_sample_n/ast.json @@ -0,0 +1,38 @@ +{ + "if_not_exists": true, + "table": "table_name", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "cityHash64", + "arguments": [ + { + "parts": [ + "id" + ] + } + ] + } + ], + "sample_by": { + "name": "cityHash64", + "arguments": [ + { + "parts": [ + "id" + ] + } + ] + } +} diff --git a/parser/testdata/03228_async_insert_query_params_bad_type/ast.json b/parser/testdata/03228_async_insert_query_params_bad_type/ast.json new file mode 100644 index 0000000000..36ba760f12 --- /dev/null +++ b/parser/testdata/03228_async_insert_query_params_bad_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_async_insert_params", + "tables": [ + { + "table": "t_async_insert_params" + } + ] +} diff --git a/parser/testdata/03228_dynamic_serializations_uninitialized_value/ast.json b/parser/testdata/03228_dynamic_serializations_uninitialized_value/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03228_dynamic_serializations_uninitialized_value/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03228_dynamic_subcolumns_from_subquery/ast.json b/parser/testdata/03228_dynamic_subcolumns_from_subquery/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03228_dynamic_subcolumns_from_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03228_join_to_rerange_right_table/ast.json b/parser/testdata/03228_join_to_rerange_right_table/ast.json new file mode 100644 index 0000000000..2f871df705 --- /dev/null +++ b/parser/testdata/03228_join_to_rerange_right_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_left", + "tables": [ + { + "table": "test_left" + } + ] +} diff --git a/parser/testdata/03228_pr_subquery_view_order_by/ast.json b/parser/testdata/03228_pr_subquery_view_order_by/ast.json new file mode 100644 index 0000000000..8ec30a2edf --- /dev/null +++ b/parser/testdata/03228_pr_subquery_view_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "view1", + "tables": [ + { + "table": "view1" + } + ] +} diff --git a/parser/testdata/03228_variant_permutation_issue/ast.json b/parser/testdata/03228_variant_permutation_issue/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03228_variant_permutation_issue/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03228_virtual_column_merge_dist/ast.json b/parser/testdata/03228_virtual_column_merge_dist/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03228_virtual_column_merge_dist/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_async_insert_alter/ast.json b/parser/testdata/03229_async_insert_alter/ast.json new file mode 100644 index 0000000000..1ed9237a46 --- /dev/null +++ b/parser/testdata/03229_async_insert_alter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "wait_for_async_insert", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03229_empty_tuple_in_array/ast.json b/parser/testdata/03229_empty_tuple_in_array/ast.json new file mode 100644 index 0000000000..3c54ae279e --- /dev/null +++ b/parser/testdata/03229_empty_tuple_in_array/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "array": { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [] + } + ] + }, + "index": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/03229_json_null_as_default_for_tuple/ast.json b/parser/testdata/03229_json_null_as_default_for_tuple/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03229_json_null_as_default_for_tuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_json_structure_comparison/ast.json b/parser/testdata/03229_json_structure_comparison/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03229_json_structure_comparison/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_drop_cache/ast.json b/parser/testdata/03229_query_condition_cache_drop_cache/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_drop_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_final/ast.json b/parser/testdata/03229_query_condition_cache_final/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_final/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_in_operator/ast.json b/parser/testdata/03229_query_condition_cache_in_operator/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_in_operator/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_nondeterministic_functions/ast.json b/parser/testdata/03229_query_condition_cache_nondeterministic_functions/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_nondeterministic_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_plaintext_condition/ast.json b/parser/testdata/03229_query_condition_cache_plaintext_condition/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_plaintext_condition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_profile_events/ast.json b/parser/testdata/03229_query_condition_cache_profile_events/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_profile_events/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_recursive_cte/ast.json b/parser/testdata/03229_query_condition_cache_recursive_cte/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_recursive_cte/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03229_query_condition_cache_system_table/ast.json b/parser/testdata/03229_query_condition_cache_system_table/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03229_query_condition_cache_system_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03230_alter_with_mixed_mutations_and_remove_materialized/ast.json b/parser/testdata/03230_alter_with_mixed_mutations_and_remove_materialized/ast.json new file mode 100644 index 0000000000..a19600d7a7 --- /dev/null +++ b/parser/testdata/03230_alter_with_mixed_mutations_and_remove_materialized/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ], + "sync": true +} diff --git a/parser/testdata/03230_anyHeavy_merge/ast.json b/parser/testdata/03230_anyHeavy_merge/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03230_anyHeavy_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03230_array_zip_unaligned/ast.json b/parser/testdata/03230_array_zip_unaligned/ast.json new file mode 100644 index 0000000000..b4dda971ac --- /dev/null +++ b/parser/testdata/03230_array_zip_unaligned/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayZipUnaligned", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "b" + }, + { + "type": "String", + "value": "c" + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "d" + }, + { + "type": "String", + "value": "e" + }, + { + "type": "String", + "value": "f" + } + ] + } + ], + "alias": "x" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03230_date_trunc_and_to_start_of_interval_on_date32/ast.json b/parser/testdata/03230_date_trunc_and_to_start_of_interval_on_date32/ast.json new file mode 100644 index 0000000000..5de324ef3d --- /dev/null +++ b/parser/testdata/03230_date_trunc_and_to_start_of_interval_on_date32/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfInterval", + "arguments": [ + { + "name": "toDate32", + "arguments": [ + { + "type": "String", + "value": "2022-09-16" + } + ] + }, + { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "YEAR" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03230_show_create_query_identifier_quoting_style/ast.json b/parser/testdata/03230_show_create_query_identifier_quoting_style/ast.json new file mode 100644 index 0000000000..fa60477daa --- /dev/null +++ b/parser/testdata/03230_show_create_query_identifier_quoting_style/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "uk_mortgage_rates_dict", + "tables": [ + { + "table": "uk_mortgage_rates_dict" + } + ] +} diff --git a/parser/testdata/03230_subcolumns_mv/ast.json b/parser/testdata/03230_subcolumns_mv/ast.json new file mode 100644 index 0000000000..095e212b68 --- /dev/null +++ b/parser/testdata/03230_subcolumns_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rawtable", + "tables": [ + { + "table": "rawtable" + } + ] +} diff --git a/parser/testdata/03230_system_projections/ast.json b/parser/testdata/03230_system_projections/ast.json new file mode 100644 index 0000000000..68acd715ca --- /dev/null +++ b/parser/testdata/03230_system_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "projections", + "tables": [ + { + "table": "projections" + } + ] +} diff --git a/parser/testdata/03231_create_with_clone_as/ast.json b/parser/testdata/03231_create_with_clone_as/ast.json new file mode 100644 index 0000000000..71d149d2ea --- /dev/null +++ b/parser/testdata/03231_create_with_clone_as/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo_memory", + "tables": [ + { + "table": "foo_memory" + } + ] +} diff --git a/parser/testdata/03231_csv_dont_infer_bool_from_string/ast.json b/parser/testdata/03231_csv_dont_infer_bool_from_string/ast.json new file mode 100644 index 0000000000..0e2a1109c0 --- /dev/null +++ b/parser/testdata/03231_csv_dont_infer_bool_from_string/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_csv_try_infer_numbers_from_strings", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03231_dynamic_incomplete_type_insert_bug/ast.json b/parser/testdata/03231_dynamic_incomplete_type_insert_bug/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03231_dynamic_incomplete_type_insert_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03231_dynamic_uniq_group_by/ast.json b/parser/testdata/03231_dynamic_uniq_group_by/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03231_dynamic_uniq_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03231_dynamic_variant_in_order_by_group_by/ast.json b/parser/testdata/03231_dynamic_variant_in_order_by_group_by/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03231_dynamic_variant_in_order_by_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03231_pr_duplicate_announcement/ast.json b/parser/testdata/03231_pr_duplicate_announcement/ast.json new file mode 100644 index 0000000000..e285dbfac6 --- /dev/null +++ b/parser/testdata/03231_pr_duplicate_announcement/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ], + "sync": true +} diff --git a/parser/testdata/03231_pr_duplicate_announcement_2/ast.json b/parser/testdata/03231_pr_duplicate_announcement_2/ast.json new file mode 100644 index 0000000000..bc4ca75255 --- /dev/null +++ b/parser/testdata/03231_pr_duplicate_announcement_2/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "ANIMAL", + "tables": [ + { + "table": "ANIMAL" + } + ], + "sync": true +} diff --git a/parser/testdata/03231_pr_reverse_in_order/ast.json b/parser/testdata/03231_pr_reverse_in_order/ast.json new file mode 100644 index 0000000000..b98b73d2b7 --- /dev/null +++ b/parser/testdata/03231_pr_reverse_in_order/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "checks", + "tables": [ + { + "table": "checks" + } + ], + "sync": true +} diff --git a/parser/testdata/03231_prewhere_conditions_order/ast.json b/parser/testdata/03231_prewhere_conditions_order/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03231_prewhere_conditions_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03231_values_respect_format_settings_in_fields_conversion/ast.json b/parser/testdata/03231_values_respect_format_settings_in_fields_conversion/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03231_values_respect_format_settings_in_fields_conversion/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03232_json_uniq_group_by/ast.json b/parser/testdata/03232_json_uniq_group_by/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03232_json_uniq_group_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03232_pr_not_ready_set/ast.json b/parser/testdata/03232_pr_not_ready_set/ast.json new file mode 100644 index 0000000000..35d11677b7 --- /dev/null +++ b/parser/testdata/03232_pr_not_ready_set/ast.json @@ -0,0 +1,3 @@ +{ + "command": "FLUSH LOGS query_log" +} diff --git a/parser/testdata/03233_dynamic_in_functions/ast.json b/parser/testdata/03233_dynamic_in_functions/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03233_dynamic_in_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03234_enable_secure_identifiers/ast.json b/parser/testdata/03234_enable_secure_identifiers/ast.json new file mode 100644 index 0000000000..5864d38ba2 --- /dev/null +++ b/parser/testdata/03234_enable_secure_identifiers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_foo_#", + "tables": [ + { + "table": "test_foo_#" + } + ] +} diff --git a/parser/testdata/03234_get_setting_or_default/ast.json b/parser/testdata/03234_get_setting_or_default/ast.json new file mode 100644 index 0000000000..d1af210b35 --- /dev/null +++ b/parser/testdata/03234_get_setting_or_default/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "custom_a", + "value": { + "type": "String", + "value": "value_a" + } + } + ] +} diff --git a/parser/testdata/03235_groupArray_string_consistency/ast.json b/parser/testdata/03235_groupArray_string_consistency/ast.json new file mode 100644 index 0000000000..5152d79043 --- /dev/null +++ b/parser/testdata/03235_groupArray_string_consistency/ast.json @@ -0,0 +1,27 @@ +{ + "table": "t", + "columns": [ + { + "name": "st", + "type": { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 54 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": null + } + ] +} diff --git a/parser/testdata/03236_create_query_ttl_where/ast.json b/parser/testdata/03236_create_query_ttl_where/ast.json new file mode 100644 index 0000000000..463cbbb397 --- /dev/null +++ b/parser/testdata/03236_create_query_ttl_where/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl", + "tables": [ + { + "table": "ttl" + } + ] +} diff --git a/parser/testdata/03236_keeper_map_engine_parameters/ast.json b/parser/testdata/03236_keeper_map_engine_parameters/ast.json new file mode 100644 index 0000000000..69a36ca499 --- /dev/null +++ b/parser/testdata/03236_keeper_map_engine_parameters/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03236_keeper_map_engine_parameters", + "tables": [ + { + "table": "03236_keeper_map_engine_parameters" + } + ] +} diff --git a/parser/testdata/03236_squashing_high_memory/ast.json b/parser/testdata/03236_squashing_high_memory/ast.json new file mode 100644 index 0000000000..c929da90fe --- /dev/null +++ b/parser/testdata/03236_squashing_high_memory/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "String", + "value": "501G" + } + } + ] +} diff --git a/parser/testdata/03236_test_zero_field_decimal/ast.json b/parser/testdata/03236_test_zero_field_decimal/ast.json new file mode 100644 index 0000000000..ff8f3215d8 --- /dev/null +++ b/parser/testdata/03236_test_zero_field_decimal/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users_03236_zero", + "tables": [ + { + "table": "users_03236_zero" + } + ] +} diff --git a/parser/testdata/03237_create_table_select_as_with_recursive/ast.json b/parser/testdata/03237_create_table_select_as_with_recursive/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03237_create_table_select_as_with_recursive/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03237_max_map_state_decimal_serialization/ast.json b/parser/testdata/03237_max_map_state_decimal_serialization/ast.json new file mode 100644 index 0000000000..99f1e2f1ae --- /dev/null +++ b/parser/testdata/03237_max_map_state_decimal_serialization/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "maxMapState", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "type": "Array", + "value": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ], + "alias": "x" + } + ], + "format": { + "parts": [ + "JSONEachRow" + ] + } + } + ] +} diff --git a/parser/testdata/03238_analyzer_unknown_function/ast.json b/parser/testdata/03238_analyzer_unknown_function/ast.json new file mode 100644 index 0000000000..b27e5ec0e9 --- /dev/null +++ b/parser/testdata/03238_analyzer_unknown_function/ast.json @@ -0,0 +1,107 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "source", + "count" + ], + "alias": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "count", + "arguments": [ + {} + ], + "alias": "count" + }, + { + "parts": [ + "key" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "alias": "key" + } + ] + } + ] + } + }, + "alias": "source" + } + }, + { + "table": { + "table": { + "database": "system", + "table": "one" + }, + "alias": "r" + }, + "join": { + "type": "RIGHT", + "on": { + "left": { + "parts": [ + "source", + "key" + ] + }, + "op": "=", + "right": { + "parts": [ + "r", + "dummy" + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03239_if_constant_folding/ast.json b/parser/testdata/03239_if_constant_folding/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03239_if_constant_folding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03240_array_element_or_null/ast.json b/parser/testdata/03240_array_element_or_null/ast.json new file mode 100644 index 0000000000..25145d3e50 --- /dev/null +++ b/parser/testdata/03240_array_element_or_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "array_element_or_null_test", + "tables": [ + { + "table": "array_element_or_null_test" + } + ] +} diff --git a/parser/testdata/03240_array_element_or_null_for_map/ast.json b/parser/testdata/03240_array_element_or_null_for_map/ast.json new file mode 100644 index 0000000000..bb6b3252ff --- /dev/null +++ b/parser/testdata/03240_array_element_or_null_for_map/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "...const maps..." + } + ] + } + ] +} diff --git a/parser/testdata/03240_cte_in_subquery/ast.json b/parser/testdata/03240_cte_in_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03240_cte_in_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03240_insert_select_named_tuple/ast.json b/parser/testdata/03240_insert_select_named_tuple/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03240_insert_select_named_tuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03240_quantile_exact_weighted_interpolated/ast.json b/parser/testdata/03240_quantile_exact_weighted_interpolated/ast.json new file mode 100644 index 0000000000..de91dfd5d9 --- /dev/null +++ b/parser/testdata/03240_quantile_exact_weighted_interpolated/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal", + "tables": [ + { + "table": "decimal" + } + ] +} diff --git a/parser/testdata/03241_orc_dictionary_encode/ast.json b/parser/testdata/03241_orc_dictionary_encode/ast.json new file mode 100644 index 0000000000..7354f3338d --- /dev/null +++ b/parser/testdata/03241_orc_dictionary_encode/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_orc_use_fast_decoder", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03241_view_block_structure/ast.json b/parser/testdata/03241_view_block_structure/ast.json new file mode 100644 index 0000000000..0b6f1850e9 --- /dev/null +++ b/parser/testdata/03241_view_block_structure/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "foo", + "tables": [ + { + "table": "foo" + } + ] +} diff --git a/parser/testdata/03242_view_block_structure/ast.json b/parser/testdata/03242_view_block_structure/ast.json new file mode 100644 index 0000000000..3b335b9fce --- /dev/null +++ b/parser/testdata/03242_view_block_structure/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "a", + "tables": [ + { + "table": "a" + } + ] +} diff --git a/parser/testdata/03243_array_join_lambda/ast.json b/parser/testdata/03243_array_join_lambda/ast.json new file mode 100644 index 0000000000..5928d762cd --- /dev/null +++ b/parser/testdata/03243_array_join_lambda/ast.json @@ -0,0 +1,85 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "x" + ] + }, + "op": "+", + "right": { + "name": "length", + "arguments": [ + { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "arrayMap", + "arguments": [ + { + "parameters": [ + "y" + ], + "body": { + "left": { + "parts": [ + "y" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] + } + ] + } + } + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03243_check_for_nullable_nothing_in_alter/ast.json b/parser/testdata/03243_check_for_nullable_nothing_in_alter/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/03243_check_for_nullable_nothing_in_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/03243_cluster_not_found_column/ast.json b/parser/testdata/03243_cluster_not_found_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03243_cluster_not_found_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03243_compatibility_setting_with_alias/ast.json b/parser/testdata/03243_compatibility_setting_with_alias/ast.json new file mode 100644 index 0000000000..d2ae3a655a --- /dev/null +++ b/parser/testdata/03243_compatibility_setting_with_alias/ast.json @@ -0,0 +1,12 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "parts": [ + "DEFAULT" + ] + } + } + ] +} diff --git a/parser/testdata/03243_create_or_replace_view_dependency_check/ast.json b/parser/testdata/03243_create_or_replace_view_dependency_check/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03243_create_or_replace_view_dependency_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03243_lower_utf8_msan/ast.json b/parser/testdata/03243_lower_utf8_msan/ast.json new file mode 100644 index 0000000000..cb59b2c316 --- /dev/null +++ b/parser/testdata/03243_lower_utf8_msan/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ignore", + "arguments": [ + { + "name": "lengthUTF8", + "arguments": [ + { + "name": "lowerUTF8", + "arguments": [ + { + "name": "randomStringUTF8", + "arguments": [ + { + "type": "Integer", + "value": 99 + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03243_to_start_of_interval_aliases/ast.json b/parser/testdata/03243_to_start_of_interval_aliases/ast.json new file mode 100644 index 0000000000..19af1234de --- /dev/null +++ b/parser/testdata/03243_to_start_of_interval_aliases/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "date_bin", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2023-10-09" + } + ] + }, + { + "name": "toIntervalYear", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2022-02-01" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan/ast.json b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan/ast.json new file mode 100644 index 0000000000..f1ede05f4e --- /dev/null +++ b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_skip_indexes", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_basic/ast.json b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_basic/ast.json new file mode 100644 index 0000000000..0acaf89672 --- /dev/null +++ b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_basic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data_02201", + "tables": [ + { + "table": "data_02201" + } + ] +} diff --git a/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_extremes/ast.json b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_extremes/ast.json new file mode 100644 index 0000000000..f1ede05f4e --- /dev/null +++ b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_extremes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_skip_indexes", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_no_final_mark/ast.json b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_no_final_mark/ast.json new file mode 100644 index 0000000000..f1ede05f4e --- /dev/null +++ b/parser/testdata/03244_skip_index_in_final_query_with_pk_rescan_no_final_mark/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_skip_indexes", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03245_ripemd160/ast.json b/parser/testdata/03245_ripemd160/ast.json new file mode 100644 index 0000000000..601b0fbb80 --- /dev/null +++ b/parser/testdata/03245_ripemd160/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "HEX", + "arguments": [ + { + "name": "RIPEMD160", + "arguments": [ + { + "type": "String", + "value": "The quick brown fox jumps over the lazy dog" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03245_views_and_filter_push_down_bug/ast.json b/parser/testdata/03245_views_and_filter_push_down_bug/ast.json new file mode 100644 index 0000000000..21bc5ad81f --- /dev/null +++ b/parser/testdata/03245_views_and_filter_push_down_bug/ast.json @@ -0,0 +1,97 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "id" + ] + }, + { + "name": "toDateTime", + "arguments": [ + { + "parts": [ + "date" + ] + } + ], + "alias": "date" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "id" + }, + { + "expr": { + "type": "String", + "value": "2024-05-02" + }, + "alias": "date" + } + ] + } + ] + } + } + ] + } + } + } + ] + } + } + ] + } + } + ] + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "date" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "2024-05-02" + } + } + } + ] +} diff --git a/parser/testdata/03246_alter_update_dynamic_hung/ast.json b/parser/testdata/03246_alter_update_dynamic_hung/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03246_alter_update_dynamic_hung/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03246_join_on_asterisk/ast.json b/parser/testdata/03246_join_on_asterisk/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03246_join_on_asterisk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03246_json_subcolumn_correct_type/ast.json b/parser/testdata/03246_json_subcolumn_correct_type/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03246_json_subcolumn_correct_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03246_json_tuple_decompress_race/ast.json b/parser/testdata/03246_json_tuple_decompress_race/ast.json new file mode 100644 index 0000000000..07f632542b --- /dev/null +++ b/parser/testdata/03246_json_tuple_decompress_race/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "type_json_skip_duplicated_paths", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_simdjson", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03246_range_literal_replacement_works/ast.json b/parser/testdata/03246_range_literal_replacement_works/ast.json new file mode 100644 index 0000000000..7621f2f63f --- /dev/null +++ b/parser/testdata/03246_range_literal_replacement_works/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_values_interpret_expressions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03246_toStartOfInterval_date_timezone_bug/ast.json b/parser/testdata/03246_toStartOfInterval_date_timezone_bug/ast.json new file mode 100644 index 0000000000..ab079427e8 --- /dev/null +++ b/parser/testdata/03246_toStartOfInterval_date_timezone_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Europe/Amsterdam" + } + } + ] +} diff --git a/parser/testdata/03247_generic_arrayMin_arrayMax_fixes/ast.json b/parser/testdata/03247_generic_arrayMin_arrayMax_fixes/ast.json new file mode 100644 index 0000000000..24f97051f0 --- /dev/null +++ b/parser/testdata/03247_generic_arrayMin_arrayMax_fixes/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayMax", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "." + }, + { + "type": "Integer", + "value": 1 + } + ] + } + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03247_json_extract_lc_nullable/ast.json b/parser/testdata/03247_json_extract_lc_nullable/ast.json new file mode 100644 index 0000000000..11e6881b60 --- /dev/null +++ b/parser/testdata/03247_json_extract_lc_nullable/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "JSONExtract", + "arguments": [ + { + "type": "String", + "value": "{\"a\" : 128}" + }, + { + "type": "String", + "value": "a" + }, + { + "type": "String", + "value": "LowCardinality(Nullable(Int128))" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03247_object_column_copy/ast.json b/parser/testdata/03247_object_column_copy/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03247_object_column_copy/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03247_pr_local_plan_non_constant_in_source/ast.json b/parser/testdata/03247_pr_local_plan_non_constant_in_source/ast.json new file mode 100644 index 0000000000..48ac2d2528 --- /dev/null +++ b/parser/testdata/03247_pr_local_plan_non_constant_in_source/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "table_3", + "tables": [ + { + "table": "table_3" + } + ], + "sync": true +} diff --git a/parser/testdata/03248_max_parts_to_move/ast.json b/parser/testdata/03248_max_parts_to_move/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03248_max_parts_to_move/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03248_with_fill_string_crash/ast.json b/parser/testdata/03248_with_fill_string_crash/ast.json new file mode 100644 index 0000000000..bb017d9306 --- /dev/null +++ b/parser/testdata/03248_with_fill_string_crash/ast.json @@ -0,0 +1,34 @@ +{ + "table": "users", + "columns": [ + { + "name": "date", + "type": { + "name": "DateTime" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "age", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "date" + ] + } + ] +} diff --git a/parser/testdata/03248_with_insert/ast.json b/parser/testdata/03248_with_insert/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/03248_with_insert/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/03249_dynamic_alter_consistency/ast.json b/parser/testdata/03249_dynamic_alter_consistency/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03249_dynamic_alter_consistency/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03250_avoid_prefetch_empty_parts/ast.json b/parser/testdata/03250_avoid_prefetch_empty_parts/ast.json new file mode 100644 index 0000000000..56c0b57dce --- /dev/null +++ b/parser/testdata/03250_avoid_prefetch_empty_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03250_avoid_prefetch", + "tables": [ + { + "table": "03250_avoid_prefetch" + } + ] +} diff --git a/parser/testdata/03250_ephemeral_comment/ast.json b/parser/testdata/03250_ephemeral_comment/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03250_ephemeral_comment/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03250_json_group_by_sub_object_subcolumn/ast.json b/parser/testdata/03250_json_group_by_sub_object_subcolumn/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03250_json_group_by_sub_object_subcolumn/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03251_unaligned_window_function_state/ast.json b/parser/testdata/03251_unaligned_window_function_state/ast.json new file mode 100644 index 0000000000..0f9e6607d0 --- /dev/null +++ b/parser/testdata/03251_unaligned_window_function_state/ast.json @@ -0,0 +1,131 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "anyLast", + "arguments": [ + { + "parts": [ + "id" + ] + } + ] + }, + { + "name": "anyLast", + "arguments": [ + { + "parts": [ + "time" + ] + } + ] + }, + { + "name": "exponentialTimeDecayedAvg", + "parameters": [ + { + "type": "Integer", + "value": 10 + } + ], + "arguments": [ + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "time" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "values", + "arguments": [ + { + "type": "String", + "value": "id Int8, time DateTime" + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 3 + } + ] + }, + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03252_check_number_of_arguments_for_dynamic/ast.json b/parser/testdata/03252_check_number_of_arguments_for_dynamic/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03252_check_number_of_arguments_for_dynamic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03252_fill_missed_arrays/ast.json b/parser/testdata/03252_fill_missed_arrays/ast.json new file mode 100644 index 0000000000..ad620ceebe --- /dev/null +++ b/parser/testdata/03252_fill_missed_arrays/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_fill_arrays", + "tables": [ + { + "table": "t_fill_arrays" + } + ] +} diff --git a/parser/testdata/03252_merge_tree_min_bytes_to_seek/ast.json b/parser/testdata/03252_merge_tree_min_bytes_to_seek/ast.json new file mode 100644 index 0000000000..93f88f1b20 --- /dev/null +++ b/parser/testdata/03252_merge_tree_min_bytes_to_seek/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_query_condition_cache", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03253_getMaxTableNameLength/ast.json b/parser/testdata/03253_getMaxTableNameLength/ast.json new file mode 100644 index 0000000000..a5b0984805 --- /dev/null +++ b/parser/testdata/03253_getMaxTableNameLength/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "getMaxTableNameLengthForDatabase", + "arguments": [ + { + "type": "String", + "value": "default" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03254_attach_part_order/ast.json b/parser/testdata/03254_attach_part_order/ast.json new file mode 100644 index 0000000000..e2fce4cafb --- /dev/null +++ b/parser/testdata/03254_attach_part_order/ast.json @@ -0,0 +1,59 @@ +{ + "table": "test_table", + "columns": [ + { + "name": "dt", + "type": { + "name": "DateTime" + } + }, + { + "name": "id", + "type": { + "name": "UInt32" + } + }, + { + "name": "url", + "type": { + "name": "String" + } + }, + { + "name": "visits", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "ReplacingMergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "dt" + ] + }, + { + "parts": [ + "id" + ] + } + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "dt" + ] + } + ] + } +} diff --git a/parser/testdata/03254_last_2_samples_aggregate_function/ast.json b/parser/testdata/03254_last_2_samples_aggregate_function/ast.json new file mode 100644 index 0000000000..8b187b46ad --- /dev/null +++ b/parser/testdata/03254_last_2_samples_aggregate_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_ts_to_grid_aggregate_function", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03254_last_2_samples_aggregate_function_simple/ast.json b/parser/testdata/03254_last_2_samples_aggregate_function_simple/ast.json new file mode 100644 index 0000000000..8b187b46ad --- /dev/null +++ b/parser/testdata/03254_last_2_samples_aggregate_function_simple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_ts_to_grid_aggregate_function", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03254_merge_source_parts/ast.json b/parser/testdata/03254_merge_source_parts/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03254_merge_source_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03254_normalize_aggregate_states_with_named_tuple_args/ast.json b/parser/testdata/03254_normalize_aggregate_states_with_named_tuple_args/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03254_normalize_aggregate_states_with_named_tuple_args/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03254_part_log_partition_column_is_set/ast.json b/parser/testdata/03254_part_log_partition_column_is_set/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03254_part_log_partition_column_is_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03254_pr_join_on_dups/ast.json b/parser/testdata/03254_pr_join_on_dups/ast.json new file mode 100644 index 0000000000..32b6360d79 --- /dev/null +++ b/parser/testdata/03254_pr_join_on_dups/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "X", + "tables": [ + { + "table": "X" + } + ], + "sync": true +} diff --git a/parser/testdata/03254_prewarm_mark_cache_columns/ast.json b/parser/testdata/03254_prewarm_mark_cache_columns/ast.json new file mode 100644 index 0000000000..564844da9e --- /dev/null +++ b/parser/testdata/03254_prewarm_mark_cache_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_prewarm_columns", + "tables": [ + { + "table": "t_prewarm_columns" + } + ] +} diff --git a/parser/testdata/03254_prewarm_mark_cache_rmt/ast.json b/parser/testdata/03254_prewarm_mark_cache_rmt/ast.json new file mode 100644 index 0000000000..a95570b70b --- /dev/null +++ b/parser/testdata/03254_prewarm_mark_cache_rmt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_prewarm_cache_rmt_1", + "tables": [ + { + "table": "t_prewarm_cache_rmt_1" + } + ] +} diff --git a/parser/testdata/03254_project_lwd_respects_row_exists/ast.json b/parser/testdata/03254_project_lwd_respects_row_exists/ast.json new file mode 100644 index 0000000000..50f04df496 --- /dev/null +++ b/parser/testdata/03254_project_lwd_respects_row_exists/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users_compact", + "tables": [ + { + "table": "users_compact" + } + ] +} diff --git a/parser/testdata/03254_system_prewarm_mark_cache/ast.json b/parser/testdata/03254_system_prewarm_mark_cache/ast.json new file mode 100644 index 0000000000..150b8d0d88 --- /dev/null +++ b/parser/testdata/03254_system_prewarm_mark_cache/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_prewarm_cache", + "tables": [ + { + "table": "t_prewarm_cache" + } + ] +} diff --git a/parser/testdata/03254_timeseries_functions/ast.json b/parser/testdata/03254_timeseries_functions/ast.json new file mode 100644 index 0000000000..261a005fd4 --- /dev/null +++ b/parser/testdata/03254_timeseries_functions/ast.json @@ -0,0 +1,39 @@ +{ + "table": "ts_raw_data", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "value", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "timestamp" + ] + } + ] +} diff --git a/parser/testdata/03254_timeseries_functions_various_arguments/ast.json b/parser/testdata/03254_timeseries_functions_various_arguments/ast.json new file mode 100644 index 0000000000..582606eae5 --- /dev/null +++ b/parser/testdata/03254_timeseries_functions_various_arguments/ast.json @@ -0,0 +1,46 @@ +{ + "table": "ts_data", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "timestamps", + "type": { + "name": "Array", + "parameters": [ + { + "name": "DateTime" + } + ], + "has_parentheses": true + } + }, + { + "name": "values", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Float64" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03254_timeseries_group_array/ast.json b/parser/testdata/03254_timeseries_group_array/ast.json new file mode 100644 index 0000000000..261a005fd4 --- /dev/null +++ b/parser/testdata/03254_timeseries_group_array/ast.json @@ -0,0 +1,39 @@ +{ + "table": "ts_raw_data", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "value", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "timestamp" + ] + } + ] +} diff --git a/parser/testdata/03254_timeseries_instant_value_aggregate_functions/ast.json b/parser/testdata/03254_timeseries_instant_value_aggregate_functions/ast.json new file mode 100644 index 0000000000..8b187b46ad --- /dev/null +++ b/parser/testdata/03254_timeseries_instant_value_aggregate_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_ts_to_grid_aggregate_function", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03254_timeseries_range/ast.json b/parser/testdata/03254_timeseries_range/ast.json new file mode 100644 index 0000000000..d6bc32c3b3 --- /dev/null +++ b/parser/testdata/03254_timeseries_range/ast.json @@ -0,0 +1,51 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "timeSeriesRange", + "arguments": [ + { + "expr": { + "type": "String", + "value": "2025-06-01 00:00:00" + }, + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + { + "expr": { + "type": "String", + "value": "2025-06-01 00:01:30.000" + }, + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + { + "type": "Integer", + "value": 30 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03254_timeseries_to_grid_aggregate_function/ast.json b/parser/testdata/03254_timeseries_to_grid_aggregate_function/ast.json new file mode 100644 index 0000000000..644caee019 --- /dev/null +++ b/parser/testdata/03254_timeseries_to_grid_aggregate_function/ast.json @@ -0,0 +1,33 @@ +{ + "table": "ts_data", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "value", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03254_timeseries_to_grid_aggregate_function_sparse/ast.json b/parser/testdata/03254_timeseries_to_grid_aggregate_function_sparse/ast.json new file mode 100644 index 0000000000..644caee019 --- /dev/null +++ b/parser/testdata/03254_timeseries_to_grid_aggregate_function_sparse/ast.json @@ -0,0 +1,33 @@ +{ + "table": "ts_data", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "value", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03255_merge_mutation_start_entry_in_the_part_log/ast.json b/parser/testdata/03255_merge_mutation_start_entry_in_the_part_log/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03255_merge_mutation_start_entry_in_the_part_log/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03256_invalid_mutation_query/ast.json b/parser/testdata/03256_invalid_mutation_query/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03256_invalid_mutation_query/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03257_json_escape_file_names/ast.json b/parser/testdata/03257_json_escape_file_names/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03257_json_escape_file_names/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03257_reverse_sorting_key/ast.json b/parser/testdata/03257_reverse_sorting_key/ast.json new file mode 100644 index 0000000000..d121fc848a --- /dev/null +++ b/parser/testdata/03257_reverse_sorting_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03257_reverse_sorting_key_simple/ast.json b/parser/testdata/03257_reverse_sorting_key_simple/ast.json new file mode 100644 index 0000000000..d121fc848a --- /dev/null +++ b/parser/testdata/03257_reverse_sorting_key_simple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03257_reverse_sorting_key_zookeeper/ast.json b/parser/testdata/03257_reverse_sorting_key_zookeeper/ast.json new file mode 100644 index 0000000000..cd1010d0fa --- /dev/null +++ b/parser/testdata/03257_reverse_sorting_key_zookeeper/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x1", + "tables": [ + { + "table": "x1" + } + ] +} diff --git a/parser/testdata/03257_setting_tiers/ast.json b/parser/testdata/03257_setting_tiers/ast.json new file mode 100644 index 0000000000..588317ab9c --- /dev/null +++ b/parser/testdata/03257_setting_tiers/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "tier" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "Production" + } + } + } + ] +} diff --git a/parser/testdata/03258_dynamic_in_functions_weak_ptr_exception/ast.json b/parser/testdata/03258_dynamic_in_functions_weak_ptr_exception/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03258_dynamic_in_functions_weak_ptr_exception/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03258_multiple_array_joins/ast.json b/parser/testdata/03258_multiple_array_joins/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03258_multiple_array_joins/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03258_quantile_exact_weighted_issue/ast.json b/parser/testdata/03258_quantile_exact_weighted_issue/ast.json new file mode 100644 index 0000000000..0546766fc0 --- /dev/null +++ b/parser/testdata/03258_quantile_exact_weighted_issue/ast.json @@ -0,0 +1,70 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "name": "quantilesExactWeightedState", + "parameters": [ + { + "type": "Float", + "value": 0.2 + }, + { + "type": "Float", + "value": 0.4 + }, + { + "type": "Float", + "value": 0.6 + }, + { + "type": "Float", + "value": 0.8 + } + ], + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + { + "type": "Integer", + "value": 1 + } + ], + "alias": "x" + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 49999 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03259_grouping_sets_aliases/ast.json b/parser/testdata/03259_grouping_sets_aliases/ast.json new file mode 100644 index 0000000000..b5886be12b --- /dev/null +++ b/parser/testdata/03259_grouping_sets_aliases/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users", + "tables": [ + { + "table": "users" + } + ] +} diff --git a/parser/testdata/03259_join_condition_executed_block_bug/ast.json b/parser/testdata/03259_join_condition_executed_block_bug/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03259_join_condition_executed_block_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03259_negate_key_overflow/ast.json b/parser/testdata/03259_negate_key_overflow/ast.json new file mode 100644 index 0000000000..7f9317aa51 --- /dev/null +++ b/parser/testdata/03259_negate_key_overflow/ast.json @@ -0,0 +1,21 @@ +{ + "table": "a", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/03259_orc_date_out_of_range/ast.json b/parser/testdata/03259_orc_date_out_of_range/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03259_orc_date_out_of_range/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03260_dynamic_low_cardinality_dict_bug/ast.json b/parser/testdata/03260_dynamic_low_cardinality_dict_bug/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03260_dynamic_low_cardinality_dict_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03261_any_respect_camelCase_aliases/ast.json b/parser/testdata/03261_any_respect_camelCase_aliases/ast.json new file mode 100644 index 0000000000..07c0539634 --- /dev/null +++ b/parser/testdata/03261_any_respect_camelCase_aliases/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "anyRespectNulls" + } + ] + } + ] +} diff --git a/parser/testdata/03261_delayed_streams_memory/ast.json b/parser/testdata/03261_delayed_streams_memory/ast.json new file mode 100644 index 0000000000..4e361571e7 --- /dev/null +++ b/parser/testdata/03261_delayed_streams_memory/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_100_columns", + "tables": [ + { + "table": "t_100_columns" + } + ] +} diff --git a/parser/testdata/03261_low_cardinality_nullable_to_dynamic_cast/ast.json b/parser/testdata/03261_low_cardinality_nullable_to_dynamic_cast/ast.json new file mode 100644 index 0000000000..f2be4e7a1e --- /dev/null +++ b/parser/testdata/03261_low_cardinality_nullable_to_dynamic_cast/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03261_minmax_indices_by_default/ast.json b/parser/testdata/03261_minmax_indices_by_default/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/03261_minmax_indices_by_default/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03261_minmax_indices_by_default_table_copy/ast.json b/parser/testdata/03261_minmax_indices_by_default_table_copy/ast.json new file mode 100644 index 0000000000..d7104b4726 --- /dev/null +++ b/parser/testdata/03261_minmax_indices_by_default_table_copy/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab1", + "tables": [ + { + "table": "tab1" + } + ] +} diff --git a/parser/testdata/03261_mongodb_argumetns_crash/ast.json b/parser/testdata/03261_mongodb_argumetns_crash/ast.json new file mode 100644 index 0000000000..f8c26b074a --- /dev/null +++ b/parser/testdata/03261_mongodb_argumetns_crash/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "mongodb", + "arguments": [ + { + "type": "String", + "value": "mongodb://some-cluster:27017/?retryWrites=false" + }, + { + "type": "Null", + "value": null + }, + { + "type": "String", + "value": "my_collection" + }, + { + "type": "String", + "value": "test_user" + }, + { + "type": "String", + "value": "password" + }, + { + "type": "String", + "value": "x Int32" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03261_optimize_rewrite_array_exists_to_has_crash/ast.json b/parser/testdata/03261_optimize_rewrite_array_exists_to_has_crash/ast.json new file mode 100644 index 0000000000..6750c95709 --- /dev/null +++ b/parser/testdata/03261_optimize_rewrite_array_exists_to_has_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "rewrite", + "tables": [ + { + "table": "rewrite" + } + ] +} diff --git a/parser/testdata/03261_pr_semi_anti_join/ast.json b/parser/testdata/03261_pr_semi_anti_join/ast.json new file mode 100644 index 0000000000..2759abc05b --- /dev/null +++ b/parser/testdata/03261_pr_semi_anti_join/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ], + "sync": true +} diff --git a/parser/testdata/03261_sort_cursor_crash/ast.json b/parser/testdata/03261_sort_cursor_crash/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03261_sort_cursor_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03261_tuple_map_to_json_cast/ast.json b/parser/testdata/03261_tuple_map_to_json_cast/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03261_tuple_map_to_json_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03261_variant_permutation_bug/ast.json b/parser/testdata/03261_variant_permutation_bug/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03261_variant_permutation_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03262_analyzer_materialized_view_in_with_cte/ast.json b/parser/testdata/03262_analyzer_materialized_view_in_with_cte/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03262_analyzer_materialized_view_in_with_cte/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03262_column_sizes_with_dynamic_structure/ast.json b/parser/testdata/03262_column_sizes_with_dynamic_structure/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03262_column_sizes_with_dynamic_structure/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03262_common_expression_optimization/ast.json b/parser/testdata/03262_common_expression_optimization/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03262_common_expression_optimization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03262_const_adaptive_index_granularity/ast.json b/parser/testdata/03262_const_adaptive_index_granularity/ast.json new file mode 100644 index 0000000000..31207b9f0a --- /dev/null +++ b/parser/testdata/03262_const_adaptive_index_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_index_granularity", + "tables": [ + { + "table": "t_index_granularity" + } + ] +} diff --git a/parser/testdata/03262_filter_push_down_view/ast.json b/parser/testdata/03262_filter_push_down_view/ast.json new file mode 100644 index 0000000000..67395104b8 --- /dev/null +++ b/parser/testdata/03262_filter_push_down_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alpha", + "tables": [ + { + "table": "alpha" + } + ] +} diff --git a/parser/testdata/03262_system_functions_should_not_fill_query_log_functions/ast.json b/parser/testdata/03262_system_functions_should_not_fill_query_log_functions/ast.json new file mode 100644 index 0000000000..c448223d36 --- /dev/null +++ b/parser/testdata/03262_system_functions_should_not_fill_query_log_functions/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "functions" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "bitShiftLeft" + } + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03263_analyzer_materialized_view_cte_nested/ast.json b/parser/testdata/03263_analyzer_materialized_view_cte_nested/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03263_analyzer_materialized_view_cte_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03263_forbid_materialize_sort_key/ast.json b/parser/testdata/03263_forbid_materialize_sort_key/ast.json new file mode 100644 index 0000000000..8a36b6c1ed --- /dev/null +++ b/parser/testdata/03263_forbid_materialize_sort_key/ast.json @@ -0,0 +1,23 @@ +{ + "if_not_exists": true, + "table": "test", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ] +} diff --git a/parser/testdata/03263_parquet_write_bloom_filter/ast.json b/parser/testdata/03263_parquet_write_bloom_filter/ast.json new file mode 100644 index 0000000000..e3084a94b6 --- /dev/null +++ b/parser/testdata/03263_parquet_write_bloom_filter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03266_lowcardinality_string_monotonicity/ast.json b/parser/testdata/03266_lowcardinality_string_monotonicity/ast.json new file mode 100644 index 0000000000..f2b1aad411 --- /dev/null +++ b/parser/testdata/03266_lowcardinality_string_monotonicity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_lc_pk", + "tables": [ + { + "table": "test_lc_pk" + } + ] +} diff --git a/parser/testdata/03266_with_fill_staleness/ast.json b/parser/testdata/03266_with_fill_staleness/ast.json new file mode 100644 index 0000000000..ab079427e8 --- /dev/null +++ b/parser/testdata/03266_with_fill_staleness/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Europe/Amsterdam" + } + } + ] +} diff --git a/parser/testdata/03266_with_fill_staleness_cases/ast.json b/parser/testdata/03266_with_fill_staleness_cases/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03266_with_fill_staleness_cases/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03266_with_fill_staleness_errors/ast.json b/parser/testdata/03266_with_fill_staleness_errors/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03266_with_fill_staleness_errors/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03267_join_swap_bug/ast.json b/parser/testdata/03267_join_swap_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03267_join_swap_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03268_empty_tuple_update/ast.json b/parser/testdata/03268_empty_tuple_update/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03268_empty_tuple_update/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03268_nested_analyzer/ast.json b/parser/testdata/03268_nested_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03268_nested_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03268_system_parts_index_granularity/ast.json b/parser/testdata/03268_system_parts_index_granularity/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03268_system_parts_index_granularity/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03268_vertical_pretty_numbers/ast.json b/parser/testdata/03268_vertical_pretty_numbers/ast.json new file mode 100644 index 0000000000..ce6dd7b723 --- /dev/null +++ b/parser/testdata/03268_vertical_pretty_numbers/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_pretty_highlight_digit_groups", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_pretty_single_large_number_tip_threshold", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03269_partition_key_not_in_set/ast.json b/parser/testdata/03269_partition_key_not_in_set/ast.json new file mode 100644 index 0000000000..3aa5e55ce3 --- /dev/null +++ b/parser/testdata/03269_partition_key_not_in_set/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03269_filters", + "tables": [ + { + "table": "03269_filters" + } + ] +} diff --git a/parser/testdata/03270_empty_tuple_in_array_intersect/ast.json b/parser/testdata/03270_empty_tuple_in_array_intersect/ast.json new file mode 100644 index 0000000000..c3a1adc9f5 --- /dev/null +++ b/parser/testdata/03270_empty_tuple_in_array_intersect/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayIntersect", + "arguments": [ + { + "type": "Array", + "value": [ + { + "name": "tuple" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03270_fix_column_modifier_write_order/ast.json b/parser/testdata/03270_fix_column_modifier_write_order/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03270_fix_column_modifier_write_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03270_max_bytes_ratio_before_external_group_by/ast.json b/parser/testdata/03270_max_bytes_ratio_before_external_group_by/ast.json new file mode 100644 index 0000000000..a919a227a8 --- /dev/null +++ b/parser/testdata/03270_max_bytes_ratio_before_external_group_by/ast.json @@ -0,0 +1,78 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqExact", + "arguments": [ + { + "expr": { + "parts": [ + "number" + ] + }, + "type": { + "name": "String" + }, + "operator_syntax": true + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Float", + "value": 10000000 + } + ] + } + } + } + ] + }, + "group_by": [ + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 100 + } + }, + "type": { + "name": "String" + }, + "operator_syntax": true + } + ], + "settings": [ + { + "name": "max_bytes_ratio_before_external_group_by", + "value": { + "op": "-", + "operand": { + "type": "Float", + "value": 0.1 + } + } + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03271_date_to_datetime_saturation/ast.json b/parser/testdata/03271_date_to_datetime_saturation/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03271_date_to_datetime_saturation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03271_decimal_monotonic_day_of_week/ast.json b/parser/testdata/03271_decimal_monotonic_day_of_week/ast.json new file mode 100644 index 0000000000..42e51f0572 --- /dev/null +++ b/parser/testdata/03271_decimal_monotonic_day_of_week/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "decimal_dt", + "tables": [ + { + "table": "decimal_dt" + } + ] +} diff --git a/parser/testdata/03271_dynamic_variant_in_min_max/ast.json b/parser/testdata/03271_dynamic_variant_in_min_max/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03271_dynamic_variant_in_min_max/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03271_max_bytes_ratio_before_external_order_by/ast.json b/parser/testdata/03271_max_bytes_ratio_before_external_order_by/ast.json new file mode 100644 index 0000000000..dcb85afae4 --- /dev/null +++ b/parser/testdata/03271_max_bytes_ratio_before_external_order_by/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Float", + "value": 100000000 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ], + "settings": [ + { + "name": "max_bytes_ratio_before_external_sort", + "value": { + "op": "-", + "operand": { + "type": "Float", + "value": 0.1 + } + } + } + ], + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03271_s3_table_function_asterisk_glob/ast.json b/parser/testdata/03271_s3_table_function_asterisk_glob/ast.json new file mode 100644 index 0000000000..391b853e73 --- /dev/null +++ b/parser/testdata/03271_s3_table_function_asterisk_glob/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "s3_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03271_sqllancer_having_issue/ast.json b/parser/testdata/03271_sqllancer_having_issue/ast.json new file mode 100644 index 0000000000..8a1bc85686 --- /dev/null +++ b/parser/testdata/03271_sqllancer_having_issue/ast.json @@ -0,0 +1,16 @@ +{ + "if_not_exists": true, + "table": "t3", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int32" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/03272_arrayAUCPR/ast.json b/parser/testdata/03272_arrayAUCPR/ast.json new file mode 100644 index 0000000000..4e9e123e39 --- /dev/null +++ b/parser/testdata/03272_arrayAUCPR/ast.json @@ -0,0 +1,64 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "floor", + "arguments": [ + { + "name": "arrayAUCPR", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 0.1 + }, + { + "type": "Float", + "value": 0.4 + }, + { + "type": "Float", + "value": 0.35 + }, + { + "type": "Float", + "value": 0.8 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03272_bad_aggregate_function/ast.json b/parser/testdata/03272_bad_aggregate_function/ast.json new file mode 100644 index 0000000000..a9a4226ef7 --- /dev/null +++ b/parser/testdata/03272_bad_aggregate_function/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "deltaSumTimestamp", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03272_bitmapTransform_error_counter/ast.json b/parser/testdata/03272_bitmapTransform_error_counter/ast.json new file mode 100644 index 0000000000..4a2afbd9bc --- /dev/null +++ b/parser/testdata/03272_bitmapTransform_error_counter/ast.json @@ -0,0 +1,22 @@ +{ + "table": "counters", + "columns": [ + { + "name": "value", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "value" + ] + } + ] +} diff --git a/parser/testdata/03272_json_to_json_cast_1/ast.json b/parser/testdata/03272_json_to_json_cast_1/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03272_json_to_json_cast_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03272_json_to_json_cast_2/ast.json b/parser/testdata/03272_json_to_json_cast_2/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03272_json_to_json_cast_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03272_json_to_json_cast_3/ast.json b/parser/testdata/03272_json_to_json_cast_3/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03272_json_to_json_cast_3/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03272_json_to_json_cast_4/ast.json b/parser/testdata/03272_json_to_json_cast_4/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03272_json_to_json_cast_4/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03272_json_to_json_cast_5/ast.json b/parser/testdata/03272_json_to_json_cast_5/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03272_json_to_json_cast_5/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03272_json_to_json_cast_6/ast.json b/parser/testdata/03272_json_to_json_cast_6/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03272_json_to_json_cast_6/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03272_parallel_replicas_read_in_order/ast.json b/parser/testdata/03272_parallel_replicas_read_in_order/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/03272_parallel_replicas_read_in_order/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03272_partition_pruning_monotonic_func_bug/ast.json b/parser/testdata/03272_partition_pruning_monotonic_func_bug/ast.json new file mode 100644 index 0000000000..9a04b5e1f7 --- /dev/null +++ b/parser/testdata/03272_partition_pruning_monotonic_func_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Etc/UTC" + } + } + ] +} diff --git a/parser/testdata/03272_prewarm_mark_cache_add_column/ast.json b/parser/testdata/03272_prewarm_mark_cache_add_column/ast.json new file mode 100644 index 0000000000..fbb821404a --- /dev/null +++ b/parser/testdata/03272_prewarm_mark_cache_add_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_prewarm_add_column", + "tables": [ + { + "table": "t_prewarm_add_column" + } + ] +} diff --git a/parser/testdata/03273_better_json_subcolumns_parsing/ast.json b/parser/testdata/03273_better_json_subcolumns_parsing/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03273_better_json_subcolumns_parsing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03273_dynamic_pretty_json_serialization/ast.json b/parser/testdata/03273_dynamic_pretty_json_serialization/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03273_dynamic_pretty_json_serialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03273_format_inference_create_query_s3_url/ast.json b/parser/testdata/03273_format_inference_create_query_s3_url/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03273_format_inference_create_query_s3_url/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03273_group_by_in_order_still_used_when_group_by_key_doesnt_match_order_by_key/ast.json b/parser/testdata/03273_group_by_in_order_still_used_when_group_by_key_doesnt_match_order_by_key/ast.json new file mode 100644 index 0000000000..e0bd33cef3 --- /dev/null +++ b/parser/testdata/03273_group_by_in_order_still_used_when_group_by_key_doesnt_match_order_by_key/ast.json @@ -0,0 +1,37 @@ +{ + "table": "test", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt64" + } + }, + { + "name": "b", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + } + ] + } + ] +} diff --git a/parser/testdata/03273_primary_index_cache/ast.json b/parser/testdata/03273_primary_index_cache/ast.json new file mode 100644 index 0000000000..09287648b6 --- /dev/null +++ b/parser/testdata/03273_primary_index_cache/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_primary_index_cache", + "tables": [ + { + "table": "t_primary_index_cache" + } + ] +} diff --git a/parser/testdata/03273_primary_index_cache_low_cardinality/ast.json b/parser/testdata/03273_primary_index_cache_low_cardinality/ast.json new file mode 100644 index 0000000000..09287648b6 --- /dev/null +++ b/parser/testdata/03273_primary_index_cache_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_primary_index_cache", + "tables": [ + { + "table": "t_primary_index_cache" + } + ] +} diff --git a/parser/testdata/03274_aliases_in_udf/ast.json b/parser/testdata/03274_aliases_in_udf/ast.json new file mode 100644 index 0000000000..8b3161462b --- /dev/null +++ b/parser/testdata/03274_aliases_in_udf/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "skip_redundant_aliases_in_udf", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03274_dynamic_column_data_race_with_concurrent_hj/ast.json b/parser/testdata/03274_dynamic_column_data_race_with_concurrent_hj/ast.json new file mode 100644 index 0000000000..3c3a42a843 --- /dev/null +++ b/parser/testdata/03274_dynamic_column_data_race_with_concurrent_hj/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "parallel_hash" + } + } + ] +} diff --git a/parser/testdata/03274_dynamic_column_sizes_vertical_merge/ast.json b/parser/testdata/03274_dynamic_column_sizes_vertical_merge/ast.json new file mode 100644 index 0000000000..5c0b1116a3 --- /dev/null +++ b/parser/testdata/03274_dynamic_column_sizes_vertical_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03274_grace_hash_max_joined_block_size_rows_bug/ast.json b/parser/testdata/03274_grace_hash_max_joined_block_size_rows_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03274_grace_hash_max_joined_block_size_rows_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03274_join_algorithm_default/ast.json b/parser/testdata/03274_join_algorithm_default/ast.json new file mode 100644 index 0000000000..6b49942a87 --- /dev/null +++ b/parser/testdata/03274_join_algorithm_default/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_join_swap_table", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/03274_json_pretty_output/ast.json b/parser/testdata/03274_json_pretty_output/ast.json new file mode 100644 index 0000000000..8a3fba6bf6 --- /dev/null +++ b/parser/testdata/03274_json_pretty_output/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_named_columns_in_function_tuple", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03274_json_to_json_alter_nested_json/ast.json b/parser/testdata/03274_json_to_json_alter_nested_json/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03274_json_to_json_alter_nested_json/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03274_philipzucker/ast.json b/parser/testdata/03274_philipzucker/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03274_philipzucker/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03274_prewarm_primary_index_cache/ast.json b/parser/testdata/03274_prewarm_primary_index_cache/ast.json new file mode 100644 index 0000000000..a95570b70b --- /dev/null +++ b/parser/testdata/03274_prewarm_primary_index_cache/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_prewarm_cache_rmt_1", + "tables": [ + { + "table": "t_prewarm_cache_rmt_1" + } + ] +} diff --git a/parser/testdata/03274_squashing_transform_sparse_bug/ast.json b/parser/testdata/03274_squashing_transform_sparse_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03274_squashing_transform_sparse_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03275_auto_cluster_functions_with_parallel_replicas/ast.json b/parser/testdata/03275_auto_cluster_functions_with_parallel_replicas/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03275_auto_cluster_functions_with_parallel_replicas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03275_block_number_mutation/ast.json b/parser/testdata/03275_block_number_mutation/ast.json new file mode 100644 index 0000000000..0b720539ee --- /dev/null +++ b/parser/testdata/03275_block_number_mutation/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t_block_number_delete", + "tables": [ + { + "table": "t_block_number_delete" + } + ], + "sync": true +} diff --git a/parser/testdata/03275_block_number_update/ast.json b/parser/testdata/03275_block_number_update/ast.json new file mode 100644 index 0000000000..3200782c34 --- /dev/null +++ b/parser/testdata/03275_block_number_update/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_block_number_mut", + "tables": [ + { + "table": "t_block_number_mut" + } + ] +} diff --git a/parser/testdata/03275_count_digits_argument_evaluation/ast.json b/parser/testdata/03275_count_digits_argument_evaluation/ast.json new file mode 100644 index 0000000000..12612209fa --- /dev/null +++ b/parser/testdata/03275_count_digits_argument_evaluation/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countDigits" + } + ] + } + ] +} diff --git a/parser/testdata/03275_matview_with_union/ast.json b/parser/testdata/03275_matview_with_union/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/03275_matview_with_union/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/03275_pr_any_join/ast.json b/parser/testdata/03275_pr_any_join/ast.json new file mode 100644 index 0000000000..2759abc05b --- /dev/null +++ b/parser/testdata/03275_pr_any_join/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ], + "sync": true +} diff --git a/parser/testdata/03275_subcolumns_in_primary_key_bug/ast.json b/parser/testdata/03275_subcolumns_in_primary_key_bug/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/03275_subcolumns_in_primary_key_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/03276_database_backup_merge_tree_table_file_engine/ast.json b/parser/testdata/03276_database_backup_merge_tree_table_file_engine/ast.json new file mode 100644 index 0000000000..73c3190487 --- /dev/null +++ b/parser/testdata/03276_database_backup_merge_tree_table_file_engine/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "03276_test_database", + "drop_database": true +} diff --git a/parser/testdata/03276_empty_variant_type/ast.json b/parser/testdata/03276_empty_variant_type/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03276_empty_variant_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03276_functions_to_subcolumns_lc/ast.json b/parser/testdata/03276_functions_to_subcolumns_lc/ast.json new file mode 100644 index 0000000000..bf20ce088c --- /dev/null +++ b/parser/testdata/03276_functions_to_subcolumns_lc/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_map_lc", + "tables": [ + { + "table": "t_map_lc" + } + ] +} diff --git a/parser/testdata/03276_index_empty_part/ast.json b/parser/testdata/03276_index_empty_part/ast.json new file mode 100644 index 0000000000..a51993b3f0 --- /dev/null +++ b/parser/testdata/03276_index_empty_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_index_empty_part", + "tables": [ + { + "table": "t_index_empty_part" + } + ] +} diff --git a/parser/testdata/03276_index_of_assume_sorted/ast.json b/parser/testdata/03276_index_of_assume_sorted/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03276_index_of_assume_sorted/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03276_merge_tree_index_lazy_load/ast.json b/parser/testdata/03276_merge_tree_index_lazy_load/ast.json new file mode 100644 index 0000000000..d9d742734a --- /dev/null +++ b/parser/testdata/03276_merge_tree_index_lazy_load/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_index_lazy_load", + "tables": [ + { + "table": "t_index_lazy_load" + } + ] +} diff --git a/parser/testdata/03276_parquet_output_compression_level/ast.json b/parser/testdata/03276_parquet_output_compression_level/ast.json new file mode 100644 index 0000000000..35f47c6e64 --- /dev/null +++ b/parser/testdata/03276_parquet_output_compression_level/ast.json @@ -0,0 +1,70 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "parts": [ + "03276_parquet_custom_encoder_compression_level_1", + "parquet" + ] + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "id" + }, + { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "name" + }, + { + "expr": { + "left": { + "name": "now" + }, + "op": "+", + "right": { + "parts": [ + "number" + ] + } + }, + "alias": "timestamp" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100000 + } + ] + } + } + } + ] + } + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/03277_analyzer_array_join_fix/ast.json b/parser/testdata/03277_analyzer_array_join_fix/ast.json new file mode 100644 index 0000000000..5f57860a2b --- /dev/null +++ b/parser/testdata/03277_analyzer_array_join_fix/ast.json @@ -0,0 +1,49 @@ +{ + "if_not_exists": true, + "table": "repro", + "columns": [ + { + "name": "a", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "foos", + "type": { + "name": "Nested", + "parameters": [ + { + "name": "x", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ] +} diff --git a/parser/testdata/03277_dead_letter_queue_unsupported/ast.json b/parser/testdata/03277_dead_letter_queue_unsupported/ast.json new file mode 100644 index 0000000000..c23323a4f1 --- /dev/null +++ b/parser/testdata/03277_dead_letter_queue_unsupported/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "qfilelog" + } + ] + } + ] +} diff --git a/parser/testdata/03277_join_adaptive_spill/ast.json b/parser/testdata/03277_join_adaptive_spill/ast.json new file mode 100644 index 0000000000..5c5b8eda80 --- /dev/null +++ b/parser/testdata/03277_join_adaptive_spill/ast.json @@ -0,0 +1,20 @@ +{ + "table": "adaptive_spill_03277_1", + "columns": [ + { + "name": "k", + "type": { + "name": "String" + } + }, + { + "name": "x", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03277_join_adaptive_spill_oom/ast.json b/parser/testdata/03277_join_adaptive_spill_oom/ast.json new file mode 100644 index 0000000000..5c5b8eda80 --- /dev/null +++ b/parser/testdata/03277_join_adaptive_spill_oom/ast.json @@ -0,0 +1,20 @@ +{ + "table": "adaptive_spill_03277_1", + "columns": [ + { + "name": "k", + "type": { + "name": "String" + } + }, + { + "name": "x", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03277_logging_elapsed_ns/ast.json b/parser/testdata/03277_logging_elapsed_ns/ast.json new file mode 100644 index 0000000000..19ce206c60 --- /dev/null +++ b/parser/testdata/03277_logging_elapsed_ns/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 42 + } + ], + "settings": [ + { + "name": "log_comment", + "value": { + "type": "String", + "value": "03277_logging_elapsed_ns" + } + } + ] + } + ] +} diff --git a/parser/testdata/03278_database_backup_merge_tree_table_disk_engine/ast.json b/parser/testdata/03278_database_backup_merge_tree_table_disk_engine/ast.json new file mode 100644 index 0000000000..8ba0e174bf --- /dev/null +++ b/parser/testdata/03278_database_backup_merge_tree_table_disk_engine/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "03278_test_database", + "drop_database": true +} diff --git a/parser/testdata/03278_dateTime64_in_dateTime64_bug/ast.json b/parser/testdata/03278_dateTime64_in_dateTime64_bug/ast.json new file mode 100644 index 0000000000..7f28f5ef66 --- /dev/null +++ b/parser/testdata/03278_dateTime64_in_dateTime64_bug/ast.json @@ -0,0 +1,61 @@ +{ + "table": "datetime64_issue", + "columns": [ + { + "name": "id", + "type": { + "name": "int" + } + }, + { + "name": "dt", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + }, + { + "name": "dtn", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ], + "primary_key": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03278_enum_in_unknown_value/ast.json b/parser/testdata/03278_enum_in_unknown_value/ast.json new file mode 100644 index 0000000000..6d1471afa8 --- /dev/null +++ b/parser/testdata/03278_enum_in_unknown_value/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_enum_in_unknown_value", + "tables": [ + { + "table": "t_enum_in_unknown_value" + } + ] +} diff --git a/parser/testdata/03278_enum_string_functions/ast.json b/parser/testdata/03278_enum_string_functions/ast.json new file mode 100644 index 0000000000..781788b505 --- /dev/null +++ b/parser/testdata/03278_enum_string_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_enum_string_functions", + "tables": [ + { + "table": "test_enum_string_functions" + } + ] +} diff --git a/parser/testdata/03279_array_normalized_gini/ast.json b/parser/testdata/03279_array_normalized_gini/ast.json new file mode 100644 index 0000000000..36fca7a7c4 --- /dev/null +++ b/parser/testdata/03279_array_normalized_gini/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayNormalizedGini", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 0.9 + }, + { + "type": "Float", + "value": 0.3 + }, + { + "type": "Float", + "value": 0.8 + }, + { + "type": "Float", + "value": 0.7 + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 6 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03279_database_backup_database_disk_engine/ast.json b/parser/testdata/03279_database_backup_database_disk_engine/ast.json new file mode 100644 index 0000000000..aa0780df00 --- /dev/null +++ b/parser/testdata/03279_database_backup_database_disk_engine/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "03279_test_database", + "drop_database": true +} diff --git a/parser/testdata/03279_join_choose_build_table/ast.json b/parser/testdata/03279_join_choose_build_table/ast.json new file mode 100644 index 0000000000..84bcf25f7f --- /dev/null +++ b/parser/testdata/03279_join_choose_build_table/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_statistics_optimize", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03279_join_choose_build_table_auto_statistics/ast.json b/parser/testdata/03279_join_choose_build_table_auto_statistics/ast.json new file mode 100644 index 0000000000..3cb5cf5061 --- /dev/null +++ b/parser/testdata/03279_join_choose_build_table_auto_statistics/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "products", + "tables": [ + { + "table": "products" + } + ] +} diff --git a/parser/testdata/03279_join_choose_build_table_statistics/ast.json b/parser/testdata/03279_join_choose_build_table_statistics/ast.json new file mode 100644 index 0000000000..3cb5cf5061 --- /dev/null +++ b/parser/testdata/03279_join_choose_build_table_statistics/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "products", + "tables": [ + { + "table": "products" + } + ] +} diff --git a/parser/testdata/03279_not_empty_json/ast.json b/parser/testdata/03279_not_empty_json/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03279_not_empty_json/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03280_dynamic_if_null/ast.json b/parser/testdata/03280_dynamic_if_null/ast.json new file mode 100644 index 0000000000..ef62626932 --- /dev/null +++ b/parser/testdata/03280_dynamic_if_null/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03281_dynamic_coalesce/ast.json b/parser/testdata/03281_dynamic_coalesce/ast.json new file mode 100644 index 0000000000..ef62626932 --- /dev/null +++ b/parser/testdata/03281_dynamic_coalesce/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03282_block_number_otehr_mutations/ast.json b/parser/testdata/03282_block_number_otehr_mutations/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/03282_block_number_otehr_mutations/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03282_dynamic_in_functions_convert/ast.json b/parser/testdata/03282_dynamic_in_functions_convert/ast.json new file mode 100644 index 0000000000..ef62626932 --- /dev/null +++ b/parser/testdata/03282_dynamic_in_functions_convert/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03282_highlight_trailing_whitespace_pretty/ast.json b/parser/testdata/03282_highlight_trailing_whitespace_pretty/ast.json new file mode 100644 index 0000000000..f05808ff49 --- /dev/null +++ b/parser/testdata/03282_highlight_trailing_whitespace_pretty/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_display_footer_column_names", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03282_join_distributed_no_columns/ast.json b/parser/testdata/03282_join_distributed_no_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03282_join_distributed_no_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03282_json_equal_comparison/ast.json b/parser/testdata/03282_json_equal_comparison/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03282_json_equal_comparison/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03282_materialized_views_ignore_errors/ast.json b/parser/testdata/03282_materialized_views_ignore_errors/ast.json new file mode 100644 index 0000000000..4b590b3528 --- /dev/null +++ b/parser/testdata/03282_materialized_views_ignore_errors/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/03282_memory_transaction_crash/ast.json b/parser/testdata/03282_memory_transaction_crash/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03282_memory_transaction_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03283_json_binary_serialization_use_default_setttings/ast.json b/parser/testdata/03283_json_binary_serialization_use_default_setttings/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03283_json_binary_serialization_use_default_setttings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03283_optimize_on_insert_level/ast.json b/parser/testdata/03283_optimize_on_insert_level/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/03283_optimize_on_insert_level/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03284_json_object_as_tuple_duplicate_keys/ast.json b/parser/testdata/03284_json_object_as_tuple_duplicate_keys/ast.json new file mode 100644 index 0000000000..f2380f8931 --- /dev/null +++ b/parser/testdata/03284_json_object_as_tuple_duplicate_keys/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "JSONEachRow" + ] + }, + { + "type": "String", + "value": "a Tuple(b UInt32)" + }, + { + "type": "String", + "value": "{\"a\" : {\"b\" : 1, \"b\" : 2}}" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03285_analyzer_array_join_nested/ast.json b/parser/testdata/03285_analyzer_array_join_nested/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03285_analyzer_array_join_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03285_analyzer_extract_common_expr_bug/ast.json b/parser/testdata/03285_analyzer_extract_common_expr_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03285_analyzer_extract_common_expr_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03285_analyzer_optimize_disjunctions/ast.json b/parser/testdata/03285_analyzer_optimize_disjunctions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03285_analyzer_optimize_disjunctions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03285_default_engine_with_settings/ast.json b/parser/testdata/03285_default_engine_with_settings/ast.json new file mode 100644 index 0000000000..18f26a9d55 --- /dev/null +++ b/parser/testdata/03285_default_engine_with_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "example_table", + "tables": [ + { + "table": "example_table" + } + ] +} diff --git a/parser/testdata/03285_materialize_ttl_only_drop_parts/ast.json b/parser/testdata/03285_materialize_ttl_only_drop_parts/ast.json new file mode 100644 index 0000000000..15811bcdd2 --- /dev/null +++ b/parser/testdata/03285_materialize_ttl_only_drop_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_03285_mat_ttl", + "tables": [ + { + "table": "test_03285_mat_ttl" + } + ] +} diff --git a/parser/testdata/03285_parallel_replicas_one_replica/ast.json b/parser/testdata/03285_parallel_replicas_one_replica/ast.json new file mode 100644 index 0000000000..1d90db2b41 --- /dev/null +++ b/parser/testdata/03285_parallel_replicas_one_replica/ast.json @@ -0,0 +1,33 @@ +{ + "table": "src", + "columns": [ + { + "name": "y", + "type": { + "name": "Int8" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "y" + ] + } + ], + "as_select": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } +} diff --git a/parser/testdata/03286_backup_to_memory/ast.json b/parser/testdata/03286_backup_to_memory/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03286_backup_to_memory/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03286_backup_to_null/ast.json b/parser/testdata/03286_backup_to_null/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03286_backup_to_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03286_collation_locale_with_modifier/ast.json b/parser/testdata/03286_collation_locale_with_modifier/ast.json new file mode 100644 index 0000000000..ef6798c359 --- /dev/null +++ b/parser/testdata/03286_collation_locale_with_modifier/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Sort by standard Turkish locale" + } + ] + } + ] +} diff --git a/parser/testdata/03286_format_datetime_timezones/ast.json b/parser/testdata/03286_format_datetime_timezones/ast.json new file mode 100644 index 0000000000..06387d5227 --- /dev/null +++ b/parser/testdata/03286_format_datetime_timezones/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2024-12-11 12:34:56.000" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "US/Pacific" + } + ] + }, + { + "type": "String", + "value": "%W%z" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03286_parallel_replicas_cross_join_bug/ast.json b/parser/testdata/03286_parallel_replicas_cross_join_bug/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/03286_parallel_replicas_cross_join_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/03286_reverse_sorting_key_final/ast.json b/parser/testdata/03286_reverse_sorting_key_final/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03286_reverse_sorting_key_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03286_reverse_sorting_key_final2/ast.json b/parser/testdata/03286_reverse_sorting_key_final2/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03286_reverse_sorting_key_final2/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03286_serialization_hint_system_columns/ast.json b/parser/testdata/03286_serialization_hint_system_columns/ast.json new file mode 100644 index 0000000000..6ebe42f277 --- /dev/null +++ b/parser/testdata/03286_serialization_hint_system_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_serialization_hints", + "tables": [ + { + "table": "t_serialization_hints" + } + ] +} diff --git a/parser/testdata/03287_dynamic_and_json_squashing_fix/ast.json b/parser/testdata/03287_dynamic_and_json_squashing_fix/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03287_dynamic_and_json_squashing_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03287_format_datetime_mysqlfraction/ast.json b/parser/testdata/03287_format_datetime_mysqlfraction/ast.json new file mode 100644 index 0000000000..74cf343c1b --- /dev/null +++ b/parser/testdata/03287_format_datetime_mysqlfraction/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Default settings" + } + ] + } + ] +} diff --git a/parser/testdata/03287_not_comparable_types_in_order_by_and_comparison_functions/ast.json b/parser/testdata/03287_not_comparable_types_in_order_by_and_comparison_functions/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03287_not_comparable_types_in_order_by_and_comparison_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03289_explain_syntax_statistics/ast.json b/parser/testdata/03289_explain_syntax_statistics/ast.json new file mode 100644 index 0000000000..2c6fed955b --- /dev/null +++ b/parser/testdata/03289_explain_syntax_statistics/ast.json @@ -0,0 +1,7 @@ +{ + "table": "data_01247", + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/03289_tuple_element_to_subcolumn/ast.json b/parser/testdata/03289_tuple_element_to_subcolumn/ast.json new file mode 100644 index 0000000000..2023fe461f --- /dev/null +++ b/parser/testdata/03289_tuple_element_to_subcolumn/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_tuple_elem", + "tables": [ + { + "table": "t_tuple_elem" + } + ] +} diff --git a/parser/testdata/03290_final_collapsing/ast.json b/parser/testdata/03290_final_collapsing/ast.json new file mode 100644 index 0000000000..bea9af9e0c --- /dev/null +++ b/parser/testdata/03290_final_collapsing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_final_collapsing", + "tables": [ + { + "table": "t_final_collapsing" + } + ] +} diff --git a/parser/testdata/03290_final_replacing/ast.json b/parser/testdata/03290_final_replacing/ast.json new file mode 100644 index 0000000000..00125bbf89 --- /dev/null +++ b/parser/testdata/03290_final_replacing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_final_replacing", + "tables": [ + { + "table": "t_final_replacing" + } + ] +} diff --git a/parser/testdata/03290_final_sample/ast.json b/parser/testdata/03290_final_sample/ast.json new file mode 100644 index 0000000000..bedc564b90 --- /dev/null +++ b/parser/testdata/03290_final_sample/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_sample_final", + "tables": [ + { + "table": "t_sample_final" + } + ] +} diff --git a/parser/testdata/03290_force_normal_projection/ast.json b/parser/testdata/03290_force_normal_projection/ast.json new file mode 100644 index 0000000000..b5886be12b --- /dev/null +++ b/parser/testdata/03290_force_normal_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users", + "tables": [ + { + "table": "users" + } + ] +} diff --git a/parser/testdata/03290_mix_engine_and_query_settings/ast.json b/parser/testdata/03290_mix_engine_and_query_settings/ast.json new file mode 100644 index 0000000000..2d8fe7ef81 --- /dev/null +++ b/parser/testdata/03290_mix_engine_and_query_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03290_pr_non_replicated_in_subquery/ast.json b/parser/testdata/03290_pr_non_replicated_in_subquery/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/03290_pr_non_replicated_in_subquery/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/03291_collapsing_invalid_sign/ast.json b/parser/testdata/03291_collapsing_invalid_sign/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/03291_collapsing_invalid_sign/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/03291_json_big_structure_deserialization/ast.json b/parser/testdata/03291_json_big_structure_deserialization/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03291_json_big_structure_deserialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03291_low_cardinality_uuid/ast.json b/parser/testdata/03291_low_cardinality_uuid/ast.json new file mode 100644 index 0000000000..0a5d674e4f --- /dev/null +++ b/parser/testdata/03291_low_cardinality_uuid/ast.json @@ -0,0 +1,18 @@ +{ + "temporary": true, + "table": "test", + "columns": [ + { + "name": "x", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "UUID" + } + ], + "has_parentheses": true + } + } + ] +} diff --git a/parser/testdata/03292_nullable_json_schema_inference/ast.json b/parser/testdata/03292_nullable_json_schema_inference/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03292_nullable_json_schema_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03296_bfloat16_ubsan/ast.json b/parser/testdata/03296_bfloat16_ubsan/ast.json new file mode 100644 index 0000000000..9a5a20df32 --- /dev/null +++ b/parser/testdata/03296_bfloat16_ubsan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_bfloat16_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03297_cut_column_name/ast.json b/parser/testdata/03297_cut_column_name/ast.json new file mode 100644 index 0000000000..2087db7482 --- /dev/null +++ b/parser/testdata/03297_cut_column_name/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_pretty_max_column_name_width_cut_to", + "value": { + "type": "Integer", + "value": 16 + } + } + ] +} diff --git a/parser/testdata/03298_analyzer_group_by_all_fix/ast.json b/parser/testdata/03298_analyzer_group_by_all_fix/ast.json new file mode 100644 index 0000000000..75414d1529 --- /dev/null +++ b/parser/testdata/03298_analyzer_group_by_all_fix/ast.json @@ -0,0 +1,26 @@ +{ + "table": "users", + "columns": [ + { + "name": "uid", + "type": { + "name": "Int16" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "age", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03298_server_client_native_settings/ast.json b/parser/testdata/03298_server_client_native_settings/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03298_server_client_native_settings/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03298_vertical_columns/ast.json b/parser/testdata/03298_vertical_columns/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/03298_vertical_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03299_deep_nested_map_creation/ast.json b/parser/testdata/03299_deep_nested_map_creation/ast.json new file mode 100644 index 0000000000..5053898f41 --- /dev/null +++ b/parser/testdata/03299_deep_nested_map_creation/ast.json @@ -0,0 +1,919 @@ +{ + "table": "test", + "columns": [ + { + "name": "x", + "type": { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Map", + "parameters": [ + { + "name": "Int32" + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + }, + { + "name": "Int32" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03299_map_named_tuple/ast.json b/parser/testdata/03299_map_named_tuple/ast.json new file mode 100644 index 0000000000..429bcd21c5 --- /dev/null +++ b/parser/testdata/03299_map_named_tuple/ast.json @@ -0,0 +1,80 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "mapConcat", + "arguments": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + }, + { + "name": "mapApply", + "arguments": [ + { + "parameters": [ + "x", + "y" + ], + "body": { + "type": "Tuple", + "value": [ + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "left": { + "parts": [ + "x" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + } + }, + { + "name": "map", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03299_pretty_squash/ast.json b/parser/testdata/03299_pretty_squash/ast.json new file mode 100644 index 0000000000..84885d3842 --- /dev/null +++ b/parser/testdata/03299_pretty_squash/ast.json @@ -0,0 +1,58 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "output_format_pretty_squash_consecutive_ms", + "value": { + "type": "Integer", + "value": 60000 + } + }, + { + "name": "output_format_pretty_squash_max_wait_ms", + "value": { + "type": "Integer", + "value": 60000 + } + } + ], + "format": { + "parts": [ + "PrettyCompact" + ] + } + } + ] +} diff --git a/parser/testdata/03300_generate_random_const_expr_params/ast.json b/parser/testdata/03300_generate_random_const_expr_params/ast.json new file mode 100644 index 0000000000..e7e6b9ab4c --- /dev/null +++ b/parser/testdata/03300_generate_random_const_expr_params/ast.json @@ -0,0 +1,20 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int32" + } + } + ], + "engine": { + "name": "GenerateRandom", + "parameters": [ + { + "name": "rand" + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03300_nested_json_empty_keys/ast.json b/parser/testdata/03300_nested_json_empty_keys/ast.json new file mode 100644 index 0000000000..2e712796c6 --- /dev/null +++ b/parser/testdata/03300_nested_json_empty_keys/ast.json @@ -0,0 +1,32 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "{\"\" : {\"\" : {\"\" : 42}}}" + } + ] + }, + "type": { + "name": "JSON" + }, + "operator_syntax": true + } + ], + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03300_pretty_vertical_cut/ast.json b/parser/testdata/03300_pretty_vertical_cut/ast.json new file mode 100644 index 0000000000..d513e36979 --- /dev/null +++ b/parser/testdata/03300_pretty_vertical_cut/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_max_rows", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/03301_is_ipv4_string/ast.json b/parser/testdata/03301_is_ipv4_string/ast.json new file mode 100644 index 0000000000..ea0bc76f6e --- /dev/null +++ b/parser/testdata/03301_is_ipv4_string/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isIPv4String", + "arguments": [ + { + "type": "String", + "value": "1.1.1.1\u00001" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03301_subcolumns_in_mv/ast.json b/parser/testdata/03301_subcolumns_in_mv/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03301_subcolumns_in_mv/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03302_analyzer_distributed_filter_push_down/ast.json b/parser/testdata/03302_analyzer_distributed_filter_push_down/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03302_analyzer_distributed_filter_push_down/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03302_analyzer_join_filter_push_down_bug/ast.json b/parser/testdata/03302_analyzer_join_filter_push_down_bug/ast.json new file mode 100644 index 0000000000..61369acbaf --- /dev/null +++ b/parser/testdata/03302_analyzer_join_filter_push_down_bug/ast.json @@ -0,0 +1,20 @@ +{ + "table": "t1", + "columns": [ + { + "name": "key", + "type": { + "name": "Int32" + } + }, + { + "name": "value", + "type": { + "name": "DateTime" + } + } + ], + "engine": { + "name": "Log" + } +} diff --git a/parser/testdata/03302_any_enum_aggregation/ast.json b/parser/testdata/03302_any_enum_aggregation/ast.json new file mode 100644 index 0000000000..808c61f79f --- /dev/null +++ b/parser/testdata/03302_any_enum_aggregation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_33602_t0a", + "tables": [ + { + "table": "test_33602_t0a" + } + ] +} diff --git a/parser/testdata/03302_merge_table_structure_unification/ast.json b/parser/testdata/03302_merge_table_structure_unification/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03302_merge_table_structure_unification/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03303_alias_inverse_order/ast.json b/parser/testdata/03303_alias_inverse_order/ast.json new file mode 100644 index 0000000000..ba00dd6b4a --- /dev/null +++ b/parser/testdata/03303_alias_inverse_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alias_inverse_order", + "tables": [ + { + "table": "test_alias_inverse_order" + } + ] +} diff --git a/parser/testdata/03303_distributed_explain/ast.json b/parser/testdata/03303_distributed_explain/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03303_distributed_explain/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03303_dynamic_in_not_xor/ast.json b/parser/testdata/03303_dynamic_in_not_xor/ast.json new file mode 100644 index 0000000000..ef62626932 --- /dev/null +++ b/parser/testdata/03303_dynamic_in_not_xor/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03303_pretty_multiline/ast.json b/parser/testdata/03303_pretty_multiline/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/03303_pretty_multiline/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03304_compare_substrings/ast.json b/parser/testdata/03304_compare_substrings/ast.json new file mode 100644 index 0000000000..cf68fd1470 --- /dev/null +++ b/parser/testdata/03304_compare_substrings/ast.json @@ -0,0 +1,11 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "compareSubstrings" + } + ] + } + ] +} diff --git a/parser/testdata/03304_fill_virtual_columns/ast.json b/parser/testdata/03304_fill_virtual_columns/ast.json new file mode 100644 index 0000000000..a382ce18fe --- /dev/null +++ b/parser/testdata/03304_fill_virtual_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_virtual_columns", + "tables": [ + { + "table": "test_virtual_columns" + } + ] +} diff --git a/parser/testdata/03304_pretty_fallback_to_vertical/ast.json b/parser/testdata/03304_pretty_fallback_to_vertical/ast.json new file mode 100644 index 0000000000..812dc00fe6 --- /dev/null +++ b/parser/testdata/03304_pretty_fallback_to_vertical/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "Hello, world" + }, + "alias": "x" + }, + { + "expr": { + "type": "String", + "value": "Goodbye" + }, + "alias": "y" + } + ], + "format": { + "parts": [ + "Pretty" + ] + } + } + ] +} diff --git a/parser/testdata/03305_compressed_memory_eng_crash_reading_subcolumn/ast.json b/parser/testdata/03305_compressed_memory_eng_crash_reading_subcolumn/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03305_compressed_memory_eng_crash_reading_subcolumn/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03305_fix_kafka_table_with_kw_arguments/ast.json b/parser/testdata/03305_fix_kafka_table_with_kw_arguments/ast.json new file mode 100644 index 0000000000..20bda508b3 --- /dev/null +++ b/parser/testdata/03305_fix_kafka_table_with_kw_arguments/ast.json @@ -0,0 +1,40 @@ +{ + "database": "default", + "table": "test", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt32" + } + }, + { + "name": "message", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Kafka", + "parameters": [ + { + "left": { + "parts": [ + "a" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "1" + } + }, + { + "type": "String", + "value": "clickhouse" + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03305_log_unsupported_types/ast.json b/parser/testdata/03305_log_unsupported_types/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03305_log_unsupported_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03305_mergine_aggregated_filter_push_down/ast.json b/parser/testdata/03305_mergine_aggregated_filter_push_down/ast.json new file mode 100644 index 0000000000..ba3ba65010 --- /dev/null +++ b/parser/testdata/03305_mergine_aggregated_filter_push_down/ast.json @@ -0,0 +1,49 @@ +{ + "table": "tab", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt32" + } + }, + { + "name": "y", + "type": { + "name": "UInt32" + } + }, + { + "name": "z", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ], + "settings": [ + { + "name": "min_rows_for_wide_part", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "min_bytes_for_wide_part", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03306_materialized_vew_prewhere_supported_columns/ast.json b/parser/testdata/03306_materialized_vew_prewhere_supported_columns/ast.json new file mode 100644 index 0000000000..74f01dcc5e --- /dev/null +++ b/parser/testdata/03306_materialized_vew_prewhere_supported_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dst", + "tables": [ + { + "table": "dst" + } + ] +} diff --git a/parser/testdata/03306_optimize_table_force_keyword/ast.json b/parser/testdata/03306_optimize_table_force_keyword/ast.json new file mode 100644 index 0000000000..dbc33f0874 --- /dev/null +++ b/parser/testdata/03306_optimize_table_force_keyword/ast.json @@ -0,0 +1,21 @@ +{ + "table": "tab", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/03307_forbid_loop_table_function_as_engine/ast.json b/parser/testdata/03307_forbid_loop_table_function_as_engine/ast.json new file mode 100644 index 0000000000..accf47eaab --- /dev/null +++ b/parser/testdata/03307_forbid_loop_table_function_as_engine/ast.json @@ -0,0 +1,14 @@ +{ + "table": "tab", + "columns": [ + { + "name": "col", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Loop" + } +} diff --git a/parser/testdata/03307_parallel_hash_max_joined_rows/ast.json b/parser/testdata/03307_parallel_hash_max_joined_rows/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03307_parallel_hash_max_joined_rows/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03310_aggregate_projection_count_nullable/ast.json b/parser/testdata/03310_aggregate_projection_count_nullable/ast.json new file mode 100644 index 0000000000..923c5bdad8 --- /dev/null +++ b/parser/testdata/03310_aggregate_projection_count_nullable/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "log", + "tables": [ + { + "table": "log" + } + ] +} diff --git a/parser/testdata/03310_index_hints_read_columns/ast.json b/parser/testdata/03310_index_hints_read_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03310_index_hints_read_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03310_materialized_view_with_bad_select/ast.json b/parser/testdata/03310_materialized_view_with_bad_select/ast.json new file mode 100644 index 0000000000..80532b40b3 --- /dev/null +++ b/parser/testdata/03310_materialized_view_with_bad_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_materialized_view_with_bad_select", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03311_constantnode/ast.json b/parser/testdata/03311_constantnode/ast.json new file mode 100644 index 0000000000..46ccc2834f --- /dev/null +++ b/parser/testdata/03311_constantnode/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqUpTo", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "arguments": [ + { + "expr": { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "00" + } + ] + }, + "type": { + "name": "AggregateFunction(uniqUpTo(5), Nullable(Nothing))" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03311_issue_72265/ast.json b/parser/testdata/03311_issue_72265/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/03311_issue_72265/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03311_min_max_count_projection_with_constant_partition_expr/ast.json b/parser/testdata/03311_min_max_count_projection_with_constant_partition_expr/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03311_min_max_count_projection_with_constant_partition_expr/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03311_subcolumns_in_default_and_materialized_expressions/ast.json b/parser/testdata/03311_subcolumns_in_default_and_materialized_expressions/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03311_subcolumns_in_default_and_materialized_expressions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03312_analyzer_unused_projection_fix/ast.json b/parser/testdata/03312_analyzer_unused_projection_fix/ast.json new file mode 100644 index 0000000000..0e24713605 --- /dev/null +++ b/parser/testdata/03312_analyzer_unused_projection_fix/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "a" + }, + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "b" + } + ] + }, + { + "columns": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "union_all": true, + "union_modes": [ + "INTERSECT ALL" + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03312_explain_syntax_analyzer/ast.json b/parser/testdata/03312_explain_syntax_analyzer/ast.json new file mode 100644 index 0000000000..aa19dc5192 --- /dev/null +++ b/parser/testdata/03312_explain_syntax_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_min_equality_disjunction_chain_length", + "value": { + "type": "Integer", + "value": 3 + } + } + ] +} diff --git a/parser/testdata/03312_issue_74299/ast.json b/parser/testdata/03312_issue_74299/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03312_issue_74299/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03312_json_literal_remote/ast.json b/parser/testdata/03312_json_literal_remote/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03312_json_literal_remote/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03312_sparse_column_tuple/ast.json b/parser/testdata/03312_sparse_column_tuple/ast.json new file mode 100644 index 0000000000..16ce06717e --- /dev/null +++ b/parser/testdata/03312_sparse_column_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dst_sparse", + "tables": [ + { + "table": "dst_sparse" + } + ] +} diff --git a/parser/testdata/03312_squashing_with_low_card_mem_usage/ast.json b/parser/testdata/03312_squashing_with_low_card_mem_usage/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03312_squashing_with_low_card_mem_usage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03312_system_errors_last_error/ast.json b/parser/testdata/03312_system_errors_last_error/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03312_system_errors_last_error/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03313_h3togeo_result_order/ast.json b/parser/testdata/03313_h3togeo_result_order/ast.json new file mode 100644 index 0000000000..c2768bfa49 --- /dev/null +++ b/parser/testdata/03313_h3togeo_result_order/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "h3ToGeo", + "arguments": [ + { + "type": "Integer", + "value": 644325524701193974 + } + ] + } + ], + "settings": [ + { + "name": "h3togeo_lon_lat_result_order", + "value": { + "type": "Boolean", + "value": true + } + } + ] + } + ] +} diff --git a/parser/testdata/03314_analyzer_resolve_in_parent_scope_2/ast.json b/parser/testdata/03314_analyzer_resolve_in_parent_scope_2/ast.json new file mode 100644 index 0000000000..dc6b944ac8 --- /dev/null +++ b/parser/testdata/03314_analyzer_resolve_in_parent_scope_2/ast.json @@ -0,0 +1,54 @@ +{ + "table": "test", + "columns": [ + { + "name": "raw_id", + "type": { + "name": "String" + } + }, + { + "name": "columns_n", + "type": { + "name": "Nested", + "parameters": [ + { + "name": "col_1", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "col_2", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "raw_id" + ] + } + ] +} diff --git a/parser/testdata/03314_analyzer_resolve_in_parent_scope_3/ast.json b/parser/testdata/03314_analyzer_resolve_in_parent_scope_3/ast.json new file mode 100644 index 0000000000..9858d61a6d --- /dev/null +++ b/parser/testdata/03314_analyzer_resolve_in_parent_scope_3/ast.json @@ -0,0 +1,25 @@ +{ + "table": "test", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt64" + } + }, + { + "name": "b", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03314_analyzer_resolve_in_parent_scope_4/ast.json b/parser/testdata/03314_analyzer_resolve_in_parent_scope_4/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03314_analyzer_resolve_in_parent_scope_4/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03314_divide_decimal_short_circuit/ast.json b/parser/testdata/03314_divide_decimal_short_circuit/ast.json new file mode 100644 index 0000000000..0a5b081224 --- /dev/null +++ b/parser/testdata/03314_divide_decimal_short_circuit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03314_divide_decimal_short_circuit", + "tables": [ + { + "table": "03314_divide_decimal_short_circuit" + } + ] +} diff --git a/parser/testdata/03314_empty_tuple_in_protobuf_format/ast.json b/parser/testdata/03314_empty_tuple_in_protobuf_format/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03314_empty_tuple_in_protobuf_format/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03314_grace_hash_join_buckets/ast.json b/parser/testdata/03314_grace_hash_join_buckets/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03314_grace_hash_join_buckets/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03314_has_column_in_table_alias_column/ast.json b/parser/testdata/03314_has_column_in_table_alias_column/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03314_has_column_in_table_alias_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03314_nullable_key_no_optimize_functions_to_subcolumns/ast.json b/parser/testdata/03314_nullable_key_no_optimize_functions_to_subcolumns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03314_nullable_key_no_optimize_functions_to_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03314_summing_merge_tree_final_not_found_column_in_block/ast.json b/parser/testdata/03314_summing_merge_tree_final_not_found_column_in_block/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03314_summing_merge_tree_final_not_found_column_in_block/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03314_variant_rowbinary_file/ast.json b/parser/testdata/03314_variant_rowbinary_file/ast.json new file mode 100644 index 0000000000..6cc23a72ae --- /dev/null +++ b/parser/testdata/03314_variant_rowbinary_file/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03315_analyzer_correlated_subqueries/ast.json b/parser/testdata/03315_analyzer_correlated_subqueries/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03315_analyzer_correlated_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03315_join_on_optimize_pass_alias/ast.json b/parser/testdata/03315_join_on_optimize_pass_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03315_join_on_optimize_pass_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03315_join_temporary_table_names/ast.json b/parser/testdata/03315_join_temporary_table_names/ast.json new file mode 100644 index 0000000000..a449b160b9 --- /dev/null +++ b/parser/testdata/03315_join_temporary_table_names/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "T1", + "tables": [ + { + "table": "T1" + } + ] +} diff --git a/parser/testdata/03315_quantile_bfloat16_ubsan/ast.json b/parser/testdata/03315_quantile_bfloat16_ubsan/ast.json new file mode 100644 index 0000000000..50e6742734 --- /dev/null +++ b/parser/testdata/03315_quantile_bfloat16_ubsan/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileBFloat16", + "arguments": [ + { + "expr": { + "type": "String", + "value": "2106-02-07 06:28:14" + }, + "type": { + "name": "DateTime", + "parameters": [ + { + "type": "String", + "value": "Europe/Amsterdam" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03315_trim_two_args/ast.json b/parser/testdata/03315_trim_two_args/ast.json new file mode 100644 index 0000000000..3d5cc0aad9 --- /dev/null +++ b/parser/testdata/03315_trim_two_args/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Basic custom character trimming" + } + ] + } + ] +} diff --git a/parser/testdata/03316_analyzer_unique_table_aliases_dist/ast.json b/parser/testdata/03316_analyzer_unique_table_aliases_dist/ast.json new file mode 100644 index 0000000000..fb8cd1ada8 --- /dev/null +++ b/parser/testdata/03316_analyzer_unique_table_aliases_dist/ast.json @@ -0,0 +1,32 @@ +{ + "settings": [ + { + "name": "max_parallel_replicas", + "value": { + "type": "Integer", + "value": 3 + } + }, + { + "name": "cluster_for_parallel_replicas", + "value": { + "type": "String", + "value": "test_cluster_one_shard_three_replicas_localhost" + } + }, + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "parallel_replicas_for_non_replicated_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03317_index_hint_prewhere/ast.json b/parser/testdata/03317_index_hint_prewhere/ast.json new file mode 100644 index 0000000000..670f34ae8b --- /dev/null +++ b/parser/testdata/03317_index_hint_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_indexHint_prewhere", + "tables": [ + { + "table": "test_indexHint_prewhere" + } + ] +} diff --git a/parser/testdata/03317_pretty_fallback_to_vertical_consistent/ast.json b/parser/testdata/03317_pretty_fallback_to_vertical_consistent/ast.json new file mode 100644 index 0000000000..b7d9bffea5 --- /dev/null +++ b/parser/testdata/03317_pretty_fallback_to_vertical_consistent/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_fallback_to_vertical_min_columns", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03318_ubsan_resample_arguments_count/ast.json b/parser/testdata/03318_ubsan_resample_arguments_count/ast.json new file mode 100644 index 0000000000..e9591d4476 --- /dev/null +++ b/parser/testdata/03318_ubsan_resample_arguments_count/ast.json @@ -0,0 +1,124 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileResampleMerge", + "parameters": [ + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Integer", + "value": 257 + }, + { + "type": "Integer", + "value": 65536 + }, + { + "type": "Integer", + "value": 1 + } + ], + "arguments": [ + { + "tuple": { + "name": "tuple", + "arguments": [ + {} + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "quantileResampleState", + "parameters": [ + { + "type": "Float", + "value": 0.1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 42 + } + ], + "arguments": [ + { + "name": "murmurHash3_128", + "arguments": [ + { + "type": "Integer", + "value": 88 + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03319_concurrent_hash_join_double_preallocation_bug/ast.json b/parser/testdata/03319_concurrent_hash_join_double_preallocation_bug/ast.json new file mode 100644 index 0000000000..5c511c5ac2 --- /dev/null +++ b/parser/testdata/03319_concurrent_hash_join_double_preallocation_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "lhs", + "tables": [ + { + "table": "lhs" + } + ] +} diff --git a/parser/testdata/03321_functions_to_subcolumns_skip_index/ast.json b/parser/testdata/03321_functions_to_subcolumns_skip_index/ast.json new file mode 100644 index 0000000000..5dffbf352b --- /dev/null +++ b/parser/testdata/03321_functions_to_subcolumns_skip_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "bloom_filter_test", + "tables": [ + { + "table": "bloom_filter_test" + } + ] +} diff --git a/parser/testdata/03321_inner_materialized_view_nested/ast.json b/parser/testdata/03321_inner_materialized_view_nested/ast.json new file mode 100644 index 0000000000..83f3909a83 --- /dev/null +++ b/parser/testdata/03321_inner_materialized_view_nested/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "flatten_nested", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03321_join_on_is_null_lowcardinality/ast.json b/parser/testdata/03321_join_on_is_null_lowcardinality/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03321_join_on_is_null_lowcardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03321_system_tables_parametrized_view_params/ast.json b/parser/testdata/03321_system_tables_parametrized_view_params/ast.json new file mode 100644 index 0000000000..d09fb51718 --- /dev/null +++ b/parser/testdata/03321_system_tables_parametrized_view_params/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "raw_data", + "tables": [ + { + "table": "raw_data" + } + ] +} diff --git a/parser/testdata/03322_check_count_for_parquet_in_s3/ast.json b/parser/testdata/03322_check_count_for_parquet_in_s3/ast.json new file mode 100644 index 0000000000..d13d63ba3b --- /dev/null +++ b/parser/testdata/03322_check_count_for_parquet_in_s3/ast.json @@ -0,0 +1,65 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "03322_*.parquet" + } + }, + { + "left": { + "parts": [ + "format" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "Parquet" + } + }, + { + "left": { + "parts": [ + "structure" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "a Int, b Int, c Int" + } + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03322_initial_query_start_time_check/ast.json b/parser/testdata/03322_initial_query_start_time_check/ast.json new file mode 100644 index 0000000000..03dac8cb94 --- /dev/null +++ b/parser/testdata/03322_initial_query_start_time_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tmp", + "tables": [ + { + "table": "tmp" + } + ] +} diff --git a/parser/testdata/03322_materialized_view_ignore_errors_url/ast.json b/parser/testdata/03322_materialized_view_ignore_errors_url/ast.json new file mode 100644 index 0000000000..664c4a15a4 --- /dev/null +++ b/parser/testdata/03322_materialized_view_ignore_errors_url/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "src", + "tables": [ + { + "table": "src" + } + ] +} diff --git a/parser/testdata/03323_bfloat16_least_supertype/ast.json b/parser/testdata/03323_bfloat16_least_supertype/ast.json new file mode 100644 index 0000000000..a8c20fbc39 --- /dev/null +++ b/parser/testdata/03323_bfloat16_least_supertype/ast.json @@ -0,0 +1,68 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "d" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 4 + } + }, + { + "parts": [ + "d" + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "type": { + "name": "BFloat16" + }, + "operator_syntax": true + } + ], + "alias": "d" + } + ] + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03324_aggregating_merge_tree_final_extremes/ast.json b/parser/testdata/03324_aggregating_merge_tree_final_extremes/ast.json new file mode 100644 index 0000000000..6bf3e3dfe9 --- /dev/null +++ b/parser/testdata/03324_aggregating_merge_tree_final_extremes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t03324", + "tables": [ + { + "table": "t03324" + } + ] +} diff --git a/parser/testdata/03325_alter_modify_projection_primary_key_column/ast.json b/parser/testdata/03325_alter_modify_projection_primary_key_column/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03325_alter_modify_projection_primary_key_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03325_count_summing_merge_tree_order_by_tuple/ast.json b/parser/testdata/03325_count_summing_merge_tree_order_by_tuple/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03325_count_summing_merge_tree_order_by_tuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03325_distributed_join_json_array_subcolumns/ast.json b/parser/testdata/03325_distributed_join_json_array_subcolumns/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03325_distributed_join_json_array_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03326_parallel_replicas_out_of_range/ast.json b/parser/testdata/03326_parallel_replicas_out_of_range/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03326_parallel_replicas_out_of_range/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03326_toStartOfNanosecond_ubsan/ast.json b/parser/testdata/03326_toStartOfNanosecond_ubsan/ast.json new file mode 100644 index 0000000000..a5cec40ec0 --- /dev/null +++ b/parser/testdata/03326_toStartOfNanosecond_ubsan/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toStartOfNanosecond", + "arguments": [ + { + "expr": { + "type": "String", + "value": "2263-01-01 00:00:00" + }, + "type": { + "name": "DateTime64" + }, + "operator_syntax": true + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03327_alias_column_constant/ast.json b/parser/testdata/03327_alias_column_constant/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03327_alias_column_constant/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03327_hypothesis_index_sanity/ast.json b/parser/testdata/03327_hypothesis_index_sanity/ast.json new file mode 100644 index 0000000000..2496f32ee8 --- /dev/null +++ b/parser/testdata/03327_hypothesis_index_sanity/ast.json @@ -0,0 +1,46 @@ +{ + "table": "t3", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt8" + } + } + ], + "indexes": [ + { + "name": "i", + "expression": { + "parts": [ + "x" + ] + }, + "type": { + "name": "hypothesis" + }, + "granularity": { + "type": "Integer", + "value": 100 + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03328_formatting_assignment_expression/ast.json b/parser/testdata/03328_formatting_assignment_expression/ast.json new file mode 100644 index 0000000000..8dcb4e6507 --- /dev/null +++ b/parser/testdata/03328_formatting_assignment_expression/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatQuerySingleLine", + "arguments": [ + { + "type": "String", + "value": "ALTER TABLE t (UPDATE c = (1 AS a) WHERE true)" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03333_merge_table_total_rows_no_database_system_tables_exception/ast.json b/parser/testdata/03333_merge_table_total_rows_no_database_system_tables_exception/ast.json new file mode 100644 index 0000000000..f66b102ca7 --- /dev/null +++ b/parser/testdata/03333_merge_table_total_rows_no_database_system_tables_exception/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "test_03333", + "drop_database": true +} diff --git a/parser/testdata/03334_aliases_function_infinite_loop/ast.json b/parser/testdata/03334_aliases_function_infinite_loop/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03334_aliases_function_infinite_loop/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03340_projections_formatting/ast.json b/parser/testdata/03340_projections_formatting/ast.json new file mode 100644 index 0000000000..e03eb6e3a6 --- /dev/null +++ b/parser/testdata/03340_projections_formatting/ast.json @@ -0,0 +1,27 @@ +{ + "temporary": true, + "table": "test", + "columns": [ + { + "name": "user_id", + "type": { + "name": "UInt64" + } + }, + { + "name": "item_id", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": null + } + ] +} diff --git a/parser/testdata/03340_transform_logical_error_fix/ast.json b/parser/testdata/03340_transform_logical_error_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03340_transform_logical_error_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03350_alter_table_fetch_partition_thread_pool/ast.json b/parser/testdata/03350_alter_table_fetch_partition_thread_pool/ast.json new file mode 100644 index 0000000000..c798391a30 --- /dev/null +++ b/parser/testdata/03350_alter_table_fetch_partition_thread_pool/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data1", + "tables": [ + { + "table": "data1" + } + ] +} diff --git a/parser/testdata/03352_allow_suspicious_ttl/ast.json b/parser/testdata/03352_allow_suspicious_ttl/ast.json new file mode 100644 index 0000000000..cf3b7f27df --- /dev/null +++ b/parser/testdata/03352_allow_suspicious_ttl/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_ttl_expressions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03352_distinct_sorted_bug/ast.json b/parser/testdata/03352_distinct_sorted_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03352_distinct_sorted_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03352_lazy_column_filter_by_uint8/ast.json b/parser/testdata/03352_lazy_column_filter_by_uint8/ast.json new file mode 100644 index 0000000000..5316b0e6f8 --- /dev/null +++ b/parser/testdata/03352_lazy_column_filter_by_uint8/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_filter", + "tables": [ + { + "table": "t_filter" + } + ] +} diff --git a/parser/testdata/03353_codec_zstd_doubledelta_data_corruption/ast.json b/parser/testdata/03353_codec_zstd_doubledelta_data_corruption/ast.json new file mode 100644 index 0000000000..80fe6886be --- /dev/null +++ b/parser/testdata/03353_codec_zstd_doubledelta_data_corruption/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_codecs", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03354_translate_crap/ast.json b/parser/testdata/03354_translate_crap/ast.json new file mode 100644 index 0000000000..532a54b923 --- /dev/null +++ b/parser/testdata/03354_translate_crap/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "translate", + "arguments": [ + { + "type": "String", + "value": "aAbBcC" + }, + { + "type": "String", + "value": "abc" + }, + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "12" + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ], + "alias": "a" + }, + { + "name": "toTypeName", + "arguments": [ + { + "parts": [ + "a" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03355_array_join_subcolumns/ast.json b/parser/testdata/03355_array_join_subcolumns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03355_array_join_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03355_issue_31183/ast.json b/parser/testdata/03355_issue_31183/ast.json new file mode 100644 index 0000000000..18b54ae745 --- /dev/null +++ b/parser/testdata/03355_issue_31183/ast.json @@ -0,0 +1,42 @@ +{ + "table": "test1", + "columns": [ + { + "name": "col", + "type": { + "name": "UInt64" + } + }, + { + "name": "col_sq", + "type": { + "name": "UInt64" + }, + "default": { + "left": { + "parts": [ + "col" + ] + }, + "op": "*", + "right": { + "parts": [ + "col" + ] + } + }, + "default_kind": "MATERIALIZED" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ], + "partition_by": { + "name": "tuple" + } +} diff --git a/parser/testdata/03355_issue_32743/ast.json b/parser/testdata/03355_issue_32743/ast.json new file mode 100644 index 0000000000..7931ca1e3a --- /dev/null +++ b/parser/testdata/03355_issue_32743/ast.json @@ -0,0 +1,28 @@ +{ + "table": "distributor", + "columns": [ + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03355_join_to_in_optimization/ast.json b/parser/testdata/03355_join_to_in_optimization/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03355_join_to_in_optimization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03355_mergetree_table_disk/ast.json b/parser/testdata/03355_mergetree_table_disk/ast.json new file mode 100644 index 0000000000..70a4a9735e --- /dev/null +++ b/parser/testdata/03355_mergetree_table_disk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "uk_price_paid", + "tables": [ + { + "table": "uk_price_paid" + } + ] +} diff --git a/parser/testdata/03356_analyzer_qualified_matcher_error/ast.json b/parser/testdata/03356_analyzer_qualified_matcher_error/ast.json new file mode 100644 index 0000000000..c2a20a51f0 --- /dev/null +++ b/parser/testdata/03356_analyzer_qualified_matcher_error/ast.json @@ -0,0 +1,21 @@ +{ + "table": "test_table", + "columns": [ + { + "name": "smt", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "smt" + ] + } + ] +} diff --git a/parser/testdata/03356_analyzer_unused_scalar_subquery/ast.json b/parser/testdata/03356_analyzer_unused_scalar_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03356_analyzer_unused_scalar_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03356_array_join_subcolumns_indexes/ast.json b/parser/testdata/03356_array_join_subcolumns_indexes/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03356_array_join_subcolumns_indexes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03356_postgresql_mysql_endpoint_parsing/ast.json b/parser/testdata/03356_postgresql_mysql_endpoint_parsing/ast.json new file mode 100644 index 0000000000..3efb7ab3c1 --- /dev/null +++ b/parser/testdata/03356_postgresql_mysql_endpoint_parsing/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tablefunc01", + "tables": [ + { + "table": "tablefunc01" + } + ] +} diff --git a/parser/testdata/03356_pull_entry_before_detach_part/ast.json b/parser/testdata/03356_pull_entry_before_detach_part/ast.json new file mode 100644 index 0000000000..3a922b7924 --- /dev/null +++ b/parser/testdata/03356_pull_entry_before_detach_part/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "insert_keeper_fault_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03356_tables_with_binary_identifiers_invalid_utf8/ast.json b/parser/testdata/03356_tables_with_binary_identifiers_invalid_utf8/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03356_tables_with_binary_identifiers_invalid_utf8/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03356_threshold_for_parallel_hash/ast.json b/parser/testdata/03356_threshold_for_parallel_hash/ast.json new file mode 100644 index 0000000000..07dab575d7 --- /dev/null +++ b/parser/testdata/03356_threshold_for_parallel_hash/ast.json @@ -0,0 +1,20 @@ +{ + "table": "lhs", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": null + } + ] +} diff --git a/parser/testdata/03357_analyzer_insert_view/ast.json b/parser/testdata/03357_analyzer_insert_view/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03357_analyzer_insert_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03357_arraySymmetricDifference/ast.json b/parser/testdata/03357_arraySymmetricDifference/ast.json new file mode 100644 index 0000000000..6415fa5f4f --- /dev/null +++ b/parser/testdata/03357_arraySymmetricDifference/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/03357_block_structure_union_step/ast.json b/parser/testdata/03357_block_structure_union_step/ast.json new file mode 100644 index 0000000000..118ced26c5 --- /dev/null +++ b/parser/testdata/03357_block_structure_union_step/ast.json @@ -0,0 +1,70 @@ +{ + "table": "pk_block_union", + "columns": [ + { + "name": "d", + "type": { + "name": "Date" + }, + "default": { + "type": "String", + "value": "2000-01-01" + }, + "default_kind": "DEFAULT" + }, + { + "name": "x", + "type": { + "name": "DateTime" + } + }, + { + "name": "y", + "type": { + "name": "UInt64" + } + }, + { + "name": "z", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "name": "toStartOfMinute", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + }, + { + "parts": [ + "y" + ] + }, + { + "parts": [ + "z" + ] + } + ] + } + ], + "partition_by": { + "parts": [ + "d" + ] + } +} diff --git a/parser/testdata/03357_check_contraints_null_syntax/ast.json b/parser/testdata/03357_check_contraints_null_syntax/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03357_check_contraints_null_syntax/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03357_jit_strikes_again/ast.json b/parser/testdata/03357_jit_strikes_again/ast.json new file mode 100644 index 0000000000..418e681972 --- /dev/null +++ b/parser/testdata/03357_jit_strikes_again/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "min_count_to_compile_expression", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03357_join_pk_sharding/ast.json b/parser/testdata/03357_join_pk_sharding/ast.json new file mode 100644 index 0000000000..84bcf25f7f --- /dev/null +++ b/parser/testdata/03357_join_pk_sharding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_statistics_optimize", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03357_recursive_cte_no_logical_error/ast.json b/parser/testdata/03357_recursive_cte_no_logical_error/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03357_recursive_cte_no_logical_error/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03357_storage_join_mv_context/ast.json b/parser/testdata/03357_storage_join_mv_context/ast.json new file mode 100644 index 0000000000..85747e103f --- /dev/null +++ b/parser/testdata/03357_storage_join_mv_context/ast.json @@ -0,0 +1,56 @@ +{ + "table": "destination_join", + "columns": [ + { + "name": "key", + "type": { + "name": "String" + } + }, + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "color", + "type": { + "name": "String" + } + }, + { + "name": "section", + "type": { + "name": "String" + } + }, + { + "name": "description", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Join", + "parameters": [ + { + "parts": [ + "ANY" + ] + }, + { + "parts": [ + "LEFT" + ] + }, + { + "parts": [ + "key" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03357_with_cube_with_totals_assertion/ast.json b/parser/testdata/03357_with_cube_with_totals_assertion/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03357_with_cube_with_totals_assertion/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03358_block_structure_match/ast.json b/parser/testdata/03358_block_structure_match/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03358_block_structure_match/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03358_lambda_resolution_segfault_analyzer/ast.json b/parser/testdata/03358_lambda_resolution_segfault_analyzer/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03358_lambda_resolution_segfault_analyzer/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03359_analyzer_rewrite_view_query/ast.json b/parser/testdata/03359_analyzer_rewrite_view_query/ast.json new file mode 100644 index 0000000000..d498c429ce --- /dev/null +++ b/parser/testdata/03359_analyzer_rewrite_view_query/ast.json @@ -0,0 +1,21 @@ +{ + "table": "mydestination", + "columns": [ + { + "name": "object", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "object" + ] + } + ] +} diff --git a/parser/testdata/03359_point_in_polygon_index/ast.json b/parser/testdata/03359_point_in_polygon_index/ast.json new file mode 100644 index 0000000000..a9e9bab9bc --- /dev/null +++ b/parser/testdata/03359_point_in_polygon_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_point_in_polygon", + "tables": [ + { + "table": "t_point_in_polygon" + } + ] +} diff --git a/parser/testdata/03359_ub_merging_aggregated_transform/ast.json b/parser/testdata/03359_ub_merging_aggregated_transform/ast.json new file mode 100644 index 0000000000..03463b5b50 --- /dev/null +++ b/parser/testdata/03359_ub_merging_aggregated_transform/ast.json @@ -0,0 +1,225 @@ +{ + "table": "t_having", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int32" + } + }, + { + "name": "c1", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "c0" + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 18398 + } + }, + { + "name": "min_bytes_for_wide_part", + "value": { + "type": "Integer", + "value": 985217954 + } + }, + { + "name": "ratio_of_defaults_for_sparse_serialization", + "value": { + "type": "Float", + "value": 0.5019329786300659 + } + }, + { + "name": "replace_long_file_name_to_hash", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "max_file_name_length", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "min_bytes_for_full_part_storage", + "value": { + "type": "Integer", + "value": 536870912 + } + }, + { + "name": "compact_parts_max_bytes_to_buffer", + "value": { + "type": "Integer", + "value": 3894513 + } + }, + { + "name": "compact_parts_max_granules_to_buffer", + "value": { + "type": "Integer", + "value": 216 + } + }, + { + "name": "compact_parts_merge_max_bytes_to_prefetch_part", + "value": { + "type": "Integer", + "value": 27835806 + } + }, + { + "name": "merge_max_block_size", + "value": { + "type": "Integer", + "value": 17883 + } + }, + { + "name": "old_parts_lifetime", + "value": { + "type": "Integer", + "value": 196 + } + }, + { + "name": "prefer_fetch_merged_part_size_threshold", + "value": { + "type": "Integer", + "value": 10737418240 + } + }, + { + "name": "vertical_merge_algorithm_min_rows_to_activate", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "vertical_merge_algorithm_min_columns_to_activate", + "value": { + "type": "Integer", + "value": 100 + } + }, + { + "name": "min_merge_bytes_to_use_direct_io", + "value": { + "type": "Integer", + "value": 6973717094 + } + }, + { + "name": "index_granularity_bytes", + "value": { + "type": "Integer", + "value": 26319752 + } + }, + { + "name": "use_const_adaptive_granularity", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "enable_index_granularity_compression", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "concurrent_part_removal_threshold", + "value": { + "type": "Integer", + "value": 31 + } + }, + { + "name": "allow_vertical_merges_from_compact_to_wide_parts", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "enable_block_number_column", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "enable_block_offset_column", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "cache_populated_by_fetch", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "marks_compress_block_size", + "value": { + "type": "Integer", + "value": 64286 + } + }, + { + "name": "primary_key_compress_block_size", + "value": { + "type": "Integer", + "value": 40716 + } + }, + { + "name": "use_primary_key_cache", + "value": { + "type": "Boolean", + "value": false + } + }, + { + "name": "prewarm_primary_key_cache", + "value": { + "type": "Boolean", + "value": true + } + }, + { + "name": "prewarm_mark_cache", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/03360_any_join_parallel_hash_bug/ast.json b/parser/testdata/03360_any_join_parallel_hash_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03360_any_join_parallel_hash_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03360_bool_remote/ast.json b/parser/testdata/03360_bool_remote/ast.json new file mode 100644 index 0000000000..8d55cb7ec6 --- /dev/null +++ b/parser/testdata/03360_bool_remote/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Boolean", + "value": true + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.0.0.{1,2}" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03362_filter_transform_profile_events/ast.json b/parser/testdata/03362_filter_transform_profile_events/ast.json new file mode 100644 index 0000000000..9448f5c4ba --- /dev/null +++ b/parser/testdata/03362_filter_transform_profile_events/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + }, + "limit": { + "type": "Integer", + "value": 100 + } + } + ] +} diff --git a/parser/testdata/03362_iceberg_table_with_confusing_name/ast.json b/parser/testdata/03362_iceberg_table_with_confusing_name/ast.json new file mode 100644 index 0000000000..3ef77a0681 --- /dev/null +++ b/parser/testdata/03362_iceberg_table_with_confusing_name/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "icebergS3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "est" + } + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/03362_join_on_filterpushdown/ast.json b/parser/testdata/03362_join_on_filterpushdown/ast.json new file mode 100644 index 0000000000..3eb390e577 --- /dev/null +++ b/parser/testdata/03362_join_on_filterpushdown/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03362_join_where_false_76670/ast.json b/parser/testdata/03362_join_where_false_76670/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03362_join_where_false_76670/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03362_optimize_using_constraints_type_mismatch/ast.json b/parser/testdata/03362_optimize_using_constraints_type_mismatch/ast.json new file mode 100644 index 0000000000..4c3c6aba76 --- /dev/null +++ b/parser/testdata/03362_optimize_using_constraints_type_mismatch/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "optimize_using_constraints", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "convert_query_to_cnf", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03362_reverse_sorting_key_explicit_primary_key/ast.json b/parser/testdata/03362_reverse_sorting_key_explicit_primary_key/ast.json new file mode 100644 index 0000000000..cd1010d0fa --- /dev/null +++ b/parser/testdata/03362_reverse_sorting_key_explicit_primary_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x1", + "tables": [ + { + "table": "x1" + } + ] +} diff --git a/parser/testdata/03363_constant_nullable_key/ast.json b/parser/testdata/03363_constant_nullable_key/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03363_constant_nullable_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03363_estimate_compression_ratio_validation/ast.json b/parser/testdata/03363_estimate_compression_ratio_validation/ast.json new file mode 100644 index 0000000000..e96b6eefc8 --- /dev/null +++ b/parser/testdata/03363_estimate_compression_ratio_validation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_for_estimate_compression_ratio", + "tables": [ + { + "table": "test_table_for_estimate_compression_ratio" + } + ] +} diff --git a/parser/testdata/03363_function_keccak256/ast.json b/parser/testdata/03363_function_keccak256/ast.json new file mode 100644 index 0000000000..4e9214ea25 --- /dev/null +++ b/parser/testdata/03363_function_keccak256/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "keccak256", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03363_hive_style_partition/ast.json b/parser/testdata/03363_hive_style_partition/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/03363_hive_style_partition/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03363_qbit_create_insert_select/ast.json b/parser/testdata/03363_qbit_create_insert_select/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03363_qbit_create_insert_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03363_read_json_and_subcolumns_from_view/ast.json b/parser/testdata/03363_read_json_and_subcolumns_from_view/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03363_read_json_and_subcolumns_from_view/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03364_gorilla_codec_parameters/ast.json b/parser/testdata/03364_gorilla_codec_parameters/ast.json new file mode 100644 index 0000000000..80fe6886be --- /dev/null +++ b/parser/testdata/03364_gorilla_codec_parameters/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_codecs", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03364_pretty_json_bool/ast.json b/parser/testdata/03364_pretty_json_bool/ast.json new file mode 100644 index 0000000000..fada84222c --- /dev/null +++ b/parser/testdata/03364_pretty_json_bool/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Boolean", + "value": true + }, + "alias": "a" + }, + { + "expr": { + "type": "Boolean", + "value": false + }, + "alias": "b" + } + ], + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ], + "format": { + "parts": [ + "JSON" + ] + } + } + ] +} diff --git a/parser/testdata/03364_qbit_negative/ast.json b/parser/testdata/03364_qbit_negative/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03364_qbit_negative/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03364_s3_globbed_path_in_bucket_portion/ast.json b/parser/testdata/03364_s3_globbed_path_in_bucket_portion/ast.json new file mode 100644 index 0000000000..44f1a02c94 --- /dev/null +++ b/parser/testdata/03364_s3_globbed_path_in_bucket_portion/ast.json @@ -0,0 +1,21 @@ +{ + "table": "s3_03364", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "S3", + "parameters": [ + { + "type": "String", + "value": "http://{_partition_id}.s3.region.amazonaws.com/key" + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03364_ttl_should_recalculate_minmax_index/ast.json b/parser/testdata/03364_ttl_should_recalculate_minmax_index/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/03364_ttl_should_recalculate_minmax_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/03364_with_fill_select_from_cluster_view/ast.json b/parser/testdata/03364_with_fill_select_from_cluster_view/ast.json new file mode 100644 index 0000000000..3e17ce0d0a --- /dev/null +++ b/parser/testdata/03364_with_fill_select_from_cluster_view/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "param_CurrentStart", + "value": { + "type": "String", + "value": "2025-02-09" + } + }, + { + "name": "param_CurrentEnd", + "value": { + "type": "String", + "value": "2025-02-11" + } + } + ] +} diff --git a/parser/testdata/03365_bind_host/ast.json b/parser/testdata/03365_bind_host/ast.json new file mode 100644 index 0000000000..eec874c127 --- /dev/null +++ b/parser/testdata/03365_bind_host/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mem1", + "tables": [ + { + "table": "mem1" + } + ] +} diff --git a/parser/testdata/03365_csv_time_deserialization_bug/ast.json b/parser/testdata/03365_csv_time_deserialization_bug/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_csv_time_deserialization_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_dynamic_column_datetime/ast.json b/parser/testdata/03365_dynamic_column_datetime/ast.json new file mode 100644 index 0000000000..ef62626932 --- /dev/null +++ b/parser/testdata/03365_dynamic_column_datetime/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_if_time_time64/ast.json b/parser/testdata/03365_if_time_time64/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_if_time_time64/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_json_with_variant_subcolumn/ast.json b/parser/testdata/03365_json_with_variant_subcolumn/ast.json new file mode 100644 index 0000000000..d6e946d73c --- /dev/null +++ b/parser/testdata/03365_json_with_variant_subcolumn/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_parsing_time_time64_short/ast.json b/parser/testdata/03365_parsing_time_time64_short/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_parsing_time_time64_short/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_qbit_casts_as_from_array/ast.json b/parser/testdata/03365_qbit_casts_as_from_array/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03365_qbit_casts_as_from_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_read_negative_time_implicitly/ast.json b/parser/testdata/03365_read_negative_time_implicitly/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_read_negative_time_implicitly/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time64_casts/ast.json b/parser/testdata/03365_time64_casts/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_time64_casts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time64_from_datetime_timezone_respect/ast.json b/parser/testdata/03365_time64_from_datetime_timezone_respect/ast.json new file mode 100644 index 0000000000..d6febeedca --- /dev/null +++ b/parser/testdata/03365_time64_from_datetime_timezone_respect/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_implicit_conversion/ast.json b/parser/testdata/03365_time_implicit_conversion/ast.json new file mode 100644 index 0000000000..d6febeedca --- /dev/null +++ b/parser/testdata/03365_time_implicit_conversion/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_in_json/ast.json b/parser/testdata/03365_time_in_json/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_time_in_json/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_parsing_msan_issue/ast.json b/parser/testdata/03365_time_parsing_msan_issue/ast.json new file mode 100644 index 0000000000..24bf768796 --- /dev/null +++ b/parser/testdata/03365_time_parsing_msan_issue/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Boolean", + "value": false + } + } + ] +} diff --git a/parser/testdata/03365_time_prewhere_supertype_bug/ast.json b/parser/testdata/03365_time_prewhere_supertype_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03365_time_prewhere_supertype_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_aggregate_functions/ast.json b/parser/testdata/03365_time_time64_aggregate_functions/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_time_time64_aggregate_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_as_primary_key/ast.json b/parser/testdata/03365_time_time64_as_primary_key/ast.json new file mode 100644 index 0000000000..d6febeedca --- /dev/null +++ b/parser/testdata/03365_time_time64_as_primary_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_best_effort_parsing/ast.json b/parser/testdata/03365_time_time64_best_effort_parsing/ast.json new file mode 100644 index 0000000000..3f2fb10316 --- /dev/null +++ b/parser/testdata/03365_time_time64_best_effort_parsing/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "date_time_input_format", + "value": { + "type": "String", + "value": "best_effort" + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_cap_max_time/ast.json b/parser/testdata/03365_time_time64_cap_max_time/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_time_time64_cap_max_time/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_comparison/ast.json b/parser/testdata/03365_time_time64_comparison/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_time_time64_comparison/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_conversions/ast.json b/parser/testdata/03365_time_time64_conversions/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03365_time_time64_conversions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_extreme_values/ast.json b/parser/testdata/03365_time_time64_extreme_values/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_time_time64_extreme_values/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_insertion_bug/ast.json b/parser/testdata/03365_time_time64_insertion_bug/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_time_time64_insertion_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_operations/ast.json b/parser/testdata/03365_time_time64_operations/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03365_time_time64_operations/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_parsing/ast.json b/parser/testdata/03365_time_time64_parsing/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_time_time64_parsing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_supertype/ast.json b/parser/testdata/03365_time_time64_supertype/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_time_time64_supertype/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_time_time64_without_timezone/ast.json b/parser/testdata/03365_time_time64_without_timezone/ast.json new file mode 100644 index 0000000000..ab59b89a11 --- /dev/null +++ b/parser/testdata/03365_time_time64_without_timezone/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_legacy_to_time", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03365_time_timezone_issue/ast.json b/parser/testdata/03365_time_timezone_issue/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_time_timezone_issue/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_time_to_time64_conv_bug/ast.json b/parser/testdata/03365_time_to_time64_conv_bug/ast.json new file mode 100644 index 0000000000..2ff38775ab --- /dev/null +++ b/parser/testdata/03365_time_to_time64_conv_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03365_use_legacy_to_time/ast.json b/parser/testdata/03365_use_legacy_to_time/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03365_use_legacy_to_time/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03365_variant_bool_parsing/ast.json b/parser/testdata/03365_variant_bool_parsing/ast.json new file mode 100644 index 0000000000..6cc23a72ae --- /dev/null +++ b/parser/testdata/03365_variant_bool_parsing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03366_qbit_array_map_populate/ast.json b/parser/testdata/03366_qbit_array_map_populate/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03366_qbit_array_map_populate/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03366_with_fill_dag/ast.json b/parser/testdata/03366_with_fill_dag/ast.json new file mode 100644 index 0000000000..63ddbc9234 --- /dev/null +++ b/parser/testdata/03366_with_fill_dag/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + }, + "with_fill": true, + "fill_step": { + "type": "Integer", + "value": 1 + } + }, + { + "expression": { + "type": "String", + "value": "aaa" + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03367_bfloat16_tuple_final/ast.json b/parser/testdata/03367_bfloat16_tuple_final/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03367_bfloat16_tuple_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03368_bfloat16_merge_join/ast.json b/parser/testdata/03368_bfloat16_merge_join/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03368_bfloat16_merge_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03368_qbit_subcolumns/ast.json b/parser/testdata/03368_qbit_subcolumns/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03368_qbit_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03369_bfloat16_map/ast.json b/parser/testdata/03369_bfloat16_map/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03369_bfloat16_map/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03369_function_arrayLevenshtein/ast.json b/parser/testdata/03369_function_arrayLevenshtein/ast.json new file mode 100644 index 0000000000..6c5150586f --- /dev/null +++ b/parser/testdata/03369_function_arrayLevenshtein/ast.json @@ -0,0 +1,37 @@ +{ + "table": "simple_levenshtein", + "columns": [ + { + "name": "lhs", + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + }, + { + "name": "rhs", + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03369_l2_distance_transposed_variadic/ast.json b/parser/testdata/03369_l2_distance_transposed_variadic/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03369_l2_distance_transposed_variadic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03369_predicate_pushdown_enforce_literal_type/ast.json b/parser/testdata/03369_predicate_pushdown_enforce_literal_type/ast.json new file mode 100644 index 0000000000..439f31f15c --- /dev/null +++ b/parser/testdata/03369_predicate_pushdown_enforce_literal_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_03369", + "tables": [ + { + "table": "t_03369" + } + ] +} diff --git a/parser/testdata/03369_values_template_types_mismatch/ast.json b/parser/testdata/03369_values_template_types_mismatch/ast.json new file mode 100644 index 0000000000..1acaaeb577 --- /dev/null +++ b/parser/testdata/03369_values_template_types_mismatch/ast.json @@ -0,0 +1,14 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03369_variant_escape_filename_merge_tree/ast.json b/parser/testdata/03369_variant_escape_filename_merge_tree/ast.json new file mode 100644 index 0000000000..6cc23a72ae --- /dev/null +++ b/parser/testdata/03369_variant_escape_filename_merge_tree/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03370_join_identifiers/ast.json b/parser/testdata/03370_join_identifiers/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03370_join_identifiers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03370_rocks_db_engine_subcolumn_in_pk/ast.json b/parser/testdata/03370_rocks_db_engine_subcolumn_in_pk/ast.json new file mode 100644 index 0000000000..283c642b16 --- /dev/null +++ b/parser/testdata/03370_rocks_db_engine_subcolumn_in_pk/ast.json @@ -0,0 +1,32 @@ +{ + "table": "test", + "columns": [ + { + "name": "t", + "type": { + "name": "Tuple", + "parameters": [ + { + "name": "a", + "type": { + "name": "Int32" + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "EmbeddedRocksDB", + "has_parentheses": true + }, + "primary_key": [ + { + "parts": [ + "t", + "a" + ] + } + ] +} diff --git a/parser/testdata/03371_analyzer_filter_pushdown_distributed/ast.json b/parser/testdata/03371_analyzer_filter_pushdown_distributed/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03371_analyzer_filter_pushdown_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03371_bfloat16_special_values/ast.json b/parser/testdata/03371_bfloat16_special_values/ast.json new file mode 100644 index 0000000000..f4932d19d8 --- /dev/null +++ b/parser/testdata/03371_bfloat16_special_values/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "toFloat32", + "arguments": [ + { + "type": "Float", + "value": 0 + } + ] + }, + "op": "==", + "right": { + "name": "toFloat32", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Float", + "value": 0 + } + } + ] + } + }, + { + "left": { + "name": "toBFloat16", + "arguments": [ + { + "type": "Float", + "value": 0 + } + ] + }, + "op": "==", + "right": { + "name": "toBFloat16", + "arguments": [ + { + "op": "-", + "operand": { + "type": "Float", + "value": 0 + } + } + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03371_constant_alias_columns/ast.json b/parser/testdata/03371_constant_alias_columns/ast.json new file mode 100644 index 0000000000..a65643dbf2 --- /dev/null +++ b/parser/testdata/03371_constant_alias_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_for_non_replicated_merge_tree", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03371_nullable_tuple_string_comparison/ast.json b/parser/testdata/03371_nullable_tuple_string_comparison/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03371_nullable_tuple_string_comparison/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03372_get_subcolumn_null/ast.json b/parser/testdata/03372_get_subcolumn_null/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03372_get_subcolumn_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03372_qbit_mergetree_1/ast.json b/parser/testdata/03372_qbit_mergetree_1/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03372_qbit_mergetree_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03372_qbit_mergetree_2/ast.json b/parser/testdata/03372_qbit_mergetree_2/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03372_qbit_mergetree_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03373_qbit_dynamic/ast.json b/parser/testdata/03373_qbit_dynamic/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03373_qbit_dynamic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03374_date_trunc_with_negatives/ast.json b/parser/testdata/03374_date_trunc_with_negatives/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03374_date_trunc_with_negatives/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03374_indexes_with_literals/ast.json b/parser/testdata/03374_indexes_with_literals/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03374_indexes_with_literals/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03374_indexes_with_trivial_cast/ast.json b/parser/testdata/03374_indexes_with_trivial_cast/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03374_indexes_with_trivial_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03374_qbit_nullable/ast.json b/parser/testdata/03374_qbit_nullable/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03374_qbit_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03375_bloom_filter_array_equals/ast.json b/parser/testdata/03375_bloom_filter_array_equals/ast.json new file mode 100644 index 0000000000..01f2f41a1a --- /dev/null +++ b/parser/testdata/03375_bloom_filter_array_equals/ast.json @@ -0,0 +1,44 @@ +{ + "table": "test", + "columns": [ + { + "name": "x", + "type": { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "indexes": [ + { + "name": "idx1", + "expression": { + "parts": [ + "x" + ] + }, + "type": { + "name": "bloom_filter", + "arguments": [ + { + "type": "Float", + "value": 0.025 + } + ] + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03375_bloom_filter_has_hasAny_const_array/ast.json b/parser/testdata/03375_bloom_filter_has_hasAny_const_array/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03375_bloom_filter_has_hasAny_const_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03375_bloom_filter_ngram_has_hasAny_const_array/ast.json b/parser/testdata/03375_bloom_filter_ngram_has_hasAny_const_array/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03375_bloom_filter_ngram_has_hasAny_const_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03375_bloom_filter_token_has_hasAny_const_array/ast.json b/parser/testdata/03375_bloom_filter_token_has_hasAny_const_array/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03375_bloom_filter_token_has_hasAny_const_array/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03375_bool_partition/ast.json b/parser/testdata/03375_bool_partition/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03375_bool_partition/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03375_l2_distance_transposed_partial_reads_pass/ast.json b/parser/testdata/03375_l2_distance_transposed_partial_reads_pass/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03375_l2_distance_transposed_partial_reads_pass/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03376_forbid_nan_inf_for_float_settings/ast.json b/parser/testdata/03376_forbid_nan_inf_for_float_settings/ast.json new file mode 100644 index 0000000000..d002671deb --- /dev/null +++ b/parser/testdata/03376_forbid_nan_inf_for_float_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries_probability", + "value": { + "type": "Float", + "value": "+Inf" + } + } + ] +} diff --git a/parser/testdata/03376_iceberg_truncate/ast.json b/parser/testdata/03376_iceberg_truncate/ast.json new file mode 100644 index 0000000000..045a07c791 --- /dev/null +++ b/parser/testdata/03376_iceberg_truncate/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "icebergTruncate", + "arguments": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03376_json_comparison/ast.json b/parser/testdata/03376_json_comparison/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03376_json_comparison/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03376_l2_distance_transposed_type_mismatch/ast.json b/parser/testdata/03376_l2_distance_transposed_type_mismatch/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03376_l2_distance_transposed_type_mismatch/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03377_json_order_by_bug/ast.json b/parser/testdata/03377_json_order_by_bug/ast.json new file mode 100644 index 0000000000..8a18e783c2 --- /dev/null +++ b/parser/testdata/03377_json_order_by_bug/ast.json @@ -0,0 +1,39 @@ +{ + "settings": [ + { + "name": "enable_variant_type", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_suspicious_variant_types", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_suspicious_types_in_order_by", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "type_json_skip_duplicated_paths", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03377_qbit_parameters/ast.json b/parser/testdata/03377_qbit_parameters/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03377_qbit_parameters/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03381_lazy_materialization_limit_offset/ast.json b/parser/testdata/03381_lazy_materialization_limit_offset/ast.json new file mode 100644 index 0000000000..7e463eb4ac --- /dev/null +++ b/parser/testdata/03381_lazy_materialization_limit_offset/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 20000 + } + } + ] +} diff --git a/parser/testdata/03381_remote_constants/ast.json b/parser/testdata/03381_remote_constants/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03381_remote_constants/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03382_dynamic_serialization_default_settings/ast.json b/parser/testdata/03382_dynamic_serialization_default_settings/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03382_dynamic_serialization_default_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03390_non_constant_case/ast.json b/parser/testdata/03390_non_constant_case/ast.json new file mode 100644 index 0000000000..bb8a245f66 --- /dev/null +++ b/parser/testdata/03390_non_constant_case/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Numeric CASE" + } + ] + } + ] +} diff --git a/parser/testdata/03391_logical_error_sort_column/ast.json b/parser/testdata/03391_logical_error_sort_column/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03391_logical_error_sort_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03392_inconsistent_formatting_of_lambda/ast.json b/parser/testdata/03392_inconsistent_formatting_of_lambda/ast.json new file mode 100644 index 0000000000..7def38176c --- /dev/null +++ b/parser/testdata/03392_inconsistent_formatting_of_lambda/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "lambda", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03393_ASTTableIdentifier_fuzzer/ast.json b/parser/testdata/03393_ASTTableIdentifier_fuzzer/ast.json new file mode 100644 index 0000000000..843765792a --- /dev/null +++ b/parser/testdata/03393_ASTTableIdentifier_fuzzer/ast.json @@ -0,0 +1,14 @@ +{ + "table": "null", + "columns": [ + { + "name": "key", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Null" + } +} diff --git a/parser/testdata/03393_join_bug_77848/ast.json b/parser/testdata/03393_join_bug_77848/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03393_join_bug_77848/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03393_max_merge_delayed_streams_for_parallel_write/ast.json b/parser/testdata/03393_max_merge_delayed_streams_for_parallel_write/ast.json new file mode 100644 index 0000000000..aa4b93c349 --- /dev/null +++ b/parser/testdata/03393_max_merge_delayed_streams_for_parallel_write/ast.json @@ -0,0 +1,5 @@ +{ + "command": "flush logs", + "database": "system", + "table": "metric_log" +} diff --git a/parser/testdata/03393_max_read_buffer_size_non_zero/ast.json b/parser/testdata/03393_max_read_buffer_size_non_zero/ast.json new file mode 100644 index 0000000000..75a7b1ec9a --- /dev/null +++ b/parser/testdata/03393_max_read_buffer_size_non_zero/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_read_buffer_size", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03393_non_constant_second_argument_for_in/ast.json b/parser/testdata/03393_non_constant_second_argument_for_in/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03393_non_constant_second_argument_for_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03393_smallest_index_floating_point/ast.json b/parser/testdata/03393_smallest_index_floating_point/ast.json new file mode 100644 index 0000000000..32bb8e067b --- /dev/null +++ b/parser/testdata/03393_smallest_index_floating_point/ast.json @@ -0,0 +1,59 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "argMin", + "arguments": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "+", + "right": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "/", + "right": { + "parts": [ + "number" + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03393_validate_storage_buffer_args/ast.json b/parser/testdata/03393_validate_storage_buffer_args/ast.json new file mode 100644 index 0000000000..ff8c255101 --- /dev/null +++ b/parser/testdata/03393_validate_storage_buffer_args/ast.json @@ -0,0 +1,55 @@ +{ + "table": "invalid", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Buffer", + "parameters": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "x" + ] + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03394_fix_to_start_of_interval_for_zero_origin_argument/ast.json b/parser/testdata/03394_fix_to_start_of_interval_for_zero_origin_argument/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03394_fix_to_start_of_interval_for_zero_origin_argument/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03394_naive_bayes_classifier_negative/ast.json b/parser/testdata/03394_naive_bayes_classifier_negative/ast.json new file mode 100644 index 0000000000..ae26c4c59b --- /dev/null +++ b/parser/testdata/03394_naive_bayes_classifier_negative/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "naiveBayesClassifier", + "arguments": [ + { + "type": "String", + "value": "sentiment" + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03394_pr_insert_select/ast.json b/parser/testdata/03394_pr_insert_select/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03394_pr_insert_select/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03394_pr_insert_select_local_pipeline/ast.json b/parser/testdata/03394_pr_insert_select_local_pipeline/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03394_pr_insert_select_local_pipeline/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03394_pr_insert_select_threads/ast.json b/parser/testdata/03394_pr_insert_select_threads/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03394_pr_insert_select_threads/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03395_global_join_supported_kind/ast.json b/parser/testdata/03395_global_join_supported_kind/ast.json new file mode 100644 index 0000000000..f43fdad31e --- /dev/null +++ b/parser/testdata/03395_global_join_supported_kind/ast.json @@ -0,0 +1,71 @@ +{ + "selects": [ + { + "columns": [ + { + "table": "t1" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.1" + } + ] + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.1" + } + ] + }, + "alias": "t2" + }, + "join": { + "type": "FULL", + "global": true, + "on": { + "left": { + "parts": [ + "t1", + "dummy" + ] + }, + "op": "=", + "right": { + "parts": [ + "t2", + "dummy" + ] + } + } + } + } + ] + }, + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03397_information_schema_tables_index_length/ast.json b/parser/testdata/03397_information_schema_tables_index_length/ast.json new file mode 100644 index 0000000000..d3c84b2578 --- /dev/null +++ b/parser/testdata/03397_information_schema_tables_index_length/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab_with_primary_key_index", + "tables": [ + { + "table": "tab_with_primary_key_index" + } + ] +} diff --git a/parser/testdata/03398_group_array_zero_max_elements/ast.json b/parser/testdata/03398_group_array_zero_max_elements/ast.json new file mode 100644 index 0000000000..1ec6c32e29 --- /dev/null +++ b/parser/testdata/03398_group_array_zero_max_elements/ast.json @@ -0,0 +1,29 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "groupArray", + "parameters": [ + { + "expr": { + "type": "Integer", + "value": 0 + }, + "type": { + "name": "UInt64" + }, + "operator_syntax": true + } + ], + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03399_advanced_expr_contains_sharding_key/ast.json b/parser/testdata/03399_advanced_expr_contains_sharding_key/ast.json new file mode 100644 index 0000000000..3cf7f91498 --- /dev/null +++ b/parser/testdata/03399_advanced_expr_contains_sharding_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_table", + "tables": [ + { + "table": "local_table" + } + ] +} diff --git a/parser/testdata/03399_analyzer_correlated_subquery/ast.json b/parser/testdata/03399_analyzer_correlated_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03399_analyzer_correlated_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03399_divide_zero_or_null/ast.json b/parser/testdata/03399_divide_zero_or_null/ast.json new file mode 100644 index 0000000000..304add0740 --- /dev/null +++ b/parser/testdata/03399_divide_zero_or_null/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Test with two const arguments" + } + ] + } + ] +} diff --git a/parser/testdata/03399_mapContains_functions/ast.json b/parser/testdata/03399_mapContains_functions/ast.json new file mode 100644 index 0000000000..bc6a47c263 --- /dev/null +++ b/parser/testdata/03399_mapContains_functions/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "map_containsValueLike_test", + "tables": [ + { + "table": "map_containsValueLike_test" + } + ] +} diff --git a/parser/testdata/03399_sparse_grams/ast.json b/parser/testdata/03399_sparse_grams/ast.json new file mode 100644 index 0000000000..c08da6e9ab --- /dev/null +++ b/parser/testdata/03399_sparse_grams/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- Regular calls" + } + ] + } + ] +} diff --git a/parser/testdata/03400_analyzer_correlated_subquery_unused_column/ast.json b/parser/testdata/03400_analyzer_correlated_subquery_unused_column/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03400_analyzer_correlated_subquery_unused_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03400_distributed_final/ast.json b/parser/testdata/03400_distributed_final/ast.json new file mode 100644 index 0000000000..04f6c4c54d --- /dev/null +++ b/parser/testdata/03400_distributed_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03400_users", + "tables": [ + { + "table": "03400_users" + } + ] +} diff --git a/parser/testdata/03400_explain_distributed_bug/ast.json b/parser/testdata/03400_explain_distributed_bug/ast.json new file mode 100644 index 0000000000..0182277f7a --- /dev/null +++ b/parser/testdata/03400_explain_distributed_bug/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03401_normal_projection_with_part_offset/ast.json b/parser/testdata/03401_normal_projection_with_part_offset/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03401_normal_projection_with_part_offset/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03401_normal_projection_with_part_offset_no_sorting/ast.json b/parser/testdata/03401_normal_projection_with_part_offset_no_sorting/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03401_normal_projection_with_part_offset_no_sorting/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03401_remote_bool/ast.json b/parser/testdata/03401_remote_bool/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03401_remote_bool/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03401_several_iceberg_tables_in_one_dir/ast.json b/parser/testdata/03401_several_iceberg_tables_in_one_dir/ast.json new file mode 100644 index 0000000000..6975cbef48 --- /dev/null +++ b/parser/testdata/03401_several_iceberg_tables_in_one_dir/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "icebergS3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "merged_several_tables_test" + } + } + ], + "settings": [ + { + "name": "iceberg_metadata_table_uuid", + "value": { + "type": "String", + "value": "ea8d1178-7756-4b89-b21f-00e9f31fe03e" + } + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "id" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03402_adding_projection_to_temporary_table/ast.json b/parser/testdata/03402_adding_projection_to_temporary_table/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03402_adding_projection_to_temporary_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03402_cluster_table_functions_settings_parsing/ast.json b/parser/testdata/03402_cluster_table_functions_settings_parsing/ast.json new file mode 100644 index 0000000000..6d945df632 --- /dev/null +++ b/parser/testdata/03402_cluster_table_functions_settings_parsing/ast.json @@ -0,0 +1,47 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "icebergS3Cluster", + "arguments": [ + { + "type": "String", + "value": "test_cluster_two_shards_localhost" + }, + { + "type": "String", + "value": "http://localhost:11111/test/est" + }, + { + "type": "String", + "value": "clickhouse" + }, + { + "type": "String", + "value": "clickhouse" + } + ], + "settings": [ + { + "name": "iceberg_metadata_file_path", + "value": { + "type": "String", + "value": "metadata/v2.metadata.json" + } + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03402_concurrent_right_full_join/ast.json b/parser/testdata/03402_concurrent_right_full_join/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/03402_concurrent_right_full_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03402_cyclic_alter_dependencies/ast.json b/parser/testdata/03402_cyclic_alter_dependencies/ast.json new file mode 100644 index 0000000000..9a1b679a1e --- /dev/null +++ b/parser/testdata/03402_cyclic_alter_dependencies/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "d0", + "tables": [ + { + "table": "d0" + } + ] +} diff --git a/parser/testdata/03402_join_using_alias/ast.json b/parser/testdata/03402_join_using_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03402_join_using_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03402_materialized_tuple_element/ast.json b/parser/testdata/03402_materialized_tuple_element/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03402_materialized_tuple_element/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03402_secondary_indexes_analyzer_bugs/ast.json b/parser/testdata/03402_secondary_indexes_analyzer_bugs/ast.json new file mode 100644 index 0000000000..26ff9706c6 --- /dev/null +++ b/parser/testdata/03402_secondary_indexes_analyzer_bugs/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "index is applied while using column alias" + } + ] + } + ] +} diff --git a/parser/testdata/03402_zero_streams_after_max_streams_to_max_threads_ratio/ast.json b/parser/testdata/03402_zero_streams_after_max_streams_to_max_threads_ratio/ast.json new file mode 100644 index 0000000000..00eb9c9503 --- /dev/null +++ b/parser/testdata/03402_zero_streams_after_max_streams_to_max_threads_ratio/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03402_data", + "tables": [ + { + "table": "03402_data" + } + ] +} diff --git a/parser/testdata/03403_distributed_merge_two_level_aggregation/ast.json b/parser/testdata/03403_distributed_merge_two_level_aggregation/ast.json new file mode 100644 index 0000000000..839fb76755 --- /dev/null +++ b/parser/testdata/03403_distributed_merge_two_level_aggregation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table_1", + "tables": [ + { + "table": "test_table_1" + } + ] +} diff --git a/parser/testdata/03403_function_tokens/ast.json b/parser/testdata/03403_function_tokens/ast.json new file mode 100644 index 0000000000..3082c7e246 --- /dev/null +++ b/parser/testdata/03403_function_tokens/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Constants: tokens should be constant" + } + ] + } + ] +} diff --git a/parser/testdata/03403_parallel_blocks_marshalling_for_distributed/ast.json b/parser/testdata/03403_parallel_blocks_marshalling_for_distributed/ast.json new file mode 100644 index 0000000000..8e347afba9 --- /dev/null +++ b/parser/testdata/03403_parallel_blocks_marshalling_for_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "serialize_query_plan", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03403_read_in_order_streams_memory_usage/ast.json b/parser/testdata/03403_read_in_order_streams_memory_usage/ast.json new file mode 100644 index 0000000000..045c38b31c --- /dev/null +++ b/parser/testdata/03403_read_in_order_streams_memory_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_blocks_marshalling", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03403_toInterval/ast.json b/parser/testdata/03403_toInterval/ast.json new file mode 100644 index 0000000000..23429fee94 --- /dev/null +++ b/parser/testdata/03403_toInterval/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toInterval", + "arguments": [ + { + "type": "Integer", + "value": 5 + }, + { + "type": "String", + "value": "nanosecond" + } + ], + "alias": "interval" + }, + { + "expr": { + "left": { + "name": "toDateTime64", + "arguments": [ + { + "type": "String", + "value": "2025-01-01 00:00:00" + }, + { + "type": "Integer", + "value": 9 + } + ] + }, + "op": "+", + "right": { + "parts": [ + "interval" + ] + } + }, + "alias": "res" + } + ] + } + ] +} diff --git a/parser/testdata/03403_truncate_all_tables_like/ast.json b/parser/testdata/03403_truncate_all_tables_like/ast.json new file mode 100644 index 0000000000..7a1170a741 --- /dev/null +++ b/parser/testdata/03403_truncate_all_tables_like/ast.json @@ -0,0 +1,15 @@ +{ + "if_not_exists": true, + "table": "truncate_test_set", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "Set" + } +} diff --git a/parser/testdata/03404_bfloat16_insert_values/ast.json b/parser/testdata/03404_bfloat16_insert_values/ast.json new file mode 100644 index 0000000000..ad611a9bef --- /dev/null +++ b/parser/testdata/03404_bfloat16_insert_values/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Basic tests" + } + ] + } + ] +} diff --git a/parser/testdata/03404_geotoh3_input_order/ast.json b/parser/testdata/03404_geotoh3_input_order/ast.json new file mode 100644 index 0000000000..df8ba0913c --- /dev/null +++ b/parser/testdata/03404_geotoh3_input_order/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "geoToH3", + "arguments": [ + { + "type": "Float", + "value": 37.79506683 + }, + { + "type": "Float", + "value": 55.71290588 + }, + { + "type": "Integer", + "value": 15 + } + ], + "alias": "h3Index" + } + ], + "settings": [ + { + "name": "geotoh3_argument_order", + "value": { + "type": "String", + "value": "lon_lat" + } + } + ] + } + ] +} diff --git a/parser/testdata/03404_json_tables/ast.json b/parser/testdata/03404_json_tables/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03404_json_tables/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03404_lazy_materialization_distributed/ast.json b/parser/testdata/03404_lazy_materialization_distributed/ast.json new file mode 100644 index 0000000000..d58a7bf85a --- /dev/null +++ b/parser/testdata/03404_lazy_materialization_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tt", + "tables": [ + { + "table": "tt" + } + ] +} diff --git a/parser/testdata/03404_ubsan_distinct_join_const_column/ast.json b/parser/testdata/03404_ubsan_distinct_join_const_column/ast.json new file mode 100644 index 0000000000..4c80826e21 --- /dev/null +++ b/parser/testdata/03404_ubsan_distinct_join_const_column/ast.json @@ -0,0 +1,323 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "parts": [ + "t" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "String", + "value": "[(1, 'a')]" + }, + "type": { + "name": "String" + } + }, + "alias": "t" + } + ], + "group_by": [ + { + "type": "Integer", + "value": 1 + }, + { + "name": "printf", + "arguments": [ + { + "name": "printf", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 7 + }, + { + "name": "printf", + "arguments": [ + { + "name": "isNullable", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "String", + "value": "%%d: %d" + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Null", + "value": null + } + ] + }, + { + "type": "Integer", + "value": 7 + }, + { + "name": "materialize", + "arguments": [ + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + } + ] + }, + { + "type": "String", + "value": "%%d: %d" + }, + { + "expr": { + "name": "toNullable", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + } + }, + { + "type": "Integer", + "value": 7 + } + ] + }, + { + "name": "materialize", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] + }, + { + "expr": { + "name": "isZeroOrNull", + "arguments": [ + { + "name": "isNullable", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + } + ] + } + } + ] + } + ] + } + }, + "alias": "na" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "[(1, 'a')]" + } + ] + }, + "type": { + "name": "String" + } + }, + "alias": "t" + } + ], + "group_by": [ + { + "type": "Integer", + "value": 1 + }, + { + "name": "toNullable", + "arguments": [ + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 123 + } + ] + } + ] + }, + { + "name": "printf", + "arguments": [ + { + "name": "printf", + "arguments": [ + { + "type": "Null", + "value": null + }, + {}, + { + "name": "printf", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "String", + "value": "%%d: %d" + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + }, + { + "name": "materialize", + "arguments": [ + { + "type": "Integer", + "value": 7 + } + ] + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + } + ] + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "String", + "value": "%%d: %d" + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + }, + { + "type": "Integer", + "value": 7 + } + ] + } + ] + } + ] + } + ] + } + } + } + } + ] + }, + "settings": [ + { + "name": "joined_subquery_requires_alias", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/03405_bool_array_to_fixed_strings/ast.json b/parser/testdata/03405_bool_array_to_fixed_strings/ast.json new file mode 100644 index 0000000000..02278d5690 --- /dev/null +++ b/parser/testdata/03405_bool_array_to_fixed_strings/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "Boolean", + "value": true + }, + { + "type": "Boolean", + "value": false + } + ] + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ] +} diff --git a/parser/testdata/03405_join_using_alias_constant/ast.json b/parser/testdata/03405_join_using_alias_constant/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03405_join_using_alias_constant/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03405_merge_filter_into_join/ast.json b/parser/testdata/03405_merge_filter_into_join/ast.json new file mode 100644 index 0000000000..bfc6c05841 --- /dev/null +++ b/parser/testdata/03405_merge_filter_into_join/ast.json @@ -0,0 +1,31 @@ +{ + "table": "users", + "columns": [ + { + "name": "uid", + "type": { + "name": "Int16" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "age", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03405_naive_bayes_classifier_token/ast.json b/parser/testdata/03405_naive_bayes_classifier_token/ast.json new file mode 100644 index 0000000000..0810b5966a --- /dev/null +++ b/parser/testdata/03405_naive_bayes_classifier_token/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "naiveBayesClassifier", + "arguments": [ + { + "type": "String", + "value": "sentiment_token_1" + }, + { + "type": "String", + "value": "The interface is beautiful and intuitive" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03405_non_zero_batch_mode/ast.json b/parser/testdata/03405_non_zero_batch_mode/ast.json new file mode 100644 index 0000000000..ca7027d74f --- /dev/null +++ b/parser/testdata/03405_non_zero_batch_mode/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_parquet_batch_size", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03405_ssd_cache_incorrect_min_max_lifetimes_and_block_size/ast.json b/parser/testdata/03405_ssd_cache_incorrect_min_max_lifetimes_and_block_size/ast.json new file mode 100644 index 0000000000..0984b1b711 --- /dev/null +++ b/parser/testdata/03405_ssd_cache_incorrect_min_max_lifetimes_and_block_size/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict", + "tables": [ + { + "table": "dict" + } + ] +} diff --git a/parser/testdata/03407_csv_bad_date_time_parsing/ast.json b/parser/testdata/03407_csv_bad_date_time_parsing/ast.json new file mode 100644 index 0000000000..ccb8a836d8 --- /dev/null +++ b/parser/testdata/03407_csv_bad_date_time_parsing/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "CSV" + ] + }, + { + "type": "String", + "value": "d DateTime64(3)" + }, + { + "type": "String", + "value": "1744042005 797" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "date_time_input_format", + "value": { + "type": "String", + "value": "best_effort" + } + } + ] + } + ] +} diff --git a/parser/testdata/03407_parse_date_time_best_effort_unix_timestamp_with_fraction/ast.json b/parser/testdata/03407_parse_date_time_best_effort_unix_timestamp_with_fraction/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03407_parse_date_time_best_effort_unix_timestamp_with_fraction/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03408_analyzer_correlated_subquery_simple/ast.json b/parser/testdata/03408_analyzer_correlated_subquery_simple/ast.json new file mode 100644 index 0000000000..0936be8551 --- /dev/null +++ b/parser/testdata/03408_analyzer_correlated_subquery_simple/ast.json @@ -0,0 +1,24 @@ +{ + "table": "t1", + "columns": [ + { + "name": "c1", + "type": { + "name": "UInt64" + } + }, + { + "name": "c2", + "type": { + "name": "UInt64" + } + } + ], + "order_by": [ + { + "parts": [ + "c1" + ] + } + ] +} diff --git a/parser/testdata/03408_cte_self_reference/ast.json b/parser/testdata/03408_cte_self_reference/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03408_cte_self_reference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03408_current_database_on_cluster_constraint/ast.json b/parser/testdata/03408_current_database_on_cluster_constraint/ast.json new file mode 100644 index 0000000000..3923ec2d21 --- /dev/null +++ b/parser/testdata/03408_current_database_on_cluster_constraint/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "shard_0", + "drop_database": true +} diff --git a/parser/testdata/03408_hash_functions_on_null/ast.json b/parser/testdata/03408_hash_functions_on_null/ast.json new file mode 100644 index 0000000000..2fd37e7ea7 --- /dev/null +++ b/parser/testdata/03408_hash_functions_on_null/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "xxHash32", + "arguments": [ + { + "type": "Null", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03408_implicit_table/ast.json b/parser/testdata/03408_implicit_table/ast.json new file mode 100644 index 0000000000..4cb0fa7822 --- /dev/null +++ b/parser/testdata/03408_implicit_table/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "implicit_select", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "implicit_table_at_top_level", + "value": { + "type": "String", + "value": "test" + } + }, + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03408_limit_by_rows_before_limit/ast.json b/parser/testdata/03408_limit_by_rows_before_limit/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/03408_limit_by_rows_before_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03408_limit_by_rows_before_limit_dist/ast.json b/parser/testdata/03408_limit_by_rows_before_limit_dist/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/03408_limit_by_rows_before_limit_dist/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03408_limit_by_rows_before_limit_mem/ast.json b/parser/testdata/03408_limit_by_rows_before_limit_mem/ast.json new file mode 100644 index 0000000000..0a5ca44718 --- /dev/null +++ b/parser/testdata/03408_limit_by_rows_before_limit_mem/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_write_statistics", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03409_coalescing_merge_tree/ast.json b/parser/testdata/03409_coalescing_merge_tree/ast.json new file mode 100644 index 0000000000..7bceaa8611 --- /dev/null +++ b/parser/testdata/03409_coalescing_merge_tree/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Test without parameters" + } + ] + } + ] +} diff --git a/parser/testdata/03409_coalescing_replicated_merge_tree/ast.json b/parser/testdata/03409_coalescing_replicated_merge_tree/ast.json new file mode 100644 index 0000000000..7bceaa8611 --- /dev/null +++ b/parser/testdata/03409_coalescing_replicated_merge_tree/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Test without parameters" + } + ] + } + ] +} diff --git a/parser/testdata/03409_variant_type_values_format_field_conversion/ast.json b/parser/testdata/03409_variant_type_values_format_field_conversion/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03409_variant_type_values_format_field_conversion/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03411_analyzer_scalar_correlated_subquery/ast.json b/parser/testdata/03411_analyzer_scalar_correlated_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03411_analyzer_scalar_correlated_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03411_iceberg_bucket/ast.json b/parser/testdata/03411_iceberg_bucket/ast.json new file mode 100644 index 0000000000..45299a95d3 --- /dev/null +++ b/parser/testdata/03411_iceberg_bucket/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "icebergHash" + } + ] + } + ] +} diff --git a/parser/testdata/03411_summing_merge_tree_dynamic_values/ast.json b/parser/testdata/03411_summing_merge_tree_dynamic_values/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03411_summing_merge_tree_dynamic_values/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03411_variant_basic_discriminators_deserialization_bug/ast.json b/parser/testdata/03411_variant_basic_discriminators_deserialization_bug/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/03411_variant_basic_discriminators_deserialization_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03412_analyzer_correlated_subquery_bug/ast.json b/parser/testdata/03412_analyzer_correlated_subquery_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03412_analyzer_correlated_subquery_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03412_dynamic_in_arg_min_max/ast.json b/parser/testdata/03412_dynamic_in_arg_min_max/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03412_dynamic_in_arg_min_max/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03412_materialized_view_to_distributed_different_headers/ast.json b/parser/testdata/03412_materialized_view_to_distributed_different_headers/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03412_materialized_view_to_distributed_different_headers/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03412_merge_final_prewhere/ast.json b/parser/testdata/03412_merge_final_prewhere/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03412_merge_final_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03413_analyzer_correlated_subqueries_bug_2/ast.json b/parser/testdata/03413_analyzer_correlated_subqueries_bug_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03413_analyzer_correlated_subqueries_bug_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03413_dynamic_in_in/ast.json b/parser/testdata/03413_dynamic_in_in/ast.json new file mode 100644 index 0000000000..719e9f036a --- /dev/null +++ b/parser/testdata/03413_dynamic_in_in/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Integer", + "value": 42 + }, + "type": { + "name": "Dynamic" + }, + "operator_syntax": true + }, + "list": [ + { + "type": "Integer", + "value": 42 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03413_group_by_all_in_subquery/ast.json b/parser/testdata/03413_group_by_all_in_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03413_group_by_all_in_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03414_analyzer_correlated_subqueries_in_function/ast.json b/parser/testdata/03414_analyzer_correlated_subqueries_in_function/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03414_analyzer_correlated_subqueries_in_function/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03414_formatDateTime_compound_formatter_after_varsize_formatter/ast.json b/parser/testdata/03414_formatDateTime_compound_formatter_after_varsize_formatter/ast.json new file mode 100644 index 0000000000..e69ba3089e --- /dev/null +++ b/parser/testdata/03414_formatDateTime_compound_formatter_after_varsize_formatter/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "toDateTime", + "arguments": [ + { + "type": "String", + "value": "2025-05-04" + } + ] + }, + { + "type": "String", + "value": "%W %D" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03415_dont_highlight_probable_hashes/ast.json b/parser/testdata/03415_dont_highlight_probable_hashes/ast.json new file mode 100644 index 0000000000..9994b83056 --- /dev/null +++ b/parser/testdata/03415_dont_highlight_probable_hashes/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "cityHash64", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + ], + "format": { + "parts": [ + "Pretty" + ] + } + } + ] +} diff --git a/parser/testdata/03416_glue_chunks/ast.json b/parser/testdata/03416_glue_chunks/ast.json new file mode 100644 index 0000000000..45c78a04bb --- /dev/null +++ b/parser/testdata/03416_glue_chunks/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_row_numbers", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03432_input_format_parquet_max_block_size_validation/ast.json b/parser/testdata/03432_input_format_parquet_max_block_size_validation/ast.json new file mode 100644 index 0000000000..277853066b --- /dev/null +++ b/parser/testdata/03432_input_format_parquet_max_block_size_validation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "input_format_parquet_max_block_size", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03440_no_glue_totals/ast.json b/parser/testdata/03440_no_glue_totals/ast.json new file mode 100644 index 0000000000..45c78a04bb --- /dev/null +++ b/parser/testdata/03440_no_glue_totals/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_row_numbers", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03441_deltalake_clickhouse_public_datasets/ast.json b/parser/testdata/03441_deltalake_clickhouse_public_datasets/ast.json new file mode 100644 index 0000000000..2b61980461 --- /dev/null +++ b/parser/testdata/03441_deltalake_clickhouse_public_datasets/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "deltaLake", + "arguments": [ + { + "type": "String", + "value": "https://clickhouse-public-datasets.s3.amazonaws.com/delta_lake/hits/" + }, + { + "parts": [ + "NOSIGN" + ] + } + ], + "settings": [ + { + "name": "allow_experimental_delta_kernel_rs", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03441_deltalake_clickhouse_virtual_columns/ast.json b/parser/testdata/03441_deltalake_clickhouse_virtual_columns/ast.json new file mode 100644 index 0000000000..06ef6d6e7e --- /dev/null +++ b/parser/testdata/03441_deltalake_clickhouse_virtual_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_for_cluster_engines", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03442_alter_delete_empty_part/ast.json b/parser/testdata/03442_alter_delete_empty_part/ast.json new file mode 100644 index 0000000000..7f62eb6eab --- /dev/null +++ b/parser/testdata/03442_alter_delete_empty_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_delete_empty_part", + "tables": [ + { + "table": "t_delete_empty_part" + } + ] +} diff --git a/parser/testdata/03442_alter_delete_empty_part_rmt/ast.json b/parser/testdata/03442_alter_delete_empty_part_rmt/ast.json new file mode 100644 index 0000000000..70e4b39291 --- /dev/null +++ b/parser/testdata/03442_alter_delete_empty_part_rmt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_delete_empty_part_rmt", + "tables": [ + { + "table": "t_delete_empty_part_rmt" + } + ] +} diff --git a/parser/testdata/03442_json_duplicate_path/ast.json b/parser/testdata/03442_json_duplicate_path/ast.json new file mode 100644 index 0000000000..4c7dd848bb --- /dev/null +++ b/parser/testdata/03442_json_duplicate_path/ast.json @@ -0,0 +1,18 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "{\"a\" : 42, \"a\" : {\"b\" : 42}}" + }, + "type": { + "name": "JSON" + }, + "operator_syntax": true + } + ] + } + ] +} diff --git a/parser/testdata/03442_lightweight_deletes_on_fly/ast.json b/parser/testdata/03442_lightweight_deletes_on_fly/ast.json new file mode 100644 index 0000000000..d6bae37d3f --- /dev/null +++ b/parser/testdata/03442_lightweight_deletes_on_fly/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_deletes", + "tables": [ + { + "table": "test_deletes" + } + ] +} diff --git a/parser/testdata/03442_string_bytes_functions/ast.json b/parser/testdata/03442_string_bytes_functions/ast.json new file mode 100644 index 0000000000..f787eb479a --- /dev/null +++ b/parser/testdata/03442_string_bytes_functions/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "stringBytesUniq", + "arguments": [ + { + "type": "String", + "value": "Hello" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03443_alias_with_asterisk/ast.json b/parser/testdata/03443_alias_with_asterisk/ast.json new file mode 100644 index 0000000000..bc270a183b --- /dev/null +++ b/parser/testdata/03443_alias_with_asterisk/ast.json @@ -0,0 +1,29 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int" + }, + "default": { + "name": "if", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 1 + }, + {} + ] + }, + "default_kind": "ALIAS" + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03443_index_match_alternatives/ast.json b/parser/testdata/03443_index_match_alternatives/ast.json new file mode 100644 index 0000000000..341e6780f2 --- /dev/null +++ b/parser/testdata/03443_index_match_alternatives/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03443_data", + "tables": [ + { + "table": "03443_data" + } + ] +} diff --git a/parser/testdata/03443_part_starting_offset/ast.json b/parser/testdata/03443_part_starting_offset/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03443_part_starting_offset/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03443_pr_lazy_materialization/ast.json b/parser/testdata/03443_pr_lazy_materialization/ast.json new file mode 100644 index 0000000000..c1e9aadf8d --- /dev/null +++ b/parser/testdata/03443_pr_lazy_materialization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pr_tt", + "tables": [ + { + "table": "pr_tt" + } + ] +} diff --git a/parser/testdata/03443_projection_sparse/ast.json b/parser/testdata/03443_projection_sparse/ast.json new file mode 100644 index 0000000000..722522f932 --- /dev/null +++ b/parser/testdata/03443_projection_sparse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_projection_sparse", + "tables": [ + { + "table": "t_projection_sparse" + } + ] +} diff --git a/parser/testdata/03444_case_with_expression_exception/ast.json b/parser/testdata/03444_case_with_expression_exception/ast.json new file mode 100644 index 0000000000..02e8515f08 --- /dev/null +++ b/parser/testdata/03444_case_with_expression_exception/ast.json @@ -0,0 +1,33 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "caseWithExpression", + "arguments": [ + { + "type": "String", + "value": "C" + }, + { + "type": "String", + "value": "A" + }, + { + "type": "Boolean", + "value": true + }, + { + "type": "String", + "value": "B" + }, + { + "type": "Boolean", + "value": false + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03444_explain_asterisk/ast.json b/parser/testdata/03444_explain_asterisk/ast.json new file mode 100644 index 0000000000..214c6f5d47 --- /dev/null +++ b/parser/testdata/03444_explain_asterisk/ast.json @@ -0,0 +1,15 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + }, + { + "table": "t2" + }, + { + "table": "t3__fuzz_0" + } + ] +} diff --git a/parser/testdata/03444_flip_coordinates/ast.json b/parser/testdata/03444_flip_coordinates/ast.json new file mode 100644 index 0000000000..cbb21b0162 --- /dev/null +++ b/parser/testdata/03444_flip_coordinates/ast.json @@ -0,0 +1,31 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "flipCoordinates", + "arguments": [ + { + "expr": { + "type": "Tuple", + "value": [ + { + "type": "Float", + "value": 10 + }, + { + "type": "Float", + "value": 20 + } + ] + }, + "type": { + "name": "Point" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03444_lm_block_mismatch/ast.json b/parser/testdata/03444_lm_block_mismatch/ast.json new file mode 100644 index 0000000000..f7002b6750 --- /dev/null +++ b/parser/testdata/03444_lm_block_mismatch/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_03444_lazy", + "tables": [ + { + "table": "test_03444_lazy" + } + ] +} diff --git a/parser/testdata/03445_subcolumns_prewhere_pushdown/ast.json b/parser/testdata/03445_subcolumns_prewhere_pushdown/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03445_subcolumns_prewhere_pushdown/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03447_base32_encode_decode/ast.json b/parser/testdata/03447_base32_encode_decode/ast.json new file mode 100644 index 0000000000..6ae01cbb40 --- /dev/null +++ b/parser/testdata/03447_base32_encode_decode/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "base32Encode", + "arguments": [ + { + "type": "String", + "value": "This is a test string" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03447_float_nan_order/ast.json b/parser/testdata/03447_float_nan_order/ast.json new file mode 100644 index 0000000000..1544ed26eb --- /dev/null +++ b/parser/testdata/03447_float_nan_order/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- short array ASC NULLS FIRST" + } + ] + } + ] +} diff --git a/parser/testdata/03447_function_reverse_for_tuple/ast.json b/parser/testdata/03447_function_reverse_for_tuple/ast.json new file mode 100644 index 0000000000..65797ee9b1 --- /dev/null +++ b/parser/testdata/03447_function_reverse_for_tuple/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "reverse", + "arguments": [ + { + "type": "Tuple", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "String", + "value": "Hello" + }, + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03447_grouping_sets_analyzer_const_columns/ast.json b/parser/testdata/03447_grouping_sets_analyzer_const_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03447_grouping_sets_analyzer_const_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03447_order_by_json_and_other_column/ast.json b/parser/testdata/03447_order_by_json_and_other_column/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03447_order_by_json_and_other_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03447_storage_join_unsupported_keys/ast.json b/parser/testdata/03447_storage_join_unsupported_keys/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03447_storage_join_unsupported_keys/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03447_window_functions_distinct/ast.json b/parser/testdata/03447_window_functions_distinct/ast.json new file mode 100644 index 0000000000..88ca79ed44 --- /dev/null +++ b/parser/testdata/03447_window_functions_distinct/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Single Numeric Data:" + } + ] + } + ] +} diff --git a/parser/testdata/03448_analyzer_array_join_alias_in_join_using_bug/ast.json b/parser/testdata/03448_analyzer_array_join_alias_in_join_using_bug/ast.json new file mode 100644 index 0000000000..accbf90467 --- /dev/null +++ b/parser/testdata/03448_analyzer_array_join_alias_in_join_using_bug/ast.json @@ -0,0 +1,33 @@ +{ + "table": "local_table", + "columns": [ + { + "name": "id", + "type": { + "name": "Int8" + } + }, + { + "name": "arr", + "type": { + "name": "Array", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03448_analyzer_correlated_subquery_in_projection/ast.json b/parser/testdata/03448_analyzer_correlated_subquery_in_projection/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03448_analyzer_correlated_subquery_in_projection/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03448_analyzer_skip_index_and_lambdas/ast.json b/parser/testdata/03448_analyzer_skip_index_and_lambdas/ast.json new file mode 100644 index 0000000000..7ca939993f --- /dev/null +++ b/parser/testdata/03448_analyzer_skip_index_and_lambdas/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "index_test", + "tables": [ + { + "table": "index_test" + } + ] +} diff --git a/parser/testdata/03448_in_select_tuple/ast.json b/parser/testdata/03448_in_select_tuple/ast.json new file mode 100644 index 0000000000..4f2c71144b --- /dev/null +++ b/parser/testdata/03448_in_select_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "table1", + "tables": [ + { + "table": "table1" + } + ] +} diff --git a/parser/testdata/03448_topk_merging/ast.json b/parser/testdata/03448_topk_merging/ast.json new file mode 100644 index 0000000000..20e8eead72 --- /dev/null +++ b/parser/testdata/03448_topk_merging/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "topk_test", + "tables": [ + { + "table": "topk_test" + } + ] +} diff --git a/parser/testdata/03448_trivial_count_single_threaded_merge/ast.json b/parser/testdata/03448_trivial_count_single_threaded_merge/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03448_trivial_count_single_threaded_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03448_window_functions_distinct_distributed/ast.json b/parser/testdata/03448_window_functions_distinct_distributed/ast.json new file mode 100644 index 0000000000..14209dcd66 --- /dev/null +++ b/parser/testdata/03448_window_functions_distinct_distributed/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_aggregation_memory_efficient", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03449_join_using_allow_alias/ast.json b/parser/testdata/03449_join_using_allow_alias/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03449_join_using_allow_alias/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03449_window_cannot_find_column/ast.json b/parser/testdata/03449_window_cannot_find_column/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03449_window_cannot_find_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03450_parameterized_view_forward/ast.json b/parser/testdata/03450_parameterized_view_forward/ast.json new file mode 100644 index 0000000000..7628c14124 --- /dev/null +++ b/parser/testdata/03450_parameterized_view_forward/ast.json @@ -0,0 +1,15 @@ +{ + "if_exists": true, + "table": "inner_view", + "tables": [ + { + "table": "inner_view" + }, + { + "table": "outer_view_hardcoded_ok" + }, + { + "table": "outer_view_parameterized_ko" + } + ] +} diff --git a/parser/testdata/03451_parameterized_views_without_alias/ast.json b/parser/testdata/03451_parameterized_views_without_alias/ast.json new file mode 100644 index 0000000000..34e5bd3acd --- /dev/null +++ b/parser/testdata/03451_parameterized_views_without_alias/ast.json @@ -0,0 +1,12 @@ +{ + "if_exists": true, + "table": "parameterized_view_without_renaming", + "tables": [ + { + "table": "parameterized_view_without_renaming" + }, + { + "table": "parameterized_view_with_renaming" + } + ] +} diff --git a/parser/testdata/03453_group_by_all_grouping/ast.json b/parser/testdata/03453_group_by_all_grouping/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03453_group_by_all_grouping/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03453_parameterized_view_array_of_points/ast.json b/parser/testdata/03453_parameterized_view_array_of_points/ast.json new file mode 100644 index 0000000000..06d44b4fd6 --- /dev/null +++ b/parser/testdata/03453_parameterized_view_array_of_points/ast.json @@ -0,0 +1,15 @@ +{ + "if_exists": true, + "table": "point_test", + "tables": [ + { + "table": "point_test" + }, + { + "table": "point_test_parameterized" + }, + { + "table": "point_test_parameterized2" + } + ] +} diff --git a/parser/testdata/03454_global_join_index_subqueries/ast.json b/parser/testdata/03454_global_join_index_subqueries/ast.json new file mode 100644 index 0000000000..7263720642 --- /dev/null +++ b/parser/testdata/03454_global_join_index_subqueries/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "query1" + } + ] + } + ] +} diff --git a/parser/testdata/03454_parameterized_view_constant_identifier/ast.json b/parser/testdata/03454_parameterized_view_constant_identifier/ast.json new file mode 100644 index 0000000000..94984acc74 --- /dev/null +++ b/parser/testdata/03454_parameterized_view_constant_identifier/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "c", + "tables": [ + { + "table": "c" + } + ] +} diff --git a/parser/testdata/03454_parameterized_views_null/ast.json b/parser/testdata/03454_parameterized_views_null/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03454_parameterized_views_null/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03455_direct_io_read_array_values/ast.json b/parser/testdata/03455_direct_io_read_array_values/ast.json new file mode 100644 index 0000000000..07327ae023 --- /dev/null +++ b/parser/testdata/03455_direct_io_read_array_values/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 3 + } + } + ] +} diff --git a/parser/testdata/03456_match_index_prefix_extraction/ast.json b/parser/testdata/03456_match_index_prefix_extraction/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03456_match_index_prefix_extraction/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03457_bitmapContains_nullable/ast.json b/parser/testdata/03457_bitmapContains_nullable/ast.json new file mode 100644 index 0000000000..6b3cef15d0 --- /dev/null +++ b/parser/testdata/03457_bitmapContains_nullable/ast.json @@ -0,0 +1,101 @@ +{ + "selects": [ + { + "with": [ + { + "name": "n", + "query": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "groupBitmapState", + "arguments": [ + { + "expr": { + "parts": [ + "number" + ] + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ], + "alias": "n" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] + } + } + } + ], + "columns": [ + { + "parts": [ + "number" + ], + "alias": "x" + }, + { + "name": "bitmapContains", + "arguments": [ + { + "parts": [ + "n" + ] + }, + { + "parts": [ + "x" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03457_bug79403_marks_compress_block_is_zero/ast.json b/parser/testdata/03457_bug79403_marks_compress_block_is_zero/ast.json new file mode 100644 index 0000000000..54e6adb089 --- /dev/null +++ b/parser/testdata/03457_bug79403_marks_compress_block_is_zero/ast.json @@ -0,0 +1,29 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ], + "settings": [ + { + "name": "marks_compress_block_size", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03457_inconsistent_formatting_except/ast.json b/parser/testdata/03457_inconsistent_formatting_except/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03457_inconsistent_formatting_except/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03457_merge_engine_subcolumns/ast.json b/parser/testdata/03457_merge_engine_subcolumns/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/03457_merge_engine_subcolumns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/03457_move_global_in_to_prewhere/ast.json b/parser/testdata/03457_move_global_in_to_prewhere/ast.json new file mode 100644 index 0000000000..9eef6ae1f7 --- /dev/null +++ b/parser/testdata/03457_move_global_in_to_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03457_data", + "tables": [ + { + "table": "03457_data" + } + ] +} diff --git a/parser/testdata/03457_numeric_indexed_vector_build/ast.json b/parser/testdata/03457_numeric_indexed_vector_build/ast.json new file mode 100644 index 0000000000..286702c75f --- /dev/null +++ b/parser/testdata/03457_numeric_indexed_vector_build/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST groupNumericIndexedVector" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_bit_promote/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_bit_promote/ast.json new file mode 100644 index 0000000000..d066140052 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_bit_promote/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations in bit promotion with zero values and Float64 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_i8f64/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_i8f64/ast.json new file mode 100644 index 0000000000..69306c8f0a --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_i8f64/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and UInt8 index type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u16f64/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u16f64/ast.json new file mode 100644 index 0000000000..cd65676314 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u16f64/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and UInt16 index type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32f32/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32f32/ast.json new file mode 100644 index 0000000000..c6ed1534b4 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32f32/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and Float32 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32f64/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32f64/ast.json new file mode 100644 index 0000000000..e141794fbf --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32f64/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and Float64 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32i16/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32i16/ast.json new file mode 100644 index 0000000000..b5e7c37793 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32i16/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and Int16 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32i32/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32i32/ast.json new file mode 100644 index 0000000000..872674c93d --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32i32/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and Int32 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32i64/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32i64/ast.json new file mode 100644 index 0000000000..5c2a9c5e69 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32i64/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and Int64 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32i8/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32i8/ast.json new file mode 100644 index 0000000000..a31e110079 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32i8/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and Int8 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32u16/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32u16/ast.json new file mode 100644 index 0000000000..3cccc54b27 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32u16/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and UInt16 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32u32/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32u32/ast.json new file mode 100644 index 0000000000..621ddf4e5e --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32u32/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and UInt32 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32u64/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32u64/ast.json new file mode 100644 index 0000000000..6a79a75b39 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32u64/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and UInt64 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_numeric_indexed_vector_operations_u32u8/ast.json b/parser/testdata/03458_numeric_indexed_vector_operations_u32u8/ast.json new file mode 100644 index 0000000000..5e2be1b079 --- /dev/null +++ b/parser/testdata/03458_numeric_indexed_vector_operations_u32u8/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorPointwise operations with zero values and UInt8 value type" + } + ] + } + ] +} diff --git a/parser/testdata/03458_wkb_function/ast.json b/parser/testdata/03458_wkb_function/ast.json new file mode 100644 index 0000000000..54f830dd69 --- /dev/null +++ b/parser/testdata/03458_wkb_function/ast.json @@ -0,0 +1,22 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "readWKBPoint", + "arguments": [ + { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "010100000000000000000000000000000000000000" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03459-reverse-sorting-key-stable-result/ast.json b/parser/testdata/03459-reverse-sorting-key-stable-result/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03459-reverse-sorting-key-stable-result/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03459_join_cannot_add_column/ast.json b/parser/testdata/03459_join_cannot_add_column/ast.json new file mode 100644 index 0000000000..953783f3a9 --- /dev/null +++ b/parser/testdata/03459_join_cannot_add_column/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03459_numeric_indexed_vector_decode/ast.json b/parser/testdata/03459_numeric_indexed_vector_decode/ast.json new file mode 100644 index 0000000000..fd3295139c --- /dev/null +++ b/parser/testdata/03459_numeric_indexed_vector_decode/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST toVectorCompactArray" + } + ] + } + ] +} diff --git a/parser/testdata/03459_socket_asynchronous_metrics/ast.json b/parser/testdata/03459_socket_asynchronous_metrics/ast.json new file mode 100644 index 0000000000..7081899ea7 --- /dev/null +++ b/parser/testdata/03459_socket_asynchronous_metrics/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "parts": [ + "value" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "asynchronous_metrics" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "NetworkTCPSockets" + } + } + } + ] +} diff --git a/parser/testdata/03460_alter_materialized_view_on_cluster/ast.json b/parser/testdata/03460_alter_materialized_view_on_cluster/ast.json new file mode 100644 index 0000000000..186613792b --- /dev/null +++ b/parser/testdata/03460_alter_materialized_view_on_cluster/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "distributed_ddl_output_mode", + "value": { + "type": "String", + "value": "none" + } + }, + { + "name": "enable_analyzer", + "value": { + "type": "Boolean", + "value": true + } + } + ] +} diff --git a/parser/testdata/03460_normal_projection_index/ast.json b/parser/testdata/03460_normal_projection_index/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03460_normal_projection_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03460_normal_projection_index_bug_race_conditions/ast.json b/parser/testdata/03460_normal_projection_index_bug_race_conditions/ast.json new file mode 100644 index 0000000000..f3a8480211 --- /dev/null +++ b/parser/testdata/03460_normal_projection_index_bug_race_conditions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 8 + } + } + ] +} diff --git a/parser/testdata/03460_numeric_indexed_vector_to_value_map/ast.json b/parser/testdata/03460_numeric_indexed_vector_to_value_map/ast.json new file mode 100644 index 0000000000..42ff582875 --- /dev/null +++ b/parser/testdata/03460_numeric_indexed_vector_to_value_map/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "TEST numericIndexedVectorToMap" + } + ] + } + ] +} diff --git a/parser/testdata/03460_projection_part_filtering_and_introspection/ast.json b/parser/testdata/03460_projection_part_filtering_and_introspection/ast.json new file mode 100644 index 0000000000..3d29824bce --- /dev/null +++ b/parser/testdata/03460_projection_part_filtering_and_introspection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_simple_projection", + "tables": [ + { + "table": "test_simple_projection" + } + ] +} diff --git a/parser/testdata/03460_query_condition_cache_with_projections/ast.json b/parser/testdata/03460_query_condition_cache_with_projections/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03460_query_condition_cache_with_projections/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03461_pk_prefix_trivial_count/ast.json b/parser/testdata/03461_pk_prefix_trivial_count/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03461_pk_prefix_trivial_count/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03461_string_to_date_time_cast_modes/ast.json b/parser/testdata/03461_string_to_date_time_cast_modes/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03461_string_to_date_time_cast_modes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03462_numeric_indexed_vector_serialization/ast.json b/parser/testdata/03462_numeric_indexed_vector_serialization/ast.json new file mode 100644 index 0000000000..aaba83f319 --- /dev/null +++ b/parser/testdata/03462_numeric_indexed_vector_serialization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "uin_value_details_int32_float64", + "tables": [ + { + "table": "uin_value_details_int32_float64" + } + ] +} diff --git a/parser/testdata/03463_numeric_indexed_vector_overflow/ast.json b/parser/testdata/03463_numeric_indexed_vector_overflow/ast.json new file mode 100644 index 0000000000..17084a73cb --- /dev/null +++ b/parser/testdata/03463_numeric_indexed_vector_overflow/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "uin_value_details", + "tables": [ + { + "table": "uin_value_details" + } + ] +} diff --git a/parser/testdata/03464_projections_with_subcolumns/ast.json b/parser/testdata/03464_projections_with_subcolumns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03464_projections_with_subcolumns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03509_stripe_log_compatible_types/ast.json b/parser/testdata/03509_stripe_log_compatible_types/ast.json new file mode 100644 index 0000000000..b4995874a0 --- /dev/null +++ b/parser/testdata/03509_stripe_log_compatible_types/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tz", + "tables": [ + { + "table": "test_tz" + } + ] +} diff --git a/parser/testdata/03511_formatDateTime_e_space_padding/ast.json b/parser/testdata/03511_formatDateTime_e_space_padding/ast.json new file mode 100644 index 0000000000..b5c468f6df --- /dev/null +++ b/parser/testdata/03511_formatDateTime_e_space_padding/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatDateTime", + "arguments": [ + { + "name": "toDate", + "arguments": [ + { + "type": "String", + "value": "2024-05-07" + } + ] + }, + { + "type": "String", + "value": "%e/%m/%Y" + } + ], + "alias": "_date" + }, + { + "name": "length", + "arguments": [ + { + "parts": [ + "_date" + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03512_bech32_functions/ast.json b/parser/testdata/03512_bech32_functions/ast.json new file mode 100644 index 0000000000..bce867047c --- /dev/null +++ b/parser/testdata/03512_bech32_functions/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "bech32Encode", + "arguments": [ + { + "type": "String", + "value": "bc" + }, + { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "751e76e8199196d454941c45d1b3a323f1433bd6" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03512_cast_logical_error/ast.json b/parser/testdata/03512_cast_logical_error/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03512_cast_logical_error/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03512_settings_max_block_size/ast.json b/parser/testdata/03512_settings_max_block_size/ast.json new file mode 100644 index 0000000000..62ad03066e --- /dev/null +++ b/parser/testdata/03512_settings_max_block_size/ast.json @@ -0,0 +1,14 @@ +{ + "table": "tab", + "columns": [ + { + "name": "column", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03513_filter_push_down_rand_bug/ast.json b/parser/testdata/03513_filter_push_down_rand_bug/ast.json new file mode 100644 index 0000000000..ce33c6abe6 --- /dev/null +++ b/parser/testdata/03513_filter_push_down_rand_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users_items", + "tables": [ + { + "table": "users_items" + } + ] +} diff --git a/parser/testdata/03513_fix_shard_num_column_to_function_pass_with_nulls/ast.json b/parser/testdata/03513_fix_shard_num_column_to_function_pass_with_nulls/ast.json new file mode 100644 index 0000000000..b136c84dcb --- /dev/null +++ b/parser/testdata/03513_fix_shard_num_column_to_function_pass_with_nulls/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_use_nulls", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03513_lazy_materialization_projections_fix/ast.json b/parser/testdata/03513_lazy_materialization_projections_fix/ast.json new file mode 100644 index 0000000000..2d09bf013c --- /dev/null +++ b/parser/testdata/03513_lazy_materialization_projections_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_optimize_lazy_materialization", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03513_nullsafe_join_storage/ast.json b/parser/testdata/03513_nullsafe_join_storage/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03513_nullsafe_join_storage/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03513_read_in_order_nullable/ast.json b/parser/testdata/03513_read_in_order_nullable/ast.json new file mode 100644 index 0000000000..d121fc848a --- /dev/null +++ b/parser/testdata/03513_read_in_order_nullable/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_aggregating_merge_tree/ast.json b/parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_aggregating_merge_tree/ast.json new file mode 100644 index 0000000000..05bd59d1b4 --- /dev/null +++ b/parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_aggregating_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple_agf_any_aggregating_mt", + "tables": [ + { + "table": "simple_agf_any_aggregating_mt" + } + ] +} diff --git a/parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_summing_merge_tree/ast.json b/parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_summing_merge_tree/ast.json new file mode 100644 index 0000000000..c21304512d --- /dev/null +++ b/parser/testdata/03513_simple_aggregate_function_any_respect_nulls_in_summing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "simple_agf_any_summing_mt", + "tables": [ + { + "table": "simple_agf_any_summing_mt" + } + ] +} diff --git a/parser/testdata/03514_grace_hash_join_logical_error/ast.json b/parser/testdata/03514_grace_hash_join_logical_error/ast.json new file mode 100644 index 0000000000..6fb164c3c5 --- /dev/null +++ b/parser/testdata/03514_grace_hash_join_logical_error/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "A", + "tables": [ + { + "table": "A" + } + ] +} diff --git a/parser/testdata/03515_array_join_different_sizes/ast.json b/parser/testdata/03515_array_join_different_sizes/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03515_array_join_different_sizes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03516_comparison_pk_bug/ast.json b/parser/testdata/03516_comparison_pk_bug/ast.json new file mode 100644 index 0000000000..4a716784ac --- /dev/null +++ b/parser/testdata/03516_comparison_pk_bug/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "where": { + "left": { + "name": "toIntervalHour", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 0 + } + } + } + ] +} diff --git a/parser/testdata/03516_int_exp2_join/ast.json b/parser/testdata/03516_int_exp2_join/ast.json new file mode 100644 index 0000000000..b5b7522663 --- /dev/null +++ b/parser/testdata/03516_int_exp2_join/ast.json @@ -0,0 +1,18 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + }, + { + "table": "t1" + }, + { + "table": "t4" + }, + { + "table": "t5" + } + ] +} diff --git a/parser/testdata/03517_logical_join_predicate_push_down_with_pre_expression_bug/ast.json b/parser/testdata/03517_logical_join_predicate_push_down_with_pre_expression_bug/ast.json new file mode 100644 index 0000000000..d968715121 --- /dev/null +++ b/parser/testdata/03517_logical_join_predicate_push_down_with_pre_expression_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "td", + "tables": [ + { + "table": "td" + } + ] +} diff --git a/parser/testdata/03517_s3_plain_rewritable_encrypted_empty_path/ast.json b/parser/testdata/03517_s3_plain_rewritable_encrypted_empty_path/ast.json new file mode 100644 index 0000000000..45bb491f08 --- /dev/null +++ b/parser/testdata/03517_s3_plain_rewritable_encrypted_empty_path/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ], + "sync": true +} diff --git a/parser/testdata/03518_left_to_cross_incorrect/ast.json b/parser/testdata/03518_left_to_cross_incorrect/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03518_left_to_cross_incorrect/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03518_table_function_remote_no_replicas/ast.json b/parser/testdata/03518_table_function_remote_no_replicas/ast.json new file mode 100644 index 0000000000..8dbbfb893c --- /dev/null +++ b/parser/testdata/03518_table_function_remote_no_replicas/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "|" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03519_analyzer_tuple_cast/ast.json b/parser/testdata/03519_analyzer_tuple_cast/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03519_analyzer_tuple_cast/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03519_left_to_cross_incorrect/ast.json b/parser/testdata/03519_left_to_cross_incorrect/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03519_left_to_cross_incorrect/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03519_merge_engine_read_column_existing_in_subset_of_tables/ast.json b/parser/testdata/03519_merge_engine_read_column_existing_in_subset_of_tables/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03519_merge_engine_read_column_existing_in_subset_of_tables/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03519_merge_tree_part_info_coverage/ast.json b/parser/testdata/03519_merge_tree_part_info_coverage/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03519_merge_tree_part_info_coverage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03519_merge_tree_part_info_unpack/ast.json b/parser/testdata/03519_merge_tree_part_info_unpack/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03519_merge_tree_part_info_unpack/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03519_multiple_join_using/ast.json b/parser/testdata/03519_multiple_join_using/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03519_multiple_join_using/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03519_ttl_extended_data_types/ast.json b/parser/testdata/03519_ttl_extended_data_types/ast.json new file mode 100644 index 0000000000..25057b0477 --- /dev/null +++ b/parser/testdata/03519_ttl_extended_data_types/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "ttl_03519_1", + "tables": [ + { + "table": "ttl_03519_1" + } + ], + "sync": true +} diff --git a/parser/testdata/03519_zero_filesystem_prefetch_max_memory_usage/ast.json b/parser/testdata/03519_zero_filesystem_prefetch_max_memory_usage/ast.json new file mode 100644 index 0000000000..bf0d18cb2f --- /dev/null +++ b/parser/testdata/03519_zero_filesystem_prefetch_max_memory_usage/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "filesystem_prefetch_max_memory_usage", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03520_analyzer_distributed_in_cte_bug/ast.json b/parser/testdata/03520_analyzer_distributed_in_cte_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03520_analyzer_distributed_in_cte_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03520_left_to_cross_incorrect/ast.json b/parser/testdata/03520_left_to_cross_incorrect/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03520_left_to_cross_incorrect/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03520_pr_distinct_in_order/ast.json b/parser/testdata/03520_pr_distinct_in_order/ast.json new file mode 100644 index 0000000000..923e679063 --- /dev/null +++ b/parser/testdata/03520_pr_distinct_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_dio", + "tables": [ + { + "table": "t_dio" + } + ] +} diff --git a/parser/testdata/03520_pr_read_in_order/ast.json b/parser/testdata/03520_pr_read_in_order/ast.json new file mode 100644 index 0000000000..69260cdec1 --- /dev/null +++ b/parser/testdata/03520_pr_read_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_rio", + "tables": [ + { + "table": "t_rio" + } + ] +} diff --git a/parser/testdata/03521_bitNot_String_NUL_terminated/ast.json b/parser/testdata/03521_bitNot_String_NUL_terminated/ast.json new file mode 100644 index 0000000000..30030997cb --- /dev/null +++ b/parser/testdata/03521_bitNot_String_NUL_terminated/ast.json @@ -0,0 +1,94 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "uniqCombined64", + "arguments": [ + { + "name": "bitNot", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + }, + { + "name": "anyHeavy", + "arguments": [ + { + "name": "bitNot", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "distinct": true, + "columns": [ + { + "name": "concat", + "arguments": [ + { + "type": "Integer", + "value": 2 + }, + { + "parts": [ + "number" + ] + } + ], + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03521_long_partition_column_name/ast.json b/parser/testdata/03521_long_partition_column_name/ast.json new file mode 100644 index 0000000000..c436a2018d --- /dev/null +++ b/parser/testdata/03521_long_partition_column_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_long_partition_column_name", + "tables": [ + { + "table": "t_long_partition_column_name" + } + ] +} diff --git a/parser/testdata/03521_long_statistics_name/ast.json b/parser/testdata/03521_long_statistics_name/ast.json new file mode 100644 index 0000000000..eb8025d3b2 --- /dev/null +++ b/parser/testdata/03521_long_statistics_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_long_statistics_name", + "tables": [ + { + "table": "t_long_statistics_name" + } + ] +} diff --git a/parser/testdata/03521_system_unicode/ast.json b/parser/testdata/03521_system_unicode/ast.json new file mode 100644 index 0000000000..0548df801b --- /dev/null +++ b/parser/testdata/03521_system_unicode/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "code_point" + ] + }, + { + "parts": [ + "code_point_value" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "unicode" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "code_point" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "😂" + } + } + } + ] +} diff --git a/parser/testdata/03522_alter_modify_column_and_materialize_projection/ast.json b/parser/testdata/03522_alter_modify_column_and_materialize_projection/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03522_alter_modify_column_and_materialize_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03522_analyzer_check_correlated_columns/ast.json b/parser/testdata/03522_analyzer_check_correlated_columns/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03522_analyzer_check_correlated_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03522_function_first_non_default/ast.json b/parser/testdata/03522_function_first_non_default/ast.json new file mode 100644 index 0000000000..9c571dd553 --- /dev/null +++ b/parser/testdata/03522_function_first_non_default/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "firstNonDefault", + "arguments": [ + { + "type": "Null", + "value": null + }, + { + "type": "Integer", + "value": 0 + }, + { + "type": "Integer", + "value": 43 + }, + { + "type": "Integer", + "value": 256 + } + ], + "alias": "result" + } + ] + } + ] +} diff --git a/parser/testdata/03522_join_resolve_matcher_recursive_bug/ast.json b/parser/testdata/03522_join_resolve_matcher_recursive_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03522_join_resolve_matcher_recursive_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03522_join_using_bug_78907/ast.json b/parser/testdata/03522_join_using_bug_78907/ast.json new file mode 100644 index 0000000000..c3763c2fb4 --- /dev/null +++ b/parser/testdata/03522_join_using_bug_78907/ast.json @@ -0,0 +1,78 @@ +{ + "table": "tabc__fuzz_21", + "columns": [ + { + "name": "a", + "type": { + "name": "Int64" + } + }, + { + "name": "b", + "type": { + "name": "Int8" + }, + "default": { + "left": { + "parts": [ + "a" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "default_kind": "ALIAS" + }, + { + "name": "c", + "type": { + "name": "DateTime" + }, + "default": { + "left": { + "parts": [ + "b" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "default_kind": "ALIAS" + }, + { + "name": "s", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ] +} diff --git a/parser/testdata/03522_nullable_partition_key/ast.json b/parser/testdata/03522_nullable_partition_key/ast.json new file mode 100644 index 0000000000..92976fbd10 --- /dev/null +++ b/parser/testdata/03522_nullable_partition_key/ast.json @@ -0,0 +1,42 @@ +{ + "table": "t", + "columns": [ + { + "name": "c0", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Int" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "c0" + ] + } + ], + "partition_by": { + "parts": [ + "c0" + ] + }, + "settings": [ + { + "name": "allow_nullable_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03522_window_table_arg/ast.json b/parser/testdata/03522_window_table_arg/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03522_window_table_arg/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03524_nullable_extremes/ast.json b/parser/testdata/03524_nullable_extremes/ast.json new file mode 100644 index 0000000000..3cdfc153c4 --- /dev/null +++ b/parser/testdata/03524_nullable_extremes/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- int, single part" + } + ] + } + ] +} diff --git a/parser/testdata/03525_distributed_product_mode_local_IN_cross_replication_analyzer_bug/ast.json b/parser/testdata/03525_distributed_product_mode_local_IN_cross_replication_analyzer_bug/ast.json new file mode 100644 index 0000000000..093b2a33f5 --- /dev/null +++ b/parser/testdata/03525_distributed_product_mode_local_IN_cross_replication_analyzer_bug/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "shard_0", + "create_database": true +} diff --git a/parser/testdata/03525_json_extract_datetime64_from_numbers/ast.json b/parser/testdata/03525_json_extract_datetime64_from_numbers/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03525_json_extract_datetime64_from_numbers/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03525_json_infer_array_of_dynamic_from_array_of_different_types/ast.json b/parser/testdata/03525_json_infer_array_of_dynamic_from_array_of_different_types/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03525_json_infer_array_of_dynamic_from_array_of_different_types/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03525_timezoneof_illegal_type/ast.json b/parser/testdata/03525_timezoneof_illegal_type/ast.json new file mode 100644 index 0000000000..758ca5af16 --- /dev/null +++ b/parser/testdata/03525_timezoneof_illegal_type/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "timeZoneOf", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03525_transform_null_in_subqeury_with_not_nullable_type/ast.json b/parser/testdata/03525_transform_null_in_subqeury_with_not_nullable_type/ast.json new file mode 100644 index 0000000000..1bdb9f2f82 --- /dev/null +++ b/parser/testdata/03525_transform_null_in_subqeury_with_not_nullable_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "transform_null_in", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03526_columns_substreams_in_wide_parts/ast.json b/parser/testdata/03526_columns_substreams_in_wide_parts/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03526_columns_substreams_in_wide_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03529_quantile_deterministic_ubsan/ast.json b/parser/testdata/03529_quantile_deterministic_ubsan/ast.json new file mode 100644 index 0000000000..333070b68e --- /dev/null +++ b/parser/testdata/03529_quantile_deterministic_ubsan/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantileDeterministicState", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "type": "Integer", + "value": 0 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 8193 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03530_insert_into_distributed_different_types_sparseness/ast.json b/parser/testdata/03530_insert_into_distributed_different_types_sparseness/ast.json new file mode 100644 index 0000000000..84c012c23b --- /dev/null +++ b/parser/testdata/03530_insert_into_distributed_different_types_sparseness/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "sparse", + "tables": [ + { + "table": "sparse" + } + ] +} diff --git a/parser/testdata/03531_check_count_for_parquet/ast.json b/parser/testdata/03531_check_count_for_parquet/ast.json new file mode 100644 index 0000000000..7c4dec9837 --- /dev/null +++ b/parser/testdata/03531_check_count_for_parquet/ast.json @@ -0,0 +1,28 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "count" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "url", + "arguments": [ + { + "type": "String", + "value": "http://localhost:11111/test/hive_partitioning/column0=Elizabeth/sample.parquet" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03531_insert_removing_sparse_transform/ast.json b/parser/testdata/03531_insert_removing_sparse_transform/ast.json new file mode 100644 index 0000000000..33837b0d32 --- /dev/null +++ b/parser/testdata/03531_insert_removing_sparse_transform/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_log", + "tables": [ + { + "table": "t_log" + } + ] +} diff --git a/parser/testdata/03532_divideOrNull_jit_crash/ast.json b/parser/testdata/03532_divideOrNull_jit_crash/ast.json new file mode 100644 index 0000000000..d54853699c --- /dev/null +++ b/parser/testdata/03532_divideOrNull_jit_crash/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "op": "NOT", + "operand": { + "name": "divideOrNull", + "arguments": [ + { + "type": "Integer", + "value": 0 + }, + {} + ] + } + }, + "op": "AND", + "right": { + "op": "NOT", + "operand": { + "name": "intDivOrNull", + "arguments": [ + {}, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ], + "settings": [ + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "min_count_to_compile_expression", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/03532_dynamic_flattened_serialization_bug/ast.json b/parser/testdata/03532_dynamic_flattened_serialization_bug/ast.json new file mode 100644 index 0000000000..a662595605 --- /dev/null +++ b/parser/testdata/03532_dynamic_flattened_serialization_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "type_json_skip_duplicated_paths", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03532_json_dynamic_updates/ast.json b/parser/testdata/03532_json_dynamic_updates/ast.json new file mode 100644 index 0000000000..f2ad7b1ef3 --- /dev/null +++ b/parser/testdata/03532_json_dynamic_updates/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03532_pr_unused_query_cancelling_with_limit/ast.json b/parser/testdata/03532_pr_unused_query_cancelling_with_limit/ast.json new file mode 100644 index 0000000000..c1e9aadf8d --- /dev/null +++ b/parser/testdata/03532_pr_unused_query_cancelling_with_limit/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pr_tt", + "tables": [ + { + "table": "pr_tt" + } + ] +} diff --git a/parser/testdata/03532_use_database_syntax/ast.json b/parser/testdata/03532_use_database_syntax/ast.json new file mode 100644 index 0000000000..d57281d35c --- /dev/null +++ b/parser/testdata/03532_use_database_syntax/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "d1", + "create_database": true +} diff --git a/parser/testdata/03532_window_function_and_null_source_max_threads/ast.json b/parser/testdata/03532_window_function_and_null_source_max_threads/ast.json new file mode 100644 index 0000000000..c87d3a6d9e --- /dev/null +++ b/parser/testdata/03532_window_function_and_null_source_max_threads/ast.json @@ -0,0 +1,22 @@ +{ + "table": "empty", + "columns": [ + { + "name": "n", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "n" + ] + } + ] +} diff --git a/parser/testdata/03533_analyzer_correlated_column_check/ast.json b/parser/testdata/03533_analyzer_correlated_column_check/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03533_analyzer_correlated_column_check/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03533_named_tuple_supertype/ast.json b/parser/testdata/03533_named_tuple_supertype/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03533_named_tuple_supertype/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03533_skip_index_on_data_reading/ast.json b/parser/testdata/03533_skip_index_on_data_reading/ast.json new file mode 100644 index 0000000000..b23ee76bc6 --- /dev/null +++ b/parser/testdata/03533_skip_index_on_data_reading/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_skip_indexes_on_data_read", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03534_npy_output_to_url/ast.json b/parser/testdata/03534_npy_output_to_url/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03534_npy_output_to_url/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03534_skip_index_bug89691/ast.json b/parser/testdata/03534_skip_index_bug89691/ast.json new file mode 100644 index 0000000000..b23ee76bc6 --- /dev/null +++ b/parser/testdata/03534_skip_index_bug89691/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_skip_indexes_on_data_read", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03535_system_formats/ast.json b/parser/testdata/03535_system_formats/ast.json new file mode 100644 index 0000000000..fec57d2d96 --- /dev/null +++ b/parser/testdata/03535_system_formats/ast.json @@ -0,0 +1,464 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "formats" + } + } + } + ] + }, + "where": { + "expr": { + "parts": [ + "name" + ] + }, + "list": [ + { + "type": "String", + "value": "Arrow" + }, + { + "type": "String", + "value": "ArrowStream" + }, + { + "type": "String", + "value": "Avro" + }, + { + "type": "String", + "value": "AvroConfluent" + }, + { + "type": "String", + "value": "BSONEachRow" + }, + { + "type": "String", + "value": "Buffers" + }, + { + "type": "String", + "value": "CSV" + }, + { + "type": "String", + "value": "CSVWithNames" + }, + { + "type": "String", + "value": "CSVWithNamesAndTypes" + }, + { + "type": "String", + "value": "CapnProto" + }, + { + "type": "String", + "value": "CustomSeparated" + }, + { + "type": "String", + "value": "CustomSeparatedIgnoreSpaces" + }, + { + "type": "String", + "value": "CustomSeparatedIgnoreSpacesWithNames" + }, + { + "type": "String", + "value": "CustomSeparatedIgnoreSpacesWithNamesAndTypes" + }, + { + "type": "String", + "value": "CustomSeparatedWithNames" + }, + { + "type": "String", + "value": "CustomSeparatedWithNamesAndTypes" + }, + { + "type": "String", + "value": "Form" + }, + { + "type": "String", + "value": "HiveText" + }, + { + "type": "String", + "value": "JSON" + }, + { + "type": "String", + "value": "JSONAsObject" + }, + { + "type": "String", + "value": "JSONAsString" + }, + { + "type": "String", + "value": "JSONColumns" + }, + { + "type": "String", + "value": "JSONColumnsWithMetadata" + }, + { + "type": "String", + "value": "JSONCompact" + }, + { + "type": "String", + "value": "JSONCompactColumns" + }, + { + "type": "String", + "value": "JSONCompactEachRow" + }, + { + "type": "String", + "value": "JSONCompactEachRowWithNames" + }, + { + "type": "String", + "value": "JSONCompactEachRowWithNamesAndTypes" + }, + { + "type": "String", + "value": "JSONCompactEachRowWithProgress" + }, + { + "type": "String", + "value": "JSONCompactStrings" + }, + { + "type": "String", + "value": "JSONCompactStringsEachRow" + }, + { + "type": "String", + "value": "JSONCompactStringsEachRowWithNames" + }, + { + "type": "String", + "value": "JSONCompactStringsEachRowWithNamesAndTypes" + }, + { + "type": "String", + "value": "JSONCompactStringsEachRowWithProgress" + }, + { + "type": "String", + "value": "JSONEachRow" + }, + { + "type": "String", + "value": "JSONEachRowWithProgress" + }, + { + "type": "String", + "value": "JSONLines" + }, + { + "type": "String", + "value": "JSONObjectEachRow" + }, + { + "type": "String", + "value": "JSONStrings" + }, + { + "type": "String", + "value": "JSONStringsEachRow" + }, + { + "type": "String", + "value": "JSONStringsEachRowWithProgress" + }, + { + "type": "String", + "value": "LineAsString" + }, + { + "type": "String", + "value": "LineAsStringWithNames" + }, + { + "type": "String", + "value": "LineAsStringWithNamesAndTypes" + }, + { + "type": "String", + "value": "Markdown" + }, + { + "type": "String", + "value": "MsgPack" + }, + { + "type": "String", + "value": "MySQLDump" + }, + { + "type": "String", + "value": "MySQLWire" + }, + { + "type": "String", + "value": "NDJSON" + }, + { + "type": "String", + "value": "Native" + }, + { + "type": "String", + "value": "Npy" + }, + { + "type": "String", + "value": "Null" + }, + { + "type": "String", + "value": "ODBCDriver2" + }, + { + "type": "String", + "value": "ORC" + }, + { + "type": "String", + "value": "One" + }, + { + "type": "String", + "value": "Parquet" + }, + { + "type": "String", + "value": "ParquetMetadata" + }, + { + "type": "String", + "value": "PostgreSQLWire" + }, + { + "type": "String", + "value": "Pretty" + }, + { + "type": "String", + "value": "PrettyCompact" + }, + { + "type": "String", + "value": "PrettyCompactMonoBlock" + }, + { + "type": "String", + "value": "PrettyCompactNoEscapes" + }, + { + "type": "String", + "value": "PrettyCompactNoEscapesMonoBlock" + }, + { + "type": "String", + "value": "PrettyJSONEachRow" + }, + { + "type": "String", + "value": "PrettyJSONLines" + }, + { + "type": "String", + "value": "PrettyMonoBlock" + }, + { + "type": "String", + "value": "PrettyNDJSON" + }, + { + "type": "String", + "value": "PrettyNoEscapes" + }, + { + "type": "String", + "value": "PrettyNoEscapesMonoBlock" + }, + { + "type": "String", + "value": "PrettySpace" + }, + { + "type": "String", + "value": "PrettySpaceMonoBlock" + }, + { + "type": "String", + "value": "PrettySpaceNoEscapes" + }, + { + "type": "String", + "value": "PrettySpaceNoEscapesMonoBlock" + }, + { + "type": "String", + "value": "Prometheus" + }, + { + "type": "String", + "value": "Protobuf" + }, + { + "type": "String", + "value": "ProtobufList" + }, + { + "type": "String", + "value": "ProtobufSingle" + }, + { + "type": "String", + "value": "Raw" + }, + { + "type": "String", + "value": "RawBLOB" + }, + { + "type": "String", + "value": "RawWithNames" + }, + { + "type": "String", + "value": "RawWithNamesAndTypes" + }, + { + "type": "String", + "value": "Regexp" + }, + { + "type": "String", + "value": "RowBinary" + }, + { + "type": "String", + "value": "RowBinaryWithDefaults" + }, + { + "type": "String", + "value": "RowBinaryWithNames" + }, + { + "type": "String", + "value": "RowBinaryWithNamesAndTypes" + }, + { + "type": "String", + "value": "SQLInsert" + }, + { + "type": "String", + "value": "TSKV" + }, + { + "type": "String", + "value": "TSV" + }, + { + "type": "String", + "value": "TSVRaw" + }, + { + "type": "String", + "value": "TSVRawWithNames" + }, + { + "type": "String", + "value": "TSVRawWithNamesAndTypes" + }, + { + "type": "String", + "value": "TSVWithNames" + }, + { + "type": "String", + "value": "TSVWithNamesAndTypes" + }, + { + "type": "String", + "value": "TabSeparated" + }, + { + "type": "String", + "value": "TabSeparatedRaw" + }, + { + "type": "String", + "value": "TabSeparatedRawWithNames" + }, + { + "type": "String", + "value": "TabSeparatedRawWithNamesAndTypes" + }, + { + "type": "String", + "value": "TabSeparatedWithNames" + }, + { + "type": "String", + "value": "TabSeparatedWithNamesAndTypes" + }, + { + "type": "String", + "value": "Template" + }, + { + "type": "String", + "value": "TemplateIgnoreSpaces" + }, + { + "type": "String", + "value": "Values" + }, + { + "type": "String", + "value": "Vertical" + }, + { + "type": "String", + "value": "XML" + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "name" + ] + } + } + ], + "format": { + "parts": [ + "PrettyCompact" + ] + } + } + ] +} diff --git a/parser/testdata/03537_kusto_ubsan/ast.json b/parser/testdata/03537_kusto_ubsan/ast.json new file mode 100644 index 0000000000..26d781475b --- /dev/null +++ b/parser/testdata/03537_kusto_ubsan/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "interval_output_format", + "value": { + "type": "String", + "value": "kusto" + } + } + ] +} diff --git a/parser/testdata/03538_analyzer_correlated_query_collect_columns_fix/ast.json b/parser/testdata/03538_analyzer_correlated_query_collect_columns_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03538_analyzer_correlated_query_collect_columns_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03538_analyzer_filter_analysis_alias_columns/ast.json b/parser/testdata/03538_analyzer_filter_analysis_alias_columns/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03538_analyzer_filter_analysis_alias_columns/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03538_analyzer_lag_lead_functions/ast.json b/parser/testdata/03538_analyzer_lag_lead_functions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03538_analyzer_lag_lead_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03538_analyzer_scalar_correlated_subquery_fix/ast.json b/parser/testdata/03538_analyzer_scalar_correlated_subquery_fix/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03538_analyzer_scalar_correlated_subquery_fix/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03538_array_except/ast.json b/parser/testdata/03538_array_except/ast.json new file mode 100644 index 0000000000..49d4bbc23e --- /dev/null +++ b/parser/testdata/03538_array_except/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "3538_array_except1", + "tables": [ + { + "table": "3538_array_except1" + } + ] +} diff --git a/parser/testdata/03538_crash_in_parallel_hash_with_empty_using/ast.json b/parser/testdata/03538_crash_in_parallel_hash_with_empty_using/ast.json new file mode 100644 index 0000000000..3eb390e577 --- /dev/null +++ b/parser/testdata/03538_crash_in_parallel_hash_with_empty_using/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_parallel_replicas", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03538_higher_order_functions_null_filter/ast.json b/parser/testdata/03538_higher_order_functions_null_filter/ast.json new file mode 100644 index 0000000000..dd7282ed97 --- /dev/null +++ b/parser/testdata/03538_higher_order_functions_null_filter/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFirst", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "left": { + "parts": [ + "x" + ] + }, + "op": "!=", + "right": { + "type": "String", + "value": "" + } + } + }, + { + "type": "Array", + "value": [ + { + "type": "Null", + "value": null + }, + { + "type": "String", + "value": "arrayFirst" + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03538_optimize_rewrite_regexp_functions/ast.json b/parser/testdata/03538_optimize_rewrite_regexp_functions/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03538_optimize_rewrite_regexp_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03538_validate_setting_merge_max_block_size/ast.json b/parser/testdata/03538_validate_setting_merge_max_block_size/ast.json new file mode 100644 index 0000000000..45fbc9c146 --- /dev/null +++ b/parser/testdata/03538_validate_setting_merge_max_block_size/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "validate_setting_merge_max_block_size", + "tables": [ + { + "table": "validate_setting_merge_max_block_size" + } + ] +} diff --git a/parser/testdata/03539_kusto_output_format_trash/ast.json b/parser/testdata/03539_kusto_output_format_trash/ast.json new file mode 100644 index 0000000000..2762e455cb --- /dev/null +++ b/parser/testdata/03539_kusto_output_format_trash/ast.json @@ -0,0 +1,46 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "/query.data" + } + }, + { + "type": "String", + "value": "RowBinary" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "SECOND" + } + ], + "settings": [ + { + "name": "interval_output_format", + "value": { + "type": "String", + "value": "kusto" + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/03540_date_trunc_old_behaviour/ast.json b/parser/testdata/03540_date_trunc_old_behaviour/ast.json new file mode 100644 index 0000000000..83d75fe9e4 --- /dev/null +++ b/parser/testdata/03540_date_trunc_old_behaviour/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "function_date_trunc_return_type_behavior", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03542_TTL_dict/ast.json b/parser/testdata/03542_TTL_dict/ast.json new file mode 100644 index 0000000000..a7bc418961 --- /dev/null +++ b/parser/testdata/03542_TTL_dict/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_dict", + "tables": [ + { + "table": "ttl_dict" + } + ] +} diff --git a/parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes/ast.json b/parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes_2/ast.json b/parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03545_analyzer_correlated_subqueries_use_equivalence_classes_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03545_analyzer_correlated_subquery_exists_asterisk/ast.json b/parser/testdata/03545_analyzer_correlated_subquery_exists_asterisk/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03545_analyzer_correlated_subquery_exists_asterisk/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03545_array_join_index_set_bug/ast.json b/parser/testdata/03545_array_join_index_set_bug/ast.json new file mode 100644 index 0000000000..32022a8092 --- /dev/null +++ b/parser/testdata/03545_array_join_index_set_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "right", + "tables": [ + { + "table": "right" + } + ] +} diff --git a/parser/testdata/03545_map_contains_bloom_index_bug/ast.json b/parser/testdata/03545_map_contains_bloom_index_bug/ast.json new file mode 100644 index 0000000000..b38a1b1802 --- /dev/null +++ b/parser/testdata/03545_map_contains_bloom_index_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_map_contains_values", + "tables": [ + { + "table": "test_map_contains_values" + } + ] +} diff --git a/parser/testdata/03545_number_of_rows_in_ttltransform/ast.json b/parser/testdata/03545_number_of_rows_in_ttltransform/ast.json new file mode 100644 index 0000000000..7a58d304ba --- /dev/null +++ b/parser/testdata/03545_number_of_rows_in_ttltransform/ast.json @@ -0,0 +1,67 @@ +{ + "table": "t", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime" + } + }, + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "value", + "type": { + "name": "UInt16" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "id" + ] + }, + { + "name": "toStartOfDay", + "arguments": [ + { + "parts": [ + "timestamp" + ] + } + ] + } + ] + } + ], + "ttl": { + "expression": { + "left": { + "parts": [ + "timestamp" + ] + }, + "op": "+", + "right": { + "name": "toIntervalDay", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } +} diff --git a/parser/testdata/03545_union_allow_column_with_no_common_type/ast.json b/parser/testdata/03545_union_allow_column_with_no_common_type/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03545_union_allow_column_with_no_common_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03546_03545_analyzer_correlated_subquery_exists_asterisk_crash/ast.json b/parser/testdata/03546_03545_analyzer_correlated_subquery_exists_asterisk_crash/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03546_03545_analyzer_correlated_subquery_exists_asterisk_crash/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03546_add_distinct_to_in_clause/ast.json b/parser/testdata/03546_add_distinct_to_in_clause/ast.json new file mode 100644 index 0000000000..08b90be5e7 --- /dev/null +++ b/parser/testdata/03546_add_distinct_to_in_clause/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_table_1", + "tables": [ + { + "table": "local_table_1" + } + ] +} diff --git a/parser/testdata/03546_join_key_value_storage_with_casted_key/ast.json b/parser/testdata/03546_join_key_value_storage_with_casted_key/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03546_join_key_value_storage_with_casted_key/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03546_merge_tree_projection_shared_snapshot/ast.json b/parser/testdata/03546_merge_tree_projection_shared_snapshot/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03546_merge_tree_projection_shared_snapshot/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03546_multiple_join_use_nulls_matcher/ast.json b/parser/testdata/03546_multiple_join_use_nulls_matcher/ast.json new file mode 100644 index 0000000000..12e737f04b --- /dev/null +++ b/parser/testdata/03546_multiple_join_use_nulls_matcher/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tableA", + "tables": [ + { + "table": "tableA" + } + ] +} diff --git a/parser/testdata/03546_paimon_all_supported_type/ast.json b/parser/testdata/03546_paimon_all_supported_type/ast.json new file mode 100644 index 0000000000..5f5497ba48 --- /dev/null +++ b/parser/testdata/03546_paimon_all_supported_type/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "enable_time_time64_type", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03546_part_granule_offset/ast.json b/parser/testdata/03546_part_granule_offset/ast.json new file mode 100644 index 0000000000..7077df2772 --- /dev/null +++ b/parser/testdata/03546_part_granule_offset/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_part_granule_offset", + "tables": [ + { + "table": "test_part_granule_offset" + } + ] +} diff --git a/parser/testdata/03547_analyzer_correlated_columns_check_bug/ast.json b/parser/testdata/03547_analyzer_correlated_columns_check_bug/ast.json new file mode 100644 index 0000000000..75414d1529 --- /dev/null +++ b/parser/testdata/03547_analyzer_correlated_columns_check_bug/ast.json @@ -0,0 +1,26 @@ +{ + "table": "users", + "columns": [ + { + "name": "uid", + "type": { + "name": "Int16" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "age", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03547_analyzer_correlated_subqueries/ast.json b/parser/testdata/03547_analyzer_correlated_subqueries/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03547_analyzer_correlated_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03547_equals_optimizer_lowcardinality/ast.json b/parser/testdata/03547_equals_optimizer_lowcardinality/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03547_equals_optimizer_lowcardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03547_reinterpret_to_array/ast.json b/parser/testdata/03547_reinterpret_to_array/ast.json new file mode 100644 index 0000000000..ad2c6f339a --- /dev/null +++ b/parser/testdata/03547_reinterpret_to_array/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Verify correct destination type is instantiated" + } + ] + } + ] +} diff --git a/parser/testdata/03548_analyzer_indentifier_resolution_invariant/ast.json b/parser/testdata/03548_analyzer_indentifier_resolution_invariant/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03548_analyzer_indentifier_resolution_invariant/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03548_array_group_last_serialization/ast.json b/parser/testdata/03548_array_group_last_serialization/ast.json new file mode 100644 index 0000000000..3ac12ee54a --- /dev/null +++ b/parser/testdata/03548_array_group_last_serialization/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv0", + "tables": [ + { + "table": "mv0" + } + ] +} diff --git a/parser/testdata/03548_optimize_syntax_fuse_functions_clash/ast.json b/parser/testdata/03548_optimize_syntax_fuse_functions_clash/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03548_optimize_syntax_fuse_functions_clash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03549_aggregate_arithmetic_logical_error/ast.json b/parser/testdata/03549_aggregate_arithmetic_logical_error/ast.json new file mode 100644 index 0000000000..a26d1fcbd8 --- /dev/null +++ b/parser/testdata/03549_aggregate_arithmetic_logical_error/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sumMerge", + "arguments": [ + { + "left": { + "name": "initializeAggregation", + "arguments": [ + { + "type": "String", + "value": "sumState" + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + "op": "*", + "right": { + "expr": { + "type": "String", + "value": "1.1.1.1" + }, + "type": { + "name": "IPv4" + } + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03549_analyzer_fix_filter_removal/ast.json b/parser/testdata/03549_analyzer_fix_filter_removal/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03549_analyzer_fix_filter_removal/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03549_conv_function/ast.json b/parser/testdata/03549_conv_function/ast.json new file mode 100644 index 0000000000..76975d4f3b --- /dev/null +++ b/parser/testdata/03549_conv_function/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "conv", + "arguments": [ + { + "type": "String", + "value": "10" + }, + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03549_keeper_map_column_comments/ast.json b/parser/testdata/03549_keeper_map_column_comments/ast.json new file mode 100644 index 0000000000..ad68d92072 --- /dev/null +++ b/parser/testdata/03549_keeper_map_column_comments/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "03549_test", + "tables": [ + { + "table": "03549_test" + } + ], + "sync": true +} diff --git a/parser/testdata/03549_system_dimensional_metrics/ast.json b/parser/testdata/03549_system_dimensional_metrics/ast.json new file mode 100644 index 0000000000..bc31f4cca6 --- /dev/null +++ b/parser/testdata/03549_system_dimensional_metrics/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count" + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "dimensional_metrics" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03549_window_collation/ast.json b/parser/testdata/03549_window_collation/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03549_window_collation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03549_wkb_function/ast.json b/parser/testdata/03549_wkb_function/ast.json new file mode 100644 index 0000000000..2545cafd10 --- /dev/null +++ b/parser/testdata/03549_wkb_function/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "geom1", + "tables": [ + { + "table": "geom1" + } + ] +} diff --git a/parser/testdata/03550_analyzer_remote_view_columns/ast.json b/parser/testdata/03550_analyzer_remote_view_columns/ast.json new file mode 100644 index 0000000000..0a5c91b3bf --- /dev/null +++ b/parser/testdata/03550_analyzer_remote_view_columns/ast.json @@ -0,0 +1,82 @@ +{ + "table": "test", + "columns": [ + { + "name": "i1", + "type": { + "name": "Int64" + } + }, + { + "name": "i2", + "type": { + "name": "Int64" + } + }, + { + "name": "i3", + "type": { + "name": "Int64" + } + }, + { + "name": "i4", + "type": { + "name": "Int64" + } + }, + { + "name": "i5", + "type": { + "name": "Int64" + } + }, + { + "name": "i6", + "type": { + "name": "Int64" + } + }, + { + "name": "i7", + "type": { + "name": "Int64" + } + }, + { + "name": "i8", + "type": { + "name": "Int64" + } + }, + { + "name": "i9", + "type": { + "name": "Int64" + } + }, + { + "name": "i10", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/03550_projection_with_part_offset_ttl/ast.json b/parser/testdata/03550_projection_with_part_offset_ttl/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03550_projection_with_part_offset_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03550_s3queue_no_settings/ast.json b/parser/testdata/03550_s3queue_no_settings/ast.json new file mode 100644 index 0000000000..dfe6fff1e3 --- /dev/null +++ b/parser/testdata/03550_s3queue_no_settings/ast.json @@ -0,0 +1,27 @@ +{ + "table": "s3_queue", + "columns": [ + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "value", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "S3Queue", + "parameters": [ + { + "type": "String", + "value": "http://localhost:11111/test/{a,b,c}.tsv" + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03550_variant_extend_union/ast.json b/parser/testdata/03550_variant_extend_union/ast.json new file mode 100644 index 0000000000..f1f16096e0 --- /dev/null +++ b/parser/testdata/03550_variant_extend_union/ast.json @@ -0,0 +1,194 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "expr": { + "type": "String", + "value": "{\"a\":42}" + }, + "type": { + "name": "JSON" + }, + "operator_syntax": true + }, + "type": { + "name": "Variant", + "parameters": [ + { + "name": "JSON" + }, + { + "name": "String" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "type": { + "name": "Variant", + "parameters": [ + { + "name": "JSON" + }, + { + "name": "String" + }, + { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + }, + { + "columns": [ + { + "expr": { + "expr": { + "type": "String", + "value": "b" + }, + "type": { + "name": "Variant", + "parameters": [ + { + "name": "JSON" + }, + { + "name": "String" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "type": { + "name": "Variant", + "parameters": [ + { + "name": "JSON" + }, + { + "name": "String" + }, + { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + }, + { + "columns": [ + { + "expr": { + "expr": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "c" + } + ] + }, + "type": { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "type": { + "name": "Variant", + "parameters": [ + { + "name": "JSON" + }, + { + "name": "String" + }, + { + "name": "Array", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "ALL" + ] + } + } + ], + "settings": [ + { + "name": "allow_suspicious_types_in_order_by", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03551_cast_decimal_to_float/ast.json b/parser/testdata/03551_cast_decimal_to_float/ast.json new file mode 100644 index 0000000000..190b9e38a2 --- /dev/null +++ b/parser/testdata/03551_cast_decimal_to_float/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Integer", + "value": 9 + }, + "type": { + "name": "Decimal", + "parameters": [ + { + "type": "Integer", + "value": 76 + }, + { + "type": "Integer", + "value": 38 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + }, + "type": { + "name": "Float64" + }, + "operator_syntax": true + } + ] + } + ] +} diff --git a/parser/testdata/03551_no_alter_for_columns_to_sum/ast.json b/parser/testdata/03551_no_alter_for_columns_to_sum/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03551_no_alter_for_columns_to_sum/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03552_inconsistent_formatting_operator_as_table_function/ast.json b/parser/testdata/03552_inconsistent_formatting_operator_as_table_function/ast.json new file mode 100644 index 0000000000..c7824fc54d --- /dev/null +++ b/parser/testdata/03552_inconsistent_formatting_operator_as_table_function/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "globalIn", + "arguments": [ + { + "type": "String", + "value": "a" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03553_json_shared_data_advanced_serialization/ast.json b/parser/testdata/03553_json_shared_data_advanced_serialization/ast.json new file mode 100644 index 0000000000..e0bbaf61d5 --- /dev/null +++ b/parser/testdata/03553_json_shared_data_advanced_serialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_quote_64bit_integers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03553_json_shared_data_map_serialization/ast.json b/parser/testdata/03553_json_shared_data_map_serialization/ast.json new file mode 100644 index 0000000000..e0bbaf61d5 --- /dev/null +++ b/parser/testdata/03553_json_shared_data_map_serialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_quote_64bit_integers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03553_json_shared_data_map_with_buckets_serialization/ast.json b/parser/testdata/03553_json_shared_data_map_with_buckets_serialization/ast.json new file mode 100644 index 0000000000..e0bbaf61d5 --- /dev/null +++ b/parser/testdata/03553_json_shared_data_map_with_buckets_serialization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_quote_64bit_integers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_advanced_serialization_compact_part_big/ast.json b/parser/testdata/03554_json_shared_data_advanced_serialization_compact_part_big/ast.json new file mode 100644 index 0000000000..72406c1ee5 --- /dev/null +++ b/parser/testdata/03554_json_shared_data_advanced_serialization_compact_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_compact_without_substreams_advanced", + "tables": [ + { + "table": "test_compact_without_substreams_advanced" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_advanced_serialization_wide_part_big/ast.json b/parser/testdata/03554_json_shared_data_advanced_serialization_wide_part_big/ast.json new file mode 100644 index 0000000000..79bc764e7a --- /dev/null +++ b/parser/testdata/03554_json_shared_data_advanced_serialization_wide_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_wide_advanced", + "tables": [ + { + "table": "test_wide_advanced" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_map_serialization_compact_part_big/ast.json b/parser/testdata/03554_json_shared_data_map_serialization_compact_part_big/ast.json new file mode 100644 index 0000000000..41dfabe1b2 --- /dev/null +++ b/parser/testdata/03554_json_shared_data_map_serialization_compact_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_compact_map", + "tables": [ + { + "table": "test_compact_map" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_map_serialization_wide_part_big/ast.json b/parser/testdata/03554_json_shared_data_map_serialization_wide_part_big/ast.json new file mode 100644 index 0000000000..fe436bb42e --- /dev/null +++ b/parser/testdata/03554_json_shared_data_map_serialization_wide_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_wide_map", + "tables": [ + { + "table": "test_wide_map" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_map_with_buckets_serialization_compact_part_big/ast.json b/parser/testdata/03554_json_shared_data_map_with_buckets_serialization_compact_part_big/ast.json new file mode 100644 index 0000000000..2534ebdaa5 --- /dev/null +++ b/parser/testdata/03554_json_shared_data_map_with_buckets_serialization_compact_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_compact_map_with_buckets", + "tables": [ + { + "table": "test_compact_map_with_buckets" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_map_with_buckets_serialization_wide_part_big/ast.json b/parser/testdata/03554_json_shared_data_map_with_buckets_serialization_wide_part_big/ast.json new file mode 100644 index 0000000000..a3ec391619 --- /dev/null +++ b/parser/testdata/03554_json_shared_data_map_with_buckets_serialization_wide_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_wide_map_with_buckets", + "tables": [ + { + "table": "test_wide_map_with_buckets" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_tuple_advanced_serialization_compact_part_big/ast.json b/parser/testdata/03554_json_shared_data_tuple_advanced_serialization_compact_part_big/ast.json new file mode 100644 index 0000000000..af9a1fd249 --- /dev/null +++ b/parser/testdata/03554_json_shared_data_tuple_advanced_serialization_compact_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_compact_advanced_tuple", + "tables": [ + { + "table": "test_compact_advanced_tuple" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_tuple_advanced_serialization_wide_part_big/ast.json b/parser/testdata/03554_json_shared_data_tuple_advanced_serialization_wide_part_big/ast.json new file mode 100644 index 0000000000..2e908c8f8c --- /dev/null +++ b/parser/testdata/03554_json_shared_data_tuple_advanced_serialization_wide_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_wide_advanced_tuple", + "tables": [ + { + "table": "test_wide_advanced_tuple" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_compact_part_big/ast.json b/parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_compact_part_big/ast.json new file mode 100644 index 0000000000..4a618b3285 --- /dev/null +++ b/parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_compact_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_compact_map_with_buckets_tuple", + "tables": [ + { + "table": "test_compact_map_with_buckets_tuple" + } + ] +} diff --git a/parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_wide_part_big/ast.json b/parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_wide_part_big/ast.json new file mode 100644 index 0000000000..9f3e38baa7 --- /dev/null +++ b/parser/testdata/03554_json_shared_data_tuple_map_with_buckets_serialization_wide_part_big/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_wide_map_with_buckets_tuple", + "tables": [ + { + "table": "test_wide_map_with_buckets_tuple" + } + ] +} diff --git a/parser/testdata/03555_inconsistent_formatting_ttl/ast.json b/parser/testdata/03555_inconsistent_formatting_ttl/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03555_inconsistent_formatting_ttl/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03555_json_shared_data_advanced_paths_indexes_1/ast.json b/parser/testdata/03555_json_shared_data_advanced_paths_indexes_1/ast.json new file mode 100644 index 0000000000..e0bbaf61d5 --- /dev/null +++ b/parser/testdata/03555_json_shared_data_advanced_paths_indexes_1/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_quote_64bit_integers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03555_json_shared_data_advanced_paths_indexes_2/ast.json b/parser/testdata/03555_json_shared_data_advanced_paths_indexes_2/ast.json new file mode 100644 index 0000000000..e0bbaf61d5 --- /dev/null +++ b/parser/testdata/03555_json_shared_data_advanced_paths_indexes_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_quote_64bit_integers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03555_json_shared_data_advanced_paths_indexes_3/ast.json b/parser/testdata/03555_json_shared_data_advanced_paths_indexes_3/ast.json new file mode 100644 index 0000000000..e0bbaf61d5 --- /dev/null +++ b/parser/testdata/03555_json_shared_data_advanced_paths_indexes_3/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_json_quote_64bit_integers", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03559_explain_ast_in_subquery/ast.json b/parser/testdata/03559_explain_ast_in_subquery/ast.json new file mode 100644 index 0000000000..3da2551a1c --- /dev/null +++ b/parser/testdata/03559_explain_ast_in_subquery/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "query": { + "explain_type": "AST", + "statement": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "into_outfile": { + "filename": "a" + } + } + ] + } + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03560_low_cardinality_keys_filter/ast.json b/parser/testdata/03560_low_cardinality_keys_filter/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03560_low_cardinality_keys_filter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03560_new_analyzer_default_expression/ast.json b/parser/testdata/03560_new_analyzer_default_expression/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03560_new_analyzer_default_expression/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03560_parallel_replicas_external_aggregation/ast.json b/parser/testdata/03560_parallel_replicas_external_aggregation/ast.json new file mode 100644 index 0000000000..570902084e --- /dev/null +++ b/parser/testdata/03560_parallel_replicas_external_aggregation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_proj_external_agg", + "tables": [ + { + "table": "t_proj_external_agg" + } + ] +} diff --git a/parser/testdata/03560_parallel_replicas_memory_bound_merging_projection/ast.json b/parser/testdata/03560_parallel_replicas_memory_bound_merging_projection/ast.json new file mode 100644 index 0000000000..18cae223c9 --- /dev/null +++ b/parser/testdata/03560_parallel_replicas_memory_bound_merging_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "pr_t", + "tables": [ + { + "table": "pr_t" + } + ] +} diff --git a/parser/testdata/03560_parallel_replicas_projection/ast.json b/parser/testdata/03560_parallel_replicas_projection/ast.json new file mode 100644 index 0000000000..7280de9500 --- /dev/null +++ b/parser/testdata/03560_parallel_replicas_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "normal", + "tables": [ + { + "table": "normal" + } + ] +} diff --git a/parser/testdata/03560_validate_max_insert_block_size/ast.json b/parser/testdata/03560_validate_max_insert_block_size/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03560_validate_max_insert_block_size/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03561_analyzer_cte_cycle_resolve_bug/ast.json b/parser/testdata/03561_analyzer_cte_cycle_resolve_bug/ast.json new file mode 100644 index 0000000000..75414d1529 --- /dev/null +++ b/parser/testdata/03561_analyzer_cte_cycle_resolve_bug/ast.json @@ -0,0 +1,26 @@ +{ + "table": "users", + "columns": [ + { + "name": "uid", + "type": { + "name": "Int16" + } + }, + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "age", + "type": { + "name": "Int16" + } + } + ], + "engine": { + "name": "Memory" + } +} diff --git a/parser/testdata/03561_colorSRGBToOKLCH/ast.json b/parser/testdata/03561_colorSRGBToOKLCH/ast.json new file mode 100644 index 0000000000..0e18f146e8 --- /dev/null +++ b/parser/testdata/03561_colorSRGBToOKLCH/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- Wrong arguments" + } + ] + } + ] +} diff --git a/parser/testdata/03561_materialized_subcolumns_materialized_view/ast.json b/parser/testdata/03561_materialized_subcolumns_materialized_view/ast.json new file mode 100644 index 0000000000..32b0b2627f --- /dev/null +++ b/parser/testdata/03561_materialized_subcolumns_materialized_view/ast.json @@ -0,0 +1,15 @@ +{ + "if_exists": true, + "table": "source", + "tables": [ + { + "table": "source" + }, + { + "table": "destination" + }, + { + "table": "source_to_destination_mv" + } + ] +} diff --git a/parser/testdata/03561_two_mvs_bad_select/ast.json b/parser/testdata/03561_two_mvs_bad_select/ast.json new file mode 100644 index 0000000000..84b0705859 --- /dev/null +++ b/parser/testdata/03561_two_mvs_bad_select/ast.json @@ -0,0 +1,18 @@ +{ + "if_exists": true, + "table": "03561_t0", + "tables": [ + { + "table": "03561_t0" + }, + { + "table": "03561_t1" + }, + { + "table": "03561_v0" + }, + { + "table": "03561_v1" + } + ] +} diff --git a/parser/testdata/03562_colorOKLCHToSRGB/ast.json b/parser/testdata/03562_colorOKLCHToSRGB/ast.json new file mode 100644 index 0000000000..0e18f146e8 --- /dev/null +++ b/parser/testdata/03562_colorOKLCHToSRGB/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--- Wrong arguments" + } + ] + } + ] +} diff --git a/parser/testdata/03562_geometry_type/ast.json b/parser/testdata/03562_geometry_type/ast.json new file mode 100644 index 0000000000..18140d29ce --- /dev/null +++ b/parser/testdata/03562_geometry_type/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_variant_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03562_json_date_as_integer/ast.json b/parser/testdata/03562_json_date_as_integer/ast.json new file mode 100644 index 0000000000..00bd7cb8f9 --- /dev/null +++ b/parser/testdata/03562_json_date_as_integer/ast.json @@ -0,0 +1,36 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "JSONEachRow" + ] + }, + { + "parts": [ + "a Date" + ] + }, + { + "type": "String", + "value": "{\"a\" : 52}" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03562_parallel_replicas_remote_with_cluster/ast.json b/parser/testdata/03562_parallel_replicas_remote_with_cluster/ast.json new file mode 100644 index 0000000000..d58a7bf85a --- /dev/null +++ b/parser/testdata/03562_parallel_replicas_remote_with_cluster/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tt", + "tables": [ + { + "table": "tt" + } + ] +} diff --git a/parser/testdata/03562_parallel_replicas_subquery_has_final/ast.json b/parser/testdata/03562_parallel_replicas_subquery_has_final/ast.json new file mode 100644 index 0000000000..aa2c8422fb --- /dev/null +++ b/parser/testdata/03562_parallel_replicas_subquery_has_final/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03562_system_database_replicas/ast.json b/parser/testdata/03562_system_database_replicas/ast.json new file mode 100644 index 0000000000..affc991410 --- /dev/null +++ b/parser/testdata/03562_system_database_replicas/ast.json @@ -0,0 +1,6 @@ +{ + "if_exists": true, + "database": "db_1", + "drop_database": true, + "sync": true +} diff --git a/parser/testdata/03563_coarser_minmax_indexes_first/ast.json b/parser/testdata/03563_coarser_minmax_indexes_first/ast.json new file mode 100644 index 0000000000..a60bce1c35 --- /dev/null +++ b/parser/testdata/03563_coarser_minmax_indexes_first/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "skip_table", + "tables": [ + { + "table": "skip_table" + } + ] +} diff --git a/parser/testdata/03565_clickhouse_smaller_indexes_first/ast.json b/parser/testdata/03565_clickhouse_smaller_indexes_first/ast.json new file mode 100644 index 0000000000..a60bce1c35 --- /dev/null +++ b/parser/testdata/03565_clickhouse_smaller_indexes_first/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "skip_table", + "tables": [ + { + "table": "skip_table" + } + ] +} diff --git a/parser/testdata/03565_iceberg_field_ids_table/ast.json b/parser/testdata/03565_iceberg_field_ids_table/ast.json new file mode 100644 index 0000000000..4633e1c476 --- /dev/null +++ b/parser/testdata/03565_iceberg_field_ids_table/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "icebergS3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "field_ids_table_test" + } + } + ], + "settings": [ + { + "name": "iceberg_metadata_table_uuid", + "value": { + "type": "String", + "value": "8f1f9ae2-18bb-421e-b640-ec2f85e67bce" + } + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "ALL" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03565_union_all_nullptr/ast.json b/parser/testdata/03565_union_all_nullptr/ast.json new file mode 100644 index 0000000000..d6c15d1a8f --- /dev/null +++ b/parser/testdata/03565_union_all_nullptr/ast.json @@ -0,0 +1,12 @@ +{ + "temporary": true, + "table": "t", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt8" + } + } + ] +} diff --git a/parser/testdata/03566_analyzer_single_with_scope/ast.json b/parser/testdata/03566_analyzer_single_with_scope/ast.json new file mode 100644 index 0000000000..6dd4a78d96 --- /dev/null +++ b/parser/testdata/03566_analyzer_single_with_scope/ast.json @@ -0,0 +1,25 @@ +{ + "table": "tab", + "columns": [ + { + "name": "x", + "type": { + "name": "String" + } + }, + { + "name": "y", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03566_inconsistent_formatting_functions_codecs/ast.json b/parser/testdata/03566_inconsistent_formatting_functions_codecs/ast.json new file mode 100644 index 0000000000..f2ecaeece6 --- /dev/null +++ b/parser/testdata/03566_inconsistent_formatting_functions_codecs/ast.json @@ -0,0 +1,22 @@ +{ + "temporary": true, + "table": "a", + "columns": [ + { + "name": "b", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "b" + ] + } + ] +} diff --git a/parser/testdata/03566_low_cardinality_nan_unique/ast.json b/parser/testdata/03566_low_cardinality_nan_unique/ast.json new file mode 100644 index 0000000000..b8e8a61a04 --- /dev/null +++ b/parser/testdata/03566_low_cardinality_nan_unique/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03566_one_row_summing_merge_tree/ast.json b/parser/testdata/03566_one_row_summing_merge_tree/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03566_one_row_summing_merge_tree/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03566_system_completions_table/ast.json b/parser/testdata/03566_system_completions_table/ast.json new file mode 100644 index 0000000000..6e9eaea78c --- /dev/null +++ b/parser/testdata/03566_system_completions_table/ast.json @@ -0,0 +1,5 @@ +{ + "if_not_exists": true, + "database": "0003566aaadatabase", + "create_database": true +} diff --git a/parser/testdata/03567_analyzer_single_with_scope_cycle/ast.json b/parser/testdata/03567_analyzer_single_with_scope_cycle/ast.json new file mode 100644 index 0000000000..6dd4a78d96 --- /dev/null +++ b/parser/testdata/03567_analyzer_single_with_scope_cycle/ast.json @@ -0,0 +1,25 @@ +{ + "table": "tab", + "columns": [ + { + "name": "x", + "type": { + "name": "String" + } + }, + { + "name": "y", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03567_join_using_projection_distributed/ast.json b/parser/testdata/03567_join_using_projection_distributed/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03567_join_using_projection_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03567_json_extract_case_insensitive_edge_cases/ast.json b/parser/testdata/03567_json_extract_case_insensitive_edge_cases/ast.json new file mode 100644 index 0000000000..06ac761c75 --- /dev/null +++ b/parser/testdata/03567_json_extract_case_insensitive_edge_cases/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--Edge cases for JSONExtractCaseInsensitive--" + } + ] + } + ] +} diff --git a/parser/testdata/03567_nowInBlock64/ast.json b/parser/testdata/03567_nowInBlock64/ast.json new file mode 100644 index 0000000000..af0c79f96f --- /dev/null +++ b/parser/testdata/03567_nowInBlock64/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "max_rows_to_read", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_bytes_to_read", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03568_json_extract_case_insensitive/ast.json b/parser/testdata/03568_json_extract_case_insensitive/ast.json new file mode 100644 index 0000000000..ac7013df3d --- /dev/null +++ b/parser/testdata/03568_json_extract_case_insensitive/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "--JSONExtractCaseInsensitive--" + } + ] + } + ] +} diff --git a/parser/testdata/03568_mutation_affected_rows_counter/ast.json b/parser/testdata/03568_mutation_affected_rows_counter/ast.json new file mode 100644 index 0000000000..fb2a8894b8 --- /dev/null +++ b/parser/testdata/03568_mutation_affected_rows_counter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_mutation_rows_counter", + "tables": [ + { + "table": "t_mutation_rows_counter" + } + ] +} diff --git a/parser/testdata/03568_udf_memory_tracking/ast.json b/parser/testdata/03568_udf_memory_tracking/ast.json new file mode 100644 index 0000000000..bcb8a9d97b --- /dev/null +++ b/parser/testdata/03568_udf_memory_tracking/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "log_queries", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03569_max_joined_block_size_rows_bug/ast.json b/parser/testdata/03569_max_joined_block_size_rows_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03569_max_joined_block_size_rows_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03570_dateTimeToUUIDv7/ast.json b/parser/testdata/03570_dateTimeToUUIDv7/ast.json new file mode 100644 index 0000000000..6415fa5f4f --- /dev/null +++ b/parser/testdata/03570_dateTimeToUUIDv7/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Negative tests" + } + ] + } + ] +} diff --git a/parser/testdata/03570_date_to_datetime64_overflow/ast.json b/parser/testdata/03570_date_to_datetime64_overflow/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03570_date_to_datetime64_overflow/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03570_insert_into_simple_alias/ast.json b/parser/testdata/03570_insert_into_simple_alias/ast.json new file mode 100644 index 0000000000..eb5d2e59cb --- /dev/null +++ b/parser/testdata/03570_insert_into_simple_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "alias_insert_test", + "tables": [ + { + "table": "alias_insert_test" + } + ] +} diff --git a/parser/testdata/03570_limit_by_all/ast.json b/parser/testdata/03570_limit_by_all/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/03570_limit_by_all/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03571_join_inequality_constants/ast.json b/parser/testdata/03571_join_inequality_constants/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03571_join_inequality_constants/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03571_limit_by_all_old_planner/ast.json b/parser/testdata/03571_limit_by_all_old_planner/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/03571_limit_by_all_old_planner/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03571_lwd_and_projections/ast.json b/parser/testdata/03571_lwd_and_projections/ast.json new file mode 100644 index 0000000000..1c30947919 --- /dev/null +++ b/parser/testdata/03571_lwd_and_projections/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "weird_projections", + "tables": [ + { + "table": "weird_projections" + } + ] +} diff --git a/parser/testdata/03571_nullable_format_digit_groups/ast.json b/parser/testdata/03571_nullable_format_digit_groups/ast.json new file mode 100644 index 0000000000..76586adaaa --- /dev/null +++ b/parser/testdata/03571_nullable_format_digit_groups/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_pretty_color", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03571_trying_to_get_name_of_not_a_column_asterisk/ast.json b/parser/testdata/03571_trying_to_get_name_of_not_a_column_asterisk/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03571_trying_to_get_name_of_not_a_column_asterisk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03572_empty_tuple_in_nested_type/ast.json b/parser/testdata/03572_empty_tuple_in_nested_type/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03572_empty_tuple_in_nested_type/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03572_planner_merge_filter_into_join_bug/ast.json b/parser/testdata/03572_planner_merge_filter_into_join_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03572_planner_merge_filter_into_join_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03572_pr_remote_in_subquery/ast.json b/parser/testdata/03572_pr_remote_in_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03572_pr_remote_in_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03573_concurrent_hash_scatter_bug/ast.json b/parser/testdata/03573_concurrent_hash_scatter_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03573_concurrent_hash_scatter_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03573_create_query_parameters_in_to_in_materialized_view/ast.json b/parser/testdata/03573_create_query_parameters_in_to_in_materialized_view/ast.json new file mode 100644 index 0000000000..5ed64a82ba --- /dev/null +++ b/parser/testdata/03573_create_query_parameters_in_to_in_materialized_view/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "formatQuerySingleLine", + "arguments": [ + { + "type": "String", + "value": "create materialized view mv_kek to {db:Identifier}.{target_table:Identifier} as select * from null_kek" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03573_json_keys_with_dots/ast.json b/parser/testdata/03573_json_keys_with_dots/ast.json new file mode 100644 index 0000000000..f38b85b564 --- /dev/null +++ b/parser/testdata/03573_json_keys_with_dots/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "json_type_escape_dots_in_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03573_linear_regression_timeseries_functions/ast.json b/parser/testdata/03573_linear_regression_timeseries_functions/ast.json new file mode 100644 index 0000000000..261a005fd4 --- /dev/null +++ b/parser/testdata/03573_linear_regression_timeseries_functions/ast.json @@ -0,0 +1,39 @@ +{ + "table": "ts_raw_data", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "value", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "timestamp" + ] + } + ] +} diff --git a/parser/testdata/03573_linear_regression_timeseries_functions_various_arguments/ast.json b/parser/testdata/03573_linear_regression_timeseries_functions_various_arguments/ast.json new file mode 100644 index 0000000000..582606eae5 --- /dev/null +++ b/parser/testdata/03573_linear_regression_timeseries_functions_various_arguments/ast.json @@ -0,0 +1,46 @@ +{ + "table": "ts_data", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "timestamps", + "type": { + "name": "Array", + "parameters": [ + { + "name": "DateTime" + } + ], + "has_parentheses": true + } + }, + { + "name": "values", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Float64" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03573_planner_merge_filter_into_join_bug_2/ast.json b/parser/testdata/03573_planner_merge_filter_into_join_bug_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03573_planner_merge_filter_into_join_bug_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03574_analyzer_merge_filter_into_join_bug/ast.json b/parser/testdata/03574_analyzer_merge_filter_into_join_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03574_analyzer_merge_filter_into_join_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03574_parallel_replicas_last_right_join/ast.json b/parser/testdata/03574_parallel_replicas_last_right_join/ast.json new file mode 100644 index 0000000000..cc444d894b --- /dev/null +++ b/parser/testdata/03574_parallel_replicas_last_right_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_parallel_reading_from_replicas", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03575_analyzer_merge_filter_into_join_bug_2/ast.json b/parser/testdata/03575_analyzer_merge_filter_into_join_bug_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03575_analyzer_merge_filter_into_join_bug_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03576_analyzer_distributed_correlated_subquery/ast.json b/parser/testdata/03576_analyzer_distributed_correlated_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03576_analyzer_distributed_correlated_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03577_assert_on_estimated_block_size_bytes/ast.json b/parser/testdata/03577_assert_on_estimated_block_size_bytes/ast.json new file mode 100644 index 0000000000..6d5e73de02 --- /dev/null +++ b/parser/testdata/03577_assert_on_estimated_block_size_bytes/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "c0" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "generateRandom", + "arguments": [ + { + "type": "String", + "value": "c0 Tuple()" + }, + { + "type": "Integer", + "value": 17599311795067409937 + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03577_dynamic_json_update_issue/ast.json b/parser/testdata/03577_dynamic_json_update_issue/ast.json new file mode 100644 index 0000000000..f2ad7b1ef3 --- /dev/null +++ b/parser/testdata/03577_dynamic_json_update_issue/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03577_hash_output_format/ast.json b/parser/testdata/03577_hash_output_format/ast.json new file mode 100644 index 0000000000..4d6b1942c8 --- /dev/null +++ b/parser/testdata/03577_hash_output_format/ast.json @@ -0,0 +1,34 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + }, + "format": { + "parts": [ + "Hash" + ] + } + } + ] +} diff --git a/parser/testdata/03577_server_constant_folding/ast.json b/parser/testdata/03577_server_constant_folding/ast.json new file mode 100644 index 0000000000..214f2f0efd --- /dev/null +++ b/parser/testdata/03577_server_constant_folding/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03577_temporary_table_as/ast.json b/parser/testdata/03577_temporary_table_as/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03577_temporary_table_as/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03577_ub_max_column_in_block_size_bytes/ast.json b/parser/testdata/03577_ub_max_column_in_block_size_bytes/ast.json new file mode 100644 index 0000000000..b85fbcbb71 --- /dev/null +++ b/parser/testdata/03577_ub_max_column_in_block_size_bytes/ast.json @@ -0,0 +1,20 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Bool" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03577_vairant_lazy_materialization_bug/ast.json b/parser/testdata/03577_vairant_lazy_materialization_bug/ast.json new file mode 100644 index 0000000000..2d09bf013c --- /dev/null +++ b/parser/testdata/03577_vairant_lazy_materialization_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_optimize_lazy_materialization", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03578_distributed_kv_global_in/ast.json b/parser/testdata/03578_distributed_kv_global_in/ast.json new file mode 100644 index 0000000000..214f2f0efd --- /dev/null +++ b/parser/testdata/03578_distributed_kv_global_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03578_kv_in_type_casts/ast.json b/parser/testdata/03578_kv_in_type_casts/ast.json new file mode 100644 index 0000000000..5d9850caeb --- /dev/null +++ b/parser/testdata/03578_kv_in_type_casts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03578_rocksdb", + "tables": [ + { + "table": "03578_rocksdb" + } + ] +} diff --git a/parser/testdata/03578_ttl_column_in_order_by_validation/ast.json b/parser/testdata/03578_ttl_column_in_order_by_validation/ast.json new file mode 100644 index 0000000000..f7a324bcd2 --- /dev/null +++ b/parser/testdata/03578_ttl_column_in_order_by_validation/ast.json @@ -0,0 +1,61 @@ +{ + "if_not_exists": true, + "table": "test_break_ddl", + "columns": [ + { + "name": "id", + "type": { + "name": "String" + } + }, + { + "name": "event_date", + "type": { + "name": "Date" + } + }, + { + "name": "event_time", + "type": { + "name": "DateTime" + } + }, + { + "name": "message", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "ReplacingMergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "id" + ] + }, + { + "parts": [ + "event_date" + ] + }, + { + "parts": [ + "event_time" + ] + } + ] + } + ], + "partition_by": { + "parts": [ + "event_date" + ] + } +} diff --git a/parser/testdata/03579_mergeTreeIndex_params/ast.json b/parser/testdata/03579_mergeTreeIndex_params/ast.json new file mode 100644 index 0000000000..5d7dfda15a --- /dev/null +++ b/parser/testdata/03579_mergeTreeIndex_params/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_mt_params", + "tables": [ + { + "table": "t_mt_params" + } + ] +} diff --git a/parser/testdata/03579_system_columns_column_alias/ast.json b/parser/testdata/03579_system_columns_column_alias/ast.json new file mode 100644 index 0000000000..448987a9a6 --- /dev/null +++ b/parser/testdata/03579_system_columns_column_alias/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "columns" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "database" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "system" + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "table" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "columns" + } + } + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03580_external_merge_sort_with_lazy_columns/ast.json b/parser/testdata/03580_external_merge_sort_with_lazy_columns/ast.json new file mode 100644 index 0000000000..aef31fbaa8 --- /dev/null +++ b/parser/testdata/03580_external_merge_sort_with_lazy_columns/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ], + "sync": true +} diff --git a/parser/testdata/03580_heredoc_ambiguity/ast.json b/parser/testdata/03580_heredoc_ambiguity/ast.json new file mode 100644 index 0000000000..d185ab7cb7 --- /dev/null +++ b/parser/testdata/03580_heredoc_ambiguity/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "param_$1", + "value": { + "type": "String", + "value": "Hello" + } + }, + { + "name": "param_$2", + "value": { + "type": "String", + "value": "World" + } + } + ] +} diff --git a/parser/testdata/03580_improve_prewhere/ast.json b/parser/testdata/03580_improve_prewhere/ast.json new file mode 100644 index 0000000000..93d7541481 --- /dev/null +++ b/parser/testdata/03580_improve_prewhere/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_move_to_prewhere", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03580_join_runtime_filter/ast.json b/parser/testdata/03580_join_runtime_filter/ast.json new file mode 100644 index 0000000000..7bc8880470 --- /dev/null +++ b/parser/testdata/03580_join_runtime_filter/ast.json @@ -0,0 +1,27 @@ +{ + "table": "nation", + "columns": [ + { + "name": "n_nationkey", + "type": { + "name": "Int32" + } + }, + { + "name": "n_name", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "n_nationkey" + ] + } + ] +} diff --git a/parser/testdata/03580_join_runtime_filter_column_type/ast.json b/parser/testdata/03580_join_runtime_filter_column_type/ast.json new file mode 100644 index 0000000000..30fa897d6a --- /dev/null +++ b/parser/testdata/03580_join_runtime_filter_column_type/ast.json @@ -0,0 +1,69 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + "alias": "t0" + } + } + ] + }, + "where": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "t0", + "_table" + ] + } + ] + } + ] + } + }, + "settings": [ + { + "name": "enable_join_runtime_filters", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_experimental_correlated_subqueries", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03580_join_runtime_filter_prewhere/ast.json b/parser/testdata/03580_join_runtime_filter_prewhere/ast.json new file mode 100644 index 0000000000..7bc8880470 --- /dev/null +++ b/parser/testdata/03580_join_runtime_filter_prewhere/ast.json @@ -0,0 +1,27 @@ +{ + "table": "nation", + "columns": [ + { + "name": "n_nationkey", + "type": { + "name": "Int32" + } + }, + { + "name": "n_name", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "n_nationkey" + ] + } + ] +} diff --git a/parser/testdata/03580_join_runtime_filter_pushdown/ast.json b/parser/testdata/03580_join_runtime_filter_pushdown/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03580_join_runtime_filter_pushdown/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03580_s3queue_settings_store/ast.json b/parser/testdata/03580_s3queue_settings_store/ast.json new file mode 100644 index 0000000000..70e36e1055 --- /dev/null +++ b/parser/testdata/03580_s3queue_settings_store/ast.json @@ -0,0 +1,90 @@ +{ + "table": "s3queue_test", + "columns": [ + { + "name": "column1", + "type": { + "name": "UInt32" + } + }, + { + "name": "column2", + "type": { + "name": "UInt32" + } + }, + { + "name": "column3", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "S3Queue", + "parameters": [ + { + "type": "String", + "value": "http://whatever-we-dont-care:9001/root/s3queue_test_data/" + }, + { + "type": "String", + "value": "username" + }, + { + "type": "String", + "value": "password" + }, + { + "parts": [ + "CSV" + ] + } + ], + "has_parentheses": true + }, + "settings": [ + { + "name": "s3queue_loading_retries", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "after_processing", + "value": { + "type": "String", + "value": "delete" + } + }, + { + "name": "keeper_path", + "value": { + "type": "String", + "value": "/s3queue" + } + }, + { + "name": "mode", + "value": { + "type": "String", + "value": "ordered" + } + }, + { + "name": "enable_hash_ring_filtering", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "s3queue_enable_logging_to_s3queue_log", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03581_bool_literal_column_name/ast.json b/parser/testdata/03581_bool_literal_column_name/ast.json new file mode 100644 index 0000000000..2539402298 --- /dev/null +++ b/parser/testdata/03581_bool_literal_column_name/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "toTypeName", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + }, + { + "name": "toTypeName", + "arguments": [ + { + "type": "Boolean", + "value": false + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03581_iceberg_struct_fields_ids/ast.json b/parser/testdata/03581_iceberg_struct_fields_ids/ast.json new file mode 100644 index 0000000000..eec8e613a1 --- /dev/null +++ b/parser/testdata/03581_iceberg_struct_fields_ids/ast.json @@ -0,0 +1,57 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "icebergS3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "field_ids_struct_test" + } + } + ], + "settings": [ + { + "name": "iceberg_metadata_table_uuid", + "value": { + "type": "String", + "value": "149ecc15-7afc-4311-86b3-3a4c8d4ec08e" + } + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "ALL" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03581_nested_storage_merge_distributed_order_by/ast.json b/parser/testdata/03581_nested_storage_merge_distributed_order_by/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03581_nested_storage_merge_distributed_order_by/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03581_parallel_replicas_task_size/ast.json b/parser/testdata/03581_parallel_replicas_task_size/ast.json new file mode 100644 index 0000000000..39eca0a806 --- /dev/null +++ b/parser/testdata/03581_parallel_replicas_task_size/ast.json @@ -0,0 +1,50 @@ +{ + "table": "t", + "columns": [ + { + "name": "a", + "type": { + "name": "UInt64" + } + }, + { + "name": "s", + "type": { + "name": "String" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "a" + ] + } + ], + "settings": [ + { + "name": "storage_policy", + "value": { + "type": "String", + "value": "s3_cache" + } + }, + { + "name": "min_rows_for_wide_part", + "value": { + "type": "Integer", + "value": 10000 + } + }, + { + "name": "min_bytes_for_wide_part", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03581_read_in_order_use_virtual_row_WHERE/ast.json b/parser/testdata/03581_read_in_order_use_virtual_row_WHERE/ast.json new file mode 100644 index 0000000000..dd1e7e98d0 --- /dev/null +++ b/parser/testdata/03581_read_in_order_use_virtual_row_WHERE/ast.json @@ -0,0 +1,27 @@ +{ + "table": "tab", + "columns": [ + { + "name": "x", + "type": { + "name": "UInt64" + } + }, + { + "name": "y", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/03582_initcap_fixedstring/ast.json b/parser/testdata/03582_initcap_fixedstring/ast.json new file mode 100644 index 0000000000..7ecb224e92 --- /dev/null +++ b/parser/testdata/03582_initcap_fixedstring/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "initCap", + "arguments": [ + { + "expr": { + "name": "arrayJoin", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "String", + "value": "hello" + }, + { + "type": "String", + "value": "world" + } + ] + } + ] + }, + "type": { + "name": "FixedString", + "parameters": [ + { + "type": "Integer", + "value": 5 + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03582_pr_read_in_order_hits/ast.json b/parser/testdata/03582_pr_read_in_order_hits/ast.json new file mode 100644 index 0000000000..25f6700092 --- /dev/null +++ b/parser/testdata/03582_pr_read_in_order_hits/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03583_rewrite_in_to_join/ast.json b/parser/testdata/03583_rewrite_in_to_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03583_rewrite_in_to_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03591_optimize_prewhere_row_policy/ast.json b/parser/testdata/03591_optimize_prewhere_row_policy/ast.json new file mode 100644 index 0000000000..93f88f1b20 --- /dev/null +++ b/parser/testdata/03591_optimize_prewhere_row_policy/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_query_condition_cache", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03592_distributed_alter_check_sharding_key/ast.json b/parser/testdata/03592_distributed_alter_check_sharding_key/ast.json new file mode 100644 index 0000000000..8d19145276 --- /dev/null +++ b/parser/testdata/03592_distributed_alter_check_sharding_key/ast.json @@ -0,0 +1,42 @@ +{ + "table": "t1", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int" + } + }, + { + "name": "c1", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Distributed", + "parameters": [ + { + "type": "String", + "value": "test_shard_localhost" + }, + { + "parts": [ + "default" + ] + }, + { + "parts": [ + "t0" + ] + }, + { + "parts": [ + "c1" + ] + } + ], + "has_parentheses": true + } +} diff --git a/parser/testdata/03592_s3queue_large_settings/ast.json b/parser/testdata/03592_s3queue_large_settings/ast.json new file mode 100644 index 0000000000..3ebdf6c95b --- /dev/null +++ b/parser/testdata/03592_s3queue_large_settings/ast.json @@ -0,0 +1,56 @@ +{ + "table": "s3_queue", + "columns": [ + { + "name": "name", + "type": { + "name": "String" + } + }, + { + "name": "value", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "S3Queue", + "parameters": [ + { + "type": "String", + "value": "http://localhost:11111/test/{a,b,c}.tsv" + }, + { + "type": "String", + "value": "user" + }, + { + "type": "String", + "value": "password" + }, + { + "parts": [ + "CSV" + ] + } + ], + "has_parentheses": true + }, + "settings": [ + { + "name": "s3queue_tracked_files_limit", + "value": { + "type": "Integer", + "value": 18446744073709551615 + } + }, + { + "name": "mode", + "value": { + "type": "String", + "value": "ordered" + } + } + ] +} diff --git a/parser/testdata/03593_allow_projection_with_parent_part_offset/ast.json b/parser/testdata/03593_allow_projection_with_parent_part_offset/ast.json new file mode 100644 index 0000000000..943e5804c2 --- /dev/null +++ b/parser/testdata/03593_allow_projection_with_parent_part_offset/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03593_t", + "tables": [ + { + "table": "03593_t" + } + ] +} diff --git a/parser/testdata/03593_backup_with_broken_projection/ast.json b/parser/testdata/03593_backup_with_broken_projection/ast.json new file mode 100644 index 0000000000..1a3477e648 --- /dev/null +++ b/parser/testdata/03593_backup_with_broken_projection/ast.json @@ -0,0 +1,53 @@ +{ + "table": "03593_backup_with_broken_projection", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "string", + "type": { + "name": "String" + } + }, + { + "name": "time1", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 6 + } + ], + "has_parentheses": true + } + }, + { + "name": "time2", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 6 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "time1" + ] + } + ] +} diff --git a/parser/testdata/03593_funcs_on_empty_string/ast.json b/parser/testdata/03593_funcs_on_empty_string/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03593_funcs_on_empty_string/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03593_remote_map_in/ast.json b/parser/testdata/03593_remote_map_in/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03593_remote_map_in/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03594_coalescing_merge_tree_segfault/ast.json b/parser/testdata/03594_coalescing_merge_tree_segfault/ast.json new file mode 100644 index 0000000000..aa2c8422fb --- /dev/null +++ b/parser/testdata/03594_coalescing_merge_tree_segfault/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03594_constraint_subqery_logical_error/ast.json b/parser/testdata/03594_constraint_subqery_logical_error/ast.json new file mode 100644 index 0000000000..f2d8d6e6f5 --- /dev/null +++ b/parser/testdata/03594_constraint_subqery_logical_error/ast.json @@ -0,0 +1,20 @@ +{ + "table": "check_constraint", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03594_funcs_on_empty_arguments/ast.json b/parser/testdata/03594_funcs_on_empty_arguments/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03594_funcs_on_empty_arguments/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03594_is_valid_ascii/ast.json b/parser/testdata/03594_is_valid_ascii/ast.json new file mode 100644 index 0000000000..459085e52c --- /dev/null +++ b/parser/testdata/03594_is_valid_ascii/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "type": "Integer", + "value": 1 + }, + "op": "=", + "right": { + "name": "isValidASCII", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "numbers" + } + } + } + ] + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03594_is_valid_ascii_errors/ast.json b/parser/testdata/03594_is_valid_ascii_errors/ast.json new file mode 100644 index 0000000000..1840a93255 --- /dev/null +++ b/parser/testdata/03594_is_valid_ascii_errors/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "isValidASCII", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + { + "type": "Integer", + "value": 3 + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03594_json_extract_decimal_precision/ast.json b/parser/testdata/03594_json_extract_decimal_precision/ast.json new file mode 100644 index 0000000000..c5bd019fab --- /dev/null +++ b/parser/testdata/03594_json_extract_decimal_precision/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_json_decimal_precision", + "tables": [ + { + "table": "test_json_decimal_precision" + } + ] +} diff --git a/parser/testdata/03594_like_perfect_affix_rewrite_pass/ast.json b/parser/testdata/03594_like_perfect_affix_rewrite_pass/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03594_like_perfect_affix_rewrite_pass/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03594_system_grants_parameters/ast.json b/parser/testdata/03594_system_grants_parameters/ast.json new file mode 100644 index 0000000000..6b99b0084e --- /dev/null +++ b/parser/testdata/03594_system_grants_parameters/ast.json @@ -0,0 +1,4 @@ +{ + "if_exists": true, + "user": "test_user_03593" +} diff --git a/parser/testdata/03595_alter_drop_column_comment_if_exists/ast.json b/parser/testdata/03595_alter_drop_column_comment_if_exists/ast.json new file mode 100644 index 0000000000..d584ef754c --- /dev/null +++ b/parser/testdata/03595_alter_drop_column_comment_if_exists/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_drop_comment", + "tables": [ + { + "table": "test_alter_drop_comment" + } + ] +} diff --git a/parser/testdata/03595_alter_if_exists_mixed_commands/ast.json b/parser/testdata/03595_alter_if_exists_mixed_commands/ast.json new file mode 100644 index 0000000000..9d331c5c1f --- /dev/null +++ b/parser/testdata/03595_alter_if_exists_mixed_commands/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_mixed", + "tables": [ + { + "table": "test_alter_mixed" + } + ] +} diff --git a/parser/testdata/03595_alter_if_exists_runtime_check/ast.json b/parser/testdata/03595_alter_if_exists_runtime_check/ast.json new file mode 100644 index 0000000000..8319781bdf --- /dev/null +++ b/parser/testdata/03595_alter_if_exists_runtime_check/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_if_exists", + "tables": [ + { + "table": "test_alter_if_exists" + } + ] +} diff --git a/parser/testdata/03595_analyzer_lateral_join/ast.json b/parser/testdata/03595_analyzer_lateral_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03595_analyzer_lateral_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03595_changes_timeseries_functions/ast.json b/parser/testdata/03595_changes_timeseries_functions/ast.json new file mode 100644 index 0000000000..261a005fd4 --- /dev/null +++ b/parser/testdata/03595_changes_timeseries_functions/ast.json @@ -0,0 +1,39 @@ +{ + "table": "ts_raw_data", + "columns": [ + { + "name": "timestamp", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ], + "has_parentheses": true + } + }, + { + "name": "value", + "type": { + "name": "Float64" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "timestamp" + ] + } + ] +} diff --git a/parser/testdata/03595_changes_timeseries_functions_various_arguments/ast.json b/parser/testdata/03595_changes_timeseries_functions_various_arguments/ast.json new file mode 100644 index 0000000000..582606eae5 --- /dev/null +++ b/parser/testdata/03595_changes_timeseries_functions_various_arguments/ast.json @@ -0,0 +1,46 @@ +{ + "table": "ts_data", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + }, + { + "name": "timestamps", + "type": { + "name": "Array", + "parameters": [ + { + "name": "DateTime" + } + ], + "has_parentheses": true + } + }, + { + "name": "values", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Float64" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03595_convert_any_join_to_semi_or_anti/ast.json b/parser/testdata/03595_convert_any_join_to_semi_or_anti/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03595_convert_any_join_to_semi_or_anti/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03595_equality_deletes_simple/ast.json b/parser/testdata/03595_equality_deletes_simple/ast.json new file mode 100644 index 0000000000..2b2805b91a --- /dev/null +++ b/parser/testdata/03595_equality_deletes_simple/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "parts": [ + "id" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "icebergS3", + "arguments": [ + { + "parts": [ + "s3_conn" + ] + }, + { + "left": { + "parts": [ + "filename" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "deletes_db/eq_deletes_table" + } + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03595_exists_as_scalar_subquery/ast.json b/parser/testdata/03595_exists_as_scalar_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03595_exists_as_scalar_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03595_extract_url_parameters/ast.json b/parser/testdata/03595_extract_url_parameters/ast.json new file mode 100644 index 0000000000..baa1b5a282 --- /dev/null +++ b/parser/testdata/03595_extract_url_parameters/ast.json @@ -0,0 +1,40 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sum", + "arguments": [ + { + "name": "cityHash64", + "arguments": [ + { + "name": "extractURLParameters", + "arguments": [ + { + "parts": [ + "URL" + ] + } + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "test", + "table": "hits" + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03595_funcs_on_zero/ast.json b/parser/testdata/03595_funcs_on_zero/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03595_funcs_on_zero/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03595_parallel_replicas_join_remote/ast.json b/parser/testdata/03595_parallel_replicas_join_remote/ast.json new file mode 100644 index 0000000000..5941142a5a --- /dev/null +++ b/parser/testdata/03595_parallel_replicas_join_remote/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_join_remote_l", + "tables": [ + { + "table": "test_join_remote_l" + } + ] +} diff --git a/parser/testdata/03595_pread_threadpool_direct_io/ast.json b/parser/testdata/03595_pread_threadpool_direct_io/ast.json new file mode 100644 index 0000000000..7efbb519e1 --- /dev/null +++ b/parser/testdata/03595_pread_threadpool_direct_io/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "min_bytes_to_use_direct_io", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03595_set_query_no_eq_set_to_one/ast.json b/parser/testdata/03595_set_query_no_eq_set_to_one/ast.json new file mode 100644 index 0000000000..bf09dc68bd --- /dev/null +++ b/parser/testdata/03595_set_query_no_eq_set_to_one/ast.json @@ -0,0 +1,61 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "name" + ] + }, + { + "parts": [ + "value" + ] + }, + { + "parts": [ + "changed" + ] + }, + { + "parts": [ + "default" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "settings" + } + } + } + ] + }, + "where": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "force_index_by_date" + } + }, + "settings": [ + { + "name": "force_index_by_date", + "value": { + "type": "Boolean", + "value": true + } + } + ] + } + ] +} diff --git a/parser/testdata/03596_alter_update_column_with_subcolumn_used_in_materialized_expression/ast.json b/parser/testdata/03596_alter_update_column_with_subcolumn_used_in_materialized_expression/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03596_alter_update_column_with_subcolumn_used_in_materialized_expression/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03596_parquet_prewhere_page_skip_bug/ast.json b/parser/testdata/03596_parquet_prewhere_page_skip_bug/ast.json new file mode 100644 index 0000000000..8c542514b6 --- /dev/null +++ b/parser/testdata/03596_parquet_prewhere_page_skip_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "output_format_parquet_use_custom_encoder", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03597_alter_column_with_subcolumn_in_key/ast.json b/parser/testdata/03597_alter_column_with_subcolumn_in_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03597_alter_column_with_subcolumn_in_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03598_json_enum_default_value_in_typed_path/ast.json b/parser/testdata/03598_json_enum_default_value_in_typed_path/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03598_json_enum_default_value_in_typed_path/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03599_bad_date_and_datetimes_inference/ast.json b/parser/testdata/03599_bad_date_and_datetimes_inference/ast.json new file mode 100644 index 0000000000..69b6ad06d4 --- /dev/null +++ b/parser/testdata/03599_bad_date_and_datetimes_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "date_time_input_format", + "value": { + "type": "String", + "value": "basic" + } + } + ] +} diff --git a/parser/testdata/03599_lightweight_delete_vertical_merge/ast.json b/parser/testdata/03599_lightweight_delete_vertical_merge/ast.json new file mode 100644 index 0000000000..a8b0879905 --- /dev/null +++ b/parser/testdata/03599_lightweight_delete_vertical_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_lwd_vertical", + "tables": [ + { + "table": "t_lwd_vertical" + } + ] +} diff --git a/parser/testdata/03600_analyzer_setting_bool/ast.json b/parser/testdata/03600_analyzer_setting_bool/ast.json new file mode 100644 index 0000000000..5258583ad8 --- /dev/null +++ b/parser/testdata/03600_analyzer_setting_bool/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "String", + "value": "1" + } + } + ] + } + ] +} diff --git a/parser/testdata/03600_replace_fixed_string_bug/ast.json b/parser/testdata/03600_replace_fixed_string_bug/ast.json new file mode 100644 index 0000000000..f6349398d9 --- /dev/null +++ b/parser/testdata/03600_replace_fixed_string_bug/ast.json @@ -0,0 +1,39 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "replace", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toFixedString", + "arguments": [ + { + "type": "String", + "value": "a" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + }, + { + "type": "String", + "value": "" + }, + { + "type": "String", + "value": "" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03601_histogram_quantile/ast.json b/parser/testdata/03601_histogram_quantile/ast.json new file mode 100644 index 0000000000..db43808597 --- /dev/null +++ b/parser/testdata/03601_histogram_quantile/ast.json @@ -0,0 +1,161 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "quantilePrometheusHistogram", + "parameters": [ + { + "type": "Float", + "value": 0.9 + } + ], + "arguments": [ + { + "tuple": { + "parts": [ + "args" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "left": { + "tuple": { + "parts": [ + "args" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + }, + "op": "+", + "right": { + "parts": [ + "number" + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "arrayJoin", + "arguments": [ + { + "name": "arrayZip", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 0 + }, + { + "type": "Float", + "value": 0.5 + }, + { + "type": "Float", + "value": 1 + }, + { + "op": "+", + "operand": { + "type": "Float", + "value": "+Inf" + } + } + ] + }, + { + "type": "Array", + "value": [ + { + "type": "Float", + "value": 0 + }, + { + "type": "Float", + "value": 10 + }, + { + "type": "Float", + "value": 11 + }, + { + "type": "Float", + "value": 12 + } + ] + } + ] + } + ], + "alias": "args" + }, + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "group_by": [ + { + "parts": [ + "number" + ] + } + ], + "order_by": [ + { + "expression": { + "parts": [ + "number" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03601_inconsistent_table_names/ast.json b/parser/testdata/03601_inconsistent_table_names/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03601_inconsistent_table_names/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03601_insert_squashing_remove_const/ast.json b/parser/testdata/03601_insert_squashing_remove_const/ast.json new file mode 100644 index 0000000000..0e0cf20922 --- /dev/null +++ b/parser/testdata/03601_insert_squashing_remove_const/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl_x", + "tables": [ + { + "table": "tbl_x" + } + ] +} diff --git a/parser/testdata/03601_json_from_string_accurate_cast_or_null/ast.json b/parser/testdata/03601_json_from_string_accurate_cast_or_null/ast.json new file mode 100644 index 0000000000..fcae94350e --- /dev/null +++ b/parser/testdata/03601_json_from_string_accurate_cast_or_null/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "accurateCastOrNull", + "arguments": [ + { + "type": "String", + "value": "{\"a\" : 42, \"a\" : 43}" + }, + { + "type": "String", + "value": "JSON" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03602_alter_update_nullable_json/ast.json b/parser/testdata/03602_alter_update_nullable_json/ast.json new file mode 100644 index 0000000000..f2ad7b1ef3 --- /dev/null +++ b/parser/testdata/03602_alter_update_nullable_json/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03602_embeddedrock_path/ast.json b/parser/testdata/03602_embeddedrock_path/ast.json new file mode 100644 index 0000000000..264df8224d --- /dev/null +++ b/parser/testdata/03602_embeddedrock_path/ast.json @@ -0,0 +1,50 @@ +{ + "table": "embeddedrock_exploit", + "columns": [ + { + "name": "key", + "type": { + "name": "String" + } + }, + { + "name": "v1", + "type": { + "name": "UInt32" + } + }, + { + "name": "v2", + "type": { + "name": "String" + } + }, + { + "name": "v3", + "type": { + "name": "Float32" + } + } + ], + "engine": { + "name": "EmbeddedRocksDB", + "parameters": [ + { + "type": "Integer", + "value": 150 + }, + { + "type": "String", + "value": "/tmp/exploit" + } + ], + "has_parentheses": true + }, + "primary_key": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/03602_query_system_tables_definer/ast.json b/parser/testdata/03602_query_system_tables_definer/ast.json new file mode 100644 index 0000000000..8fd545c6ee --- /dev/null +++ b/parser/testdata/03602_query_system_tables_definer/ast.json @@ -0,0 +1,53 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "count" + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "definer" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "tables" + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03603_ip_binary_operators/ast.json b/parser/testdata/03603_ip_binary_operators/ast.json new file mode 100644 index 0000000000..3017f1cb3b --- /dev/null +++ b/parser/testdata/03603_ip_binary_operators/ast.json @@ -0,0 +1,42 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "name": "now" + }, + "op": "+", + "right": { + "expr": { + "name": "toFixedString", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toNullable", + "arguments": [ + { + "type": "String", + "value": "1" + } + ] + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + "type": { + "name": "IPv6" + } + } + } + ] + } + ] +} diff --git a/parser/testdata/03603_reading_s3_cluster_all_nodes_unavailable/ast.json b/parser/testdata/03603_reading_s3_cluster_all_nodes_unavailable/ast.json new file mode 100644 index 0000000000..bcab958d57 --- /dev/null +++ b/parser/testdata/03603_reading_s3_cluster_all_nodes_unavailable/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "s3Cluster", + "arguments": [ + { + "type": "String", + "value": "test_cluster_multiple_nodes_all_unavailable" + }, + { + "type": "String", + "value": "http://localhost:11111/test/a.tsv" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03604_and_join_use_nulls_bug_83977/ast.json b/parser/testdata/03604_and_join_use_nulls_bug_83977/ast.json new file mode 100644 index 0000000000..18c724996b --- /dev/null +++ b/parser/testdata/03604_and_join_use_nulls_bug_83977/ast.json @@ -0,0 +1,27 @@ +{ + "table": "AA", + "columns": [ + { + "name": "key", + "type": { + "name": "String" + } + }, + { + "name": "value", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/03604_dynamic_key_in_join/ast.json b/parser/testdata/03604_dynamic_key_in_join/ast.json new file mode 100644 index 0000000000..9bf1c41c2a --- /dev/null +++ b/parser/testdata/03604_dynamic_key_in_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_dynamic_type_in_join_keys", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03604_functions_to_subcolumns_outer_join/ast.json b/parser/testdata/03604_functions_to_subcolumns_outer_join/ast.json new file mode 100644 index 0000000000..b5886be12b --- /dev/null +++ b/parser/testdata/03604_functions_to_subcolumns_outer_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users", + "tables": [ + { + "table": "users" + } + ] +} diff --git a/parser/testdata/03604_join_reorder_pinned_bug/ast.json b/parser/testdata/03604_join_reorder_pinned_bug/ast.json new file mode 100644 index 0000000000..08dd798c2d --- /dev/null +++ b/parser/testdata/03604_join_reorder_pinned_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_optimize_join_order_limit", + "value": { + "type": "Integer", + "value": 4 + } + } + ] +} diff --git a/parser/testdata/03604_key_condition_set_tuple_bug/ast.json b/parser/testdata/03604_key_condition_set_tuple_bug/ast.json new file mode 100644 index 0000000000..720b7ce7c4 --- /dev/null +++ b/parser/testdata/03604_key_condition_set_tuple_bug/ast.json @@ -0,0 +1,65 @@ +{ + "table": "t", + "columns": [ + { + "name": "a", + "type": { + "name": "String" + } + }, + { + "name": "b", + "type": { + "name": "String" + } + }, + { + "name": "c", + "type": { + "name": "String" + } + }, + { + "name": "d", + "type": { + "name": "String" + } + } + ], + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "a" + ] + }, + { + "parts": [ + "b" + ] + }, + { + "parts": [ + "c" + ] + }, + { + "parts": [ + "d" + ] + } + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 10 + } + } + ] +} diff --git a/parser/testdata/03604_parallel_with_query_lock/ast.json b/parser/testdata/03604_parallel_with_query_lock/ast.json new file mode 100644 index 0000000000..e0acb13fee --- /dev/null +++ b/parser/testdata/03604_parallel_with_query_lock/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03604_plan_step_description_limit/ast.json b/parser/testdata/03604_plan_step_description_limit/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03604_plan_step_description_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03604_string_with_size_stream/ast.json b/parser/testdata/03604_string_with_size_stream/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03604_string_with_size_stream/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03604_test_merge_tree_min_read_task_size_is_zero/ast.json b/parser/testdata/03604_test_merge_tree_min_read_task_size_is_zero/ast.json new file mode 100644 index 0000000000..7510f030c5 --- /dev/null +++ b/parser/testdata/03604_test_merge_tree_min_read_task_size_is_zero/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03604_test", + "tables": [ + { + "table": "03604_test" + } + ] +} diff --git a/parser/testdata/03604_to_date_casts/ast.json b/parser/testdata/03604_to_date_casts/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03604_to_date_casts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03605_dynamic_to_nullable_low_cardinality_bug/ast.json b/parser/testdata/03605_dynamic_to_nullable_low_cardinality_bug/ast.json new file mode 100644 index 0000000000..a4a0beef17 --- /dev/null +++ b/parser/testdata/03605_dynamic_to_nullable_low_cardinality_bug/ast.json @@ -0,0 +1,25 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_experimental_dynamic_type", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_dynamic_type_in_join_keys", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03606_nullable_json_group_by/ast.json b/parser/testdata/03606_nullable_json_group_by/ast.json new file mode 100644 index 0000000000..18698bce27 --- /dev/null +++ b/parser/testdata/03606_nullable_json_group_by/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "{\"a\" : 42}" + }, + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "JSON" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ], + "group_by": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] +} diff --git a/parser/testdata/03610_disjunctions_pushdown_optimization/ast.json b/parser/testdata/03610_disjunctions_pushdown_optimization/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03610_disjunctions_pushdown_optimization/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03610_remote_queries_with_describe_compact_output/ast.json b/parser/testdata/03610_remote_queries_with_describe_compact_output/ast.json new file mode 100644 index 0000000000..3942f3c1a1 --- /dev/null +++ b/parser/testdata/03610_remote_queries_with_describe_compact_output/ast.json @@ -0,0 +1,41 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + { + "type": "String", + "value": "127.2" + }, + { + "parts": [ + "system", + "one" + ] + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "describe_compact_output", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03611_cte_deterministic/ast.json b/parser/testdata/03611_cte_deterministic/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03611_cte_deterministic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03611_null_safe_comparsion/ast.json b/parser/testdata/03611_null_safe_comparsion/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03611_null_safe_comparsion/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03611_point_in_polygon_key_condition_bug/ast.json b/parser/testdata/03611_point_in_polygon_key_condition_bug/ast.json new file mode 100644 index 0000000000..60a917ae1e --- /dev/null +++ b/parser/testdata/03611_point_in_polygon_key_condition_bug/ast.json @@ -0,0 +1,37 @@ +{ + "table": "p3", + "columns": [ + { + "name": "x", + "type": { + "name": "Int64" + } + }, + { + "name": "y", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "type": "Tuple", + "value": [ + { + "parts": [ + "x" + ] + }, + { + "parts": [ + "y" + ] + } + ] + } + ] +} diff --git a/parser/testdata/03611_pr_global_join/ast.json b/parser/testdata/03611_pr_global_join/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03611_pr_global_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03611_uniqExact_bug/ast.json b/parser/testdata/03611_uniqExact_bug/ast.json new file mode 100644 index 0000000000..eda7f43d87 --- /dev/null +++ b/parser/testdata/03611_uniqExact_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 4 + } + } + ] +} diff --git a/parser/testdata/03611_verify_exception_in_iceberg_iterator/ast.json b/parser/testdata/03611_verify_exception_in_iceberg_iterator/ast.json new file mode 100644 index 0000000000..455403c18f --- /dev/null +++ b/parser/testdata/03611_verify_exception_in_iceberg_iterator/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "icebergS3", + "arguments": [ + { + "type": "String", + "value": "http://localhost:11111/test/corrupted_avro_files_test/" + }, + { + "type": "String", + "value": "clickhouse" + }, + { + "type": "String", + "value": "clickhouse" + } + ] + } + } + } + ] + }, + "settings": [ + { + "name": "use_iceberg_metadata_files_cache", + "value": { + "type": "Boolean", + "value": false + } + } + ] + } + ] +} diff --git a/parser/testdata/03611_window_definition_parsing/ast.json b/parser/testdata/03611_window_definition_parsing/ast.json new file mode 100644 index 0000000000..c3a7e4b8ef --- /dev/null +++ b/parser/testdata/03611_window_definition_parsing/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "param_preceding_rows", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03612_explain_indexes_bugs/ast.json b/parser/testdata/03612_explain_indexes_bugs/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03612_explain_indexes_bugs/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03612_storage_cluster_dynamic_subcolumns/ast.json b/parser/testdata/03612_storage_cluster_dynamic_subcolumns/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03612_storage_cluster_dynamic_subcolumns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03613_empty_tuple_permute_with_limit/ast.json b/parser/testdata/03613_empty_tuple_permute_with_limit/ast.json new file mode 100644 index 0000000000..b6aed3e5aa --- /dev/null +++ b/parser/testdata/03613_empty_tuple_permute_with_limit/ast.json @@ -0,0 +1,66 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Tuple", + "value": [] + } + ] + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + }, + "settings": [ + { + "name": "allow_suspicious_types_in_order_by", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "use_variant_as_common_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03620_json_advanced_shared_data_seek_bug/ast.json b/parser/testdata/03620_json_advanced_shared_data_seek_bug/ast.json new file mode 100644 index 0000000000..a6557bf51f --- /dev/null +++ b/parser/testdata/03620_json_advanced_shared_data_seek_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_variant_as_common_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03622_generic_aggregate_functions__state_compatibility/ast.json b/parser/testdata/03622_generic_aggregate_functions__state_compatibility/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03622_generic_aggregate_functions__state_compatibility/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03622_ttl_infos_where/ast.json b/parser/testdata/03622_ttl_infos_where/ast.json new file mode 100644 index 0000000000..b5886be12b --- /dev/null +++ b/parser/testdata/03622_ttl_infos_where/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "users", + "tables": [ + { + "table": "users" + } + ] +} diff --git a/parser/testdata/03623_convert_any_join_to_semi_or_anti_2/ast.json b/parser/testdata/03623_convert_any_join_to_semi_or_anti_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03623_convert_any_join_to_semi_or_anti_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03623_datetime64_preepoch_fractional_precision/ast.json b/parser/testdata/03623_datetime64_preepoch_fractional_precision/ast.json new file mode 100644 index 0000000000..c41f746888 --- /dev/null +++ b/parser/testdata/03623_datetime64_preepoch_fractional_precision/ast.json @@ -0,0 +1,25 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "parseDateTime64BestEffort", + "arguments": [ + { + "type": "String", + "value": "1969-01-01 00:00:00.468" + }, + { + "type": "Integer", + "value": 3 + }, + { + "type": "String", + "value": "UTC" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03623_lazy_materialization_array_sizes_bug/ast.json b/parser/testdata/03623_lazy_materialization_array_sizes_bug/ast.json new file mode 100644 index 0000000000..2d09bf013c --- /dev/null +++ b/parser/testdata/03623_lazy_materialization_array_sizes_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_optimize_lazy_materialization", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03623_parquet_bool/ast.json b/parser/testdata/03623_parquet_bool/ast.json new file mode 100644 index 0000000000..c54d7ff6b5 --- /dev/null +++ b/parser/testdata/03623_parquet_bool/ast.json @@ -0,0 +1,36 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "03626_parquet_bool.parquet" + } + ] + }, + "select": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Boolean", + "value": true + }, + "alias": "x" + } + ], + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/03623_pr_join_with_group_by_subquery/ast.json b/parser/testdata/03623_pr_join_with_group_by_subquery/ast.json new file mode 100644 index 0000000000..788eb7b938 --- /dev/null +++ b/parser/testdata/03623_pr_join_with_group_by_subquery/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "users", + "tables": [ + { + "table": "users" + } + ], + "sync": true +} diff --git a/parser/testdata/03624_csv_empty_array_from_empty_string/ast.json b/parser/testdata/03624_csv_empty_array_from_empty_string/ast.json new file mode 100644 index 0000000000..3c351b7119 --- /dev/null +++ b/parser/testdata/03624_csv_empty_array_from_empty_string/ast.json @@ -0,0 +1,35 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "format", + "arguments": [ + { + "parts": [ + "CSV" + ] + }, + { + "type": "String", + "value": "c0 Array(Int)" + }, + { + "type": "String", + "value": "\"\"" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03624_parquet_row_number/ast.json b/parser/testdata/03624_parquet_row_number/ast.json new file mode 100644 index 0000000000..e3084a94b6 --- /dev/null +++ b/parser/testdata/03624_parquet_row_number/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "engine_file_truncate_on_insert", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03624_pr_lefl_right_joins_chain/ast.json b/parser/testdata/03624_pr_lefl_right_joins_chain/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/03624_pr_lefl_right_joins_chain/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/03624_resource_exhaustion_window_function/ast.json b/parser/testdata/03624_resource_exhaustion_window_function/ast.json new file mode 100644 index 0000000000..2ccb14bdb1 --- /dev/null +++ b/parser/testdata/03624_resource_exhaustion_window_function/ast.json @@ -0,0 +1,78 @@ +{ + "table": "table_test", + "columns": [ + { + "name": "c1", + "type": { + "name": "Int32" + } + }, + { + "name": "c2", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Int32" + } + ], + "has_parentheses": true + } + }, + { + "name": "c3", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "c4", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "Date32" + } + ], + "has_parentheses": true + } + }, + { + "name": "c5", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "ReplacingMergeTree" + }, + "order_by": [ + { + "parts": [ + "c1" + ] + } + ], + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + } + ] +} diff --git a/parser/testdata/03625_auto_statistics/ast.json b/parser/testdata/03625_auto_statistics/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03625_auto_statistics/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03625_auto_statistics_alter/ast.json b/parser/testdata/03625_auto_statistics_alter/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/03625_auto_statistics_alter/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03625_auto_statistics_alter_rmt/ast.json b/parser/testdata/03625_auto_statistics_alter_rmt/ast.json new file mode 100644 index 0000000000..8b4068aa4b --- /dev/null +++ b/parser/testdata/03625_auto_statistics_alter_rmt/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03625_auto_statistics_rmt/ast.json b/parser/testdata/03625_auto_statistics_rmt/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03625_auto_statistics_rmt/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03625_auto_statistics_validation/ast.json b/parser/testdata/03625_auto_statistics_validation/ast.json new file mode 100644 index 0000000000..71f1d0c4d1 --- /dev/null +++ b/parser/testdata/03625_auto_statistics_validation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_auto_statistics_validation", + "tables": [ + { + "table": "t_auto_statistics_validation" + } + ] +} diff --git a/parser/testdata/03625_case_without_condition_non_constant_branches/ast.json b/parser/testdata/03625_case_without_condition_non_constant_branches/ast.json new file mode 100644 index 0000000000..e6a4a74704 --- /dev/null +++ b/parser/testdata/03625_case_without_condition_non_constant_branches/ast.json @@ -0,0 +1,88 @@ +{ + "selects": [ + { + "columns": [ + { + "operand": { + "parts": [ + "number" + ] + }, + "whens": [ + { + "condition": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2 + } + }, + "op": "-", + "right": { + "type": "Integer", + "value": 4 + } + }, + "result": { + "type": "String", + "value": "Hello" + } + }, + { + "condition": { + "left": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 3 + } + }, + "op": "-", + "right": { + "type": "Integer", + "value": 6 + } + }, + "result": { + "type": "String", + "value": "world" + } + } + ], + "else": { + "type": "String", + "value": "" + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03625_prewhere-and-default-bug/ast.json b/parser/testdata/03625_prewhere-and-default-bug/ast.json new file mode 100644 index 0000000000..93f2378c77 --- /dev/null +++ b/parser/testdata/03625_prewhere-and-default-bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab", + "tables": [ + { + "table": "tab" + } + ] +} diff --git a/parser/testdata/03625_upper_lower_utf8_different_number_of_code_points/ast.json b/parser/testdata/03625_upper_lower_utf8_different_number_of_code_points/ast.json new file mode 100644 index 0000000000..fb18f05d0f --- /dev/null +++ b/parser/testdata/03625_upper_lower_utf8_different_number_of_code_points/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "upperUTF8", + "arguments": [ + { + "type": "String", + "value": "ff" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03626_case_function_with_dynamic_argument/ast.json b/parser/testdata/03626_case_function_with_dynamic_argument/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03626_case_function_with_dynamic_argument/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03627_non_constant_replacement_in_replace_regexp/ast.json b/parser/testdata/03627_non_constant_replacement_in_replace_regexp/ast.json new file mode 100644 index 0000000000..232c245a5d --- /dev/null +++ b/parser/testdata/03627_non_constant_replacement_in_replace_regexp/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "replaceRegexpAll", + "arguments": [ + { + "type": "String", + "value": "1 2 3 123 5 100" + }, + { + "type": "String", + "value": "\\d+" + }, + { + "condition": { + "left": { + "parts": [ + "number" + ] + }, + "op": "%", + "right": { + "type": "Integer", + "value": 2 + } + }, + "then": { + "name": "toString", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + }, + "else": { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "\\0" + }, + { + "parts": [ + "number" + ] + } + ] + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03628_named_tuple_element_in_order_by_key/ast.json b/parser/testdata/03628_named_tuple_element_in_order_by_key/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03628_named_tuple_element_in_order_by_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03628_parse_date_time_short_circuit/ast.json b/parser/testdata/03628_parse_date_time_short_circuit/ast.json new file mode 100644 index 0000000000..16fdbdb78f --- /dev/null +++ b/parser/testdata/03628_parse_date_time_short_circuit/ast.json @@ -0,0 +1,70 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "if", + "arguments": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "parseDateTime", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "" + } + ] + }, + { + "type": "String", + "value": "%d-%m-%Y" + } + ] + }, + { + "expr": { + "type": "String", + "value": "2020-01-01" + }, + "type": { + "name": "DateTime" + }, + "operator_syntax": true + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03628_subcolumns_of_columns_with_dot_in_name/ast.json b/parser/testdata/03628_subcolumns_of_columns_with_dot_in_name/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03628_subcolumns_of_columns_with_dot_in_name/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03629_duplicate_partition_keys_crash/ast.json b/parser/testdata/03629_duplicate_partition_keys_crash/ast.json new file mode 100644 index 0000000000..7811c3dd2f --- /dev/null +++ b/parser/testdata/03629_duplicate_partition_keys_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_duplicate_partition_keys", + "tables": [ + { + "table": "test_duplicate_partition_keys" + } + ] +} diff --git a/parser/testdata/03629_starts_endswith_caseinsensitive/ast.json b/parser/testdata/03629_starts_endswith_caseinsensitive/ast.json new file mode 100644 index 0000000000..dcbe3a519e --- /dev/null +++ b/parser/testdata/03629_starts_endswith_caseinsensitive/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- Test startsWithCaseInsensitive ASCII" + } + ] + } + ] +} diff --git a/parser/testdata/03629_storage_s3_disallow_index_alter/ast.json b/parser/testdata/03629_storage_s3_disallow_index_alter/ast.json new file mode 100644 index 0000000000..bff8332d66 --- /dev/null +++ b/parser/testdata/03629_storage_s3_disallow_index_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_03629", + "tables": [ + { + "table": "test_03629" + } + ] +} diff --git a/parser/testdata/03630_hash_join_max_block_size/ast.json b/parser/testdata/03630_hash_join_max_block_size/ast.json new file mode 100644 index 0000000000..03641ffdba --- /dev/null +++ b/parser/testdata/03630_hash_join_max_block_size/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "b_customers", + "tables": [ + { + "table": "b_customers" + } + ] +} diff --git a/parser/testdata/03630_parquet_bool_bug/ast.json b/parser/testdata/03630_parquet_bool_bug/ast.json new file mode 100644 index 0000000000..6bfb7288be --- /dev/null +++ b/parser/testdata/03630_parquet_bool_bug/ast.json @@ -0,0 +1,21 @@ +{ + "function": { + "name": "file", + "arguments": [ + { + "type": "String", + "value": "03630_parquet_bool_bug.parquet" + }, + { + "parts": [ + "Parquet" + ] + }, + { + "type": "String", + "value": "tags Array(Bool)" + } + ] + }, + "has_settings": true +} diff --git a/parser/testdata/03631_array_of_empty_tuples/ast.json b/parser/testdata/03631_array_of_empty_tuples/ast.json new file mode 100644 index 0000000000..c8e30145ca --- /dev/null +++ b/parser/testdata/03631_array_of_empty_tuples/ast.json @@ -0,0 +1,38 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Array", + "value": [ + { + "type": "Tuple", + "value": [] + }, + { + "type": "Tuple", + "value": [] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03631_select_replace_comprehensive/ast.json b/parser/testdata/03631_select_replace_comprehensive/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03631_select_replace_comprehensive/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03632_default_minmax_indices_alter/ast.json b/parser/testdata/03632_default_minmax_indices_alter/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03632_default_minmax_indices_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03632_insert_select_cte_bug/ast.json b/parser/testdata/03632_insert_select_cte_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03632_insert_select_cte_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03632_join_logical_assert_85403/ast.json b/parser/testdata/03632_join_logical_assert_85403/ast.json new file mode 100644 index 0000000000..3f26c0233f --- /dev/null +++ b/parser/testdata/03632_join_logical_assert_85403/ast.json @@ -0,0 +1,92 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + }, + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "y" + } + ] + } + ] + } + }, + "alias": "a" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "y" + } + ] + } + ] + } + }, + "alias": "b" + }, + "join": { + "type": "INNER", + "using": [ + { + "parts": [ + "y" + ] + } + ] + } + } + ] + }, + "where": { + "left": { + "name": "round", + "arguments": [ + {} + ] + }, + "op": "=", + "right": { + "parts": [ + "b", + "y" + ] + } + } + } + ] +} diff --git a/parser/testdata/03632_lowcard_join/ast.json b/parser/testdata/03632_lowcard_join/ast.json new file mode 100644 index 0000000000..807cfeab20 --- /dev/null +++ b/parser/testdata/03632_lowcard_join/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "allow_suspicious_low_cardinality_types", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03632_temporary_table_not_allowed_columns/ast.json b/parser/testdata/03632_temporary_table_not_allowed_columns/ast.json new file mode 100644 index 0000000000..d64a41e0d9 --- /dev/null +++ b/parser/testdata/03632_temporary_table_not_allowed_columns/ast.json @@ -0,0 +1,20 @@ +{ + "temporary": true, + "table": "test", + "columns": [ + { + "name": "_row_exists", + "type": { + "name": "UInt32" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03633_mv_squash_parallel_inserts/ast.json b/parser/testdata/03633_mv_squash_parallel_inserts/ast.json new file mode 100644 index 0000000000..a731cda38e --- /dev/null +++ b/parser/testdata/03633_mv_squash_parallel_inserts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03633_set_index_bulk_filtering/ast.json b/parser/testdata/03633_set_index_bulk_filtering/ast.json new file mode 100644 index 0000000000..0136fb0d5f --- /dev/null +++ b/parser/testdata/03633_set_index_bulk_filtering/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbulk", + "tables": [ + { + "table": "tbulk" + } + ] +} diff --git a/parser/testdata/03634_subcolumns_in_temporary_table_parallel_replicas/ast.json b/parser/testdata/03634_subcolumns_in_temporary_table_parallel_replicas/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03634_subcolumns_in_temporary_table_parallel_replicas/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03635_in_function_different_types_many_columns/ast.json b/parser/testdata/03635_in_function_different_types_many_columns/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03635_in_function_different_types_many_columns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03636_empty_projection_block/ast.json b/parser/testdata/03636_empty_projection_block/ast.json new file mode 100644 index 0000000000..da02db1ded --- /dev/null +++ b/parser/testdata/03636_empty_projection_block/ast.json @@ -0,0 +1,90 @@ +{ + "table": "post_state", + "columns": [ + { + "name": "ts", + "type": { + "name": "DateTime" + } + }, + { + "name": "id", + "type": { + "name": "Int64" + } + }, + { + "name": "state", + "type": { + "name": "Nullable", + "parameters": [ + { + "name": "UInt8" + } + ], + "has_parentheses": true + }, + "ttl": { + "left": { + "parts": [ + "ts" + ] + }, + "op": "+", + "right": { + "value": { + "type": "Integer", + "value": 1 + }, + "unit": "MONTH" + } + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ], + "ttl": { + "expression": { + "left": { + "parts": [ + "ts" + ] + }, + "op": "+", + "right": { + "name": "toIntervalSecond", + "arguments": [ + { + "type": "Integer", + "value": 0 + } + ] + } + } + }, + "settings": [ + { + "name": "index_granularity", + "value": { + "type": "Integer", + "value": 8192 + } + }, + { + "name": "deduplicate_merge_projection_mode", + "value": { + "type": "String", + "value": "rebuild" + } + } + ] +} diff --git a/parser/testdata/03636_index_analysis_with_session_tz/ast.json b/parser/testdata/03636_index_analysis_with_session_tz/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03636_index_analysis_with_session_tz/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03636_storage_alias_basic/ast.json b/parser/testdata/03636_storage_alias_basic/ast.json new file mode 100644 index 0000000000..9a6fef97b6 --- /dev/null +++ b/parser/testdata/03636_storage_alias_basic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "source_table", + "tables": [ + { + "table": "source_table" + } + ] +} diff --git a/parser/testdata/03636_storage_alias_syntax/ast.json b/parser/testdata/03636_storage_alias_syntax/ast.json new file mode 100644 index 0000000000..9a6fef97b6 --- /dev/null +++ b/parser/testdata/03636_storage_alias_syntax/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "source_table", + "tables": [ + { + "table": "source_table" + } + ] +} diff --git a/parser/testdata/03638_merge_max_dynamic_subcolumns_in_wide_part/ast.json b/parser/testdata/03638_merge_max_dynamic_subcolumns_in_wide_part/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03638_merge_max_dynamic_subcolumns_in_wide_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03639_hash_of_dynamic_column/ast.json b/parser/testdata/03639_hash_of_dynamic_column/ast.json new file mode 100644 index 0000000000..ff804b5239 --- /dev/null +++ b/parser/testdata/03639_hash_of_dynamic_column/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sipHash64", + "arguments": [ + { + "expr": { + "type": "Integer", + "value": 42 + }, + "type": { + "name": "Dynamic" + }, + "operator_syntax": true + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03639_hash_of_json_column/ast.json b/parser/testdata/03639_hash_of_json_column/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03639_hash_of_json_column/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03640_alter_table_rewrite_parts/ast.json b/parser/testdata/03640_alter_table_rewrite_parts/ast.json new file mode 100644 index 0000000000..932f82ec63 --- /dev/null +++ b/parser/testdata/03640_alter_table_rewrite_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_materialize", + "tables": [ + { + "table": "test_materialize" + } + ] +} diff --git a/parser/testdata/03640_load_marks_synchronously/ast.json b/parser/testdata/03640_load_marks_synchronously/ast.json new file mode 100644 index 0000000000..e812c98140 --- /dev/null +++ b/parser/testdata/03640_load_marks_synchronously/ast.json @@ -0,0 +1,31 @@ +{ + "table": "data", + "columns": [ + { + "name": "key", + "type": { + "name": "int" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ], + "settings": [ + { + "name": "prewarm_mark_cache", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03640_multiple_mutations_with_error_with_rewrite_parts/ast.json b/parser/testdata/03640_multiple_mutations_with_error_with_rewrite_parts/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03640_multiple_mutations_with_error_with_rewrite_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03640_multiple_mutations_with_rewrite_parts/ast.json b/parser/testdata/03640_multiple_mutations_with_rewrite_parts/ast.json new file mode 100644 index 0000000000..932f82ec63 --- /dev/null +++ b/parser/testdata/03640_multiple_mutations_with_rewrite_parts/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_materialize", + "tables": [ + { + "table": "test_materialize" + } + ] +} diff --git a/parser/testdata/03640_skip_indexes_data_types_with_or/ast.json b/parser/testdata/03640_skip_indexes_data_types_with_or/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03640_skip_indexes_data_types_with_or/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03640_skip_indexes_with_or/ast.json b/parser/testdata/03640_skip_indexes_with_or/ast.json new file mode 100644 index 0000000000..afcf98e204 --- /dev/null +++ b/parser/testdata/03640_skip_indexes_with_or/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03640_variant_array_null_map_subcolumn/ast.json b/parser/testdata/03640_variant_array_null_map_subcolumn/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03640_variant_array_null_map_subcolumn/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03641_analyzer_issue_85834/ast.json b/parser/testdata/03641_analyzer_issue_85834/ast.json new file mode 100644 index 0000000000..b8d9b0d0e2 --- /dev/null +++ b/parser/testdata/03641_analyzer_issue_85834/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_generic_events_all", + "tables": [ + { + "table": "test_generic_events_all" + } + ] +} diff --git a/parser/testdata/03641_group_by_injective_functoon_bad_arguments/ast.json b/parser/testdata/03641_group_by_injective_functoon_bad_arguments/ast.json new file mode 100644 index 0000000000..aef2755b47 --- /dev/null +++ b/parser/testdata/03641_group_by_injective_functoon_bad_arguments/ast.json @@ -0,0 +1,19 @@ +{ + "table": "test", + "columns": [ + { + "name": "json", + "type": { + "name": "JSON" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03641_json_array_of_float_and_bool/ast.json b/parser/testdata/03641_json_array_of_float_and_bool/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03641_json_array_of_float_and_bool/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03642_column_ttl_sparse/ast.json b/parser/testdata/03642_column_ttl_sparse/ast.json new file mode 100644 index 0000000000..df0468e354 --- /dev/null +++ b/parser/testdata/03642_column_ttl_sparse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ttl_sparse_repro", + "tables": [ + { + "table": "ttl_sparse_repro" + } + ] +} diff --git a/parser/testdata/03642_system_instrument_symbols/ast.json b/parser/testdata/03642_system_instrument_symbols/ast.json new file mode 100644 index 0000000000..d9d340af2b --- /dev/null +++ b/parser/testdata/03642_system_instrument_symbols/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_introspection_functions", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03643_paste_join_disable_filter_pushdown/ast.json b/parser/testdata/03643_paste_join_disable_filter_pushdown/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03643_paste_join_disable_filter_pushdown/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03644_join_order_mixed_comma_and_left/ast.json b/parser/testdata/03644_join_order_mixed_comma_and_left/ast.json new file mode 100644 index 0000000000..c61b4d59c0 --- /dev/null +++ b/parser/testdata/03644_join_order_mixed_comma_and_left/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "n1", + "tables": [ + { + "table": "n1" + } + ] +} diff --git a/parser/testdata/03644_min_level_for_wide_part/ast.json b/parser/testdata/03644_min_level_for_wide_part/ast.json new file mode 100644 index 0000000000..44521e2438 --- /dev/null +++ b/parser/testdata/03644_min_level_for_wide_part/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "alter_sync", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03644_object_storage_correlated_subqueries/ast.json b/parser/testdata/03644_object_storage_correlated_subqueries/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03644_object_storage_correlated_subqueries/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03644_rows_before_aggregation_in_order/ast.json b/parser/testdata/03644_rows_before_aggregation_in_order/ast.json new file mode 100644 index 0000000000..3dc2d1918d --- /dev/null +++ b/parser/testdata/03644_rows_before_aggregation_in_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03644_data", + "tables": [ + { + "table": "03644_data" + } + ] +} diff --git a/parser/testdata/03646_array_join_empty/ast.json b/parser/testdata/03646_array_join_empty/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03646_array_join_empty/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03647_morton_encode_empty_tuple/ast.json b/parser/testdata/03647_morton_encode_empty_tuple/ast.json new file mode 100644 index 0000000000..41ebc94ffa --- /dev/null +++ b/parser/testdata/03647_morton_encode_empty_tuple/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "mortonEncode", + "arguments": [ + { + "type": "Tuple", + "value": [] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03651_merge_tree_compact_read_string_size_subcolumn/ast.json b/parser/testdata/03651_merge_tree_compact_read_string_size_subcolumn/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03651_merge_tree_compact_read_string_size_subcolumn/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03651_positional_argument_agg_projection/ast.json b/parser/testdata/03651_positional_argument_agg_projection/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03651_positional_argument_agg_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03652_coalescing_merge_tree_fix_empty_tuple/ast.json b/parser/testdata/03652_coalescing_merge_tree_fix_empty_tuple/ast.json new file mode 100644 index 0000000000..aa2c8422fb --- /dev/null +++ b/parser/testdata/03652_coalescing_merge_tree_fix_empty_tuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03652_explain_input_header/ast.json b/parser/testdata/03652_explain_input_header/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03652_explain_input_header/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03652_generate_serial_id_non_constant_zookeeper/ast.json b/parser/testdata/03652_generate_serial_id_non_constant_zookeeper/ast.json new file mode 100644 index 0000000000..b7c85f926c --- /dev/null +++ b/parser/testdata/03652_generate_serial_id_non_constant_zookeeper/ast.json @@ -0,0 +1,108 @@ +{ + "selects": [ + { + "with": [ + { + "name": "key1", + "query": { + "left": { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_test1_" + } + }, + "op": "||", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "MOD", + "right": { + "type": "Integer", + "value": 3 + } + } + } + }, + { + "name": "key2", + "query": { + "left": { + "left": { + "name": "currentDatabase" + }, + "op": "||", + "right": { + "type": "String", + "value": "_test2_" + } + }, + "op": "||", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "DIV", + "right": { + "type": "Integer", + "value": 3 + } + } + } + } + ], + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "generateSerialID", + "arguments": [ + { + "parts": [ + "key1" + ] + } + ] + }, + { + "name": "generateSerialID", + "arguments": [ + { + "parts": [ + "key2" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03652_join_using_legacy_step/ast.json b/parser/testdata/03652_join_using_legacy_step/ast.json new file mode 100644 index 0000000000..fa31f82bf4 --- /dev/null +++ b/parser/testdata/03652_join_using_legacy_step/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_use_new_logical_join_step", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03653_keeper_histogram_metrics/ast.json b/parser/testdata/03653_keeper_histogram_metrics/ast.json new file mode 100644 index 0000000000..ea369d7036 --- /dev/null +++ b/parser/testdata/03653_keeper_histogram_metrics/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "left": { + "parts": [ + "value" + ] + }, + "op": "\u003e", + "right": { + "type": "Integer", + "value": 0 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "histogram_metrics" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "left": { + "parts": [ + "name" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "keeper_response_time_ms" + } + }, + "op": "AND", + "right": { + "left": { + "array": { + "parts": [ + "labels" + ] + }, + "index": { + "type": "String", + "value": "operation_type" + } + }, + "op": "=", + "right": { + "type": "String", + "value": "readonly" + } + } + }, + "op": "AND", + "right": { + "left": { + "array": { + "parts": [ + "labels" + ] + }, + "index": { + "type": "String", + "value": "le" + } + }, + "op": "=", + "right": { + "type": "String", + "value": "+Inf" + } + } + } + } + ] +} diff --git a/parser/testdata/03653_updating_minmax_idx_after_mutation/ast.json b/parser/testdata/03653_updating_minmax_idx_after_mutation/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03653_updating_minmax_idx_after_mutation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03654_case_non_constant_null/ast.json b/parser/testdata/03654_case_non_constant_null/ast.json new file mode 100644 index 0000000000..a17c7c5e52 --- /dev/null +++ b/parser/testdata/03654_case_non_constant_null/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test1", + "tables": [ + { + "table": "test1" + } + ] +} diff --git a/parser/testdata/03654_grouping_sets_any_min_max/ast.json b/parser/testdata/03654_grouping_sets_any_min_max/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03654_grouping_sets_any_min_max/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03655_keeper_map_alter_comment/ast.json b/parser/testdata/03655_keeper_map_alter_comment/ast.json new file mode 100644 index 0000000000..225f67a380 --- /dev/null +++ b/parser/testdata/03655_keeper_map_alter_comment/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "distributed_ddl_output_mode", + "value": { + "type": "String", + "value": "none" + } + } + ] +} diff --git a/parser/testdata/03655_system_databases_is_external/ast.json b/parser/testdata/03655_system_databases_is_external/ast.json new file mode 100644 index 0000000000..0eb1f4c891 --- /dev/null +++ b/parser/testdata/03655_system_databases_is_external/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_deprecated_database_ordinary", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03656_nan_comparison/ast.json b/parser/testdata/03656_nan_comparison/ast.json new file mode 100644 index 0000000000..2950a5d469 --- /dev/null +++ b/parser/testdata/03656_nan_comparison/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t7", + "tables": [ + { + "table": "t7" + } + ] +} diff --git a/parser/testdata/03657_gby_overflow_any_sparse/ast.json b/parser/testdata/03657_gby_overflow_any_sparse/ast.json new file mode 100644 index 0000000000..c633e32347 --- /dev/null +++ b/parser/testdata/03657_gby_overflow_any_sparse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "03657_gby_overflow", + "tables": [ + { + "table": "03657_gby_overflow" + } + ] +} diff --git a/parser/testdata/03657_hash_vs_full_sorting_merge_join/ast.json b/parser/testdata/03657_hash_vs_full_sorting_merge_join/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03657_hash_vs_full_sorting_merge_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03657_merge_tree_disk_support_transaction/ast.json b/parser/testdata/03657_merge_tree_disk_support_transaction/ast.json new file mode 100644 index 0000000000..d2e97024a4 --- /dev/null +++ b/parser/testdata/03657_merge_tree_disk_support_transaction/ast.json @@ -0,0 +1,22 @@ +{ + "or_replace": true, + "table": "t", + "columns": [ + { + "name": "x", + "type": { + "name": "INT" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "x" + ] + } + ] +} diff --git a/parser/testdata/03657_rollup_constant/ast.json b/parser/testdata/03657_rollup_constant/ast.json new file mode 100644 index 0000000000..de8469d78e --- /dev/null +++ b/parser/testdata/03657_rollup_constant/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "my_first_table", + "tables": [ + { + "table": "my_first_table" + } + ] +} diff --git a/parser/testdata/03658_joined_block_split_single_row_bytes/ast.json b/parser/testdata/03658_joined_block_split_single_row_bytes/ast.json new file mode 100644 index 0000000000..082f9840bb --- /dev/null +++ b/parser/testdata/03658_joined_block_split_single_row_bytes/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_lazy_columns_replication", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03660_udf_subquery/ast.json b/parser/testdata/03660_udf_subquery/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03660_udf_subquery/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03663_parameterized_views_formatting_of_substitutions_excessive_backticks/ast.json b/parser/testdata/03663_parameterized_views_formatting_of_substitutions_excessive_backticks/ast.json new file mode 100644 index 0000000000..f51968454d --- /dev/null +++ b/parser/testdata/03663_parameterized_views_formatting_of_substitutions_excessive_backticks/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "audit_size_column", + "tables": [ + { + "table": "audit_size_column" + } + ] +} diff --git a/parser/testdata/03664_parameterized_view_restart/ast.json b/parser/testdata/03664_parameterized_view_restart/ast.json new file mode 100644 index 0000000000..6cb517ebf8 --- /dev/null +++ b/parser/testdata/03664_parameterized_view_restart/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "view_order_attribution", + "tables": [ + { + "table": "view_order_attribution" + } + ] +} diff --git a/parser/testdata/03666_count_matches_complexity/ast.json b/parser/testdata/03666_count_matches_complexity/ast.json new file mode 100644 index 0000000000..ecba63f95b --- /dev/null +++ b/parser/testdata/03666_count_matches_complexity/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countMatches", + "arguments": [ + { + "name": "repeat", + "arguments": [ + { + "type": "String", + "value": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000" + }, + { + "type": "Integer", + "value": 1000000 + } + ] + }, + { + "type": "String", + "value": "a" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03667_accurate_cast_datetime_overflow/ast.json b/parser/testdata/03667_accurate_cast_datetime_overflow/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03667_accurate_cast_datetime_overflow/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03667_drop_inner_table_size_limits/ast.json b/parser/testdata/03667_drop_inner_table_size_limits/ast.json new file mode 100644 index 0000000000..a1882fe02c --- /dev/null +++ b/parser/testdata/03667_drop_inner_table_size_limits/ast.json @@ -0,0 +1,21 @@ +{ + "table": "t", + "columns": [ + { + "name": "id", + "type": { + "name": "UInt64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "id" + ] + } + ] +} diff --git a/parser/testdata/03667_insert_columns_description/ast.json b/parser/testdata/03667_insert_columns_description/ast.json new file mode 100644 index 0000000000..1acf0d0abb --- /dev/null +++ b/parser/testdata/03667_insert_columns_description/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "-- remote table function columns description" + } + ] + } + ] +} diff --git a/parser/testdata/03667_pr_join_with_cross_join_on_left/ast.json b/parser/testdata/03667_pr_join_with_cross_join_on_left/ast.json new file mode 100644 index 0000000000..c61b4d59c0 --- /dev/null +++ b/parser/testdata/03667_pr_join_with_cross_join_on_left/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "n1", + "tables": [ + { + "table": "n1" + } + ] +} diff --git a/parser/testdata/03667_text_index_validation/ast.json b/parser/testdata/03667_text_index_validation/ast.json new file mode 100644 index 0000000000..d2a83b4b32 --- /dev/null +++ b/parser/testdata/03667_text_index_validation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "text_index_validation", + "tables": [ + { + "table": "text_index_validation" + } + ] +} diff --git a/parser/testdata/03668_shard_join_in_reverse_order/ast.json b/parser/testdata/03668_shard_join_in_reverse_order/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03668_shard_join_in_reverse_order/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03669_min_max_projection_with_reverse_order_key/ast.json b/parser/testdata/03669_min_max_projection_with_reverse_order_key/ast.json new file mode 100644 index 0000000000..0270cbbbb9 --- /dev/null +++ b/parser/testdata/03669_min_max_projection_with_reverse_order_key/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "desc_pk", + "tables": [ + { + "table": "desc_pk" + } + ] +} diff --git a/parser/testdata/03671_dict_in_subquery_in_index_analysis_context_expired/ast.json b/parser/testdata/03671_dict_in_subquery_in_index_analysis_context_expired/ast.json new file mode 100644 index 0000000000..0984b1b711 --- /dev/null +++ b/parser/testdata/03671_dict_in_subquery_in_index_analysis_context_expired/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict", + "tables": [ + { + "table": "dict" + } + ] +} diff --git a/parser/testdata/03671_pk_in_subquery_context_expired/ast.json b/parser/testdata/03671_pk_in_subquery_context_expired/ast.json new file mode 100644 index 0000000000..6310a478e6 --- /dev/null +++ b/parser/testdata/03671_pk_in_subquery_context_expired/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tbl", + "tables": [ + { + "table": "tbl" + } + ] +} diff --git a/parser/testdata/03672_columns_same_as_subcolumns/ast.json b/parser/testdata/03672_columns_same_as_subcolumns/ast.json new file mode 100644 index 0000000000..361f7578fb --- /dev/null +++ b/parser/testdata/03672_columns_same_as_subcolumns/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "opentelemetry_span_log_9997438610282160742", + "tables": [ + { + "table": "opentelemetry_span_log_9997438610282160742" + } + ] +} diff --git a/parser/testdata/03672_nested_array_nested_tuple/ast.json b/parser/testdata/03672_nested_array_nested_tuple/ast.json new file mode 100644 index 0000000000..91dfc3c859 --- /dev/null +++ b/parser/testdata/03672_nested_array_nested_tuple/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "nest", + "tables": [ + { + "table": "nest" + } + ] +} diff --git a/parser/testdata/03673_columns_description_cache/ast.json b/parser/testdata/03673_columns_description_cache/ast.json new file mode 100644 index 0000000000..39576159e9 --- /dev/null +++ b/parser/testdata/03673_columns_description_cache/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_mem", + "tables": [ + { + "table": "t_mem" + } + ] +} diff --git a/parser/testdata/03680_mergetree_shrink_const_from_prewhere/ast.json b/parser/testdata/03680_mergetree_shrink_const_from_prewhere/ast.json new file mode 100644 index 0000000000..210da2e99a --- /dev/null +++ b/parser/testdata/03680_mergetree_shrink_const_from_prewhere/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "const_node", + "tables": [ + { + "table": "const_node" + } + ] +} diff --git a/parser/testdata/03681_lazy_materialization_with_read_in_order/ast.json b/parser/testdata/03681_lazy_materialization_with_read_in_order/ast.json new file mode 100644 index 0000000000..2d09bf013c --- /dev/null +++ b/parser/testdata/03681_lazy_materialization_with_read_in_order/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "query_plan_optimize_lazy_materialization", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03699_reverse_utf8/ast.json b/parser/testdata/03699_reverse_utf8/ast.json new file mode 100644 index 0000000000..f254d78a34 --- /dev/null +++ b/parser/testdata/03699_reverse_utf8/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "reverseUTF8", + "arguments": [ + { + "type": "String", + "value": "привіт" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03700_vertical_format_pretty_print_json/ast.json b/parser/testdata/03700_vertical_format_pretty_print_json/ast.json new file mode 100644 index 0000000000..c437b22fd8 --- /dev/null +++ b/parser/testdata/03700_vertical_format_pretty_print_json/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_vertical_json", + "tables": [ + { + "table": "test_vertical_json" + } + ] +} diff --git a/parser/testdata/03701_analyzer_correlated_subquery_plan_reference/ast.json b/parser/testdata/03701_analyzer_correlated_subquery_plan_reference/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03701_analyzer_correlated_subquery_plan_reference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03701_column_ttl_fully_expired/ast.json b/parser/testdata/03701_column_ttl_fully_expired/ast.json new file mode 100644 index 0000000000..3aa1ae5b08 --- /dev/null +++ b/parser/testdata/03701_column_ttl_fully_expired/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "x", + "tables": [ + { + "table": "x" + } + ] +} diff --git a/parser/testdata/03701_distinct_but_no_group_by_projection_table_use_check/ast.json b/parser/testdata/03701_distinct_but_no_group_by_projection_table_use_check/ast.json new file mode 100644 index 0000000000..92f117fd4c --- /dev/null +++ b/parser/testdata/03701_distinct_but_no_group_by_projection_table_use_check/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Simple:" + } + ] + } + ] +} diff --git a/parser/testdata/03701_json_duplicate_path_insert_select/ast.json b/parser/testdata/03701_json_duplicate_path_insert_select/ast.json new file mode 100644 index 0000000000..526c781c36 --- /dev/null +++ b/parser/testdata/03701_json_duplicate_path_insert_select/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_json_duplicates", + "tables": [ + { + "table": "test_json_duplicates" + } + ] +} diff --git a/parser/testdata/03701_limit_by_in_order/ast.json b/parser/testdata/03701_limit_by_in_order/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03701_limit_by_in_order/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03701_optimize_inverse_dictionary_lookup_basic/ast.json b/parser/testdata/03701_optimize_inverse_dictionary_lookup_basic/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03701_optimize_inverse_dictionary_lookup_basic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03701_parallel_replicas_in_shard_scope/ast.json b/parser/testdata/03701_parallel_replicas_in_shard_scope/ast.json new file mode 100644 index 0000000000..9f6ee600ba --- /dev/null +++ b/parser/testdata/03701_parallel_replicas_in_shard_scope/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_shard_scope", + "tables": [ + { + "table": "test_shard_scope" + } + ] +} diff --git a/parser/testdata/03701_replicated_column_short_circuit_filter/ast.json b/parser/testdata/03701_replicated_column_short_circuit_filter/ast.json new file mode 100644 index 0000000000..68378a0c2b --- /dev/null +++ b/parser/testdata/03701_replicated_column_short_circuit_filter/ast.json @@ -0,0 +1,94 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "name": "intDiv", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "-", + "right": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 4 + } + ] + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ], + "alias": "x" + } + ] + }, + "where": { + "left": { + "parts": [ + "number" + ] + }, + "op": "!=", + "right": { + "type": "Integer", + "value": 2 + } + }, + "settings": [ + { + "name": "enable_lazy_columns_replication", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "query_plan_filter_push_down", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/03701_temporary_files_buffer_size/ast.json b/parser/testdata/03701_temporary_files_buffer_size/ast.json new file mode 100644 index 0000000000..30d5b33966 --- /dev/null +++ b/parser/testdata/03701_temporary_files_buffer_size/ast.json @@ -0,0 +1,15 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/03702_alter_codec_index/ast.json b/parser/testdata/03702_alter_codec_index/ast.json new file mode 100644 index 0000000000..b11fcbba25 --- /dev/null +++ b/parser/testdata/03702_alter_codec_index/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_codec_index", + "tables": [ + { + "table": "test_alter_codec_index" + } + ] +} diff --git a/parser/testdata/03702_alter_codec_pk/ast.json b/parser/testdata/03702_alter_codec_pk/ast.json new file mode 100644 index 0000000000..951a7632b7 --- /dev/null +++ b/parser/testdata/03702_alter_codec_pk/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_alter_codec_pk", + "tables": [ + { + "table": "test_alter_codec_pk" + } + ] +} diff --git a/parser/testdata/03702_alter_column_modify_secondary_index_general/ast.json b/parser/testdata/03702_alter_column_modify_secondary_index_general/ast.json new file mode 100644 index 0000000000..880ad3bef5 --- /dev/null +++ b/parser/testdata/03702_alter_column_modify_secondary_index_general/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "apply_mutations_on_fly", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03702_alter_column_update_and_delete_secondary_index_general/ast.json b/parser/testdata/03702_alter_column_update_and_delete_secondary_index_general/ast.json new file mode 100644 index 0000000000..880ad3bef5 --- /dev/null +++ b/parser/testdata/03702_alter_column_update_and_delete_secondary_index_general/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "apply_mutations_on_fly", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03702_encode_decode_memory_usage/ast.json b/parser/testdata/03702_encode_decode_memory_usage/ast.json new file mode 100644 index 0000000000..2868009d10 --- /dev/null +++ b/parser/testdata/03702_encode_decode_memory_usage/ast.json @@ -0,0 +1,73 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "base32Decode", + "arguments": [ + { + "parts": [ + "s" + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "base32Encode", + "arguments": [ + { + "name": "randomString", + "arguments": [ + { + "type": "Integer", + "value": 100 + } + ] + } + ], + "alias": "s" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100000 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03702_function_dict_get_keys_basic/ast.json b/parser/testdata/03702_function_dict_get_keys_basic/ast.json new file mode 100644 index 0000000000..d7e6692ec1 --- /dev/null +++ b/parser/testdata/03702_function_dict_get_keys_basic/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Negative" + } + ] + } + ] +} diff --git a/parser/testdata/03702_geometry_functions/ast.json b/parser/testdata/03702_geometry_functions/ast.json new file mode 100644 index 0000000000..18140d29ce --- /dev/null +++ b/parser/testdata/03702_geometry_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_variant_types", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03702_inject_random_orderby_doesnt_change_limit/ast.json b/parser/testdata/03702_inject_random_orderby_doesnt_change_limit/ast.json new file mode 100644 index 0000000000..c47893ac26 --- /dev/null +++ b/parser/testdata/03702_inject_random_orderby_doesnt_change_limit/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "inject_random_order_for_select_without_order_by", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03702_json_datetime_format_settings/ast.json b/parser/testdata/03702_json_datetime_format_settings/ast.json new file mode 100644 index 0000000000..98598cc58b --- /dev/null +++ b/parser/testdata/03702_json_datetime_format_settings/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_json_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03702_optimize_inverse_dictionary_lookup_composite_and_layouts/ast.json b/parser/testdata/03702_optimize_inverse_dictionary_lookup_composite_and_layouts/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03702_optimize_inverse_dictionary_lookup_composite_and_layouts/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03702_text_index_hint_basics/ast.json b/parser/testdata/03702_text_index_hint_basics/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03702_text_index_hint_basics/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03702_text_index_hint_events/ast.json b/parser/testdata/03702_text_index_hint_events/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03702_text_index_hint_events/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03702_text_index_hint_low_cardinality/ast.json b/parser/testdata/03702_text_index_hint_low_cardinality/ast.json new file mode 100644 index 0000000000..1a34001fe1 --- /dev/null +++ b/parser/testdata/03702_text_index_hint_low_cardinality/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_direct_read_lc", + "tables": [ + { + "table": "t_direct_read_lc" + } + ] +} diff --git a/parser/testdata/03703_function_dict_get_keys_large/ast.json b/parser/testdata/03703_function_dict_get_keys_large/ast.json new file mode 100644 index 0000000000..eafab4abcf --- /dev/null +++ b/parser/testdata/03703_function_dict_get_keys_large/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict_big", + "tables": [ + { + "table": "dict_big" + } + ] +} diff --git a/parser/testdata/03703_optimize_inverse_dictionary_lookup_dictget_family/ast.json b/parser/testdata/03703_optimize_inverse_dictionary_lookup_dictget_family/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03703_optimize_inverse_dictionary_lookup_dictget_family/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03703_statistics_low_cardinality/ast.json b/parser/testdata/03703_statistics_low_cardinality/ast.json new file mode 100644 index 0000000000..4c11131ef6 --- /dev/null +++ b/parser/testdata/03703_statistics_low_cardinality/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_statistics_optimize", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03704_default_empty_order_by/ast.json b/parser/testdata/03704_default_empty_order_by/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03704_default_empty_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03704_fractional_limit_with_ties/ast.json b/parser/testdata/03704_fractional_limit_with_ties/ast.json new file mode 100644 index 0000000000..520ecf6976 --- /dev/null +++ b/parser/testdata/03704_fractional_limit_with_ties/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "ties", + "tables": [ + { + "table": "ties" + } + ] +} diff --git a/parser/testdata/03704_function_dict_get_keys_cache_type/ast.json b/parser/testdata/03704_function_dict_get_keys_cache_type/ast.json new file mode 100644 index 0000000000..e3086d9031 --- /dev/null +++ b/parser/testdata/03704_function_dict_get_keys_cache_type/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Cache Persistence Only Within A Single Query" + } + ] + } + ] +} diff --git a/parser/testdata/03705_count_if_asterisk/ast.json b/parser/testdata/03705_count_if_asterisk/ast.json new file mode 100644 index 0000000000..6d65755ab7 --- /dev/null +++ b/parser/testdata/03705_count_if_asterisk/ast.json @@ -0,0 +1,43 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "countIf", + "arguments": [ + {}, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "\u003c", + "right": { + "type": "Integer", + "value": 5 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03705_fix_compression_T64_unaligned/ast.json b/parser/testdata/03705_fix_compression_T64_unaligned/ast.json new file mode 100644 index 0000000000..1d85e0e7c8 --- /dev/null +++ b/parser/testdata/03705_fix_compression_T64_unaligned/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "compression_estimate_example", + "tables": [ + { + "table": "compression_estimate_example" + } + ] +} diff --git a/parser/testdata/03705_function_dict_get_keys_multiple_dict_and_no_caching/ast.json b/parser/testdata/03705_function_dict_get_keys_multiple_dict_and_no_caching/ast.json new file mode 100644 index 0000000000..d57f0ecf66 --- /dev/null +++ b/parser/testdata/03705_function_dict_get_keys_multiple_dict_and_no_caching/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "dict_products", + "tables": [ + { + "table": "dict_products" + } + ] +} diff --git a/parser/testdata/03707_analyzer_convert_outer_any_to_inner/ast.json b/parser/testdata/03707_analyzer_convert_outer_any_to_inner/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03707_analyzer_convert_outer_any_to_inner/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03707_empty_parts_with_non_empty_projections_merge/ast.json b/parser/testdata/03707_empty_parts_with_non_empty_projections_merge/ast.json new file mode 100644 index 0000000000..a802c8a3e9 --- /dev/null +++ b/parser/testdata/03707_empty_parts_with_non_empty_projections_merge/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mt1", + "tables": [ + { + "table": "mt1" + } + ] +} diff --git a/parser/testdata/03707_function_array_remove/ast.json b/parser/testdata/03707_function_array_remove/ast.json new file mode 100644 index 0000000000..e5f081c15e --- /dev/null +++ b/parser/testdata/03707_function_array_remove/ast.json @@ -0,0 +1,21 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayRemove", + "arguments": [ + { + "type": "Array", + "value": null + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03707_statistics_cache/ast.json b/parser/testdata/03707_statistics_cache/ast.json new file mode 100644 index 0000000000..7ef37147e1 --- /dev/null +++ b/parser/testdata/03707_statistics_cache/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_statistics", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03708_analyzer_convert_any_outer_to_inner_2/ast.json b/parser/testdata/03708_analyzer_convert_any_outer_to_inner_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03708_analyzer_convert_any_outer_to_inner_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03708_exact_rows_before_limit_in/ast.json b/parser/testdata/03708_exact_rows_before_limit_in/ast.json new file mode 100644 index 0000000000..813a551bb1 --- /dev/null +++ b/parser/testdata/03708_exact_rows_before_limit_in/ast.json @@ -0,0 +1,86 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "c0" + } + ], + "where": { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + }, + "limit": { + "type": "Integer", + "value": 1 + } + } + ] + } + }, + "alias": "v0" + } + } + ] + }, + "group_by": [ + { + "parts": [ + "v0", + "c0" + ] + } + ], + "having": { + "left": { + "parts": [ + "v0", + "c0" + ] + }, + "op": "=", + "right": { + "type": "Integer", + "value": 1 + } + }, + "settings": [ + { + "name": "exact_rows_before_limit", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03708_flush_async_insert_queue_for_table/ast.json b/parser/testdata/03708_flush_async_insert_queue_for_table/ast.json new file mode 100644 index 0000000000..a55b0143d5 --- /dev/null +++ b/parser/testdata/03708_flush_async_insert_queue_for_table/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table with spaces", + "tables": [ + { + "table": "test_table with spaces" + } + ] +} diff --git a/parser/testdata/03708_join_or_to_right_any_bug/ast.json b/parser/testdata/03708_join_or_to_right_any_bug/ast.json new file mode 100644 index 0000000000..271647a4de --- /dev/null +++ b/parser/testdata/03708_join_or_to_right_any_bug/ast.json @@ -0,0 +1,149 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "a" + }, + { + "expr": { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + }, + "alias": "b" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "l" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "a" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "r" + }, + "join": { + "type": "INNER", + "on": { + "left": { + "left": { + "parts": [ + "l", + "a" + ] + }, + "op": "=", + "right": { + "parts": [ + "r", + "a" + ] + } + }, + "op": "OR", + "right": { + "left": { + "parts": [ + "l", + "b" + ] + }, + "op": "=", + "right": { + "parts": [ + "r", + "a" + ] + } + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "ALL" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03708_low_cardinality_aggregate_state_compatibility/ast.json b/parser/testdata/03708_low_cardinality_aggregate_state_compatibility/ast.json new file mode 100644 index 0000000000..cd6d5bd7c5 --- /dev/null +++ b/parser/testdata/03708_low_cardinality_aggregate_state_compatibility/ast.json @@ -0,0 +1,45 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "hex", + "arguments": [ + { + "name": "maxDistinctState", + "arguments": [ + { + "name": "tuple", + "arguments": [ + { + "expr": { + "type": "String", + "value": "str" + }, + "type": { + "name": "Variant", + "parameters": [ + { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03708_statistics_estimator_cast_type/ast.json b/parser/testdata/03708_statistics_estimator_cast_type/ast.json new file mode 100644 index 0000000000..d72072bb36 --- /dev/null +++ b/parser/testdata/03708_statistics_estimator_cast_type/ast.json @@ -0,0 +1,64 @@ +{ + "table": "dt64test", + "columns": [ + { + "name": "dt64_column", + "type": { + "name": "DateTime64", + "parameters": [ + { + "type": "Integer", + "value": 3 + } + ], + "has_parentheses": true + } + }, + { + "name": "dt_column", + "type": { + "name": "DateTime" + }, + "default": { + "name": "toDateTime", + "arguments": [ + { + "parts": [ + "dt64_column" + ] + } + ] + }, + "default_kind": "DEFAULT" + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "dt64_column" + ] + } + ], + "partition_by": { + "name": "toYYYYMM", + "arguments": [ + { + "parts": [ + "dt64_column" + ] + } + ] + }, + "settings": [ + { + "name": "auto_statistics_types", + "value": { + "type": "String", + "value": "tdigest" + } + } + ] +} diff --git a/parser/testdata/03709_anti_join_runtime_filters/ast.json b/parser/testdata/03709_anti_join_runtime_filters/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03709_anti_join_runtime_filters/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03709_coalescing_final/ast.json b/parser/testdata/03709_coalescing_final/ast.json new file mode 100644 index 0000000000..8a7244b844 --- /dev/null +++ b/parser/testdata/03709_coalescing_final/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_table", + "tables": [ + { + "table": "test_table" + } + ] +} diff --git a/parser/testdata/03709_parallel_replicas_right_join_with_distributed/ast.json b/parser/testdata/03709_parallel_replicas_right_join_with_distributed/ast.json new file mode 100644 index 0000000000..5e2ad5ef8c --- /dev/null +++ b/parser/testdata/03709_parallel_replicas_right_join_with_distributed/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "local_table_l", + "tables": [ + { + "table": "local_table_l" + } + ] +} diff --git a/parser/testdata/03709_replicated_columns_right_join/ast.json b/parser/testdata/03709_replicated_columns_right_join/ast.json new file mode 100644 index 0000000000..ff101eb4a9 --- /dev/null +++ b/parser/testdata/03709_replicated_columns_right_join/ast.json @@ -0,0 +1,149 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + }, + { + "type": "Integer", + "value": 10 + } + ] + }, + "alias": "left" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + }, + { + "parts": [ + "number" + ], + "alias": "x" + }, + { + "expr": { + "left": { + "type": "String", + "value": "str" + }, + "op": "||", + "right": { + "parts": [ + "number" + ] + } + }, + "alias": "str" + }, + { + "name": "arrayJoin", + "arguments": [ + { + "name": "range", + "arguments": [ + { + "parts": [ + "number" + ] + } + ] + } + ], + "alias": "i" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "right" + }, + "join": { + "type": "RIGHT", + "on": { + "left": { + "parts": [ + "left", + "number" + ] + }, + "op": "=", + "right": { + "parts": [ + "right", + "number" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "right", + "number" + ] + } + }, + { + "expression": { + "parts": [ + "i" + ] + } + } + ], + "settings": [ + { + "name": "enable_lazy_columns_replication", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03710_analyzer_limit_by_aggregate_validation/ast.json b/parser/testdata/03710_analyzer_limit_by_aggregate_validation/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03710_analyzer_limit_by_aggregate_validation/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03710_argAndMinMax/ast.json b/parser/testdata/03710_argAndMinMax/ast.json new file mode 100644 index 0000000000..2ff94132c3 --- /dev/null +++ b/parser/testdata/03710_argAndMinMax/ast.json @@ -0,0 +1,122 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "argAndMin", + "arguments": [ + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ] + }, + { + "name": "argAndMax", + "arguments": [ + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 1 + } + }, + { + "tuple": { + "parts": [ + "x" + ] + }, + "index": { + "type": "Integer", + "value": 2 + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Tuple", + "value": [ + { + "parts": [ + "number" + ] + }, + { + "left": { + "parts": [ + "number" + ] + }, + "op": "+", + "right": { + "type": "Integer", + "value": 1 + } + } + ] + }, + "alias": "x" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03710_array_join_in_map_bug/ast.json b/parser/testdata/03710_array_join_in_map_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03710_array_join_in_map_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03710_empty_tuple_lhs_in_function/ast.json b/parser/testdata/03710_empty_tuple_lhs_in_function/ast.json new file mode 100644 index 0000000000..b520527db3 --- /dev/null +++ b/parser/testdata/03710_empty_tuple_lhs_in_function/ast.json @@ -0,0 +1,23 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "name": "tuple" + }, + "type": { + "name": "Tuple()" + } + }, + "list": [ + { + "name": "tuple" + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03710_midpoint/ast.json b/parser/testdata/03710_midpoint/ast.json new file mode 100644 index 0000000000..b5b485893c --- /dev/null +++ b/parser/testdata/03710_midpoint/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "midpoint_test", + "tables": [ + { + "table": "midpoint_test" + } + ] +} diff --git a/parser/testdata/03710_pr_insert_into_mv_with_join/ast.json b/parser/testdata/03710_pr_insert_into_mv_with_join/ast.json new file mode 100644 index 0000000000..9c0ec412c7 --- /dev/null +++ b/parser/testdata/03710_pr_insert_into_mv_with_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv", + "tables": [ + { + "table": "mv" + } + ] +} diff --git a/parser/testdata/03710_pr_join_with_mv/ast.json b/parser/testdata/03710_pr_join_with_mv/ast.json new file mode 100644 index 0000000000..412be2bf09 --- /dev/null +++ b/parser/testdata/03710_pr_join_with_mv/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv2", + "tables": [ + { + "table": "mv2" + } + ] +} diff --git a/parser/testdata/03711_deduplication_blocks_part_log/ast.json b/parser/testdata/03711_deduplication_blocks_part_log/ast.json new file mode 100644 index 0000000000..fc6be17a93 --- /dev/null +++ b/parser/testdata/03711_deduplication_blocks_part_log/ast.json @@ -0,0 +1,5 @@ +{ + "if_exists": true, + "database": "03710_database", + "drop_database": true +} diff --git a/parser/testdata/03711_json_skip_invalid_fields/ast.json b/parser/testdata/03711_json_skip_invalid_fields/ast.json new file mode 100644 index 0000000000..7609cde396 --- /dev/null +++ b/parser/testdata/03711_json_skip_invalid_fields/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "Test 1: Skip invalid typed path - string cannot be coerced to Int64" + } + ] + } + ] +} diff --git a/parser/testdata/03711_merge_tree_deduplication_with_disk_not_support_writing_with_append/ast.json b/parser/testdata/03711_merge_tree_deduplication_with_disk_not_support_writing_with_append/ast.json new file mode 100644 index 0000000000..54f2ad988d --- /dev/null +++ b/parser/testdata/03711_merge_tree_deduplication_with_disk_not_support_writing_with_append/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "send_logs_level", + "value": { + "type": "String", + "value": "fatal" + } + } + ] +} diff --git a/parser/testdata/03711_top_k_by_dynamic_filter/ast.json b/parser/testdata/03711_top_k_by_dynamic_filter/ast.json new file mode 100644 index 0000000000..d7104b4726 --- /dev/null +++ b/parser/testdata/03711_top_k_by_dynamic_filter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab1", + "tables": [ + { + "table": "tab1" + } + ] +} diff --git a/parser/testdata/03711_top_k_by_skip_index/ast.json b/parser/testdata/03711_top_k_by_skip_index/ast.json new file mode 100644 index 0000000000..ccf3186557 --- /dev/null +++ b/parser/testdata/03711_top_k_by_skip_index/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03711_top_k_by_skip_index_dynamic/ast.json b/parser/testdata/03711_top_k_by_skip_index_dynamic/ast.json new file mode 100644 index 0000000000..d7104b4726 --- /dev/null +++ b/parser/testdata/03711_top_k_by_skip_index_dynamic/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "tab1", + "tables": [ + { + "table": "tab1" + } + ] +} diff --git a/parser/testdata/03712_json_advanced_shared_data_bug/ast.json b/parser/testdata/03712_json_advanced_shared_data_bug/ast.json new file mode 100644 index 0000000000..ebd8907619 --- /dev/null +++ b/parser/testdata/03712_json_advanced_shared_data_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "optimize_if_transform_strings_to_enum", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03713_optimize_inverse_dictionary_lookup_setting_rewrite_in_to_join/ast.json b/parser/testdata/03713_optimize_inverse_dictionary_lookup_setting_rewrite_in_to_join/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03713_optimize_inverse_dictionary_lookup_setting_rewrite_in_to_join/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03713_replicated_columns_in_external_data_bug/ast.json b/parser/testdata/03713_replicated_columns_in_external_data_bug/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03713_replicated_columns_in_external_data_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03714_base32_base58_short_string/ast.json b/parser/testdata/03714_base32_base58_short_string/ast.json new file mode 100644 index 0000000000..dc083aa3f9 --- /dev/null +++ b/parser/testdata/03714_base32_base58_short_string/ast.json @@ -0,0 +1,48 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "base32Encode", + "arguments": [ + { + "name": "randomString", + "arguments": [ + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 100 + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 1000 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03714_empty_tuple_reverse_function/ast.json b/parser/testdata/03714_empty_tuple_reverse_function/ast.json new file mode 100644 index 0000000000..ef6d2fbe1f --- /dev/null +++ b/parser/testdata/03714_empty_tuple_reverse_function/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "reverse", + "arguments": [ + { + "type": "Tuple", + "value": [] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03714_queries_escaping_1/ast.json b/parser/testdata/03714_queries_escaping_1/ast.json new file mode 100644 index 0000000000..108ae82cbe --- /dev/null +++ b/parser/testdata/03714_queries_escaping_1/ast.json @@ -0,0 +1,6 @@ +{ + "show_type": "COLUMNS", + "database": "a", + "from": "b", + "like": "a' or 1=1;--" +} diff --git a/parser/testdata/03714_queries_escaping_2/ast.json b/parser/testdata/03714_queries_escaping_2/ast.json new file mode 100644 index 0000000000..6c740bfdfb --- /dev/null +++ b/parser/testdata/03714_queries_escaping_2/ast.json @@ -0,0 +1,4 @@ +{ + "show_type": "FUNCTIONS", + "like": "a' or 1=1;--" +} diff --git a/parser/testdata/03715_empty_tuple_functions_conversion/ast.json b/parser/testdata/03715_empty_tuple_functions_conversion/ast.json new file mode 100644 index 0000000000..f82e35f1cd --- /dev/null +++ b/parser/testdata/03715_empty_tuple_functions_conversion/ast.json @@ -0,0 +1,17 @@ +{ + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Tuple", + "value": [] + }, + "type": { + "name": "SimpleAggregateFunction(min, Tuple())" + } + } + ] + } + ] +} diff --git a/parser/testdata/03716_anti_join_runtime_filters_2/ast.json b/parser/testdata/03716_anti_join_runtime_filters_2/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03716_anti_join_runtime_filters_2/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03716_bson_each_row_empty_tuple_column/ast.json b/parser/testdata/03716_bson_each_row_empty_tuple_column/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03716_bson_each_row_empty_tuple_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03716_join_duplicate_columns_89411/ast.json b/parser/testdata/03716_join_duplicate_columns_89411/ast.json new file mode 100644 index 0000000000..c3fa30bbc3 --- /dev/null +++ b/parser/testdata/03716_join_duplicate_columns_89411/ast.json @@ -0,0 +1,147 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "t1", + "k" + ] + }, + { + "parts": [ + "t2", + "k" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ], + "alias": "k" + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "t1" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "expr": { + "type": "Integer", + "value": 0 + }, + "type": { + "name": "UInt64" + } + }, + "alias": "k" + }, + { + "parts": [ + "k" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 3 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "t2" + }, + "join": { + "type": "INNER", + "on": { + "left": { + "parts": [ + "t1", + "k" + ] + }, + "op": "=", + "right": { + "parts": [ + "t2", + "k" + ] + } + } + } + } + ] + }, + "order_by": [ + { + "expression": { + "parts": [ + "t1", + "k" + ] + } + }, + { + "expression": { + "parts": [ + "t2", + "k" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03716_join_right_side_sorting/ast.json b/parser/testdata/03716_join_right_side_sorting/ast.json new file mode 100644 index 0000000000..5d3ba83b8e --- /dev/null +++ b/parser/testdata/03716_join_right_side_sorting/ast.json @@ -0,0 +1,152 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 1 + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 1 + }, + "alias": "x" + } + ] + } + ] + } + }, + "alias": "x" + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "Integer", + "value": 2 + }, + "alias": "y" + } + ] + } + ] + } + }, + "alias": "y" + }, + "join": { + "type": "LEFT", + "on": { + "left": { + "parts": [ + "x", + "x" + ] + }, + "op": "=", + "right": { + "parts": [ + "y", + "y" + ] + } + } + } + }, + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "parts": [ + "number" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 40 + } + ] + } + } + } + ] + } + } + ] + } + }, + "alias": "z" + }, + "join": { + "type": "INNER", + "on": { + "type": "Integer", + "value": 1 + } + } + } + ] + }, + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "hash" + } + }, + { + "name": "join_output_by_rowlist_perkey_rows_threshold", + "value": { + "type": "Integer", + "value": 80 + } + }, + { + "name": "allow_experimental_join_right_table_sorting", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "allow_experimental_parallel_reading_from_replicas", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03716_multiple_joins_using_top_level_identifier/ast.json b/parser/testdata/03716_multiple_joins_using_top_level_identifier/ast.json new file mode 100644 index 0000000000..9175db7a38 --- /dev/null +++ b/parser/testdata/03716_multiple_joins_using_top_level_identifier/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "analyzer_compatibility_join_using_top_level_identifier", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03716_text_index_drop_caches/ast.json b/parser/testdata/03716_text_index_drop_caches/ast.json new file mode 100644 index 0000000000..1bbe401f8f --- /dev/null +++ b/parser/testdata/03716_text_index_drop_caches/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_text_index_drop_caches", + "tables": [ + { + "table": "t_text_index_drop_caches" + } + ] +} diff --git a/parser/testdata/03716_topk_bad_data/ast.json b/parser/testdata/03716_topk_bad_data/ast.json new file mode 100644 index 0000000000..3dc78813d4 --- /dev/null +++ b/parser/testdata/03716_topk_bad_data/ast.json @@ -0,0 +1,27 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "finalizeAggregation", + "arguments": [ + { + "expr": { + "name": "unhex", + "arguments": [ + { + "type": "String", + "value": "012A0300000000000000030000000000000043434303000000000000004141410400000000000000414141410100800200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + ] + }, + "type": { + "name": "AggregateFunction(approx_top_k(3), Array(Array(String)))" + } + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03717_msgpack_empty_tuple_column/ast.json b/parser/testdata/03717_msgpack_empty_tuple_column/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03717_msgpack_empty_tuple_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03717_system_unicode_enums/ast.json b/parser/testdata/03717_system_unicode_enums/ast.json new file mode 100644 index 0000000000..ec5f60d2b6 --- /dev/null +++ b/parser/testdata/03717_system_unicode_enums/ast.json @@ -0,0 +1,76 @@ +{ + "selects": [ + { + "columns": [ + { + "parts": [ + "code_point" + ] + }, + { + "parts": [ + "code_point_value" + ] + }, + { + "parts": [ + "name" + ] + }, + { + "parts": [ + "block" + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "unicode" + } + } + } + ] + }, + "where": { + "left": { + "left": { + "parts": [ + "numeric_type" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "Digit" + } + }, + "op": "AND", + "right": { + "left": { + "parts": [ + "block" + ] + }, + "op": "=", + "right": { + "type": "String", + "value": "Ethiopic" + } + } + }, + "order_by": [ + { + "expression": { + "parts": [ + "code_point" + ] + } + } + ] + } + ] +} diff --git a/parser/testdata/03719_generic_hash_over_constant_and_non_constant/ast.json b/parser/testdata/03719_generic_hash_over_constant_and_non_constant/ast.json new file mode 100644 index 0000000000..cb5f4ed69b --- /dev/null +++ b/parser/testdata/03719_generic_hash_over_constant_and_non_constant/ast.json @@ -0,0 +1,54 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "sipHash64", + "arguments": [ + { + "parts": [ + "number" + ] + }, + { + "expr": { + "type": "Integer", + "value": 42 + }, + "type": { + "name": "Variant", + "parameters": [ + { + "name": "UInt64" + }, + { + "name": "String" + } + ], + "has_parentheses": true + }, + "operator_syntax": true + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03719_ntile_no_partition_by_check/ast.json b/parser/testdata/03719_ntile_no_partition_by_check/ast.json new file mode 100644 index 0000000000..ebedeb567d --- /dev/null +++ b/parser/testdata/03719_ntile_no_partition_by_check/ast.json @@ -0,0 +1,12 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "String", + "value": "With Partition By" + } + ] + } + ] +} diff --git a/parser/testdata/03720_const_limit_to_scalar/ast.json b/parser/testdata/03720_const_limit_to_scalar/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03720_const_limit_to_scalar/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03720_datetime64_bad_inference/ast.json b/parser/testdata/03720_datetime64_bad_inference/ast.json new file mode 100644 index 0000000000..69b6ad06d4 --- /dev/null +++ b/parser/testdata/03720_datetime64_bad_inference/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "date_time_input_format", + "value": { + "type": "String", + "value": "basic" + } + } + ] +} diff --git a/parser/testdata/03720_numbers_table_function_with_step_edge_cases/ast.json b/parser/testdata/03720_numbers_table_function_with_step_edge_cases/ast.json new file mode 100644 index 0000000000..19f5805825 --- /dev/null +++ b/parser/testdata/03720_numbers_table_function_with_step_edge_cases/ast.json @@ -0,0 +1,143 @@ +{ + "selects": [ + { + "distinct": true, + "columns": [ + { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 1 + } + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 10 + }, + { + "name": "sipHash64", + "arguments": [ + { + "name": "sipHash64", + "arguments": [ + { + "name": "sipHash64", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 1 + }, + { + "type": "Integer", + "value": 2 + }, + {} + ] + }, + { + "name": "sipHash64", + "arguments": [ + { + "name": "sipHash64", + "arguments": [ + { + "type": "Integer", + "value": 29103473 + }, + { + "name": "sipHash64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "String", + "value": "3" + }, + { + "name": "sipHash64", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ] + } + ] + } + } + } + ] + }, + "group_by": [ + { + "type": "Integer", + "value": 1 + }, + { + "name": "isNullable", + "arguments": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "with_totals": true, + "order_by": [ + { + "expression": { + "type": "Integer", + "value": 1 + } + } + ], + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] + } + ] +} diff --git a/parser/testdata/03721_aggregate_projection_actions_dag/ast.json b/parser/testdata/03721_aggregate_projection_actions_dag/ast.json new file mode 100644 index 0000000000..559928af6e --- /dev/null +++ b/parser/testdata/03721_aggregate_projection_actions_dag/ast.json @@ -0,0 +1,27 @@ +{ + "table": "test", + "columns": [ + { + "name": "key", + "type": { + "name": "UInt64" + } + }, + { + "name": "value", + "type": { + "name": "Int64" + } + } + ], + "engine": { + "name": "MergeTree" + }, + "order_by": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/03721_concurrent_right_join_flags_per_row_bug/ast.json b/parser/testdata/03721_concurrent_right_join_flags_per_row_bug/ast.json new file mode 100644 index 0000000000..3c3a42a843 --- /dev/null +++ b/parser/testdata/03721_concurrent_right_join_flags_per_row_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "join_algorithm", + "value": { + "type": "String", + "value": "parallel_hash" + } + } + ] +} diff --git a/parser/testdata/03721_insert_replicated_array_nested_sizes_check/ast.json b/parser/testdata/03721_insert_replicated_array_nested_sizes_check/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03721_insert_replicated_array_nested_sizes_check/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03721_join_residual_condition_bug_88635/ast.json b/parser/testdata/03721_join_residual_condition_bug_88635/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03721_join_residual_condition_bug_88635/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03721_right_join_logical_step/ast.json b/parser/testdata/03721_right_join_logical_step/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03721_right_join_logical_step/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03721_statistics_alter_type_bug/ast.json b/parser/testdata/03721_statistics_alter_type_bug/ast.json new file mode 100644 index 0000000000..a7892c088a --- /dev/null +++ b/parser/testdata/03721_statistics_alter_type_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "column_modify_test", + "tables": [ + { + "table": "column_modify_test" + } + ] +} diff --git a/parser/testdata/03722_function_trim_ltrim_rtrim_alias/ast.json b/parser/testdata/03722_function_trim_ltrim_rtrim_alias/ast.json new file mode 100644 index 0000000000..e3a4d32a17 --- /dev/null +++ b/parser/testdata/03722_function_trim_ltrim_rtrim_alias/ast.json @@ -0,0 +1,26 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "ltrim", + "arguments": [ + { + "type": "String", + "value": " leading " + } + ] + }, + { + "name": "trimLeft", + "arguments": [ + { + "type": "String", + "value": " leading " + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03722_json_compact_part_substreams_cache_bug/ast.json b/parser/testdata/03722_json_compact_part_substreams_cache_bug/ast.json new file mode 100644 index 0000000000..a6557bf51f --- /dev/null +++ b/parser/testdata/03722_json_compact_part_substreams_cache_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "use_variant_as_common_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03722_random_utf8_bug/ast.json b/parser/testdata/03722_random_utf8_bug/ast.json new file mode 100644 index 0000000000..c362327d5b --- /dev/null +++ b/parser/testdata/03722_random_utf8_bug/ast.json @@ -0,0 +1,56 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "randomStringUTF8", + "arguments": [ + { + "left": { + "left": { + "type": "Integer", + "value": 18446744073709551615 + }, + "op": "-", + "right": { + "type": "Integer", + "value": 1000 + } + }, + "op": "+", + "right": { + "left": { + "parts": [ + "number" + ] + }, + "op": "*", + "right": { + "type": "Integer", + "value": 2003 + } + } + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03723_incorrect_implicit_projection/ast.json b/parser/testdata/03723_incorrect_implicit_projection/ast.json new file mode 100644 index 0000000000..d78643e764 --- /dev/null +++ b/parser/testdata/03723_incorrect_implicit_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "prd_bid_events_simple_no_partition", + "tables": [ + { + "table": "prd_bid_events_simple_no_partition" + } + ] +} diff --git a/parser/testdata/03724_filter_assume_not_null_materialize/ast.json b/parser/testdata/03724_filter_assume_not_null_materialize/ast.json new file mode 100644 index 0000000000..ef8483927e --- /dev/null +++ b/parser/testdata/03724_filter_assume_not_null_materialize/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_not_comparable_types_in_comparison_functions", + "value": { + "type": "Integer", + "value": 0 + } + } + ] +} diff --git a/parser/testdata/03724_parallel_replicas_duplicate_requests/ast.json b/parser/testdata/03724_parallel_replicas_duplicate_requests/ast.json new file mode 100644 index 0000000000..57b6ead08e --- /dev/null +++ b/parser/testdata/03724_parallel_replicas_duplicate_requests/ast.json @@ -0,0 +1,606 @@ +{ + "settings": [ + { + "name": "max_insert_threads", + "value": { + "type": "Integer", + "value": 2 + } + }, + { + "name": "group_by_two_level_threshold", + "value": { + "type": "Integer", + "value": 94218 + } + }, + { + "name": "group_by_two_level_threshold_bytes", + "value": { + "type": "Integer", + "value": 12678590 + } + }, + { + "name": "distributed_aggregation_memory_efficient", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "fsync_metadata", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "output_format_parallel_formatting", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "input_format_parallel_parsing", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "min_chunk_bytes_for_parallel_parsing", + "value": { + "type": "Integer", + "value": 19408425 + } + }, + { + "name": "max_read_buffer_size", + "value": { + "type": "Integer", + "value": 740278 + } + }, + { + "name": "prefer_localhost_replica", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_block_size", + "value": { + "type": "Integer", + "value": 9777 + } + }, + { + "name": "max_joined_block_size_rows", + "value": { + "type": "Integer", + "value": 61084 + } + }, + { + "name": "joined_block_split_single_row", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "join_output_by_rowlist_perkey_rows_threshold", + "value": { + "type": "Integer", + "value": 982 + } + }, + { + "name": "max_threads", + "value": { + "type": "Integer", + "value": 3 + } + }, + { + "name": "optimize_append_index", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "use_hedged_requests", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "optimize_if_chain_to_multiif", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "optimize_if_transform_strings_to_enum", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "optimize_read_in_order", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "optimize_or_like_chain", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "optimize_substitute_columns", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "enable_multiple_prewhere_read_steps", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "read_in_order_two_level_merge_threshold", + "value": { + "type": "Integer", + "value": 72 + } + }, + { + "name": "optimize_aggregation_in_order", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "aggregation_in_order_max_block_bytes", + "value": { + "type": "Integer", + "value": 14627641 + } + }, + { + "name": "use_uncompressed_cache", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "min_bytes_to_use_direct_io", + "value": { + "type": "Integer", + "value": 7726182779 + } + }, + { + "name": "min_bytes_to_use_mmap_io", + "value": { + "type": "Integer", + "value": 10737418240 + } + }, + { + "name": "local_filesystem_read_method", + "value": { + "type": "String", + "value": "read" + } + }, + { + "name": "remote_filesystem_read_method", + "value": { + "type": "String", + "value": "threadpool" + } + }, + { + "name": "local_filesystem_read_prefetch", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "filesystem_cache_segments_batch_size", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "read_from_filesystem_cache_if_exists_otherwise_bypass_cache", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "throw_on_error_from_cache_on_write_operations", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "remote_filesystem_read_prefetch", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "allow_prefetched_read_pool_for_remote_filesystem", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "filesystem_prefetch_max_memory_usage", + "value": { + "type": "String", + "value": "128Mi" + } + }, + { + "name": "filesystem_prefetches_limit", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "filesystem_prefetch_min_bytes_for_single_read_task", + "value": { + "type": "String", + "value": "8Mi" + } + }, + { + "name": "filesystem_prefetch_step_marks", + "value": { + "type": "Integer", + "value": 50 + } + }, + { + "name": "filesystem_prefetch_step_bytes", + "value": { + "type": "String", + "value": "100Mi" + } + }, + { + "name": "compile_expressions", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "compile_aggregate_expressions", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "compile_sort_description", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "merge_tree_coarse_index_granularity", + "value": { + "type": "Integer", + "value": 16 + } + }, + { + "name": "optimize_distinct_in_order", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_bytes_before_remerge_sort", + "value": { + "type": "Integer", + "value": 615312931 + } + }, + { + "name": "min_compress_block_size", + "value": { + "type": "Integer", + "value": 396667 + } + }, + { + "name": "max_compress_block_size", + "value": { + "type": "Integer", + "value": 1465735 + } + }, + { + "name": "merge_tree_compact_parts_min_granules_to_multibuffer_read", + "value": { + "type": "Integer", + "value": 109 + } + }, + { + "name": "optimize_sorting_by_input_stream_properties", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "http_response_buffer_size", + "value": { + "type": "Integer", + "value": 7378705 + } + }, + { + "name": "http_wait_end_of_query", + "value": { + "type": "String", + "value": "True" + } + }, + { + "name": "enable_memory_bound_merging_of_aggregation_results", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "min_count_to_compile_expression", + "value": { + "type": "Integer", + "value": 3 + } + }, + { + "name": "min_count_to_compile_aggregate_expression", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "min_count_to_compile_sort_description", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "Africa/Khartoum" + } + }, + { + "name": "use_page_cache_for_disks_without_file_cache", + "value": { + "type": "String", + "value": "False" + } + }, + { + "name": "page_cache_inject_eviction", + "value": { + "type": "String", + "value": "False" + } + }, + { + "name": "merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability", + "value": { + "type": "Float", + "value": 0.69 + } + }, + { + "name": "prefer_external_sort_block_bytes", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "cross_join_min_rows_to_compress", + "value": { + "type": "Integer", + "value": 100000000 + } + }, + { + "name": "cross_join_min_bytes_to_compress", + "value": { + "type": "Integer", + "value": 100000000 + } + }, + { + "name": "min_external_table_block_size_bytes", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_parsing_threads", + "value": { + "type": "Integer", + "value": 10 + } + }, + { + "name": "optimize_functions_to_subcolumns", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "parallel_replicas_local_plan", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "query_plan_join_swap_table", + "value": { + "type": "String", + "value": "auto" + } + }, + { + "name": "enable_vertical_final", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "optimize_extract_common_expressions", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "use_async_executor_for_materialized_views", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "use_query_condition_cache", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "secondary_indices_enable_bulk_filtering", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "use_skip_indexes_if_final", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "use_skip_indexes_on_data_read", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "optimize_rewrite_like_perfect_affix", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "input_format_parquet_use_native_reader_v3", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "enable_lazy_columns_replication", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "allow_special_serialization_kinds_in_output_formats", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_bytes_before_external_sort", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_bytes_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_bytes_ratio_before_external_sort", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "max_bytes_ratio_before_external_group_by", + "value": { + "type": "Integer", + "value": 0 + } + }, + { + "name": "use_skip_indexes_if_final_exact_mode", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03724_to_date_time_or_null_negative_arg_bug/ast.json b/parser/testdata/03724_to_date_time_or_null_negative_arg_bug/ast.json new file mode 100644 index 0000000000..621f870d0b --- /dev/null +++ b/parser/testdata/03724_to_date_time_or_null_negative_arg_bug/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "session_timezone", + "value": { + "type": "String", + "value": "UTC" + } + } + ] +} diff --git a/parser/testdata/03725_empty_tuple_some_limit_with_ties_distinct/ast.json b/parser/testdata/03725_empty_tuple_some_limit_with_ties_distinct/ast.json new file mode 100644 index 0000000000..7b990e218c --- /dev/null +++ b/parser/testdata/03725_empty_tuple_some_limit_with_ties_distinct/ast.json @@ -0,0 +1,24 @@ +{ + "selects": [ + { + "columns": [ + { + "type": "Tuple", + "value": [] + } + ], + "order_by": [ + { + "expression": { + "type": "Integer", + "value": 1 + } + } + ], + "limit": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03725_json_dynamic_subcolumn_prewhere_zero_index_granularity_bytes/ast.json b/parser/testdata/03725_json_dynamic_subcolumn_prewhere_zero_index_granularity_bytes/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03725_json_dynamic_subcolumn_prewhere_zero_index_granularity_bytes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03725_variant_element_null_map_subcolumn_prewhere_zero_index_granularity_bytes/ast.json b/parser/testdata/03725_variant_element_null_map_subcolumn_prewhere_zero_index_granularity_bytes/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03725_variant_element_null_map_subcolumn_prewhere_zero_index_granularity_bytes/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03726_array_union_with_dynamic_argument/ast.json b/parser/testdata/03726_array_union_with_dynamic_argument/ast.json new file mode 100644 index 0000000000..401bd2064d --- /dev/null +++ b/parser/testdata/03726_array_union_with_dynamic_argument/ast.json @@ -0,0 +1,37 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayUnion", + "arguments": [ + { + "type": "Array", + "value": [ + { + "type": "Integer", + "value": 1 + } + ] + }, + { + "type": "Array", + "value": [ + { + "expr": { + "type": "String", + "value": "a" + }, + "type": { + "name": "Dynamic" + }, + "operator_syntax": true + } + ] + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03727_alter_with_localhost_remote/ast.json b/parser/testdata/03727_alter_with_localhost_remote/ast.json new file mode 100644 index 0000000000..6088af8fd1 --- /dev/null +++ b/parser/testdata/03727_alter_with_localhost_remote/ast.json @@ -0,0 +1,4 @@ +{ + "if_exists": true, + "user": "test_03727" +} diff --git a/parser/testdata/03727_block_structure_mismatch_after_filter_push_down/ast.json b/parser/testdata/03727_block_structure_mismatch_after_filter_push_down/ast.json new file mode 100644 index 0000000000..fa9fe55e87 --- /dev/null +++ b/parser/testdata/03727_block_structure_mismatch_after_filter_push_down/ast.json @@ -0,0 +1,102 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "name": "materialize", + "arguments": [ + { + "name": "toUInt256", + "arguments": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + ] + }, + { + "distinct": true, + "columns": [ + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "union_all": true, + "union_modes": [ + "UNION ALL" + ] + } + } + } + } + ] + }, + "group_by": [ + { + "name": "ignore", + "arguments": [ + { + "name": "lessOrEquals", + "arguments": [ + { + "type": "Integer", + "value": 18 + }, + { + "name": "isNotNull", + "arguments": [ + { + "name": "toLowCardinality", + "arguments": [ + { + "type": "Integer", + "value": 10 + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "Integer", + "value": 1 + } + ], + "having": { + "name": "ignore", + "arguments": [ + { + "name": "isZeroOrNull", + "arguments": [ + { + "type": "Integer", + "value": 5 + } + ] + } + ] + } + } + ] +} diff --git a/parser/testdata/03727_concat_with_separator_subquery/ast.json b/parser/testdata/03727_concat_with_separator_subquery/ast.json new file mode 100644 index 0000000000..35f30d28ba --- /dev/null +++ b/parser/testdata/03727_concat_with_separator_subquery/ast.json @@ -0,0 +1,52 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "concatWithSeparator", + "arguments": [ + { + "parts": [ + "c0" + ] + }, + { + "type": "String", + "value": "b" + }, + { + "type": "Integer", + "value": 1 + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "query": { + "selects": [ + { + "columns": [ + { + "expr": { + "type": "String", + "value": "a" + }, + "alias": "c0" + } + ] + } + ] + } + }, + "alias": "tx" + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03727_ipv4_parsing_bug/ast.json b/parser/testdata/03727_ipv4_parsing_bug/ast.json new file mode 100644 index 0000000000..a1dc9344fc --- /dev/null +++ b/parser/testdata/03727_ipv4_parsing_bug/ast.json @@ -0,0 +1,55 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "IPv6NumToString", + "arguments": [ + { + "name": "IPv6StringToNumOrDefault", + "arguments": [ + { + "parts": [ + "x" + ] + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "database": "system", + "table": "one" + } + } + } + ] + }, + "array_join": { + "columns": [ + { + "expr": { + "type": "Array", + "value": [ + { + "type": "String", + "value": "24" + }, + { + "type": "String", + "value": "5.123.234" + } + ] + }, + "alias": "x" + } + ] + } + } + ] +} diff --git a/parser/testdata/03727_rename_nested_and_modify_in_one_later/ast.json b/parser/testdata/03727_rename_nested_and_modify_in_one_later/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03727_rename_nested_and_modify_in_one_later/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03727_tolowcardinality_nullable_cast/ast.json b/parser/testdata/03727_tolowcardinality_nullable_cast/ast.json new file mode 100644 index 0000000000..22b3b2d47c --- /dev/null +++ b/parser/testdata/03727_tolowcardinality_nullable_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_tolowcardinality_nullable", + "tables": [ + { + "table": "test_tolowcardinality_nullable" + } + ] +} diff --git a/parser/testdata/03728_analyzer_identifier_resolution_join/ast.json b/parser/testdata/03728_analyzer_identifier_resolution_join/ast.json new file mode 100644 index 0000000000..321194e0c7 --- /dev/null +++ b/parser/testdata/03728_analyzer_identifier_resolution_join/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "address", + "tables": [ + { + "table": "address" + } + ] +} diff --git a/parser/testdata/03730_qbit_in_order_by_and_comparison_functions/ast.json b/parser/testdata/03730_qbit_in_order_by_and_comparison_functions/ast.json new file mode 100644 index 0000000000..575b74cb63 --- /dev/null +++ b/parser/testdata/03730_qbit_in_order_by_and_comparison_functions/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_qbit_type", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03731_null_parts_in_storage_snapshot_with_only_analyze/ast.json b/parser/testdata/03731_null_parts_in_storage_snapshot_with_only_analyze/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03731_null_parts_in_storage_snapshot_with_only_analyze/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03732_join_on_exists_bug/ast.json b/parser/testdata/03732_join_on_exists_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03732_join_on_exists_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_bug/ast.json b/parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_bug/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_compact_part_bug/ast.json b/parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_compact_part_bug/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03732_json_duplicated_path_in_dynamic_paths_and_shared_data_compact_part_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03733_anti_join_runtime_filter_3/ast.json b/parser/testdata/03733_anti_join_runtime_filter_3/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03733_anti_join_runtime_filter_3/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03733_base58_decode_bug/ast.json b/parser/testdata/03733_base58_decode_bug/ast.json new file mode 100644 index 0000000000..14eab8bcde --- /dev/null +++ b/parser/testdata/03733_base58_decode_bug/ast.json @@ -0,0 +1,44 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "base58Decode", + "arguments": [ + { + "name": "materialize", + "arguments": [ + { + "type": "String", + "value": "11111111111111" + } + ] + } + ] + } + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "numbers", + "arguments": [ + { + "type": "Integer", + "value": 100000 + } + ] + } + } + } + ] + }, + "format": { + "parts": [ + "Null" + ] + } + } + ] +} diff --git a/parser/testdata/03733_join_order_dp/ast.json b/parser/testdata/03733_join_order_dp/ast.json new file mode 100644 index 0000000000..b540a9a890 --- /dev/null +++ b/parser/testdata/03733_join_order_dp/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_experimental_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03733_summing_merge_tree_nested_low_cardinality/ast.json b/parser/testdata/03733_summing_merge_tree_nested_low_cardinality/ast.json new file mode 100644 index 0000000000..e16c059c92 --- /dev/null +++ b/parser/testdata/03733_summing_merge_tree_nested_low_cardinality/ast.json @@ -0,0 +1,60 @@ +{ + "table": "sums", + "columns": [ + { + "name": "key", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "sumOfSums", + "type": { + "name": "UInt64" + } + }, + { + "name": "sumsMap", + "type": { + "name": "Nested", + "parameters": [ + { + "name": "key", + "type": { + "name": "LowCardinality", + "parameters": [ + { + "name": "String" + } + ], + "has_parentheses": true + } + }, + { + "name": "sum", + "type": { + "name": "UInt64" + } + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "SummingMergeTree" + }, + "primary_key": [ + { + "parts": [ + "key" + ] + } + ] +} diff --git a/parser/testdata/03735_excessive_buffer_flush/ast.json b/parser/testdata/03735_excessive_buffer_flush/ast.json new file mode 100644 index 0000000000..fbd51fee8d --- /dev/null +++ b/parser/testdata/03735_excessive_buffer_flush/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "function_sleep_max_microseconds_per_block", + "value": { + "type": "Float", + "value": 5000000000 + } + } + ] +} diff --git a/parser/testdata/03740_alter_modify_query_dict_name_in_cse/ast.json b/parser/testdata/03740_alter_modify_query_dict_name_in_cse/ast.json new file mode 100644 index 0000000000..9c0ec412c7 --- /dev/null +++ b/parser/testdata/03740_alter_modify_query_dict_name_in_cse/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "mv", + "tables": [ + { + "table": "mv" + } + ] +} diff --git a/parser/testdata/03741_adaptive_write_buffer_initial_size_zero/ast.json b/parser/testdata/03741_adaptive_write_buffer_initial_size_zero/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03741_adaptive_write_buffer_initial_size_zero/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03741_dict_get_in_cte_with_no_arguments_old_analyzer/ast.json b/parser/testdata/03741_dict_get_in_cte_with_no_arguments_old_analyzer/ast.json new file mode 100644 index 0000000000..337119ab53 --- /dev/null +++ b/parser/testdata/03741_dict_get_in_cte_with_no_arguments_old_analyzer/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "name": "dictGet" + } + ] + } + ] + } + } + ], + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 0 + } + } + ] + } + ] +} diff --git a/parser/testdata/03741_insert_select_subquery_from_file/ast.json b/parser/testdata/03741_insert_select_subquery_from_file/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03741_insert_select_subquery_from_file/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03741_subcolumns_of_materialized_columns_in_mutation/ast.json b/parser/testdata/03741_subcolumns_of_materialized_columns_in_mutation/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03741_subcolumns_of_materialized_columns_in_mutation/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03742_array_filter_is_null_empty_array/ast.json b/parser/testdata/03742_array_filter_is_null_empty_array/ast.json new file mode 100644 index 0000000000..50c918fcaf --- /dev/null +++ b/parser/testdata/03742_array_filter_is_null_empty_array/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + { + "name": "arrayFilter", + "arguments": [ + { + "parameters": [ + "x" + ], + "body": { + "expr": { + "parts": [ + "x" + ] + }, + "not": true + } + }, + { + "type": "Array", + "value": null + } + ] + } + ] + } + ] +} diff --git a/parser/testdata/03742_array_join_empty_tuple/ast.json b/parser/testdata/03742_array_join_empty_tuple/ast.json new file mode 100644 index 0000000000..a604bda3a9 --- /dev/null +++ b/parser/testdata/03742_array_join_empty_tuple/ast.json @@ -0,0 +1,33 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Array", + "parameters": [ + { + "name": "Int" + } + ], + "has_parentheses": true + } + }, + { + "name": "c1", + "type": { + "name": "Tuple", + "has_parentheses": true + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03742_lazy_materialization_of_array_after_alter_add_column/ast.json b/parser/testdata/03742_lazy_materialization_of_array_after_alter_add_column/ast.json new file mode 100644 index 0000000000..d605033472 --- /dev/null +++ b/parser/testdata/03742_lazy_materialization_of_array_after_alter_add_column/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_lazy", + "tables": [ + { + "table": "test_lazy" + } + ] +} diff --git a/parser/testdata/03742_test_flattened_crash/ast.json b/parser/testdata/03742_test_flattened_crash/ast.json new file mode 100644 index 0000000000..50259b0ce9 --- /dev/null +++ b/parser/testdata/03742_test_flattened_crash/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_flatten_nested_crash", + "tables": [ + { + "table": "test_flatten_nested_crash" + } + ] +} diff --git a/parser/testdata/03743_fix_estimator_crash/ast.json b/parser/testdata/03743_fix_estimator_crash/ast.json new file mode 100644 index 0000000000..9d9eef8165 --- /dev/null +++ b/parser/testdata/03743_fix_estimator_crash/ast.json @@ -0,0 +1,20 @@ +{ + "table": "t0", + "columns": [ + { + "name": "c0", + "type": { + "name": "Int" + } + } + ], + "engine": { + "name": "MergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "name": "tuple" + } + ] +} diff --git a/parser/testdata/03743_summing_and_aggregating_merge_tree_with_json_merge/ast.json b/parser/testdata/03743_summing_and_aggregating_merge_tree_with_json_merge/ast.json new file mode 100644 index 0000000000..f2ad7b1ef3 --- /dev/null +++ b/parser/testdata/03743_summing_and_aggregating_merge_tree_with_json_merge/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03745_fix_dynamic_structure_in_compact_part/ast.json b/parser/testdata/03745_fix_dynamic_structure_in_compact_part/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03745_fix_dynamic_structure_in_compact_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03747_optimize_functions_to_subcolumns_columns_as_substreams/ast.json b/parser/testdata/03747_optimize_functions_to_subcolumns_columns_as_substreams/ast.json new file mode 100644 index 0000000000..81d18137f8 --- /dev/null +++ b/parser/testdata/03747_optimize_functions_to_subcolumns_columns_as_substreams/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_empty_array", + "tables": [ + { + "table": "test_empty_array" + } + ] +} diff --git a/parser/testdata/03748_coalescing_merge_tree_tuple_low_cardinality_and_dynamic/ast.json b/parser/testdata/03748_coalescing_merge_tree_tuple_low_cardinality_and_dynamic/ast.json new file mode 100644 index 0000000000..f2ad7b1ef3 --- /dev/null +++ b/parser/testdata/03748_coalescing_merge_tree_tuple_low_cardinality_and_dynamic/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "mutations_sync", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03748_default_minmax_indices_alter/ast.json b/parser/testdata/03748_default_minmax_indices_alter/ast.json new file mode 100644 index 0000000000..11f0fc9b0e --- /dev/null +++ b/parser/testdata/03748_default_minmax_indices_alter/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_implicit", + "tables": [ + { + "table": "t_implicit" + } + ] +} diff --git a/parser/testdata/03748_tuple_of_sparse_elements_bug/ast.json b/parser/testdata/03748_tuple_of_sparse_elements_bug/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03748_tuple_of_sparse_elements_bug/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03749_implicit_index_ephemeral_alias/ast.json b/parser/testdata/03749_implicit_index_ephemeral_alias/ast.json new file mode 100644 index 0000000000..3d6d9b1a4b --- /dev/null +++ b/parser/testdata/03749_implicit_index_ephemeral_alias/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test_string", + "tables": [ + { + "table": "test_string" + } + ] +} diff --git a/parser/testdata/03749_in_function_rewrite_lambda_lhs_non_const_rhs/ast.json b/parser/testdata/03749_in_function_rewrite_lambda_lhs_non_const_rhs/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03749_in_function_rewrite_lambda_lhs_non_const_rhs/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03749_materialized_view_not_supports_parallel_write/ast.json b/parser/testdata/03749_materialized_view_not_supports_parallel_write/ast.json new file mode 100644 index 0000000000..80909e3851 --- /dev/null +++ b/parser/testdata/03749_materialized_view_not_supports_parallel_write/ast.json @@ -0,0 +1,18 @@ +{ + "settings": [ + { + "name": "parallel_view_processing", + "value": { + "type": "Integer", + "value": 1 + } + }, + { + "name": "max_insert_threads", + "value": { + "type": "Integer", + "value": 2 + } + } + ] +} diff --git a/parser/testdata/03749_table_function_argument_asterisk/ast.json b/parser/testdata/03749_table_function_argument_asterisk/ast.json new file mode 100644 index 0000000000..47aa01cde8 --- /dev/null +++ b/parser/testdata/03749_table_function_argument_asterisk/ast.json @@ -0,0 +1,46 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "remote", + "arguments": [ + {}, + { + "type": "String", + "value": "127.{1,2}" + }, + { + "name": "view", + "arguments": [ + { + "query": { + "selects": [ + { + "columns": [ + { + "type": "Integer", + "value": 2 + } + ] + } + ] + } + } + ] + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03751_summing_coalescing_merge_tree_sparse_columns_in_header/ast.json b/parser/testdata/03751_summing_coalescing_merge_tree_sparse_columns_in_header/ast.json new file mode 100644 index 0000000000..aa2c8422fb --- /dev/null +++ b/parser/testdata/03751_summing_coalescing_merge_tree_sparse_columns_in_header/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "allow_suspicious_primary_key", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03752_constant_expression_with_untuple/ast.json b/parser/testdata/03752_constant_expression_with_untuple/ast.json new file mode 100644 index 0000000000..4521b356a1 --- /dev/null +++ b/parser/testdata/03752_constant_expression_with_untuple/ast.json @@ -0,0 +1,11 @@ +{ + "settings": [ + { + "name": "enable_analyzer", + "value": { + "type": "Integer", + "value": 1 + } + } + ] +} diff --git a/parser/testdata/03752_join_part/ast.json b/parser/testdata/03752_join_part/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03752_join_part/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03753_merge_selector_amm/ast.json b/parser/testdata/03753_merge_selector_amm/ast.json new file mode 100644 index 0000000000..6cc537c8c2 --- /dev/null +++ b/parser/testdata/03753_merge_selector_amm/ast.json @@ -0,0 +1,10 @@ +{ + "if_exists": true, + "table": "mt", + "tables": [ + { + "table": "mt" + } + ], + "sync": true +} diff --git a/parser/testdata/03753_replacing_empty_order_by/ast.json b/parser/testdata/03753_replacing_empty_order_by/ast.json new file mode 100644 index 0000000000..08902e5e72 --- /dev/null +++ b/parser/testdata/03753_replacing_empty_order_by/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t_empty_order_key", + "tables": [ + { + "table": "t_empty_order_key" + } + ] +} diff --git a/parser/testdata/03753_segfault_with_empty_callback/ast.json b/parser/testdata/03753_segfault_with_empty_callback/ast.json new file mode 100644 index 0000000000..a3296b2185 --- /dev/null +++ b/parser/testdata/03753_segfault_with_empty_callback/ast.json @@ -0,0 +1,3 @@ +{ + "command": "ENABLE FAILPOINT execute_query_calling_empty_set_result_func_on_exception" +} diff --git a/parser/testdata/03755_circular_dictionary/ast.json b/parser/testdata/03755_circular_dictionary/ast.json new file mode 100644 index 0000000000..0f6dde1322 --- /dev/null +++ b/parser/testdata/03755_circular_dictionary/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "filesystem_dict", + "tables": [ + { + "table": "filesystem_dict" + } + ] +} diff --git a/parser/testdata/03755_enable_sparse_nullable_consistently/ast.json b/parser/testdata/03755_enable_sparse_nullable_consistently/ast.json new file mode 100644 index 0000000000..51f74d1141 --- /dev/null +++ b/parser/testdata/03755_enable_sparse_nullable_consistently/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t", + "tables": [ + { + "table": "t" + } + ] +} diff --git a/parser/testdata/03755_final_prewhere_duplicate_columns/ast.json b/parser/testdata/03755_final_prewhere_duplicate_columns/ast.json new file mode 100644 index 0000000000..e6d0172caa --- /dev/null +++ b/parser/testdata/03755_final_prewhere_duplicate_columns/ast.json @@ -0,0 +1,22 @@ +{ + "table": "03755_final_prewhere_duplicate_columns", + "columns": [ + { + "name": "c0", + "type": { + "name": "UInt8" + } + } + ], + "engine": { + "name": "AggregatingMergeTree", + "has_parentheses": true + }, + "order_by": [ + { + "parts": [ + "c0" + ] + } + ] +} diff --git a/parser/testdata/03755_nested_recursive_cte/ast.json b/parser/testdata/03755_nested_recursive_cte/ast.json new file mode 100644 index 0000000000..e583842669 --- /dev/null +++ b/parser/testdata/03755_nested_recursive_cte/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t0", + "tables": [ + { + "table": "t0" + } + ] +} diff --git a/parser/testdata/03755_pr_join_with_view/ast.json b/parser/testdata/03755_pr_join_with_view/ast.json new file mode 100644 index 0000000000..2c3b819c3f --- /dev/null +++ b/parser/testdata/03755_pr_join_with_view/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "v", + "tables": [ + { + "table": "v" + } + ] +} diff --git a/parser/testdata/03756_capn_proto_message_size_limit/ast.json b/parser/testdata/03756_capn_proto_message_size_limit/ast.json new file mode 100644 index 0000000000..d362a5d7c1 --- /dev/null +++ b/parser/testdata/03756_capn_proto_message_size_limit/ast.json @@ -0,0 +1,22 @@ +{ + "table": "03756_capn_proto_message_size_limit", + "columns": [ + { + "name": "c0", + "type": { + "name": "Decimal32", + "parameters": [ + { + "type": "Integer", + "value": 8 + } + ], + "has_parentheses": true + } + } + ], + "engine": { + "name": "Memory", + "has_parentheses": true + } +} diff --git a/parser/testdata/03756_mongodb_secret_arguments/ast.json b/parser/testdata/03756_mongodb_secret_arguments/ast.json new file mode 100644 index 0000000000..b3a7ce6344 --- /dev/null +++ b/parser/testdata/03756_mongodb_secret_arguments/ast.json @@ -0,0 +1,30 @@ +{ + "selects": [ + { + "columns": [ + {} + ], + "from": { + "tables": [ + { + "table": { + "table": { + "name": "mongodb", + "arguments": [ + { + "parts": [ + "some_named_collection" + ] + }, + { + "name": "now" + } + ] + } + } + } + ] + } + } + ] +} diff --git a/parser/testdata/03757_optimize_skip_unused_shards_with_type_cast/ast.json b/parser/testdata/03757_optimize_skip_unused_shards_with_type_cast/ast.json new file mode 100644 index 0000000000..785d33a1e0 --- /dev/null +++ b/parser/testdata/03757_optimize_skip_unused_shards_with_type_cast/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "t1", + "tables": [ + { + "table": "t1" + } + ] +} diff --git a/parser/testdata/03758_positional_argument_agg_projection/ast.json b/parser/testdata/03758_positional_argument_agg_projection/ast.json new file mode 100644 index 0000000000..b71a45ce9a --- /dev/null +++ b/parser/testdata/03758_positional_argument_agg_projection/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "test", + "tables": [ + { + "table": "test" + } + ] +} diff --git a/parser/testdata/03759_marks_cache_events/ast.json b/parser/testdata/03759_marks_cache_events/ast.json new file mode 100644 index 0000000000..a4b7b2daf0 --- /dev/null +++ b/parser/testdata/03759_marks_cache_events/ast.json @@ -0,0 +1,9 @@ +{ + "if_exists": true, + "table": "data", + "tables": [ + { + "table": "data" + } + ] +}