mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add support for ANTLR inside clickhouse-test (#18319)
This commit is contained in:
parent
4e580f7b7c
commit
5fd6f260ac
@ -571,6 +571,8 @@ def main(args):
|
||||
Note: if you are using unbundled mode, you also have to specify -c option.")
|
||||
|
||||
build_flags = collect_build_flags(args.client)
|
||||
if args.antlr:
|
||||
build_flags.append('antlr')
|
||||
|
||||
if args.use_skip_list:
|
||||
tests_to_skip_from_list = collect_tests_to_skip(args.skip_list_path, build_flags)
|
||||
@ -884,6 +886,7 @@ if __name__ == '__main__':
|
||||
group=parser.add_mutually_exclusive_group(required=False)
|
||||
group.add_argument('--shard', action='store_true', default=None, dest='shard', help='Run sharding related tests (required to clickhouse-server listen 127.0.0.2 127.0.0.3)')
|
||||
group.add_argument('--no-shard', action='store_false', default=None, dest='shard', help='Do not run shard related tests')
|
||||
group.add_argument('--antlr', action='store_true', default=False, dest='antlr', help='Use new ANTLR parser in tests')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@ -963,6 +966,9 @@ if __name__ == '__main__':
|
||||
|
||||
os.environ['CLICKHOUSE_URL_PARAMS'] += get_additional_client_options_url(args)
|
||||
|
||||
if args.antlr:
|
||||
os.environ['CLICKHOUSE_CLIENT_OPT'] += ' --use_antlr_parser=1'
|
||||
|
||||
if args.extract_from_config is None:
|
||||
if os.access(args.binary + '-extract-from-config', os.X_OK):
|
||||
args.extract_from_config = args.binary + '-extract-from-config'
|
||||
|
@ -107,6 +107,151 @@
|
||||
"01508_partition_pruning", /// bug, shoud be fixed
|
||||
"01482_move_to_prewhere_and_cast" /// bug, shoud be fixed
|
||||
],
|
||||
"antlr": [
|
||||
"00763_create_query_as_table_engine_bug",
|
||||
"00765_sql_compatibility_aliases",
|
||||
"00826_cross_to_inner_join",
|
||||
"00834_not_between",
|
||||
"00939_limit_by_offset",
|
||||
"00969_columns_clause",
|
||||
"00975_values_list",
|
||||
"00976_system_stop_ttl_merges",
|
||||
"00978_table_function_values_alias",
|
||||
"00980_merge_alter_settings",
|
||||
"00980_zookeeper_merge_tree_alter_settings",
|
||||
"00982_array_enumerate_uniq_ranked",
|
||||
"00984_materialized_view_to_columns",
|
||||
"00988_constraints_replication_zookeeper",
|
||||
"00995_order_by_with_fill",
|
||||
"01001_enums_in_in_section",
|
||||
"01011_group_uniq_array_memsan",
|
||||
"01011_test_create_as_skip_indices",
|
||||
"01015_attach_part",
|
||||
"01015_database_bad_tables",
|
||||
"01017_uniqCombined_memory_usage",
|
||||
"01019_alter_materialized_view_query",
|
||||
"01021_tuple_parser",
|
||||
"01025_array_compact_generic",
|
||||
"01033_quota_dcl",
|
||||
"01034_with_fill_and_push_down_predicate",
|
||||
"01039_row_policy_dcl",
|
||||
"01039_test_setting_parse",
|
||||
"01045_dictionaries_restrictions",
|
||||
"01048_exists_query",
|
||||
"01055_compact_parts_1",
|
||||
"01056_create_table_as",
|
||||
"01066_bit_count",
|
||||
"01070_materialize_ttl",
|
||||
"01070_mutations_with_dependencies",
|
||||
"01073_grant_and_revoke",
|
||||
"01073_show_tables_not_like",
|
||||
"01074_partial_revokes",
|
||||
"01075_allowed_client_hosts",
|
||||
"01089_alter_settings_old_format",
|
||||
"01095_tpch_like_smoke",
|
||||
"01109_exchange_tables",
|
||||
"01109_sc0rp10_string_hash_map_zero_bytes",
|
||||
"01110_dictionary_layout_without_arguments",
|
||||
"01114_materialize_clear_index_compact_parts",
|
||||
"01115_join_with_dictionary",
|
||||
"01117_comma_and_others_join_mix",
|
||||
"01125_dict_ddl_cannot_add_column",
|
||||
"01130_in_memory_parts",
|
||||
"01144_multiple_joins_rewriter_v2_and_lambdas",
|
||||
"01144_multiword_data_types",
|
||||
"01145_with_fill_const",
|
||||
"01149_zookeeper_mutation_stuck_after_replace_partition",
|
||||
"01188_attach_table_from_path",
|
||||
"01190_full_attach_syntax",
|
||||
"01191_rename_dictionary",
|
||||
"01210_drop_view",
|
||||
"01213_alter_rename_column",
|
||||
"01232_untuple",
|
||||
"01244_optimize_distributed_group_by_sharding_key",
|
||||
"01254_dict_load_after_detach_attach",
|
||||
"01256_misspell_layout_name_podshumok",
|
||||
"01257_dictionary_mismatch_types",
|
||||
"01267_alter_default_key_columns_zookeeper",
|
||||
"01268_mv_scalars",
|
||||
"01269_create_with_null",
|
||||
"01271_show_privileges",
|
||||
"01272_offset_without_limit",
|
||||
"01275_parallel_mv",
|
||||
"01277_alter_rename_column_constraint_zookeeper",
|
||||
"01280_min_map_max_map",
|
||||
"01280_null_in",
|
||||
"01280_ttl_where_group_by_negative",
|
||||
"01280_unicode_whitespaces_lexer",
|
||||
"01292_create_user",
|
||||
"01293_create_role",
|
||||
"01293_pretty_max_value_width",
|
||||
"01293_show_settings",
|
||||
"01294_create_settings_profile",
|
||||
"01295_create_row_policy",
|
||||
"01296_create_row_policy_in_current_database",
|
||||
"01297_create_quota",
|
||||
"01308_row_policy_and_trivial_count_query",
|
||||
"01318_map_add_map_subtract",
|
||||
"01322_any_input_optimize",
|
||||
"01324_if_transform_strings_to_enum",
|
||||
"01337_mysql_global_variables",
|
||||
"01355_alter_column_with_order",
|
||||
"01355_ilike",
|
||||
"01373_is_zero_or_null",
|
||||
"01374_if_nullable_filimonov",
|
||||
"01378_alter_rename_with_ttl_zookeeper",
|
||||
"01379_with_fill_several_columns",
|
||||
"01397_in_bad_arguments",
|
||||
"01415_table_function_view",
|
||||
"01419_merge_tree_settings_sanity_check",
|
||||
"01430_modify_sample_by_zookeeper",
|
||||
"01447_json_strings",
|
||||
"01449_json_compact_strings",
|
||||
"01451_detach_drop_part",
|
||||
"01451_replicated_detach_drop_and_quorum",
|
||||
"01451_replicated_detach_drop_part",
|
||||
"01457_create_as_table_function_structure",
|
||||
"01460_allow_dollar_and_number_in_identifier",
|
||||
"01463_test_alter_live_view_refresh",
|
||||
"01465_ttl_recompression",
|
||||
"01470_columns_transformers",
|
||||
"01470_explain",
|
||||
"01470_show_databases_like",
|
||||
"01470_test_insert_select_asterisk",
|
||||
"01491_nested_multiline_comments",
|
||||
"01493_table_function_null",
|
||||
"01495_subqueries_in_with_statement",
|
||||
"01495_subqueries_in_with_statement_2",
|
||||
"01495_subqueries_in_with_statement_3",
|
||||
"01504_compression_multiple_streams",
|
||||
"01508_explain_header",
|
||||
"01515_mv_and_array_join_optimisation_bag",
|
||||
"01516_create_table_primary_key",
|
||||
"01517_drop_mv_with_inner_table",
|
||||
"01523_interval_operator_support_string_literal",
|
||||
"01525_select_with_offset_fetch_clause",
|
||||
"01526_client_start_and_exit",
|
||||
"01529_union_distinct_and_setting_union_default_mode",
|
||||
"01530_drop_database_atomic_sync",
|
||||
"01532_execute_merges_on_single_replica",
|
||||
"01532_primary_key_without_order_by_zookeeper",
|
||||
"01551_mergetree_read_in_order_spread",
|
||||
"01552_dict_fixedstring",
|
||||
"01554_bloom_filter_index_big_integer_uuid",
|
||||
"01556_explain_select_with_union_query",
|
||||
"01561_aggregate_functions_of_key_with_join",
|
||||
"01562_optimize_monotonous_functions_in_order_by",
|
||||
"01581_deduplicate_by_columns_local",
|
||||
"01581_deduplicate_by_columns_replicated",
|
||||
"01590_countSubstrings",
|
||||
"01593_insert_settings",
|
||||
"01596_setting_limit_offset",
|
||||
"01601_detach_permanently",
|
||||
"01603_read_with_backoff_bug",
|
||||
"01604_explain_ast_of_nonselect_query",
|
||||
"01605_skip_idx_compact_parts",
|
||||
"01606_git_import"
|
||||
],
|
||||
"parallel":
|
||||
[
|
||||
/// Pessimistic list of tests which work badly in parallel.
|
||||
|
Loading…
Reference in New Issue
Block a user